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>
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)
12 \input@path: undefined (Standard setting)
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
26 \documentclass{article}
29 \FORMAT{LaTeX2e<2000/06/01>}
30 \AUTHOR{oberdiek@uni-freiburg.de (Heiko Oberdiek)}
32 \PACKAGE[italian]{babel}
36 \setbox0=\hbox{#1}\showbox0}
38 \usepackage[italian]{babel}
40 \iffalse % \iftrue for applying the fix suggestion
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}%