Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Landscape figures
  • Loading branch information
kthoden committed Jan 16, 2020
1 parent b4aa5e1 commit 180d648
Showing 1 changed file with 25 additions and 15 deletions.
40 changes: 25 additions & 15 deletions src/stylesheets/tei2eoatex/eoatex_textparts.xsl
Expand Up @@ -373,7 +373,14 @@
<xsl:call-template name="begin_paragraph"/>
<xsl:choose>
<xsl:when test="not(@type) or @type='hitrue'">
<xsl:text>\EOAfigure</xsl:text>
<xsl:choose>
<xsl:when test="@rend='landscape'">
<xsl:text>\EOAlsfigure</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>\EOAfigure</xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="@n='nonumber'">
<xsl:text>nonumber{</xsl:text>
Expand Down Expand Up @@ -407,27 +414,30 @@
<xsl:text>{</xsl:text>
<xsl:value-of select="@xml:id"/>
<xsl:text>}</xsl:text>
<!-- need size! -->
<xsl:text>{</xsl:text>
<xsl:value-of select="./tei:graphic/@scale"/>
<xsl:text>}{</xsl:text>
<xsl:choose>
<xsl:when test="@place">
<xsl:value-of select="@place"/>
</xsl:when>
<xsl:otherwise>
<xsl:when test="not(@rend='landscape')">
<xsl:text>{</xsl:text>
<xsl:value-of select="./tei:graphic/@scale"/>
<xsl:text>}{</xsl:text>
<xsl:choose>
<xsl:when test="$strictfloats">
<xsl:text>!ht</xsl:text>
<xsl:when test="@place">
<xsl:value-of select="@place"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>ht</xsl:text>
<xsl:choose>
<xsl:when test="$strictfloats">
<xsl:text>!ht</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>ht</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
<xsl:text>}</xsl:text>
</xsl:when>
</xsl:choose>
<xsl:text>}</xsl:text>
</xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="@type='hionlysub'">
Expand Down

0 comments on commit 180d648

Please sign in to comment.