| Suggestions |
|---|
|
Search:
|
|
Next:
Procedures procedure.mod.xsl |
|
Previous:
latex.math.preamble Up: Variables and Templates used in LaTeX Preamble Generation |
latex.graphicext — Declared graphic extensions
This template checks whether the user has overridden grafic.default.extension Otherwise, declares .pdf, .png, .jpg if using pdflatex and .eps if using latex.
<xsl:template name="latex.graphicext">
<xsl:choose>
<xsl:when test="$graphic.default.extension !=''">
<xsl:text>\DeclareGraphicsExtensions{</xsl:text>
<xsl:if test="not(contains($graphic.default.extension,'.'))">
<xsl:text>.</xsl:text>
</xsl:if>
<xsl:value-of select="$graphic.default.extension"/>
<xsl:text>} </xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$latex.pdf.support=1">
<xsl:text>\ifpdf </xsl:text>
<xsl:text>\DeclareGraphicsExtensions{.pdf,.png,.jpg} </xsl:text>
<xsl:text>\else </xsl:text>
<xsl:text>\DeclareGraphicsExtensions{.eps} </xsl:text>
<xsl:text>\fi </xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>\DeclareGraphicsExtensions{.eps} </xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>