diff options
Diffstat (limited to 'textproc/db2latex/patches/patch-ac')
-rw-r--r-- | textproc/db2latex/patches/patch-ac | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/textproc/db2latex/patches/patch-ac b/textproc/db2latex/patches/patch-ac new file mode 100644 index 00000000000..11c982c9a90 --- /dev/null +++ b/textproc/db2latex/patches/patch-ac @@ -0,0 +1,42 @@ +$NetBSD: patch-ac,v 1.1 2009/07/28 16:27:12 minskim Exp $ + +--- xsl/preamble.mod.xsl.orig 2004-01-31 04:26:12.000000000 -0800 ++++ xsl/preamble.mod.xsl +@@ -875,17 +875,7 @@ + <doc:param name="latex.pdf.preamble" xmlns=""> + <doc:description> + <screen> +- \usepackage{ifthen} +- % -------------------------------------------- +- % Check for PDFLaTeX/LaTeX +- % -------------------------------------------- +- \newif\ifpdf +- \ifx\pdfoutput\undefined +- \pdffalse % we are not running PDFLaTeX +- \else +- \pdfoutput=1 % we are running PDFLaTeX +- \pdftrue +- \fi ++ \usepackage{ifpdf} + % -------------------------------------------- + % Load graphicx package with pdf if needed + % -------------------------------------------- +@@ -899,17 +889,7 @@ + </doc:description> + </doc:param> + <xsl:param name="latex.pdf.preamble"> +- <xsl:text>\usepackage{ifthen} </xsl:text> +- <xsl:text>% -------------------------------------------- </xsl:text> +- <xsl:text>% Check for PDFLaTeX/LaTeX </xsl:text> +- <xsl:text>% -------------------------------------------- </xsl:text> +- <xsl:text>\newif\ifpdf </xsl:text> +- <xsl:text>\ifx\pdfoutput\undefined </xsl:text> +- <xsl:text>\pdffalse % we are not running PDFLaTeX </xsl:text> +- <xsl:text>\else </xsl:text> +- <xsl:text>\pdfoutput=1 % we are running PDFLaTeX </xsl:text> +- <xsl:text>\pdftrue </xsl:text> +- <xsl:text>\fi </xsl:text> ++ <xsl:text>\usepackage{ifpdf} </xsl:text> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text>% Load graphicx package with pdf if needed </xsl:text> + <xsl:text>% -------------------------------------------- </xsl:text> |