Fix image scaling issues.
authorJelmer Vernooij <jelmer@samba.org>
Mon, 13 Jun 2005 22:26:00 +0000 (22:26 +0000)
committerGerald W. Carter <jerry@samba.org>
Wed, 23 Apr 2008 14:00:29 +0000 (09:00 -0500)
docs/xslt/latex.xsl

index a5b731dc32621ced889ed290bdfd284e1d55ac8c..0abd611312aa462c0ad3b399565876843ffa6812 100644 (file)
 </xsl:template>
 
 <xsl:template match="imagefile">
-       <xsl:text>\includegraphics[scale=.</xsl:text>
+       <xsl:text>\includegraphics[scale=</xsl:text>
        <xsl:choose>
-               <xsl:when test="@scale != ''"><xsl:value-of select="@scale"/></xsl:when>
+               <xsl:when test="@scale != ''"><xsl:value-of select="@scale div 100"/></xsl:when>
 
-               <xsl:otherwise><xsl:text>50</xsl:text></xsl:otherwise>
+               <xsl:otherwise><xsl:text>.50</xsl:text></xsl:otherwise>
        </xsl:choose>
        <xsl:text>]{</xsl:text>
        <xsl:value-of select="$latex.imagebasedir"/><xsl:text>images/</xsl:text>