[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Can you explain the behaviour of the following?



The three following constructs give different results when run through

    wml -DLaTeX -p1-7,9  (exclude pass 8 for better readability of output)

<if <get-var LaTeX /> <group
\ifx\pdfoutput\undefined % We're not running pdftex
\documentclass[dvips,a4paper,german,11pt]{article}
\else
\documentclass[pdftex,a4paper,german]{article}
\fi
\thispagestyle{empty}
\begin{document}
Bla bla
\end{document}
>
/>

<define-tag document endtag=required>
\ifx\pdfoutput\undefined % We're not running pdftex
\documentclass[dvips,a4paper,german,11pt]{article}
\else
\documentclass[pdftex,a4paper,german]{article}
\fi
\thispagestyle{empty}
\begin{document}
%body
\end{document}
</define-tag>

<document>Bla bla
</document>

<if <get-var LaTeX /> <group
<document>Bla bla
</document>
/>
/>

Can someone explain? Obviously I'd like the second result, but need
the if-statement somehow.

Thanks,
Fritz

-- 
Dr. Fritz Zaucker, Head IT Support Group
Department of Electrical Engineering,  Federal Institute of Technology
ETZ J97, Gloriastrasse 35, 8092 Zurich, Switzerland
Tel.: +41-1-632-5241 Fax: +41-1-632-1194 http://ee-staff.ethz.ch/~zaucker/
E-mail: zaucker@ee.ethz.ch (see home page for PGP key)

______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com