do not resize small images
This commit is contained in:
parent
81a40f9a37
commit
2df9700d4f
|
@ -171,7 +171,16 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|||
<xsl:template mode="mal2latex.block.mode" match="mal:figure">
|
||||
<xsl:text>
</xsl:text>
|
||||
<xsl:text>\begin{figure}[H]\begin{center}
</xsl:text>
|
||||
<xsl:text>\includegraphics[width=.5\textwidth,height=7cm,clip,keepaspectratio]{</xsl:text>
|
||||
<xsl:text>\includegraphics</xsl:text>
|
||||
<xsl:choose>
|
||||
<xsl:when test="number(mal:media/@height) < 50">
|
||||
<xsl:text>[scale=0.5]</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:text>[width=.5\textwidth,height=7cm,clip,keepaspectratio]</xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:text>{</xsl:text>
|
||||
<xsl:value-of select="mal:media/@src"/>
|
||||
<xsl:text>}
</xsl:text>
|
||||
<xsl:text>\caption{</xsl:text>
|
||||
|
|
Reference in New Issue