Move a tag
[latex2e.git] / latex2e-20160201 / required / babel / testfiles / tlb2372.lvt
blob4232c8ab8e9681b952b48762992378ca38aa74e2
1 % Test file for bug report 2372
2 % Error message :
3 %! Paragraph ended before \ifthenelse was complete.
4 %<to be read again> 
5 %                   \par 
6 %l.14 \printsometimes{Hallo.}
8 % This should *not* generate an error 
9 % and print "Hallo one" in the log file
11 \input{test2e}
12 \documentclass{article}
13 \START
14 \AUTHOR{}
15 \FORMAT{LaTeX2e<1997/06/01>}
16 \CLASS{article}
17 \PACKAGE[german]{babel}
18 \PACKAGE{ifthen}
20 \OMIT
21 \usepackage[german]{babel}
22 \usepackage{ifthen}
24 \newboolean{PrintIt}
25 \newcommand{\printsometimes}[1]{%
26   \ifthenelse{\boolean{PrintIt}}%
27     {\wlog{#1}}%
28 %  {\par\noindent\textbf{\large(#1)}\par}%
29 %  {\noindent\textbf{\large(#1)}}%
30   {\relax}}
32 \begin{document}
33 \TIMO
34 \setboolean{PrintIt}{true}
35 \printsometimes{Hallo one.}
36 \setboolean{PrintIt}{false}
37 \printsometimes{Hallo two.}
38 \end{document}