tags 397135 patch clone 397135 -1 severity -1 normal retitle -1 Cannot create dvi and PostScript documentation: buggy \pdfoutput test thanks
The error is a simple typo in use.tex: --- gprolog-1.2.18.old/doc/use.tex 2003-02-11 14:39:26.000000000 +0100 +++ gprolog-1.2.18/doc/use.tex 2006-11-06 11:55:56.000000000 +0100 @@ -998,7 +998,7 @@ \IdxKD{--min-bips} & shorthand for: \texttt{--no-top-level} \texttt{--min-pl-bips} \texttt{--min-fd-bips} \\ -\IdxKD{--min-size} & shorthand² for: \texttt{--min-bips} \texttt{--strip} \\ +\IdxKD{--min-size} & shorthand for: \texttt{--min-bips} \texttt{--strip} \\ \IdxKD{--no-fd-lib} & do not look for the FD library (maintenance only) \\ However, there are more problems in this LaTeX source: It has a buggy test for PDF output, and will never create DVI or PostScript even if that is requested. This is not release critical, since it is not used. The attached patch fixes this. It uses the package ifpdf for performing the test, but probably it is not even needed to make a distinction, since by default graphicx.sty and hyperref.sty will do the detection themselves and do the right thing. However, there are probably some other instances of \ifpdf usage in the document (in particular, somewhere the syntax for the obsolete epsfig package must be switched on in the dvi case), therefore I left it in. Here's the patch: diff -Nur gprolog-1.2.18.old/doc/manual.tex gprolog-1.2.18/doc/manual.tex --- gprolog-1.2.18.old/doc/manual.tex 2003-01-27 09:48:37.000000000 +0100 +++ gprolog-1.2.18/doc/manual.tex 2006-11-06 11:56:09.000000000 +0100 @@ -1,10 +1,3 @@ -\newif\ifpdf -\ifx\pdfoutput\undefined -\pdffalse % we are not running PDFLaTeX -\else -\pdftrue % we are running PDFLaTeX -\fi - \input{packages.tex} \input{macros.tex} \input{body.tex} diff -Nur gprolog-1.2.18.old/doc/packages.tex gprolog-1.2.18/doc/packages.tex --- gprolog-1.2.18.old/doc/packages.tex 2003-02-11 14:39:26.000000000 +0100 +++ gprolog-1.2.18/doc/packages.tex 2006-11-06 12:01:42.000000000 +0100 @@ -8,18 +8,20 @@ \usepackage{makeidx} \usepackage{ifthen} \usepackage{fancyheadings} +\usepackage{ifpdf} \ifpdf \usepackage[pdftex]{graphicx} \usepackage[pdftex=true]{hyperref} - \hypersetup{% - pdftitle = {GNU-Prolog Manual}, - pdfsubject = {GNU-Prolog Manual}, - pdfkeywords = {GNU-Prolog, Prolog, Finite Domain Constraints}, - pdfauthor = {Daniel Diaz} - } \else \usepackage[dvips]{graphics} + \usepackage[dvips]{hyperref} \usepackage{epsfig} \fi +\hypersetup{% + pdftitle = {GNU-Prolog Manual}, + pdfsubject = {GNU-Prolog Manual}, + pdfkeywords = {GNU-Prolog, Prolog, Finite Domain Constraints}, + pdfauthor = {Daniel Diaz} +} -- Dr. Frank Küster Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich Debian Developer (teTeX/TeXLive)