resulting latex image width variates depending of the width of the picture specified in mallard source

Closes #3500
This commit is contained in:
Serghei Mihai 2013-12-02 15:21:10 +01:00
parent 2df9700d4f
commit 5b8ae40097
No known key found for this signature in database
GPG Key ID: 76D1C964BF2FA1AF
1 changed files with 4 additions and 1 deletions

View File

@ -176,8 +176,11 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
<xsl:when test="number(mal:media/@height) &lt; 50">
<xsl:text>[scale=0.5]</xsl:text>
</xsl:when>
<xsl:when test="number(mal:media/@width) &gt; 100">
<xsl:text>[width=\textwidth,clip,keepaspectratio]</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>[width=.5\textwidth,height=7cm,clip,keepaspectratio]</xsl:text>
<xsl:text>[width=\textwidth,height=7cm,clip,keepaspectratio]</xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:text>{</xsl:text>