diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-ifpdf.html')
-rw-r--r-- | Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-ifpdf.html | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-ifpdf.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-ifpdf.html index 7f26397e5c5..8c175c4600a 100644 --- a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-ifpdf.html +++ b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-ifpdf.html @@ -13,9 +13,9 @@ was present in the very first releases of PDFTeX) is <blockquote> <pre> \ifx\pdfoutput\undefined - <not running PDFTeX> + ... % not running PDFTeX \else - <running PDFTeX> + ... % running PDFTeX \fi </pre> </blockquote><p> @@ -37,12 +37,12 @@ test may need to be elaborated: <blockquote> <pre> \ifx\pdfoutput\undefined - <not running PDFTeX> + ... % not running PDFTeX \else \ifx\pdfoutput\relax - <not running PDFTeX> + ... % not running PDFTeX \else - <running PDFTeX> + ... % running PDFTeX \fi \fi </pre> @@ -55,16 +55,16 @@ output, you also need to know about the value of <code>\</code><code>pdfoutput</ <blockquote> <pre> \ifx\pdfoutput\undefined - <not running PDFTeX> + ... % not running PDFTeX \else \ifx\pdfoutput\relax - <not running PDFTeX> + ... % not running PDFTeX \else - <running PDFTeX, with...> + % running PDFTeX, with... \ifnum\pdfoutput>0 - <...PDF output> + ... % PDF output \else - <...DVI output> + ... % DVI output \fi \fi \fi @@ -73,8 +73,16 @@ output, you also need to know about the value of <code>\</code><code>pdfoutput</ The above is, in essence, what Heiko Oberdiek’s <i>ifpdf</i> package does; the reasoning is the FAQ’s interpretation of Heiko’s explanation. +<p/>As an aside: there are now analogous packages <i>ifxetex</i> and +<i>ifluatex</i>, for the two up-and-coming TeX-like engines (see +the “TeX project” answers covering +<a href="FAQ-xetex.html">XeTeX</a>, and +<a href="FAQ-luatex.html">LuaTeX</a>). <dl> -<dt><tt><i>ifpdf.sty</i></tt><dd>Distributed with Heiko Oberdiek’s packages <a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/oberdiek.zip">macros/latex/contrib/oberdiek</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/oberdiek.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/oberdiek/">browse</a>) +<dt><tt><i>ifpdf.sty</i></tt><dd>Distributed with Heiko Oberdiek’s packages <a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archive/macros/latex/contrib/oberdiek.zip">macros/latex/contrib/oberdiek</a> (or <a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archive/macros/latex/contrib/oberdiek/">browse the directory</a>) +<dt><tt><i>ifluatex.sty</i></tt><dd>Distributed with Heiko Oberdiek’s packages + <a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archive/macros/latex/contrib/oberdiek.zip">macros/latex/contrib/oberdiek</a> (or <a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archive/macros/latex/contrib/oberdiek/">browse the directory</a>) +<dt><tt><i>ifxetex.sty</i></tt><dd><a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archive/macros/generic/ifxetex.zip">macros/generic/ifxetex</a> (or <a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archive/macros/generic/ifxetex/">browse the directory</a>) </dl> <p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=ifpdf">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=ifpdf</a> </body> |