git.iko.soy/typeable/pandoc
on master help sign in
Added default.jats template.

This is copied from Martin Fenner's pandoc-jats project: https://github.com/mfenner/pandoc-jats

commit64fe39c255357c25fc636c46bc3bdfd31257b445 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 28 Mar 2017, 09:36 (10 years ago) parentb2f3d8e
3 files changed+198
COPYRIGHT+4 data/templates/default.jats+193 pandoc.cabal+1
COPYRIGHT+4
@@ -106,3 +106,7 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
106106LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
107107OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
108108WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
109+
110+------------------------------------------------------------------------
111+The template pandoc.jats is Copyright 2013--15 Martin Fenner,
112+released under GPL version 2 or later.
data/templates/default.jatsnew file+193
@@ -0,0 +1,193 @@
1+<?xml version="1.0" encoding="utf-8" ?>
2+<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.0 20120330//EN"
3+ "JATS-journalpublishing1.dtd">
4+$if(article.type)$
5+<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.0" article-type="$article.type$">
6+$else$
7+<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.0" article-type="other">
8+$endif$
9+<front>
10+<journal-meta>
11+$if(journal.publisher-id)$
12+<journal-id journal-id-type="publisher-id">$journal.publisher-id$</journal-id>
13+$endif$
14+$if(journal.nlm-ta)$
15+<journal-id journal-id-type="nlm-ta">$journal.nlm-ta$</journal-id>
16+$endif$
17+$if(journal.pmc)$
18+<journal-id journal-id-type="pmc">$journal.pmc$</journal-id>
19+$endif$
20+<journal-title-group>
21+$if(journal.title)$
22+<journal-title>$journal.title$</journal-title>
23+$endif$
24+$if(journal.abbrev-title)$
25+<abbrev-journal-title>$journal.abbrev-title$</abbrev-journal-title>
26+$endif$
27+</journal-title-group>
28+$if(journal.pissn)$
29+<issn pub-type="ppub">$journal.pissn$</issn>
30+$endif$
31+$if(journal.eissn)$
32+<issn pub-type="epub">$journal.eissn$</issn>
33+$endif$
34+<publisher>
35+<publisher-name>$journal.publisher-name$</publisher-name>
36+$if(journal.publisher-loc)$
37+<publisher-loc>$journal.publisher-loc$</publisher-loc>
38+$endif$
39+</publisher>
40+</journal-meta>
41+<article-meta>
42+$if(article.publisher-id)$
43+<article-id pub-id-type="publisher-id">$article.publisher-id$</article-id>
44+$endif$
45+$if(article.doi)$
46+<article-id pub-id-type="doi">$article.doi$</article-id>
47+$endif$
48+$if(article.pmid)$
49+<article-id pub-id-type="pmid">$article.pmid$</article-id>
50+$endif$
51+$if(article.pmcid)$
52+<article-id pub-id-type="pmcid">$article.pmcid$</article-id>
53+$endif$
54+$if(article.art-access-id)$
55+<article-id pub-id-type="art-access-id">$article.art-access-id$</article-id>
56+$endif$
57+$if(article.heading)$
58+<article-categories>
59+<subj-group subj-group-type="heading">
60+<subject>$article.heading$</subject>
61+</subj-group>
62+$if(article.categories)$
63+<subj-group subj-group-type="categories">
64+$for(article.categories)$
65+<subject>$article.categories$</subject>
66+$endfor$
67+</subj-group>
68+$endif$
69+</article-categories>
70+$endif$
71+$if(title)$
72+<title-group>
73+<article-title>$title$</article-title>
74+</title-group>
75+$endif$
76+$if(author)$
77+<contrib-group>
78+$for(author)$
79+<contrib contrib-type="author">
80+$if(author.orcid)$
81+<contrib-id contrib-id-type="orcid">$author.orcid$</contrib-id>
82+$endif$
83+<name>
84+$if(author.surname)$
85+<surname>$author.surname$</surname>
86+<given-names>$author.given-names$</given-names>
87+$else$
88+<string-name>$author$</string-name>
89+$endif$
90+</name>
91+$if(author.email)$
92+<email>$author.email$</email>
93+$endif$
94+$if(author.aff-id)$
95+<xref ref-type="aff" rid="aff-$contrib.aff-id$"/>
96+$endif$
97+$if(author.cor-id)$
98+<xref ref-type="corresp" rid="cor-$author.cor-id$"><sup>*</sup></xref>
99+$endif$
100+</contrib>
101+$endfor$
102+</contrib-group>
103+$endif$
104+$if(article.author-notes)$
105+<author-notes>
106+$if(article.author-notes.corresp)$
107+$for(article.author-notes.corresp)$
108+<corresp id="cor-$article.author-notes.corresp.id$">* E-mail: <email>$article.author-notes.corresp.email$</email></corresp>
109+$endfor$
110+$endif$
111+$if(article.author-notes.conflict)$
112+<fn fn-type="conflict"><p>$article.author-notes.conflict$</p></fn>
113+$endif$
114+$if(article.author-notes.con)$
115+<fn fn-type="con"><p>$article.author-notes.con$</p></fn>
116+$endif$
117+</author-notes>
118+$endif$
119+$if(date)$
120+$if(date.iso-8601)$
121+<pub-date pub-type="epub" iso-8601-date="$date.iso-8601$">
122+$else$
123+<pub-date pub-type="epub">
124+$endif$
125+$if(date.day)$
126+<day>$pub-date.day$</day>
127+$endif$
128+$if(date.month)$
129+<month>$pub-date.month$</month>
130+$endif$
131+$if(date.year)$
132+<year>$pub-date.year$</year>
133+$else$
134+<string-date>$date$</string-date>
135+$endif$
136+</pub-date>
137+$endif$
138+$if(article.volume)$
139+<volume>$article.volume$</volume>
140+$endif$
141+$if(article.issue)$
142+<issue>$article.issue$</issue>
143+$endif$
144+$if(article.fpage)$
145+<fpage>$article.fpage$</fpage>
146+$endif$
147+$if(article.lpage)$
148+<lpage>$article.lpage$</lpage>
149+$endif$
150+$if(article.elocation-id)$
151+<elocation-id>$article.elocation-id$</elocation-id>
152+$endif$
153+$if(history)$
154+<history>
155+</history>
156+$endif$
157+$if(copyright)$
158+<permissions>
159+$if(copyright.statement)$
160+<copyright-statement>$copyright.statement$</copyright-statement>
161+$endif$
162+$if(copyright.year)$
163+<copyright-year>$copyright.year$</copyright-year>
164+$endif$
165+$if(copyright.holder)$
166+<copyright-holder>$copyright.holder$</copyright-holder>
167+$endif$
168+$if(copyright.text)$
169+<license license-type="$copyright.type$" xlink:href="$copyright.link$">
170+<license-p>$copyright.text$</license-p>
171+</license>
172+</permissions>
173+$endif$
174+$endif$
175+$if(tags)$
176+<kwd-group kwd-group-type="author">
177+$for(tags)$
178+<kwd>$tags$</kwd>
179+$endfor$
180+</kwd-group>
181+$endif$
182+$if(article.funding-statement)$
183+<funding-group>
184+<funding-statement>$article.funding-statement$</funding-statement>
185+</funding-group>
186+$endif$
187+</article-meta>
188+$if(notes)$
189+<notes>$notes$</notes>
190+$endif$
191+</front>
192+$body$
193+</article>
pandoc.cabal+1
@@ -41,6 +41,7 @@ Data-Files:
4141 data/templates/default.html5
4242 data/templates/default.docbook4
4343 data/templates/default.docbook5
44+ data/templates/default.jats
4445 data/templates/default.tei
4546 data/templates/default.beamer
4647 data/templates/default.opendocument