1 % Test file for PR 2643
4 % babel makes the doublequote " an active character, to offer a shortcut
5 % for writing Umlaut characters in german (with option german). However,
6 % it does not work in the argument of the macro \ifthenelse of the package
7 % ifthen (standard LaTeX package), at least not if used in the preamble.
8 % babel v3.5 did allow this.
9 % The sample file below uses a macro to set some other macro; the actual
10 % argument may contain the doublequote to form Umlaut characters. Note
11 % that the macro definition itself is ok, since using the macro outside
12 % of \ifthenelse expands it correctly including the active ". In the
13 % example, the macro \betreff is used twice, one time within \ifthenelse,
14 % the other time outside. The result is wrong for the first time, but ok
19 \documentclass[german]{article}
22 \FORMAT{LaTeX2e<1996/12/01>}
23 \CLASS[german]{article}
24 \AUTHOR{schlegel@informatik.uni-rostock.de (Juergen Schlegelmilch)}
31 \newcommand{\Betreff}[1]{%
32 \renewcommand{\betreff}{#1}%
34 \newcommand{\betreff}{}%
35 \newcommand{\opening}{%
36 \ifthenelse{\equal{\betreff}{}}{}{\betreff\\[\baselineskip]}%
37 \betreff\\[\baselineskip]}%
40 \setbox0\vbox{\@parboxrestore
41 \Betreff{Ank"undigung}
45 \showboxbreadth=30\showboxdepth=30