Suggestions |
---|
Search:
|
Next:
caption |
Previous:
imageobject Up: MediaObjects mediaobject.mod.xsl |
<xsl:template match="imagedata" name="imagedata"> <xsl:param name="filename"> <xsl:choose> <xsl:when test="@entityref"> <xsl:value-of select="unparsed-entity-uri(@entityref)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="@fileref"/> </xsl:otherwise> </xsl:choose> </xsl:param> <xsl:param name="is.imageobjectco" select="false()"/> <xsl:variable name="depth" select="normalize-space(@depth)"/> <xsl:variable name="width"> <xsl:call-template name="generate.latex.width"/> </xsl:variable> ... </xsl:template>
If both @width and @scale are given but @scalefit='0', whitespace is added to the left and right in order to match the specified width.
If @width is given and either @scalefit=1 or no @scale is given, then the image is scale to @width. Otherwise, @scale is used, if it is present.
If this is not the only imagedata within the figure, this will be rendered as a 'subfigure', including the caption of its enclosing mediaobject.
For widths, those containing a percent symbol (“%”) will be taken relative to the \linewidth (see generate.latex.width).
The “PRN” value of the format attribute is honoured.