git.iko.soy/typeable/pandoc
on master help sign in
Merge pull request #131 from adunning/master
d998cfbJohn MacFarlane
default.beamer+77−36
@@ -1,4 +1,4 @@
1−\documentclass[$if(fontsize)$$fontsize$,$endif$$if(handout)$handout,$endif$$if(beamer)$ignorenonframetext,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
1+\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(handout)$handout,$endif$$if(beamer)$ignorenonframetext,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
2$if(theme)$
2$if(theme)$
3\usetheme{$theme$}
3\usetheme{$theme$}
4$endif$
4$endif$
@@ -8,6 +8,9 @@ $endif$
8$if(fonttheme)$
8$if(fonttheme)$
9\usefonttheme{$fonttheme$}
9\usefonttheme{$fonttheme$}
10$endif$
10$endif$
11+$if(mainfont)$
12+\usefonttheme{serif} % use mainfont rather than sansfont for slide text
13+$endif$
11$if(innertheme)$
14$if(innertheme)$
12\useinnertheme{$innertheme$}
15\useinnertheme{$innertheme$}
13$endif$
16$endif$
@@ -17,34 +20,66 @@ $endif$
17\setbeamertemplate{caption}[numbered]
20\setbeamertemplate{caption}[numbered]
18\setbeamertemplate{caption label separator}{: }
21\setbeamertemplate{caption label separator}{: }
19\setbeamercolor{caption name}{fg=normal text.fg}
22\setbeamercolor{caption name}{fg=normal text.fg}
23+$if(fontfamily)$
24+\usepackage[$fontfamilyoptions$]{$fontfamily$}
25+$else$
26+\usepackage{lmodern}
27+$endif$
20\usepackage{amssymb,amsmath}
28\usepackage{amssymb,amsmath}
21\usepackage{ifxetex,ifluatex}
29\usepackage{ifxetex,ifluatex}
22\usepackage{fixltx2e} % provides \textsubscript
30\usepackage{fixltx2e} % provides \textsubscript
23−\usepackage{lmodern}
31+\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
24−\ifxetex
25− \usepackage{fontspec,xltxtra,xunicode}
26− \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
27− \newcommand{\euro}{€}
28−\else
29− \ifluatex
30− \usepackage{fontspec}
32+ \usepackage[T1]{fontenc}
31− \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
33+ \usepackage[utf8]{inputenc}
32− \newcommand{\euro}{€}
34+$if(euro)$
35+ \usepackage{eurosym}
36+$endif$
37+\else % if luatex or xelatex
38+ \ifxetex
39+ \usepackage{mathspec}
33 \else
40 \else
34− \usepackage[T1]{fontenc}
41+ \usepackage{fontspec}
35− \usepackage[utf8]{inputenc}
36− $if(euro)$
37− \usepackage{eurosym}
38− $endif$
39 \fi
42 \fi
43+ \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
44+ \newcommand{\euro}{€}
45+$if(mainfont)$
46+ \setmainfont[$mainfontoptions$]{$mainfont$}
47+$endif$
48+$if(sansfont)$
49+ \setsansfont[$sansfontoptions$]{$sansfont$}
50+$endif$
51+$if(monofont)$
52+ \setmonofont[Mapping=tex-ansi$if(monofontoptions)$,$monofontoptions$$endif$]{$monofont$}
53+$endif$
54+$if(mathfont)$
55+ \setmathfont(Digits,Latin,Greek)[$mathfontoptions$]{$mathfont$}
56+$endif$
57+$if(CJKmainfont)$
58+ \usepackage{xeCJK}
59+ \setCJKmainfont[$CJKoptions$]{$CJKmainfont$}
60+$endif$
40\fi
61\fi
41% use upquote if available, for straight quotes in verbatim environments
62% use upquote if available, for straight quotes in verbatim environments
42\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
63\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
43% use microtype if available
64% use microtype if available
44−\IfFileExists{microtype.sty}{\usepackage{microtype}}{}
65+\IfFileExists{microtype.sty}{%
66+\usepackage{microtype}
67+\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
68+}{}
69+$if(lang)$
70+\ifxetex
71+ \usepackage{polyglossia}
72+ \setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}
73+$for(polyglossia-otherlangs)$
74+ \setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$}
75+$endfor$
76+\else
77+ \usepackage[shorthands=off,$babel-lang$]{babel}
78+\fi
79+$endif$
45$if(natbib)$
80$if(natbib)$
46\usepackage{natbib}
81\usepackage{natbib}
47−\bibliographystyle{plainnat}
82+\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
48$endif$
83$endif$
49$if(biblatex)$
84$if(biblatex)$
50\usepackage{biblatex}
85\usepackage{biblatex}
@@ -63,6 +98,7 @@ $highlighting-macros$
63$endif$
98$endif$
64$if(verbatim-in-note)$
99$if(verbatim-in-note)$
65\usepackage{fancyvrb}
100\usepackage{fancyvrb}
101+\VerbatimFootnotes % allows verbatim text in footnotes
66$endif$
102$endif$
67$if(tables)$
103$if(tables)$
68\usepackage{longtable,booktabs}
104\usepackage{longtable,booktabs}
@@ -72,11 +108,8 @@ $if(tables)$
72\def\fnum@table{\tablename~\thetable}
108\def\fnum@table{\tablename~\thetable}
73\makeatother
109\makeatother
74$endif$
110$endif$
75−$if(url)$
76−\usepackage{url}
77−$endif$
78$if(graphics)$
111$if(graphics)$
79−\usepackage{graphicx}
112+\usepackage{graphicx,grffile}
80\makeatletter
113\makeatletter
81\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
114\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
82\def\maxheight{\ifdim\Gin@nat@height>\textheight0.8\textheight\else\Gin@nat@height\fi}
115\def\maxheight{\ifdim\Gin@nat@height>\textheight0.8\textheight\else\Gin@nat@height\fi}
@@ -105,35 +138,40 @@ $endif$
105 \frame{\subsectionpage}
138 \frame{\subsectionpage}
106}
139}
107
140
141+$if(links-as-notes)$
142+% Make links footnotes instead of hotlinks:
143+\renewcommand{\href}[2]{#2\footnote{\url{#1}}}
144+$endif$
108$if(strikeout)$
145$if(strikeout)$
109\usepackage[normalem]{ulem}
146\usepackage[normalem]{ulem}
110% avoid problems with \sout in headers with hyperref:
147% avoid problems with \sout in headers with hyperref:
111\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
148\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
112$endif$
149$endif$
113−\setlength{\parindent}{0pt}
114−\setlength{\parskip}{6pt plus 2pt minus 1pt}
115\setlength{\emergencystretch}{3em} % prevent overfull lines
150\setlength{\emergencystretch}{3em} % prevent overfull lines
116\providecommand{\tightlist}{%
151\providecommand{\tightlist}{%
117 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
152 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
118$if(numbersections)$
153$if(numbersections)$
154+\setcounter{secnumdepth}{5}
119$else$
155$else$
120\setcounter{secnumdepth}{0}
156\setcounter{secnumdepth}{0}
121$endif$
157$endif$
122−$if(verbatim-in-note)$
158+$if(dir)$
123−\VerbatimFootnotes % allows verbatim text in footnotes
124−$endif$
125−$if(lang)$
126\ifxetex
159\ifxetex
127− \usepackage{polyglossia}
160+ % load bidi as late as possible as it modifies e.g. graphicx
128− \setmainlanguage{$mainlang$}
161+ $if(latex-dir-rtl)$
129− \setotherlanguages{$for(otherlang)$$otherlang$$sep$,$endfor$}
162+ \usepackage[RTLdocument]{bidi}
130−\else
163+ $else$
131− \usepackage[shorthands=off,$lang$]{babel}
164+ \usepackage{bidi}
165+ $endif$
166+\fi
167+\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
168+ \TeXXeTstate=1
169+ \newcommand{\RL}[1]{\beginR #1\endR}
170+ \newcommand{\LR}[1]{\beginL #1\endL}
171+ \newenvironment{RTL}{\beginR}{\endR}
172+ \newenvironment{LTR}{\beginL}{\endL}
132\fi
173\fi
133$endif$
174$endif$
134−$for(header-includes)$
135−$header-includes$
136−$endfor$
137
175
138$if(title)$
176$if(title)$
139\title{$title$}
177\title{$title$}
@@ -145,6 +183,9 @@ $if(author)$
145\author{$for(author)$$author$$sep$ \and $endfor$}
183\author{$for(author)$$author$$sep$ \and $endfor$}
146$endif$
184$endif$
147\date{$date$}
185\date{$date$}
186+$for(header-includes)$
187+$header-includes$
188+$endfor$
148
189
149\begin{document}
190\begin{document}
150$if(title)$
191$if(title)$
default.latex+1−4
@@ -110,7 +110,7 @@ $highlighting-macros$
110$endif$
110$endif$
111$if(verbatim-in-note)$
111$if(verbatim-in-note)$
112\usepackage{fancyvrb}
112\usepackage{fancyvrb}
113−\VerbatimFootnotes
113+\VerbatimFootnotes % allows verbatim text in footnotes
114$endif$
114$endif$
115$if(tables)$
115$if(tables)$
116\usepackage{longtable,booktabs}
116\usepackage{longtable,booktabs}
@@ -145,9 +145,6 @@ $if(numbersections)$
145$else$
145$else$
146\setcounter{secnumdepth}{0}
146\setcounter{secnumdepth}{0}
147$endif$
147$endif$
148−$if(verbatim-in-note)$
149−\VerbatimFootnotes % allows verbatim text in footnotes
150−$endif$
151$if(dir)$
148$if(dir)$
152\ifxetex
149\ifxetex
153 % load bidi as late as possible as it modifies e.g. graphicx
150 % load bidi as late as possible as it modifies e.g. graphicx