Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Ident after floats made optional
  • Loading branch information
kthoden committed Apr 12, 2019
1 parent 8dbf505 commit c27b850
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tei2eoatex.xsl
Expand Up @@ -10,6 +10,7 @@
<xsl:param name="frontmatter" as="xs:boolean" required="no" select="false()"/>
<xsl:param name="contributors" as="xs:boolean" required="no" select="false()"/>
<xsl:param name="strictfloats" as="xs:boolean" required="no" select="false()"/>
<xsl:param name="indentfloats" as="xs:boolean" required="no" select="false()"/>
<xsl:param name="verbosity" as="xs:integer" required="no" select="0"/>
<xsl:param name="parts" as="xs:boolean" required="yes"/>

Expand Down Expand Up @@ -153,10 +154,13 @@ contexts, a double replacement is performed.
<xsl:template match="tei:body//tei:p[not(ancestor::tei:note)]">
<xsl:choose>
<!-- thanks: https://stackoverflow.com/questions/28984806/xsl-check-immediate-preceding-sibling#28985405 -->
<xsl:when test="preceding-sibling::*[1][self::tei:ab[@type='chapterabstract'] | self::tei:quote | self::tei:figure | self::tei:list]">
<xsl:when test="preceding-sibling::*[1][self::tei:ab[@type='chapterabstract'] | self::tei:figure] and $indentfloats">
<xsl:text>&#x000a;&#x000a;\noindent </xsl:text>
<xsl:apply-templates />
</xsl:when>
<xsl:when test="preceding-sibling::*[1][self::tei:quote | self::tei:list]">
<xsl:apply-templates />
</xsl:when>
<!--
<xsl:when test="@type='abstract'">
<xsl:text>\begin{EOAabstract}</xsl:text>
Expand Down

0 comments on commit c27b850

Please sign in to comment.