Move a tag
[latex2e.git] / latex2e-20160201 / required / babel / testfiles / tlb3543.lvt
blobf41e4036dfd0a3aa60aeb0fc87f4c412f5aa1c34
1 \iffalse
2 >Number:         3543
3 >Synopsis:       \add@accent bug in italian
4 >Arrival-Date:   Fri Jul 18 01:21:00 CEST 2003
5 >Last-Modified:  Fri Sep 19 22:41:00 CEST 2003
6 >Originator:     oberdiek@uni-freiburg.de (Heiko Oberdiek)
7 >Release:        LaTeX2e <2001/06/01>
8 >Environment:
9  Hyphenation: Babel <v3.7g> and hyphenation patterns for american, french, german, ngerman, nohyphenation, loaded.
10  \@TeXversion: undefined (Standard setting for TeX3.141 and later)
11  \@currdir: macro:->./
12  \input@path: undefined (Standard setting)
13 >Description:
14 % Description of bug:
15 % The changed implementation of \add@accent in italian.ldf
16 % does not take into account that the second parameter can
17 % be nothing or a space. Then the line with
18 %   ...\let\bbl@tempa#2\fi
19 % will assign \bbl@tempa with the meaning of \fi. In the
20 % following \bbl@tempa is executed twice, resulting in the
21 % error "Extra \fi".
23 >How-To-Repeat:
24 \fi
25 \input{test2e}
26 \documentclass{article}
28 \START
29 \FORMAT{LaTeX2e<2000/06/01>}
30 \AUTHOR{oberdiek@uni-freiburg.de (Heiko Oberdiek)}
31 \CLASS{article}
32 \PACKAGE[italian]{babel}
33 \showboxbreadth=50
34 \showboxdepth=50
35 \def\testit#1{%
36   \setbox0=\hbox{#1}\showbox0}
37 \OMIT
38 \usepackage[italian]{babel}
40 \iffalse % \iftrue for applying the fix suggestion
41 \makeatletter
42 \renewcommand*{\add@accent}[2]{%
43   {\ifx#2i\let\bbl@tempa\i\else\let\bbl@tempa#2\relax\fi
44 %   fix suggestion, insertion of \relax:       ^^^^^^
45     \setbox\@tempboxa\hbox{\bbl@tempa%
46       \global\mathchardef\accent@spacefactor\spacefactor}%
47     \accent#1\bbl@tempa}\spacefactor\accent@spacefactor}%
48 \makeatother
49 \fi
51 \begin{document}
52 \TIMO
53 \testit{\~{}}
54 \end{document}
55 \endinput