git.iko.soy/typeable/pandoc
on master help sign in
LaTeX/Beamer template changes (Thomas Hodgson):

* Added `thanks` variable * Use `parskip.sty` when `indent` isn't set (fall back to using `setlength` as before if `parskip.sty` isn't available). * Use `biblio-style` with biblatex. * Added `biblatexoptions` variable. * Added `section-titles` variable (defaults to true) to enable/suppress section title pages in beamer slide shows. * Moved beamer themes after fonts, so that themes can change fonts. (Previously the fonts set were being clobbered by lmodern.sty.)

commit28b2d86b2113c0b03c480dbd7e6fbad1d4a1053f authorJohn MacFarlane <jgm@berkeley.edu> dateSat 19 Dec 2015, 18:29 (11 years ago) parent9333814
7 files changed+30−2
README+12−1 data/templates+1−1 src/Text/Pandoc/Writers/LaTeX.hs+1 tests/lhs-test.latex+4 tests/lhs-test.latex+lhs+4 tests/writer.latex+4 tests/writers-lang-and-dir.latex+4
README+12−1
@@ -1138,6 +1138,10 @@ including all [reveal.js configuration options].
11381138 (default is `empty` for no navigation symbols; other valid values
11391139 are `frame`, `vertical`, and `horizontal`).
11401140
1141+`section-titles`
1142+: enables on "title pages" for new sections in `beamer`
1143+ documents (default = true).
1144+
11411145[reveal.js configuration options]: https://github.com/hakimel/reveal.js#configuration
11421146
11431147Variables for LaTeX
@@ -1208,6 +1212,9 @@ LaTeX variables are used when [creating a PDF].
12081212: disables default behavior of LaTeX template that redefines (sub)paragraphs
12091213 as sections, changing the appearance of nested headings in some classes
12101214
1215+`thanks`
1216+: specifies contents of acknowledgments footnote after document title.
1217+
12111218`toc`
12121219: include table of contents (can also be set using `--toc/--table-of-contents`)
12131220
@@ -1221,7 +1228,11 @@ LaTeX variables are used when [creating a PDF].
12211228: bibliography to use for resolving references
12221229
12231230`biblio-style`
1224−: bibliography style, when used with `--natbib`
1231+: bibliography style, when used with `--natbib` and
1232+ `--biblatex`.
1233+
1234+`biblatex-options`
1235+: list of options for biblatex.
12251236
12261237[`article`]: https://ctan.org/pkg/article
12271238[`report`]: https://ctan.org/pkg/report
data/templates+1−1

Submodule changed.

src/Text/Pandoc/Writers/LaTeX.hs+1
@@ -195,6 +195,7 @@ pandocToLaTeX options (Pandoc meta blocks) = do
195195 defField "dir" (if (null $ query (extract "dir") blocks)
196196 then ""::String
197197 else "ltr") $
198+ defField "section-titles" True $
198199 metadata
199200 let toPolyObj lang = object [ "name" .= T.pack name
200201 , "options" .= T.pack opts ]
tests/lhs-test.latex+4
@@ -64,8 +64,12 @@
6464\newcommand{\AlertTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{{#1}}}}
6565\newcommand{\ErrorTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{{#1}}}}
6666\newcommand{\NormalTok}[1]{{#1}}
67+\IfFileExists{parskip.sty}{%
68+\usepackage{parskip}
69+}{% else
6770\setlength{\parindent}{0pt}
6871\setlength{\parskip}{6pt plus 2pt minus 1pt}
72+}
6973\setlength{\emergencystretch}{3em} % prevent overfull lines
7074\providecommand{\tightlist}{%
7175 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
tests/lhs-test.latex+lhs+4
@@ -28,8 +28,12 @@
2828\urlstyle{same} % don't use monospace font for urls
2929\usepackage{listings}
3030\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
31+\IfFileExists{parskip.sty}{%
32+\usepackage{parskip}
33+}{% else
3134\setlength{\parindent}{0pt}
3235\setlength{\parskip}{6pt plus 2pt minus 1pt}
36+}
3337\setlength{\emergencystretch}{3em} % prevent overfull lines
3438\providecommand{\tightlist}{%
3539 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
tests/writer.latex+4
@@ -42,8 +42,12 @@
4242\usepackage[normalem]{ulem}
4343% avoid problems with \sout in headers with hyperref:
4444\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
45+\IfFileExists{parskip.sty}{%
46+\usepackage{parskip}
47+}{% else
4548\setlength{\parindent}{0pt}
4649\setlength{\parskip}{6pt plus 2pt minus 1pt}
50+}
4751\setlength{\emergencystretch}{3em} % prevent overfull lines
4852\providecommand{\tightlist}{%
4953 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
tests/writers-lang-and-dir.latex+4
@@ -46,8 +46,12 @@
4646 \setotherlanguage[]{spanish}
4747 \setotherlanguage[]{french}
4848\fi
49+\IfFileExists{parskip.sty}{%
50+\usepackage{parskip}
51+}{% else
4952\setlength{\parindent}{0pt}
5053\setlength{\parskip}{6pt plus 2pt minus 1pt}
54+}
5155\setlength{\emergencystretch}{3em} % prevent overfull lines
5256\providecommand{\tightlist}{%
5357 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}