Move a tag
[latex2e.git] / latex2e-20160201 / required / babel / testfiles / tlb2800.lvt
blob896dafe9420f11cc860aec303eedf22ab99984b0
1 \iffalse
2 >Number:         2800
3 >Originator:     oberdiek@ruf.uni-freiburg.de (Heiko Oberdiek)
4 >Description:
5 Description of bug:
6 If somebody uses \iflanguage with an macro with its parameter
7 after \iflanguage the macro is broken by \cs{else} or \cs{fi}.
8 \fi
10 \input{test2e}
12 \documentclass{article}
14 \START
15 \FORMAT{LaTeX2e<1996/12/01>}
16 \CLASS{article}
17 \AUTHOR{oberdiek@ruf.uni-freiburg.de (Heiko Oberdiek)}
18 \PACKAGE[german]{babel}
20 \OMIT
21 \usepackage[german]{babel}
23 \begin{document}
25 \TIMO
27 \showboxbreadth=50\showboxdepth=50
29 \newcommand{\testgerm}[1]{[Test "`#1"' auf Deutsch]}
30 \newcommand{\testeng}[1]{[Test ``#1'' in english]}
32 \setbox0\hbox{%
33   \iflanguage{german}{\testgerm{ABC}}{\testeng{ABC}} is correct and}
34 \showbox0
35 \setbox0\hbox{%
36   \iflanguage{german}{\testgerm}{\testeng}{ABC} was wrong.}
37 \showbox0
39 \makeatletter
40 \setbox0\vbox{\@parboxrestore
41   \iflanguage{german}{\section[german]}%
42                      {\section[default]}%
43                      {section title}
44 generated an error.}
45 \showbox0
47 \end{document}