From: Hans U. N. <hu...@n-...> - 2008-12-15 16:22:20
|
Modern LaTex distributions use PDFLaTeX to create DVI files. So we cannot just check whether we are using PDFLaTeX, but also whether the output format is DVI or PDF, in order to set up the \ifpdf conditionals. --- yaws/doc/yaws.tex | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/yaws/doc/yaws.tex b/yaws/doc/yaws.tex index cfe9afc..d5a4432 100644 --- a/yaws/doc/yaws.tex +++ b/yaws/doc/yaws.tex @@ -3,8 +3,13 @@ \ifx\pdfoutput\undefined \pdffalse % we are not running PDFLaTeX \else - \pdfoutput=1 % we are running PDFLaTeX - \pdftrue + \ifnum \pdfoutput=0 % we are running PDFLaTeX generating DVI + \pdffalse + \else + \ifnum \pdfoutput=1 % we are running PDFLaTeX generating PDF + \pdftrue + \fi + \fi \fi \ifpdf -- 1.6.0.3 |