aboutsummaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/default.commonmark2
-rw-r--r--data/templates/default.dzslides2
-rw-r--r--data/templates/default.html42
-rw-r--r--data/templates/default.html52
-rw-r--r--data/templates/default.latex4
-rw-r--r--data/templates/default.markdown2
-rw-r--r--data/templates/default.opendocument129
-rw-r--r--data/templates/default.plain2
-rw-r--r--data/templates/default.revealjs15
-rw-r--r--data/templates/default.rtf2
-rw-r--r--data/templates/default.s52
-rw-r--r--data/templates/default.slideous2
-rw-r--r--data/templates/default.slidy2
13 files changed, 153 insertions, 15 deletions
diff --git a/data/templates/default.commonmark b/data/templates/default.commonmark
index 95d7e52cc..9f6ca96de 100644
--- a/data/templates/default.commonmark
+++ b/data/templates/default.commonmark
@@ -11,7 +11,7 @@ $include-before$
$endfor$
$if(toc)$
-$toc$
+$table-of-contents$
$endif$
$body$
diff --git a/data/templates/default.dzslides b/data/templates/default.dzslides
index ef4f03c8d..479d2f06e 100644
--- a/data/templates/default.dzslides
+++ b/data/templates/default.dzslides
@@ -186,7 +186,7 @@ $endif$
$endif$
$if(toc)$
<section id="$idprefix$TOC">
-$toc$
+$table-of-contents$
</section>
$endif$
$for(include-before)$
diff --git a/data/templates/default.html4 b/data/templates/default.html4
index 9745f3ba8..837b20080 100644
--- a/data/templates/default.html4
+++ b/data/templates/default.html4
@@ -57,7 +57,7 @@ $endif$
$endif$
$if(toc)$
<div id="$idprefix$TOC">
-$toc$
+$table-of-contents$
</div>
$endif$
$body$
diff --git a/data/templates/default.html5 b/data/templates/default.html5
index dfc66cf4e..203001f21 100644
--- a/data/templates/default.html5
+++ b/data/templates/default.html5
@@ -60,7 +60,7 @@ $endif$
$endif$
$if(toc)$
<nav id="$idprefix$TOC">
-$toc$
+$table-of-contents$
</nav>
$endif$
$body$
diff --git a/data/templates/default.latex b/data/templates/default.latex
index 156c43985..3658b7fca 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -113,7 +113,7 @@ $if(geometry)$
\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
$endif$
$if(natbib)$
-\usepackage{natbib}
+\usepackage[$natbiboptions$]{natbib}
\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
$endif$
$if(biblatex)$
@@ -135,7 +135,7 @@ $endif$
$if(tables)$
\usepackage{longtable,booktabs}
% Fix footnotes in tables (requires footnote package)
-\IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{long table}}{}
+\IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{longtable}}{}
$endif$
$if(graphics)$
\usepackage{graphicx,grffile}
diff --git a/data/templates/default.markdown b/data/templates/default.markdown
index 95d7e52cc..9f6ca96de 100644
--- a/data/templates/default.markdown
+++ b/data/templates/default.markdown
@@ -11,7 +11,7 @@ $include-before$
$endfor$
$if(toc)$
-$toc$
+$table-of-contents$
$endif$
$body$
diff --git a/data/templates/default.opendocument b/data/templates/default.opendocument
index bb01d4bbb..e0bc5c1d3 100644
--- a/data/templates/default.opendocument
+++ b/data/templates/default.opendocument
@@ -23,6 +23,135 @@ $endif$
$for(include-before)$
$include-before$
$endfor$
+$if(toc)$
+<text:table-of-content>
+ <text:table-of-content-source text:outline-level="10">
+ <text:index-title-template text:style-name="Contents_20_Heading">
+ $toc-title$
+ </text:index-title-template>
+ <text:table-of-content-entry-template text:outline-level="1"
+ text:style-name="Contents_20_1">
+ <text:index-entry-link-start text:style-name="Internet_20_link" />
+ <text:index-entry-chapter />
+ <text:index-entry-text />
+ <text:index-entry-link-end />
+ <text:index-entry-tab-stop style:type="right"
+ style:leader-char="." />
+ <text:index-entry-link-start text:style-name="Internet_20_link" />
+ <text:index-entry-page-number />
+ <text:index-entry-link-end />
+ </text:table-of-content-entry-template>
+ <text:table-of-content-entry-template text:outline-level="2"
+ text:style-name="Contents_20_2">
+ <text:index-entry-link-start text:style-name="Internet_20_link" />
+ <text:index-entry-chapter />
+ <text:index-entry-text />
+ <text:index-entry-link-end />
+ <text:index-entry-tab-stop style:type="right"
+ style:leader-char="." />
+ <text:index-entry-link-start text:style-name="Internet_20_link" />
+ <text:index-entry-page-number />
+ <text:index-entry-link-end />
+ </text:table-of-content-entry-template>
+ <text:table-of-content-entry-template text:outline-level="3"
+ text:style-name="Contents_20_3">
+ <text:index-entry-link-start text:style-name="Internet_20_link" />
+ <text:index-entry-chapter />
+ <text:index-entry-text />
+ <text:index-entry-link-end />
+ <text:index-entry-tab-stop style:type="right"
+ style:leader-char="." />
+ <text:index-entry-link-start text:style-name="Internet_20_link" />
+ <text:index-entry-page-number />
+ <text:index-entry-link-end />
+ </text:table-of-content-entry-template>
+ <text:table-of-content-entry-template text:outline-level="4"
+ text:style-name="Contents_20_4">
+ <text:index-entry-link-start text:style-name="Internet_20_link" />
+ <text:index-entry-chapter />
+ <text:index-entry-text />
+ <text:index-entry-link-end />
+ <text:index-entry-tab-stop style:type="right"
+ style:leader-char="." />
+ <text:index-entry-link-start text:style-name="Internet_20_link" />
+ <text:index-entry-page-number />
+ <text:index-entry-link-end />
+ </text:table-of-content-entry-template>
+ <text:table-of-content-entry-template text:outline-level="5"
+ text:style-name="Contents_20_5">
+ <text:index-entry-link-start text:style-name="Internet_20_link" />
+ <text:index-entry-chapter />
+ <text:index-entry-text />
+ <text:index-entry-link-end />
+ <text:index-entry-tab-stop style:type="right"
+ style:leader-char="." />
+ <text:index-entry-link-start text:style-name="Internet_20_link" />
+ <text:index-entry-page-number />
+ <text:index-entry-link-end />
+ </text:table-of-content-entry-template>
+ <text:table-of-content-entry-template text:outline-level="6"
+ text:style-name="Contents_20_6">
+ <text:index-entry-link-start text:style-name="Internet_20_link" />
+ <text:index-entry-chapter />
+ <text:index-entry-text />
+ <text:index-entry-link-end />
+ <text:index-entry-tab-stop style:type="right"
+ style:leader-char="." />
+ <text:index-entry-link-start text:style-name="Internet_20_link" />
+ <text:index-entry-page-number />
+ <text:index-entry-link-end />
+ </text:table-of-content-entry-template>
+ <text:table-of-content-entry-template text:outline-level="7"
+ text:style-name="Contents_20_7">
+ <text:index-entry-link-start text:style-name="Internet_20_link" />
+ <text:index-entry-chapter />
+ <text:index-entry-text />
+ <text:index-entry-link-end />
+ <text:index-entry-tab-stop style:type="right"
+ style:leader-char="." />
+ <text:index-entry-link-start text:style-name="Internet_20_link" />
+ <text:index-entry-page-number />
+ <text:index-entry-link-end />
+ </text:table-of-content-entry-template>
+ <text:table-of-content-entry-template text:outline-level="8"
+ text:style-name="Contents_20_8">
+ <text:index-entry-link-start text:style-name="Internet_20_link" />
+ <text:index-entry-chapter />
+ <text:index-entry-text />
+ <text:index-entry-link-end />
+ <text:index-entry-tab-stop style:type="right"
+ style:leader-char="." />
+ <text:index-entry-link-start text:style-name="Internet_20_link" />
+ <text:index-entry-page-number />
+ <text:index-entry-link-end />
+ </text:table-of-content-entry-template>
+ <text:table-of-content-entry-template text:outline-level="9"
+ text:style-name="Contents_20_9">
+ <text:index-entry-link-start text:style-name="Internet_20_link" />
+ <text:index-entry-chapter />
+ <text:index-entry-text />
+ <text:index-entry-link-end />
+ <text:index-entry-tab-stop style:type="right"
+ style:leader-char="." />
+ <text:index-entry-link-start text:style-name="Internet_20_link" />
+ <text:index-entry-page-number />
+ <text:index-entry-link-end />
+ </text:table-of-content-entry-template>
+ <text:table-of-content-entry-template text:outline-level="10"
+ text:style-name="Contents_20_10">
+ <text:index-entry-link-start text:style-name="Internet_20_link" />
+ <text:index-entry-chapter />
+ <text:index-entry-text />
+ <text:index-entry-link-end />
+ <text:index-entry-tab-stop style:type="right"
+ style:leader-char="." />
+ <text:index-entry-link-start text:style-name="Internet_20_link" />
+ <text:index-entry-page-number />
+ <text:index-entry-link-end />
+ </text:table-of-content-entry-template>
+ </text:table-of-content-source>
+</text:table-of-content>
+$endif$
$body$
$for(include-after)$
$include-after$
diff --git a/data/templates/default.plain b/data/templates/default.plain
index 95d7e52cc..9f6ca96de 100644
--- a/data/templates/default.plain
+++ b/data/templates/default.plain
@@ -11,7 +11,7 @@ $include-before$
$endfor$
$if(toc)$
-$toc$
+$table-of-contents$
$endif$
$body$
diff --git a/data/templates/default.revealjs b/data/templates/default.revealjs
index ac8d6c444..4350c80e8 100644
--- a/data/templates/default.revealjs
+++ b/data/templates/default.revealjs
@@ -79,7 +79,7 @@ $endif$
$endif$
$if(toc)$
<section id="$idprefix$TOC">
-$toc$
+$table-of-contents$
</section>
$endif$
@@ -229,15 +229,24 @@ $endif$
$if(maxScale)$
maxScale: $maxScale$,
$endif$
+$if(mathjax)$
+ math: {
+ mathjax: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js',
+ config: 'TeX-AMS_HTML-full',
+ },
+$endif$
// Optional reveal.js plugins
dependencies: [
{ src: '$revealjs-url$/lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: '$revealjs-url$/plugin/zoom-js/zoom.js', async: true },
- $if(notes-server)$
+$if(notes-server)$
{ src: '$revealjs-url$/socket.io/socker.io.js', async: true },
{ src: '$revealjs-url$/plugin/notes-server/client.js', async: true },
- $endif$
+$endif$
+$if(mathjax)$
+ { src: '$revealjs-url$/plugin/math/math.js', async: true },
+$endif$
{ src: '$revealjs-url$/plugin/notes/notes.js', async: true }
]
});
diff --git a/data/templates/default.rtf b/data/templates/default.rtf
index 59e132b3f..a7f79376d 100644
--- a/data/templates/default.rtf
+++ b/data/templates/default.rtf
@@ -18,7 +18,7 @@ $if(spacer)$
{\pard \ql \f0 \sa180 \li0 \fi0 \par}
$endif$
$if(toc)$
-$toc$
+$table-of-contents$
$endif$
$for(include-before)$
$include-before$
diff --git a/data/templates/default.s5 b/data/templates/default.s5
index e4fa970d3..1ba3998c3 100644
--- a/data/templates/default.s5
+++ b/data/templates/default.s5
@@ -78,7 +78,7 @@ $endif$
$endif$
$if(toc)$
<div class="slide" id="$idprefix$TOC">
-$toc$
+$table-of-contents$
</div>
$endif$
$body$
diff --git a/data/templates/default.slideous b/data/templates/default.slideous
index c7dbb5969..7f6364cfc 100644
--- a/data/templates/default.slideous
+++ b/data/templates/default.slideous
@@ -83,7 +83,7 @@ $endif$
$endif$
$if(toc)$
<div class="slide" id="$idprefix$TOC">
-$toc$
+$table-of-contents$
</div>
$endif$
$body$
diff --git a/data/templates/default.slidy b/data/templates/default.slidy
index e7b3278ff..48bb254ae 100644
--- a/data/templates/default.slidy
+++ b/data/templates/default.slidy
@@ -69,7 +69,7 @@ $endif$
$endif$
$if(toc)$
<div class="slide" id="$idprefix$TOC">
-$toc$
+$table-of-contents$
</div>
$endif$
$body$