Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add parameter for manual insertion of preambel
  • Loading branch information
kthoden committed Jun 12, 2019
1 parent f603a68 commit e19a2c7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tei2eoatex.xsl
Expand Up @@ -11,6 +11,7 @@
<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="manualpreambel" 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 @@ -84,7 +85,14 @@ contexts, a double replacement is performed.
<xsl:value-of select="eoa:texcomment(concat('LaTeX output, generated by script tei2eoatex.xsl on ', current-dateTime()))" />
<xsl:value-of select="eoa:texcomment(concat('Using ', system-property('xsl:product-name'), system-property('xsl:product-version'), ' by ', system-property('xsl:vendor'), ' (', system-property('xsl:vendor-url'), ')'))" />
<xsl:text>&#x000a;</xsl:text>
<xsl:text>\input{preambel/pre_eoa}&#x000a;</xsl:text>
<xsl:choose>
<xsl:when test="$manualpreambel">
<xsl:text>\input{preambel/pre_eoa}&#x000a;</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="eoa:texcomment('Preambel is to be attached by eoatex2pdf script')"/>
</xsl:otherwise>
</xsl:choose>
<xsl:text>\EOAbibliographytype{</xsl:text>
<xsl:value-of select="//tei:sourceDesc/tei:ab[@type='bibdatabase']/tei:ref/@type"/>
<xsl:text>}&#x000a;</xsl:text>
Expand Down

0 comments on commit e19a2c7

Please sign in to comment.