Skip to content

Commit f1ccb89

Browse files
committed
Tweak handling of thanks
1 parent 97cf64f commit f1ccb89

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

lib/LaTeXML/resources/XSLT/LaTeXML-jats.xsl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,11 @@
9898
<xsl:apply-templates select="*[
9999
not(self::ltx:title or self::ltx:creator or self::ltx:date or self::ltx:abstract or self::ltx:keywords)
100100
and not(self::ltx:acknowledgements or self::ltx:bibliography)
101+
and not(self::ltx:pubnote[@role='thanks'])
101102
and not(self::ltx:appendix)]"/>
102103
</body>
103104
<back>
104-
<xsl:apply-templates select="ltx:acknowledgements"/>
105+
<xsl:apply-templates select="ltx:acknowledgements | ltx:pubnote[@role='thanks']"/>
105106
<xsl:apply-templates select="ltx:bibliography"/>
106107
<app-group>
107108
<xsl:apply-templates select="//ltx:appendix"/>
@@ -172,6 +173,9 @@
172173
<xsl:value-of select="@close"/>
173174
</xsl:template>
174175

176+
<!-- Need to figure out where these go; presumably by @role -->
177+
<xsl:template match="ltx:pubnote"/>
178+
175179
<xsl:template match="ltx:date[@role='creation']">
176180
<pub-date><year><xsl:apply-templates /></year></pub-date>
177181
</xsl:template>
@@ -370,7 +374,7 @@
370374
<xsl:apply-templates/>
371375
</xsl:template>
372376

373-
<xsl:template match="ltx:acknowledgements">
377+
<xsl:template match="ltx:acknowledgements | ltx:pubnote[@role='thanks']">
374378
<ack>
375379
<xsl:call-template name="require_p"/>
376380
</ack>

lib/LaTeXML/resources/XSLT/LaTeXML-tei.xsl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,11 @@
6161
<xsl:apply-templates select="*[
6262
not(self::ltx:title or self::ltx:creator or self::ltx:date or self::ltx:abstract or self::ltx:keywords or self::ltx:classification)
6363
and not(self::ltx:acknowledgements or self::ltx:bibliography)
64+
and not(self::ltx:pubnote[@role='thanks'])
6465
and not(self::ltx:appendix)]"/>
6566
</body>
6667
<back>
67-
<xsl:apply-templates select="ltx:acknowledgements"/>
68+
<xsl:apply-templates select="ltx:acknowledgements | ltx:pubnote[@role='thanks']"/>
6869
<xsl:apply-templates select="ltx:bibliography"/>
6970
<xsl:apply-templates select="//ltx:appendix"/>
7071
</back>
@@ -145,6 +146,9 @@
145146
<xsl:apply-templates/>
146147
</xsl:template>
147148

149+
<!-- Need to figure out where these go; presumably by @role -->
150+
<xsl:template match="ltx:pubnote"/>
151+
148152
<xsl:template match="ltx:creator[@role='author']">
149153
<author>
150154
<xsl:apply-templates/>
@@ -385,7 +389,7 @@
385389
</hi>
386390
</xsl:template>
387391

388-
<xsl:template match="ltx:acknowledgements">
392+
<xsl:template match="ltx:acknowledgements | ltx:pubnote[@role='thanks']">
389393
<div type="acknowledgements">
390394
<xsl:if test="not(./ltx:p)">
391395
<p>

t/structure/amsarticle.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<keywords name="Key words and phrases: ">ams,article,markup</keywords>
2929
<classification name="2000 Mathematics Subject Classification: " scheme="2000 Mathematics Subject Classification">Primary </classification>
3030
<classification name="2000 Mathematics Subject Classification: " scheme="2000 Mathematics Subject Classification">Other stuff </classification>
31-
<acknowledgements>My Mommy.</acknowledgements>
31+
<pubnote name="Thanks: " role="thanks">My Mommy.</pubnote>
3232
<section inlist="toc" xml:id="S1">
3333
<tags>
3434
<tag>1</tag>

t/structure/authors.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<document xmlns="http://dlmf.nist.gov/LaTeXML" class="ltx_authors_1line">
55
<resource src="LaTeXML.css" type="text/css"/>
66
<resource src="ltx-article.css" type="text/css"/>
7-
<title>Testing Authors<note role="thanks">Whoppee!</note></title>
7+
<title>Testing Authors</title>
88
<creator role="author">
99
<personname>Joe Blow</personname>
1010
<contact role="thanks">Somewhere</contact>
@@ -14,6 +14,7 @@
1414
<contact role="thanks">elsewhere</contact>
1515
</creator>
1616
<date role="creation">Today!</date>
17+
<pubnote>Whoppee!</pubnote>
1718
<section inlist="toc" labels="LABEL:sec:one" xml:id="S1">
1819
<tags>
1920
<tag>1</tag>

0 commit comments

Comments
 (0)