forked from adityam/pandoc-templates
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathscholmdTemplate_bodyOnly.html5
86 lines (85 loc) · 1.69 KB
/
scholmdTemplate_bodyOnly.html5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
$if(quotes)$
<style type="text/css">q { quotes: "“" "”" "‘" "’"; }</style>
$endif$
$for(include-before)$
$include-before$
$endfor$
$if(math-macros)$
<div class="math scholmd-math-definitions" style="visibility: hidden; height: 0px; width 0px;">\[
$math-macros$
\]</div>
$endif$
$if(title)$
<header>
$if(subtitle)$
<hgroup class="scholmd-title-group">
<h1 class="scholmd-title">$title$</h1>
<h1 class="scholmd-subtitle">$subtitle$</h1>
</hgroup>
$else$
<h1 class="scholmd-title">$title$</h1>
$endif$
$for(author)$
<div class="scholmd-author">
$if(author.name)$
<div class="scholmd-author-name">$author.name$</div>
$if(author.affiliation)$
<div class="scholmd-author-affiliation">$author.affiliation$</div>
$endif$
$else$
$author$
$endif$
</div>
$endfor$
$if(date)$
<div class="scholmd-date">$date$</div>
$endif$
</header>
$endif$
$if(abstract)$
<div class="scholmd-abstract">
$if(abstract-title)$
<h2 class="scholmd-abstract-title">$abstract-title$</h2>
$endif$
$abstract$
</div>
$endif$
$if(toc)$
<nav id="$idprefix$TOC">
$toc$
</nav>
$endif$
$body$
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
processClass: "math"
},
TeX: {
TagSide: "left",
TagIndent: "1.2em",
equationNumbers: {
autoNumber: "AMS"
},
Macros: {
ensuremath: ["#1",1],
textsf: ["\\mathsf{\\text{#1}}",1],
texttt: ["\\mathtt{\\text{#1}}",1]
}
},
"HTML-CSS": {
scale: 100,
availableFonts: ["TeX"],
preferredFont: "TeX",
webFont: "TeX",
imageFont: "TeX",
EqnChunk: 1000
}
});
</script>
$for(include-after)$
$include-after$
$endfor$
$if(math)$
$math$
$endif$