Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Settings for manual addition of frontmatter
  • Loading branch information
kthoden committed Jan 20, 2020
1 parent bd204a5 commit 8fcfc0a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/stylesheets/tei2eoatex.xsl
Expand Up @@ -8,6 +8,7 @@
version="2.0">

<xsl:param name="frontmatter" as="xs:boolean" required="no" select="false()"/>
<xsl:param name="frontmattermanual" 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()"/>
Expand Down Expand Up @@ -102,8 +103,15 @@ contexts, a double replacement is performed.

<xsl:choose>
<xsl:when test="$frontmatter">
<xsl:text>\input{texfiles/frontmatter.tex}&#x000a;</xsl:text>
<xsl:call-template name="writefrontmatter"/>
<xsl:choose>
<xsl:when test="$frontmattermanual">
<xsl:text>\input{texfiles/frontmatter-manual.tex}&#x000a;</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>\input{texfiles/frontmatter.tex}&#x000a;</xsl:text>
<xsl:call-template name="writefrontmatter"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="eoa:debug(1, 'Not writing the frontmatter.', '')" />
Expand Down

0 comments on commit 8fcfc0a

Please sign in to comment.