aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--default.asciidoc17
-rw-r--r--default.beamer173
-rw-r--r--default.commonmark21
-rw-r--r--default.context141
-rw-r--r--default.dzslides151
-rw-r--r--default.epub11
-rw-r--r--default.epub311
-rw-r--r--default.html9
-rw-r--r--default.html513
-rw-r--r--default.icml2
-rw-r--r--default.latex150
-rw-r--r--default.man12
-rw-r--r--default.opendocument6
-rw-r--r--default.revealjs229
-rw-r--r--default.rst6
-rw-r--r--default.s528
-rw-r--r--default.slideous15
-rw-r--r--default.slidy17
-rw-r--r--default.tei39
19 files changed, 802 insertions, 249 deletions
diff --git a/default.asciidoc b/default.asciidoc
index 3e30ceef8..27215469a 100644
--- a/default.asciidoc
+++ b/default.asciidoc
@@ -1,16 +1,25 @@
$if(titleblock)$
$title$
-$for(author)$
-:author: $author$
-$endfor$
+$if(author)$
+$for(author)$$author$$sep$; $endfor$
+$endif$
$if(date)$
-:date: $date$
+$date$
+$endif$
+$if(keywords)$
+:keywords: $for(keywords)$$keywords$$sep$, $endfor$
$endif$
$if(toc)$
:toc:
$endif$
$endif$
+$if(abstract)$
+[abstract]
+== Abstract
+$abstract$
+
+$endif$
$for(header-includes)$
$header-includes$
diff --git a/default.beamer b/default.beamer
index 58f8b7361..ccd0862d1 100644
--- a/default.beamer
+++ b/default.beamer
@@ -1,4 +1,49 @@
-\documentclass[$if(fontsize)$$fontsize$,$endif$$if(handout)$handout,$endif$$if(beamer)$ignorenonframetext,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
+\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(handout)$handout,$endif$$if(beamer)$ignorenonframetext,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
+\setbeamertemplate{caption}[numbered]
+\setbeamertemplate{caption label separator}{: }
+\setbeamercolor{caption name}{fg=normal text.fg}
+\beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$
+$if(fontfamily)$
+\usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
+$else$
+\usepackage{lmodern}
+$endif$
+\usepackage{amssymb,amsmath}
+\usepackage{ifxetex,ifluatex}
+\usepackage{fixltx2e} % provides \textsubscript
+\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
+ \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
+ \usepackage[utf8]{inputenc}
+$if(euro)$
+ \usepackage{eurosym}
+$endif$
+\else % if luatex or xelatex
+ \ifxetex
+ \usepackage{mathspec}
+ \else
+ \usepackage{fontspec}
+ \fi
+ \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
+$if(euro)$
+ \newcommand{\euro}{€}
+$endif$
+$if(mainfont)$
+ \setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
+$endif$
+$if(sansfont)$
+ \setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$]{$sansfont$}
+$endif$
+$if(monofont)$
+ \setmonofont[Mapping=tex-ansi$if(monofontoptions)$,$for(monofontoptions)$$monofontoptions$$sep$,$endfor$$endif$]{$monofont$}
+$endif$
+$if(mathfont)$
+ \setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
+$endif$
+$if(CJKmainfont)$
+ \usepackage{xeCJK}
+ \setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
+$endif$
+\fi
$if(theme)$
\usetheme{$theme$}
$endif$
@@ -8,43 +53,47 @@ $endif$
$if(fonttheme)$
\usefonttheme{$fonttheme$}
$endif$
-\setbeamertemplate{caption}[numbered]
-\setbeamertemplate{caption label separator}{:}
-\setbeamercolor{caption name}{fg=normal text.fg}
-\usepackage{amssymb,amsmath}
-\usepackage{ifxetex,ifluatex}
-\usepackage{fixltx2e} % provides \textsubscript
-\usepackage{lmodern}
-\ifxetex
- \usepackage{fontspec,xltxtra,xunicode}
- \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
- \newcommand{\euro}{€}
-\else
- \ifluatex
- \usepackage{fontspec}
- \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
- \newcommand{\euro}{€}
- \else
- \usepackage[T1]{fontenc}
- \usepackage[utf8]{inputenc}
- $if(euro)$
- \usepackage{eurosym}
- $endif$
- \fi
-\fi
+$if(mainfont)$
+\usefonttheme{serif} % use mainfont rather than sansfont for slide text
+$endif$
+$if(innertheme)$
+\useinnertheme{$innertheme$}
+$endif$
+$if(outertheme)$
+\useoutertheme{$outertheme$}
+$endif$
% use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
% use microtype if available
-\IfFileExists{microtype.sty}{\usepackage{microtype}}{}
+\IfFileExists{microtype.sty}{%
+\usepackage{microtype}
+\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
+}{}
+$if(lang)$
+\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
+ \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
+$if(babel-newcommands)$
+ $babel-newcommands$
+$endif$
+\else
+ \usepackage{polyglossia}
+ \setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}
+$for(polyglossia-otherlangs)$
+ \setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$}
+$endfor$
+\fi
+$endif$
+\newif\ifbibliography
$if(natbib)$
\usepackage{natbib}
-\bibliographystyle{plainnat}
+\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
$endif$
$if(biblatex)$
-\usepackage{biblatex}
-$if(biblio-files)$
-\bibliography{$biblio-files$}
-$endif$
+\usepackage$if(biblio-style)$[style=$biblio-style$]$endif${biblatex}
+$if(biblatexoptions)$\ExecuteBibliographyOptions{$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$}$endif$
+$for(bibliography)$
+\addbibresource{$bibliography$}
+$endfor$
$endif$
$if(listings)$
\usepackage{listings}
@@ -57,6 +106,7 @@ $highlighting-macros$
$endif$
$if(verbatim-in-note)$
\usepackage{fancyvrb}
+\VerbatimFootnotes % allows verbatim text in footnotes
$endif$
$if(tables)$
\usepackage{longtable,booktabs}
@@ -66,11 +116,8 @@ $if(tables)$
\def\fnum@table{\tablename~\thetable}
\makeatother
$endif$
-$if(url)$
-\usepackage{url}
-$endif$
$if(graphics)$
-\usepackage{graphicx}
+\usepackage{graphicx,grffile}
\makeatletter
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
\def\maxheight{\ifdim\Gin@nat@height>\textheight0.8\textheight\else\Gin@nat@height\fi}
@@ -81,41 +128,64 @@ $if(graphics)$
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
$endif$
-% Comment these out if you don't want a slide with just the
-% part/section/subsection/subsubsection title:
+% Prevent slide breaks in the middle of a paragraph:
+\widowpenalties 1 10000
+\raggedbottom
+
+$if(section-titles)$
\AtBeginPart{
\let\insertpartnumber\relax
\let\partname\relax
\frame{\partpage}
}
\AtBeginSection{
- \let\insertsectionnumber\relax
- \let\sectionname\relax
- \frame{\sectionpage}
+ \ifbibliography
+ \else
+ \let\insertsectionnumber\relax
+ \let\sectionname\relax
+ \frame{\sectionpage}
+ \fi
}
\AtBeginSubsection{
\let\insertsubsectionnumber\relax
\let\subsectionname\relax
\frame{\subsectionpage}
}
+$endif$
+$if(links-as-notes)$
+% Make links footnotes instead of hotlinks:
+\renewcommand{\href}[2]{#2\footnote{\url{#1}}}
+$endif$
$if(strikeout)$
\usepackage[normalem]{ulem}
% avoid problems with \sout in headers with hyperref:
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
$endif$
-\setlength{\parindent}{0pt}
-\setlength{\parskip}{6pt plus 2pt minus 1pt}
\setlength{\emergencystretch}{3em} % prevent overfull lines
+\providecommand{\tightlist}{%
+ \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
$if(numbersections)$
+\setcounter{secnumdepth}{5}
$else$
\setcounter{secnumdepth}{0}
$endif$
-$if(verbatim-in-note)$
-\VerbatimFootnotes % allows verbatim text in footnotes
-$endif$
-$if(lang)$
-\usepackage[$lang$]{babel}
+$if(dir)$
+\ifxetex
+ % load bidi as late as possible as it modifies e.g. graphicx
+ $if(latex-dir-rtl)$
+ \usepackage[RTLdocument]{bidi}
+ $else$
+ \usepackage{bidi}
+ $endif$
+\fi
+\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
+ \TeXXeTstate=1
+ \newcommand{\RL}[1]{\beginR #1\endR}
+ \newcommand{\LR}[1]{\beginL #1\endL}
+ \newenvironment{RTL}{\beginR}{\endR}
+ \newenvironment{LTR}{\beginL}{\endL}
+\fi
$endif$
$for(header-includes)$
$header-includes$
@@ -130,6 +200,9 @@ $endif$
$if(author)$
\author{$for(author)$$author$$sep$ \and $endfor$}
$endif$
+$if(institute)$
+\institute{$for(institute)$$institute$$sep$ \and $endfor$}
+$endif$
\date{$date$}
\begin{document}
@@ -150,7 +223,7 @@ $endif$
$body$
$if(natbib)$
-$if(biblio-files)$
+$if(bibliography)$
$if(biblio-title)$
$if(book-class)$
\renewcommand\bibname{$biblio-title$}
@@ -159,13 +232,15 @@ $else$
$endif$
$endif$
\begin{frame}[allowframebreaks]{$biblio-title$}
-\bibliography{$biblio-files$}
+\bibliographytrue
+\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
\end{frame}
$endif$
$endif$
$if(biblatex)$
\begin{frame}[allowframebreaks]{$biblio-title$}
+\bibliographytrue
\printbibliography[heading=none]
\end{frame}
diff --git a/default.commonmark b/default.commonmark
new file mode 100644
index 000000000..95d7e52cc
--- /dev/null
+++ b/default.commonmark
@@ -0,0 +1,21 @@
+$if(titleblock)$
+$titleblock$
+
+$endif$
+$for(header-includes)$
+$header-includes$
+
+$endfor$
+$for(include-before)$
+$include-before$
+
+$endfor$
+$if(toc)$
+$toc$
+
+$endif$
+$body$
+$for(include-after)$
+
+$include-after$
+$endfor$
diff --git a/default.context b/default.context
index 6a4be1ed5..4a3457934 100644
--- a/default.context
+++ b/default.context
@@ -1,37 +1,91 @@
-\startmode[*mkii]
- \enableregime[utf-8]
- \setupcolors[state=start]
-\stopmode
-$if(mainlang)$
-\mainlanguage[$mainlang$]
+$if(context-lang)$
+\mainlanguage[$context-lang$]
+$endif$
+$if(context-dir)$
+\setupalign[$context-dir$]
+\setupdirections[bidi=on,method=two]
$endif$
-
% Enable hyperlinks
-\setupinteraction[state=start, color=middleblue]
-
-\setuppapersize [$if(papersize)$$papersize$$else$letter$endif$][$if(papersize)$$papersize$$else$letter$endif$]
-\setuplayout [width=middle, backspace=1.5in, cutspace=1.5in,
- height=middle, topspace=0.75in, bottomspace=0.75in]
-
-\setuppagenumbering[location={footer,center}]
-
-\setupbodyfont[11pt]
-
-\setupwhitespace[medium]
+\setupinteraction
+ [state=start,
+$if(title)$
+ title={$title$},
+$endif$
+$if(subtitle)$
+ subtitle={$subtitle$},
+$endif$
+$if(author)$
+ author={$for(author)$$author$$sep$; $endfor$},
+$endif$
+$if(keywords)$
+ keyword={$for(keywords)$$keywords$$sep$; $endfor$},
+$endif$
+ style=$linkstyle$,
+ color=$linkcolor$,
+ contrastcolor=$linkcontrastcolor$]
+% make chapter, section bookmarks visible when opening document
+\placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section]
+\setupinteractionscreen[option=bookmark]
+\setuptagging[state=start]
+
+$if(papersize)$
+\setuppapersize[$for(papersize)$$papersize$$sep$,$endfor$]
+$endif$
+$if(layout)$
+\setuplayout[$for(layout)$$layout$$sep$,$endfor$]
+$endif$
+$if(pagenumbering)$
+\setuppagenumbering[$for(pagenumbering)$$pagenumbering$$sep$,$endfor$]
+$endif$
+% use microtypography
+\definefontfeature[default][default][script=latn, protrusion=quality, expansion=quality, itlc=yes, textitalics=yes, onum=yes, pnum=yes]
+\definefontfeature[smallcaps][script=latn, protrusion=quality, expansion=quality, smcp=yes, onum=yes, pnum=yes]
+\setupalign[hz,hanging]
+\setupitaliccorrection[global, always]
+\setupbodyfontenvironment[default][em=italic] % use italic as em, not slanted
+\usemodule[simplefonts$if(fontsize)$,$fontsize$$endif$]
+\setmainfontfallback[DejaVu Serif][range={greekandcoptic, greekextended}, force=yes, rscale=auto]
+$if(mainfont)$
+\setmainfont[$mainfont$]
+$endif$
+$if(sansfont)$
+\setsansfont[$sansfont$][rscale=auto]
+$endif$
+$if(monofont)$
+\setmonofont[$monofont$][features=none, rscale=auto]
+$endif$
+$if(mathfont)$
+\setmathfont[$mathfont$][rscale=auto]
+$endif$
+\setupwhitespace[$if(whitespace)$$whitespace$$else$medium$endif$]
+$if(indenting)$
+\setupindenting[$for(indenting)$$indenting$$sep$,$endfor$]
+$endif$
+$if(interlinespace)$
+\setupinterlinespace[$for(interlinespace)$$interlinespace$$sep$,$endfor$]
+$endif$
-\setuphead[chapter] [style=\tfd]
-\setuphead[section] [style=\tfc]
-\setuphead[subsection] [style=\tfb]
-\setuphead[subsubsection][style=\bf]
+\setuphead[chapter] [style=\tfd,header=empty]
+\setuphead[section] [style=\tfc]
+\setuphead[subsection] [style=\tfb]
+\setuphead[subsubsection] [style=\bf]
+\setuphead[subsubsubsection] [style=\sc]
+\setuphead[subsubsubsubsection][style=\it]
+$if(headertext)$
+\setupheadertexts$for(headertext)$[$headertext$]$endfor$
+$endif$
+$if(footertext)$
+\setupfootertexts$for(footertext)$[$footertext$]$endfor$
+$endif$
$if(number-sections)$
$else$
-\setuphead[chapter, section, subsection, subsubsection][number=no]
+\setuphead[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][number=no]
$endif$
\definedescription
[description]
- [headstyle=bold, style=normal, location=hanging, width=broad, margin=1cm]
+ [headstyle=bold, style=normal, location=hanging, width=broad, margin=1cm, alternative=hanging]
\setupitemize[autointro] % prevent orphan list intro
\setupitemize[indentnext=no]
@@ -41,42 +95,47 @@ $endif$
\setupthinrules[width=15em] % width of horizontal rules
-\setupdelimitedtext
- [blockquote]
- [before={\blank[medium]},
- after={\blank[medium]},
- indentnext=no,
- ]
-
-$if(toc)$
-\setupcombinedlist[content][list={$placelist$}]
-
-$endif$
$for(header-includes)$
$header-includes$
$endfor$
\starttext
$if(title)$
-\startalignment[center]
- \blank[2*big]
+\startalignment[middle]
{\tfd $title$}
+$if(subtitle)$
+ \smallskip
+ {\tfa $subtitle$}
+$endif$
$if(author)$
- \blank[3*medium]
+ \smallskip
{\tfa $for(author)$$author$$sep$\crlf $endfor$}
$endif$
$if(date)$
- \blank[2*medium]
+ \smallskip
{\tfa $date$}
$endif$
- \blank[3*medium]
+ \bigskip
\stopalignment
$endif$
+$if(abstract)$
+\midaligned{\it Abstract}
+\startnarrower[2*middle]
+$abstract$
+\stopnarrower
+\blank[big]
+$endif$
$for(include-before)$
$include-before$
$endfor$
$if(toc)$
-\placecontent
+\completecontent
+$endif$
+$if(lot)$
+\completelistoftables
+$endif$
+$if(lof)$
+\completelistoffigures
$endif$
$body$
diff --git a/default.dzslides b/default.dzslides
index c68492141..c8c249030 100644
--- a/default.dzslides
+++ b/default.dzslides
@@ -1,14 +1,21 @@
<!DOCTYPE html>
-<head>
-<meta charset="utf-8">
+<head$if(lang)$ lang="$lang$"$endif$$if(dir)$ dir="$dir$"$endif$>
+ <meta charset="utf-8">
+ <meta name="generator" content="pandoc">
$for(author-meta)$
- <meta name="author" content="$author-meta$" />
+ <meta name="author" content="$author-meta$">
$endfor$
$if(date-meta)$
- <meta name="dcterms.date" content="$date-meta$" />
+ <meta name="dcterms.date" content="$date-meta$">
$endif$
- <title>$if(title-prefix)$$title-prefix$ - $endif$$pagetitle$</title>
+$if(keywords)$
+ <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$">
+$endif$
+ <title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
<style type="text/css">code{white-space: pre;}</style>
+$if(quotes)$
+ <style type="text/css">q { quotes: "“" "”" "‘" "’"; }</style>
+$endif$
$if(highlighting-css)$
<style type="text/css">
$highlighting-css$
@@ -16,40 +23,87 @@ $highlighting-css$
$endif$
$if(css)$
$for(css)$
- <link rel="stylesheet" href="$css$" $if(html5)$$else$type="text/css" $endif$/>
+ <link rel="stylesheet" href="$css$">
$endfor$
$else$
+<link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet'>
+
<style>
- html { background-color: black; }
- body { background-color: white; border-radius: 12px}
+ html, .view body { background-color: black; counter-reset: slideidx; }
+ body, .view section { background-color: white; border-radius: 12px }
/* A section is a slide. It's size is 800x600, and this will never change */
- section {
- font-family: Arial, serif;
- font-size: 20pt;
- }
- address, blockquote, dl, fieldset, form, h1, h2, h3, h4, h5, h6, hr, ol, p, pre, table, ul, dl { padding: 10px 20px 10px 20px; }
- h1, h2, h3 {
+ section, .view head > title {
+ /* The font from Google */
+ font-family: 'Oswald', arial, serif;
+ font-size: 30px;
+ }
+
+ .view section:after {
+ counter-increment: slideidx;
+ content: counter(slideidx, decimal-leading-zero);
+ position: absolute; bottom: -80px; right: 100px;
+ color: white;
+ }
+
+ .view head > title {
+ color: white;
text-align: center;
- margin: 10pt 10pt 20pt 10pt;
- }
- ul, ol {
- margin: 10px 10px 10px 50px;
- }
- section.titleslide h1 { margin-top: 200px; }
- h1.title { margin-top: 150px; }
- h1 { font-size: 180%; }
- h2 { font-size: 120%; }
- h3 { font-size: 100%; }
- q { quotes: "“" "”" "‘" "’"; }
- blockquote { font-style: italic }
- /* Figures are displayed full-page, with the caption on
- top of the image/video */
+ margin: 1em 0 1em 0;
+ }
+
+ h1, h2 {
+ margin-top: 200px;
+ text-align: center;
+ font-size: 80px;
+ }
+ h3 {
+ margin: 100px 0 50px 100px;
+ }
+
+ ul {
+ margin: 50px 200px;
+ }
+ li > ul {
+ margin: 15px 50px;
+ }
+
+ p {
+ margin: 75px;
+ font-size: 50px;
+ }
+
+ blockquote {
+ height: 100%;
+ background-color: black;
+ color: white;
+ font-size: 60px;
+ padding: 50px;
+ }
+ blockquote:before {
+ content: open-quote;
+ }
+ blockquote:after {
+ content: close-quote;
+ }
+
+ /* Figures are displayed full-page, with the caption
+ on top of the image/video */
figure {
background-color: black;
+ width: 100%;
+ height: 100%;
+ }
+ figure > * {
+ position: absolute;
+ }
+ figure > img, figure > video {
+ width: 100%; height: 100%;
}
figcaption {
margin: 70px;
+ font-size: 50px;
}
+
footer {
position: absolute;
bottom: 0;
@@ -66,10 +120,20 @@ $else$
https://developer.mozilla.org/en/CSS/CSS_transitions
How to use CSS3 Transitions: */
section {
- -moz-transition: left 400ms linear 0s;
- -webkit-transition: left 400ms linear 0s;
- -ms-transition: left 400ms linear 0s;
- transition: left 400ms linear 0s;
+ -moz-transition: left 400ms linear 0s;
+ -webkit-transition: left 400ms linear 0s;
+ -ms-transition: left 400ms linear 0s;
+ transition: left 400ms linear 0s;
+ }
+ .view section {
+ -moz-transition: none;
+ -webkit-transition: none;
+ -ms-transition: none;
+ transition: none;
+ }
+
+ .view section[aria-selected] {
+ border: 5px red solid;
}
/* Before */
@@ -85,10 +149,17 @@ $else$
.incremental > * { opacity: 1; }
/* The current item */
- .incremental > *[aria-selected] { color: red; opacity: 1; }
+ .incremental > *[aria-selected] { opacity: 1; }
/* The items to-be-selected */
- .incremental > *[aria-selected] ~ * { opacity: 0.2; }
+ .incremental > *[aria-selected] ~ * { opacity: 0; }
+
+ /* The progressbar, at the bottom of the slides, show the global
+ progress of the presentation. */
+ #progress-bar {
+ height: 2px;
+ background: #AAA;
+ }
</style>
$endif$
$if(math)$
@@ -105,10 +176,14 @@ $if(title)$
$if(subtitle)$
<h1 class="subtitle">$subtitle$</h1>
$endif$
-$for(author)$
- <h2 class="author">$author$</h2>
-$endfor$
- <h3 class="date">$date$</h3>
+ <footer>
+ $if(author)$<span class="author">$for(author)$$author$$sep$, $endfor$</span>$endif$ · $if(date)$<span class="date">$date$</span>$endif$
+ </footer>
+</section>
+$endif$
+$if(toc)$
+<section id="$idprefix$TOC">
+$toc$
</section>
$endif$
$for(include-before)$
diff --git a/default.epub b/default.epub
index a30de3a45..1c042ff1e 100644
--- a/default.epub
+++ b/default.epub
@@ -14,6 +14,9 @@ $endif$
$for(css)$
<link rel="stylesheet" type="text/css" href="$css$" />
$endfor$
+$for(header-includes)$
+ $header-includes$
+$endfor$
</head>
<body$if(coverpage)$ id="cover"$endif$>
$if(titlepage)$
@@ -31,7 +34,7 @@ $for(author)$
<h2 class="author">$author$</h2>
$endfor$
$for(creator)$
- <h2 class="$creator.type$">$creator.text$</h2>
+ <h2 class="$creator.role$">$creator.text$</h2>
$endfor$
$if(publisher)$
<p class="publisher">$publisher$</p>
@@ -43,7 +46,13 @@ $if(rights)$
<div class="rights">$rights$</div>
$endif$
$else$
+$for(include-before)$
+$include-before$
+$endfor$
$body$
+$for(include-after)$
+$include-after$
+$endfor$
$endif$
</body>
</html>
diff --git a/default.epub3 b/default.epub3
index 421088ec2..0325d53eb 100644
--- a/default.epub3
+++ b/default.epub3
@@ -18,6 +18,9 @@ $endif$
$for(css)$
<link rel="stylesheet" type="text/css" href="$css$" />
$endfor$
+$for(header-includes)$
+ $header-includes$
+$endfor$
</head>
<body$if(coverpage)$ id="cover"$endif$>
$if(titlepage)$
@@ -36,7 +39,7 @@ $for(author)$
<h2 class="author">$author$</h2>
$endfor$
$for(creator)$
- <h2 class="$creator.type$">$creator.text$</h2>
+ <h2 class="$creator.role$">$creator.text$</h2>
$endfor$
$if(publisher)$
<p class="publisher">$publisher$</p>
@@ -49,7 +52,13 @@ $if(rights)$
$endif$
</section>
$else$
+$for(include-before)$
+$include-before$
+$endfor$
$body$
+$for(include-after)$
+$include-after$
+$endfor$
$endif$
</body>
</html>
diff --git a/default.html b/default.html
index 1bbeda47a..8caea26c8 100644
--- a/default.html
+++ b/default.html
@@ -1,5 +1,5 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"$if(lang)$ lang="$lang$" xml:lang="$lang$"$endif$>
+<html xmlns="http://www.w3.org/1999/xhtml"$if(lang)$ lang="$lang$" xml:lang="$lang$"$endif$$if(dir)$ dir="$dir$"$endif$>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
@@ -10,7 +10,10 @@ $endfor$
$if(date-meta)$
<meta name="date" content="$date-meta$" />
$endif$
- <title>$if(title-prefix)$$title-prefix$ - $endif$$pagetitle$</title>
+$if(keywords)$
+ <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
+$endif$
+ <title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
<style type="text/css">code{white-space: pre;}</style>
$if(quotes)$
<style type="text/css">q { quotes: "“" "”" "‘" "’"; }</style>
@@ -21,7 +24,7 @@ $highlighting-css$
</style>
$endif$
$for(css)$
- <link rel="stylesheet" href="$css$" $if(html5)$$else$type="text/css" $endif$/>
+ <link rel="stylesheet" href="$css$" type="text/css" />
$endfor$
$if(math)$
$math$
diff --git a/default.html5 b/default.html5
index 14bff6286..6b1fdb38b 100644
--- a/default.html5
+++ b/default.html5
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html$if(lang)$ lang="$lang$"$endif$>
+<html$if(lang)$ lang="$lang$"$endif$$if(dir)$ dir="$dir$"$endif$>
<head>
<meta charset="utf-8">
<meta name="generator" content="pandoc">
@@ -10,11 +10,11 @@ $endfor$
$if(date-meta)$
<meta name="dcterms.date" content="$date-meta$">
$endif$
- <title>$if(title-prefix)$$title-prefix$ - $endif$$pagetitle$</title>
+$if(keywords)$
+ <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$">
+$endif$
+ <title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
<style type="text/css">code{white-space: pre;}</style>
- <!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
- <![endif]-->
$if(quotes)$
<style type="text/css">q { quotes: "“" "”" "‘" "’"; }</style>
$endif$
@@ -29,6 +29,9 @@ $endfor$
$if(math)$
$math$
$endif$
+ <!--[if lt IE 9]>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
+ <![endif]-->
$for(header-includes)$
$header-includes$
$endfor$
diff --git a/default.icml b/default.icml
index 81c2a142a..b93fa87ba 100644
--- a/default.icml
+++ b/default.icml
@@ -30,7 +30,7 @@
</RootCellStyleGroup>
<Story Self="pandoc_story"
TrackChanges="false"
- StoryTitle="$if(title-prefix)$$title-prefix$ - $endif$$pagetitle$"
+ StoryTitle="$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$"
AppliedTOCStyle="n"
AppliedNamedGrid="n" >
<StoryPreference OpticalMarginAlignment="true" OpticalMarginSize="12" />
diff --git a/default.latex b/default.latex
index e7617773d..0a1c47391 100644
--- a/default.latex
+++ b/default.latex
@@ -1,6 +1,6 @@
-\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$$if(papersize)$$papersize$,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
+\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
$if(fontfamily)$
-\usepackage{$fontfamily$}
+\usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
$else$
\usepackage{lmodern}
$endif$
@@ -12,7 +12,7 @@ $endif$
\usepackage{ifxetex,ifluatex}
\usepackage{fixltx2e} % provides \textsubscript
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
- \usepackage[T1]{fontenc}
+ \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
\usepackage[utf8]{inputenc}
$if(euro)$
\usepackage{eurosym}
@@ -20,23 +20,28 @@ $endif$
\else % if luatex or xelatex
\ifxetex
\usepackage{mathspec}
- \usepackage{xltxtra,xunicode}
\else
\usepackage{fontspec}
\fi
- \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
+ \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
+$if(euro)$
\newcommand{\euro}{€}
+$endif$
$if(mainfont)$
- \setmainfont{$mainfont$}
+ \setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
$endif$
$if(sansfont)$
- \setsansfont{$sansfont$}
+ \setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$]{$sansfont$}
$endif$
$if(monofont)$
- \setmonofont[Mapping=tex-ansi]{$monofont$}
+ \setmonofont[Mapping=tex-ansi$if(monofontoptions)$,$for(monofontoptions)$$monofontoptions$$sep$,$endfor$$endif$]{$monofont$}
$endif$
$if(mathfont)$
- \setmathfont(Digits,Latin,Greek){$mathfont$}
+ \setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
+$endif$
+$if(CJKmainfont)$
+ \usepackage{xeCJK}
+ \setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
$endif$
\fi
% use upquote if available, for straight quotes in verbatim environments
@@ -49,12 +54,42 @@ $endif$
$if(geometry)$
\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
$endif$
+\usepackage{hyperref}
+$if(colorlinks)$
+\PassOptionsToPackage{usenames,dvipsnames}{color} % color is loaded by hyperref
+$endif$
+\hypersetup{unicode=true,
+$if(title-meta)$
+ pdftitle={$title-meta$},
+$endif$
+$if(author-meta)$
+ pdfauthor={$author-meta$},
+$endif$
+$if(keywords)$
+ pdfkeywords={$for(keywords)$$keywords$$sep$; $endfor$},
+$endif$
+$if(colorlinks)$
+ colorlinks=true,
+ linkcolor=$if(linkcolor)$$linkcolor$$else$Maroon$endif$,
+ citecolor=$if(citecolor)$$citecolor$$else$Blue$endif$,
+ urlcolor=$if(urlcolor)$$urlcolor$$else$Blue$endif$,
+$else$
+ pdfborder={0 0 0},
+$endif$
+ breaklinks=true}
+\urlstyle{same} % don't use monospace font for urls
$if(lang)$
-\ifxetex
- \usepackage{polyglossia}
- \setmainlanguage{$mainlang$}
+\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
+ \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
+$if(babel-newcommands)$
+ $babel-newcommands$
+$endif$
\else
- \usepackage[shorthands=off,$lang$]{babel}
+ \usepackage{polyglossia}
+ \setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}
+$for(polyglossia-otherlangs)$
+ \setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$}
+$endfor$
\fi
$endif$
$if(natbib)$
@@ -62,10 +97,11 @@ $if(natbib)$
\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
$endif$
$if(biblatex)$
-\usepackage{biblatex}
-$if(biblio-files)$
-\bibliography{$biblio-files$}
-$endif$
+\usepackage$if(biblio-style)$[style=$biblio-style$]$endif${biblatex}
+$if(biblatexoptions)$\ExecuteBibliographyOptions{$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$}$endif$
+$for(bibliography)$
+\addbibresource{$bibliography$}
+$endfor$
$endif$
$if(listings)$
\usepackage{listings}
@@ -78,13 +114,13 @@ $highlighting-macros$
$endif$
$if(verbatim-in-note)$
\usepackage{fancyvrb}
-\VerbatimFootnotes
+\VerbatimFootnotes % allows verbatim text in footnotes
$endif$
$if(tables)$
\usepackage{longtable,booktabs}
$endif$
$if(graphics)$
-\usepackage{graphicx}
+\usepackage{graphicx,grffile}
\makeatletter
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
@@ -94,23 +130,6 @@ $if(graphics)$
% using explicit options in \includegraphics[width, height, ...]{}
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
$endif$
-\ifxetex
- \usepackage[setpagesize=false, % page size defined by xetex
- unicode=false, % unicode breaks when used with xetex
- xetex]{hyperref}
-\else
- \usepackage[unicode=true]{hyperref}
-\fi
-\hypersetup{breaklinks=true,
- bookmarks=true,
- pdfauthor={$author-meta$},
- pdftitle={$title-meta$},
- colorlinks=true,
- citecolor=$if(citecolor)$$citecolor$$else$blue$endif$,
- urlcolor=$if(urlcolor)$$urlcolor$$else$blue$endif$,
- linkcolor=$if(linkcolor)$$linkcolor$$else$magenta$endif$,
- pdfborder={0 0 0}}
-\urlstyle{same} % don't use monospace font for urls
$if(links-as-notes)$
% Make links footnotes instead of hotlinks:
\renewcommand{\href}[2]{#2\footnote{\url{#1}}}
@@ -120,20 +139,62 @@ $if(strikeout)$
% avoid problems with \sout in headers with hyperref:
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
$endif$
+$if(indent)$
+$else$
+\IfFileExists{parskip.sty}{%
+\usepackage{parskip}
+}{% else
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
+}
+$endif$
\setlength{\emergencystretch}{3em} % prevent overfull lines
+\providecommand{\tightlist}{%
+ \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
$if(numbersections)$
\setcounter{secnumdepth}{5}
$else$
\setcounter{secnumdepth}{0}
$endif$
-$if(verbatim-in-note)$
-\VerbatimFootnotes % allows verbatim text in footnotes
+$if(subparagraph)$
+$else$
+% Redefines (sub)paragraphs to behave more like sections
+\ifx\paragraph\undefined\else
+\let\oldparagraph\paragraph
+\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
+\fi
+\ifx\subparagraph\undefined\else
+\let\oldsubparagraph\subparagraph
+\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
+\fi
$endif$
+$if(dir)$
+\ifxetex
+ % load bidi as late as possible as it modifies e.g. graphicx
+ $if(latex-dir-rtl)$
+ \usepackage[RTLdocument]{bidi}
+ $else$
+ \usepackage{bidi}
+ $endif$
+\fi
+\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
+ \TeXXeTstate=1
+ \newcommand{\RL}[1]{\beginR #1\endR}
+ \newcommand{\LR}[1]{\beginL #1\endL}
+ \newenvironment{RTL}{\beginR}{\endR}
+ \newenvironment{LTR}{\beginL}{\endL}
+\fi
+$endif$
+$for(header-includes)$
+$header-includes$
+$endfor$
$if(title)$
-\title{$title$$if(subtitle)$\\\vspace{0.5em}{\large $subtitle$}$endif$}
+\title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
+$endif$
+$if(subtitle)$
+\providecommand{\subtitle}[1]{}
+\subtitle{$subtitle$}
$endif$
$if(author)$
\author{$for(author)$$author$$sep$ \and $endfor$}
@@ -142,9 +203,6 @@ $if(institute)$
\institute{$for(institute)$$institute$$sep$ \and $endfor$}
$endif$
\date{$date$}
-$for(header-includes)$
-$header-includes$
-$endfor$
\begin{document}
$if(title)$
@@ -162,7 +220,9 @@ $include-before$
$endfor$
$if(toc)$
{
-\hypersetup{linkcolor=black}
+$if(colorlinks)$
+\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$black$endif$}
+$endif$
\setcounter{tocdepth}{$toc-depth$}
\tableofcontents
}
@@ -176,7 +236,7 @@ $endif$
$body$
$if(natbib)$
-$if(biblio-files)$
+$if(bibliography)$
$if(biblio-title)$
$if(book-class)$
\renewcommand\bibname{$biblio-title$}
@@ -184,7 +244,7 @@ $else$
\renewcommand\refname{$biblio-title$}
$endif$
$endif$
-\bibliography{$biblio-files$}
+\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
$endif$
$endif$
diff --git a/default.man b/default.man
index 69cb1d8a7..44b59198b 100644
--- a/default.man
+++ b/default.man
@@ -1,7 +1,19 @@
$if(has-tables)$
.\"t
$endif$
+$if(pandoc-version)$
+.\" Automatically generated by Pandoc $pandoc-version$
+.\"
+$endif$
+$if(adjusting)$
+.ad $adjusting$
+$endif$
.TH "$title$" "$section$" "$date$" "$footer$" "$header$"
+$if(hyphenate)$
+.hy
+$else$
+.nh \" Turn off hyphenation by default.
+$endif$
$for(header-includes)$
$header-includes$
$endfor$
diff --git a/default.opendocument b/default.opendocument
index afed83b76..bb01d4bbb 100644
--- a/default.opendocument
+++ b/default.opendocument
@@ -3,14 +3,16 @@
<office:font-face-decls>
<style:font-face style:name="Courier New" style:font-family-generic="modern" style:font-pitch="fixed" svg:font-family="'Courier New'" />
</office:font-face-decls>
- $automatic-styles$
+ <office:automatic-styles>
+ $automatic-styles$
+ </office:automatic-styles>
$for(header-includes)$
$header-includes$
$endfor$
<office:body>
<office:text>
$if(title)$
-<text:h text:style-name="Title">$title$</text:h>
+<text:p text:style-name="Title">$title$</text:p>
$endif$
$for(author)$
<text:p text:style-name="Author">$author$</text:p>
diff --git a/default.revealjs b/default.revealjs
index f08f64791..db16168f9 100644
--- a/default.revealjs
+++ b/default.revealjs
@@ -1,50 +1,55 @@
<!DOCTYPE html>
-<html$if(lang)$ lang="$lang$"$endif$>
+<html$if(lang)$ lang="$lang$"$endif$$if(dir)$ dir="$dir$"$endif$>
<head>
<meta charset="utf-8">
<meta name="generator" content="pandoc">
$for(author-meta)$
- <meta name="author" content="$author-meta$" />
+ <meta name="author" content="$author-meta$">
$endfor$
$if(date-meta)$
- <meta name="dcterms.date" content="$date-meta$" />
-$endif$
- <title>$if(title-prefix)$$title-prefix$ - $endif$$pagetitle$</title>
- <meta name="apple-mobile-web-app-capable" content="yes" />
- <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
- <link rel="stylesheet" href="$revealjs-url$/css/reveal.css"/>
- <style type="text/css">code{white-space: pre;}</style>
+ <meta name="dcterms.date" content="$date-meta$">
+$endif$
+$if(keywords)$
+ <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$">
+$endif$
+ <title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
+ <meta name="apple-mobile-web-app-capable" content="yes">
+ <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
+ <link rel="stylesheet" href="$revealjs-url$/css/reveal.css">
+ <style type="text/css">code{white-space: pre;}</style>
+$if(quotes)$
+ <style type="text/css">q { quotes: "“" "”" "‘" "’"; }</style>
+$endif$
$if(highlighting-css)$
- <style type="text/css">
+ <style type="text/css">
$highlighting-css$
- </style>
+ </style>
+$endif$
+$if(theme)$
+ <link rel="stylesheet" href="$revealjs-url$/css/theme/$theme$.css" id="theme">
+$else$
+ <link rel="stylesheet" href="$revealjs-url$/css/theme/black.css" id="theme">
$endif$
-$if(css)$
$for(css)$
- <link rel="stylesheet" href="$css$"/>
+ <link rel="stylesheet" href="$css$"/>
$endfor$
-$else$
- <link rel="stylesheet" href="$revealjs-url$/css/theme/simple.css" id="theme">
-$endif$
- <!-- If the query includes 'print-pdf', include the PDF print sheet -->
- <script>
- if( window.location.search.match( /print-pdf/gi ) ) {
- var link = document.createElement( 'link' );
- link.rel = 'stylesheet';
- link.type = 'text/css';
- link.href = '$revealjs-url$/css/print/pdf.css';
- document.getElementsByTagName( 'head' )[0].appendChild( link );
- }
- </script>
- <!--[if lt IE 9]>
- <script src="$revealjs-url$/lib/js/html5shiv.js"></script>
- <![endif]-->
+ <!-- Printing and PDF exports -->
+ <script>
+ var link = document.createElement( 'link' );
+ link.rel = 'stylesheet';
+ link.type = 'text/css';
+ link.href = window.location.search.match( /print-pdf/gi ) ? '$revealjs-url$/css/print/pdf.css' : '$revealjs-url$/css/print/paper.css';
+ document.getElementsByTagName( 'head' )[0].appendChild( link );
+ </script>
+ <!--[if lt IE 9]>
+ <script src="$revealjs-url$/lib/js/html5shiv.js"></script>
+ <![endif]-->
$if(math)$
- $math$
+ $math$
$endif$
$for(header-includes)$
- $header-includes$
+ $header-includes$
$endfor$
</head>
<body>
@@ -56,14 +61,16 @@ $endfor$
$if(title)$
<section>
- <h1 class="title">$title$</h1>
+ <h1 class="title">$title$</h1>
$if(subtitle)$
<h1 class="subtitle">$subtitle$</h1>
$endif$
$for(author)$
- <h2 class="author">$author$</h2>
+ <h2 class="author">$author$</h2>
$endfor$
- <h3 class="date">$date$</h3>
+$if(date)$
+ <h3 class="date">$date$</h3>
+$endif$
</section>
$endif$
$if(toc)$
@@ -76,30 +83,154 @@ $body$
</div>
</div>
-
<script src="$revealjs-url$/lib/js/head.min.js"></script>
<script src="$revealjs-url$/js/reveal.js"></script>
<script>
- // Full list of configuration options available here:
+ // Full list of configuration options available at:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
- controls: true,
- progress: true,
- history: true,
- center: true,
- theme: $if(theme)$'$theme$'$else$Reveal.getQueryHash().theme$endif$, // available themes are in /css/theme
- transition: $if(transition)$'$transition$'$else$Reveal.getQueryHash().transition || 'default'$endif$, // default/cube/page/concave/zoom/linear/fade/none
+$if(controls)$
+ // Display controls in the bottom right corner
+ controls: $controls$,
+$endif$
+$if(progress)$
+ // Display a presentation progress bar
+ progress: $progress$,
+$endif$
+$if(slideNumber)$
+ // Display the page number of the current slide
+ slideNumber: $slideNumber$,
+$endif$
+$if(history)$
+ // Push each slide change to the browser history
+ history: $history$,
+$endif$
+$if(keyboard)$
+ // Enable keyboard shortcuts for navigation
+ keyboard: $keyboard$,
+$endif$
+$if(overview)$
+ // Enable the slide overview mode
+ overview: $overview$,
+$endif$
+$if(center)$
+ // Vertical centering of slides
+ center: $center$,
+$endif$
+$if(touch)$
+ // Enables touch navigation on devices with touch input
+ touch: $touch$,
+$endif$
+$if(loop)$
+ // Loop the presentation
+ loop: $loop$,
+$endif$
+$if(rtl)$
+ // Change the presentation direction to be RTL
+ rtl: $rtl$,
+$endif$
+$if(fragments)$
+ // Turns fragments on and off globally
+ fragments: $fragments$,
+$endif$
+$if(embedded)$
+ // Flags if the presentation is running in an embedded mode,
+ // i.e. contained within a limited portion of the screen
+ embedded: $embedded$,
+$endif$
+$if(help)$
+ // Flags if we should show a help overlay when the questionmark
+ // key is pressed
+ help: $help$,
+$endif$
+$if(showNotes)$
+ // Flags if speaker notes should be visible to all viewers
+ showNotes: $showNotes$,
+$endif$
+$if(autoSlide)$
+ // Number of milliseconds between automatically proceeding to the
+ // next slide, disabled when set to 0, this value can be overwritten
+ // by using a data-autoslide attribute on your slides
+ autoSlide: $autoSlide$,
+$endif$
+$if(autoSlideStoppable)$
+ // Stop auto-sliding after user input
+ autoSlideStoppable: $autoSlideStoppable$,
+$endif$
+$if(mouseWheel)$
+ // Enable slide navigation via mouse wheel
+ mouseWheel: $mouseWheel$,
+$endif$
+$if(hideAddressBar)$
+ // Hides the address bar on mobile devices
+ hideAddressBar: $hideAddressBar$,
+$endif$
+$if(previewLinks)$
+ // Opens links in an iframe preview overlay
+ previewLinks: $previewLinks$,
+$endif$
+$if(transition)$
+ // Transition style
+ transition: '$transition$', // none/fade/slide/convex/concave/zoom
+$endif$
+$if(transitionSpeed)$
+ // Transition speed
+ transitionSpeed: '$transitionSpeed$', // default/fast/slow
+$endif$
+$if(backgroundTransition)$
+ // Transition style for full page slide backgrounds
+ backgroundTransition: '$backgroundTransition$', // none/fade/slide/convex/concave/zoom
+$endif$
+$if(viewDistance)$
+ // Number of slides away from the current that are visible
+ viewDistance: $viewDistance$,
+$endif$
+$if(parallaxBackgroundImage)$
+ // Parallax background image
+ parallaxBackgroundImage: '$parallaxBackgroundImage$', // e.g. "'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg'"
+$endif$
+$if(parallaxBackgroundSize)$
+ // Parallax background size
+ parallaxBackgroundSize: '$parallaxBackgroundSize$', // CSS syntax, e.g. "2100px 900px"
+$endif$
+$if(parallaxBackgroundHorizontal)$
+ // Amount to move parallax background (horizontal and vertical) on slide change
+ // Number, e.g. 100
+ parallaxBackgroundHorizontal: $parallaxBackgroundHorizontal$,
+$endif$
+$if(parallaxBackgroundVertical)$
+ parallaxBackgroundVertical: $parallaxBackgroundVertical$,
+$endif$
+$if(width)$
+ // The "normal" size of the presentation, aspect ratio will be preserved
+ // when the presentation is scaled to fit different resolutions. Can be
+ // specified using percentage units.
+ width: $width$,
+$endif$
+$if(height)$
+ height: $height$,
+$endif$
+$if(margin)$
+ // Factor of the display size that should remain empty around the content
+ margin: $margin$,
+$endif$
+$if(minScale)$
+ // Bounds for smallest/largest possible scale to apply to content
+ minScale: $minScale$,
+$endif$
+$if(maxScale)$
+ maxScale: $maxScale$,
+$endif$
- // Optional libraries used to extend on reveal.js
+ // 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, condition: function() { return !!document.body.classList; } },
- { src: '$revealjs-url$/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } },
-// { src: '$revealjs-url$/plugin/search/search.js', async: true, condition: function() { return !!document.body.classList; }, }
-// { src: '$revealjs-url$/plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }
-]});
+ { src: '$revealjs-url$/plugin/zoom-js/zoom.js', async: true },
+ { src: '$revealjs-url$/plugin/notes/notes.js', async: true }
+ ]
+ });
</script>
$for(include-after)$
$include-after$
diff --git a/default.rst b/default.rst
index ca9d2833d..30005d19b 100644
--- a/default.rst
+++ b/default.rst
@@ -21,6 +21,12 @@ $if(math)$
..
$endif$
+$if(rawtex)$
+.. role:: raw-latex(raw)
+ :format: latex
+..
+
+$endif$
$for(include-before)$
$include-before$
diff --git a/default.s5 b/default.s5
index 0dbe35d1f..6ab482864 100644
--- a/default.s5
+++ b/default.s5
@@ -1,20 +1,27 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
+<html xmlns="http://www.w3.org/1999/xhtml"$if(lang)$ lang="$lang$" xml:lang="$lang$"$endif$$if(dir)$ dir="$dir$"$endif$>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
$for(author-meta)$
+ <meta name="version" content="S5 1.1" />
<meta name="author" content="$author-meta$" />
$endfor$
$if(date-meta)$
<meta name="date" content="$date-meta$" />
$endif$
- <title>$if(title-prefix)$$title-prefix$ - $endif$$pagetitle$</title>
+$if(keywords)$
+ <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
+$endif$
+ <title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
<style type="text/css">code{white-space: pre;}</style>
<!-- configuration parameters -->
<meta name="defaultView" content="slideshow" />
<meta name="controlVis" content="hidden" />
+$if(quotes)$
+ <style type="text/css">q { quotes: "“" "”" "‘" "’"; }</style>
+$endif$
$if(highlighting-css)$
<style type="text/css">
$highlighting-css$
@@ -53,12 +60,21 @@ $endfor$
<div class="presentation">
$if(title)$
<div class="titleslide slide">
- <h1>$title$</h1>
+ <h1 class="title">$title$</h1>
$if(subtitle)$
- <h1 class="subtitle">$subtitle$</h1>
+ <h2 class="subtitle">$subtitle$</h2>
+$endif$
+$if(author)$
+ <h3 class="author">$for(author)$$author$$sep$<br/>$endfor$</h3>
+$endif$
+$if(date)$
+ <h4 class="date">$date$</h4>
+$endif$
+</div>
$endif$
- <h2>$for(author)$$author$$sep$<br/>$endfor$</h2>
- <h3>$date$</h3>
+$if(toc)$
+<div class="slide" id="$idprefix$TOC">
+$toc$
</div>
$endif$
$body$
diff --git a/default.slideous b/default.slideous
index c051508bf..30c93567d 100644
--- a/default.slideous
+++ b/default.slideous
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"$if(lang)$ lang="$lang$" xml:lang="$lang$"$endif$>
+<html xmlns="http://www.w3.org/1999/xhtml"$if(lang)$ lang="$lang$" xml:lang="$lang$"$endif$$if(dir)$ dir="$dir$"$endif$>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
@@ -12,8 +12,14 @@ $endfor$
$if(date-meta)$
<meta name="date" content="$date-meta$" />
$endif$
- <title>$if(title-prefix)$$title-prefix$ - $endif$$pagetitle$</title>
+$if(keywords)$
+ <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
+$endif$
+ <title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
<style type="text/css">code{white-space: pre;}</style>
+$if(quotes)$
+ <style type="text/css">q { quotes: "“" "”" "‘" "’"; }</style>
+$endif$
$if(highlighting-css)$
<style type="text/css">
$highlighting-css$
@@ -71,6 +77,11 @@ $if(date)$
$endif$
</div>
$endif$
+$if(toc)$
+<div class="slide" id="$idprefix$TOC">
+$toc$
+</div>
+$endif$
$body$
$for(include-after)$
$include-after$
diff --git a/default.slidy b/default.slidy
index 50231ba6e..5f83b40ca 100644
--- a/default.slidy
+++ b/default.slidy
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"$if(lang)$ lang="$lang$" xml:lang="$lang$"$endif$>
+<html xmlns="http://www.w3.org/1999/xhtml"$if(lang)$ lang="$lang$" xml:lang="$lang$"$endif$$if(dir)$ dir="$dir$"$endif$>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
@@ -12,8 +12,14 @@ $endfor$
$if(date-meta)$
<meta name="date" content="$date-meta$" />
$endif$
- <title>$if(title-prefix)$$title-prefix$ - $endif$$pagetitle$</title>
+$if(keywords)$
+ <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
+$endif$
+ <title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
<style type="text/css">code{white-space: pre;}</style>
+$if(quotes)$
+ <style type="text/css">q { quotes: "“" "”" "‘" "’"; }</style>
+$endif$
$if(highlighting-css)$
<style type="text/css">
$highlighting-css$
@@ -47,14 +53,21 @@ $if(title)$
$if(subtitle)$
<h1 class="subtitle">$subtitle$</h1>
$endif$
+$if(author)$
<p class="author">
$for(author)$$author$$sep$<br/>$endfor$
</p>
+$endif$
$if(date)$
<p class="date">$date$</p>
$endif$
</div>
$endif$
+$if(toc)$
+<div class="slide" id="$idprefix$TOC">
+$toc$
+</div>
+$endif$
$body$
$for(include-after)$
$include-after$
diff --git a/default.tei b/default.tei
new file mode 100644
index 000000000..3778dccd5
--- /dev/null
+++ b/default.tei
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<TEI xmlns="http://www.tei-c.org/ns/1.0"$if(lang)$ xml:lang="$lang$"$endif$>
+<teiHeader>
+ <fileDesc>
+ <titleStmt>
+$if(title)$
+ <title>$title$</title>
+$endif$
+$for(author)$
+ $author$
+$endfor$
+ </titleStmt>
+ <publicationStmt>
+ <p>$if(publicationStmt)$$publicationStmt$$endif$</p>
+ $if(license)$
+ <availability><licence>$license$</licence></availability>
+$endif$
+ </publicationStmt>
+ <sourceDesc>
+$if(sourceDesc)$
+ $sourceDesc$
+$else$
+ <p>Produced by pandoc.</p>
+$endif$
+ </sourceDesc>
+ </fileDesc>
+</teiHeader>
+<text>
+$for(include-before)$
+$include-before$
+$endfor$
+<body>
+$body$
+</body>
+$for(include-after)$
+$include-after$
+$endfor$
+</text>
+</TEI>