Suggestions
Search:
 
Next:
latex.hyperref.preamble
Previous:
latex.float.preamble
Up:
Variables and Templates used in LaTeX Preamble Generation
Reference Section

Name

latex.pdf.preamble

Synopsis

<xsl:param name="latex.pdf.preamble">
		<!--
		<xsl:text>\usepackage{ifthen}&#10;</xsl:text>
		<xsl:text>% ============================================&#10;</xsl:text>
		<xsl:text>% Check for PDFLaTeX/LaTeX &#10;</xsl:text>
		<xsl:text>% ============================================&#10;</xsl:text>
		<xsl:text>\newif\ifpdf&#10;</xsl:text>
		<xsl:text>\ifx\pdfoutput\undefined&#10;</xsl:text>
		<xsl:text>\pdffalse % we are not running PDFLaTeX&#10;</xsl:text>
		<xsl:text>\else&#10;</xsl:text>
		<xsl:text>\pdfoutput=1 % we are running PDFLaTeX&#10;</xsl:text>
		<xsl:text>\pdftrue&#10;</xsl:text>
		<xsl:text>\fi&#10;</xsl:text>
		-->
		<xsl:text>% --------------------------------------------
</xsl:text>
		<xsl:text>% Load graphicx package with pdf if needed 
</xsl:text>
		<xsl:text>% --------------------------------------------
</xsl:text>
		<xsl:text>\ifdblatexpdf
</xsl:text>
		<xsl:text>\usepackage[pdftex]{graphicx}
</xsl:text>
		<xsl:text>\pdfcompresslevel=9
</xsl:text>
		<xsl:text>\else
</xsl:text>
		<xsl:text>\usepackage{graphicx}
</xsl:text>
		<xsl:text>\fi
</xsl:text>
	</xsl:param>

A. Description

				% --------------------------------------------
				% Load graphicx package with pdf if needed 
				% --------------------------------------------
				\ifdblatexpdf
				\usepackage[pdftex]{graphicx}
				\pdfcompresslevel=9
				\else
				\usepackage{graphicx}
				\fi
			

G. Uses

Documented templates that use this parameter: