aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hodgson <hello@twshodgson.net>2017-12-12 05:26:16 +0000
committerJohn MacFarlane <jgm@berkeley.edu>2017-12-11 22:26:16 -0700
commit166561cc8da7b22ecd7845f66daa1e8bb8080512 (patch)
treec6c864f690281dc5f4f5304a858a6a90731fa872
parent51c0ae5a66b9cf58632cd9d8eb324802f60bd6e2 (diff)
downloadpandoc-166561cc8da7b22ecd7845f66daa1e8bb8080512.tar.gz
Added support for LaTeX pagestyle variable (#4135)
* Add pagestyle support * Add pagestyle option to MANUAL.txt * Moved mention of pagestyle to the section on variables
-rw-r--r--MANUAL.txt7
-rw-r--r--data/templates/default.latex3
2 files changed, 9 insertions, 1 deletions
diff --git a/MANUAL.txt b/MANUAL.txt
index 9baae7eb6..29fc629cd 100644
--- a/MANUAL.txt
+++ b/MANUAL.txt
@@ -1,6 +1,6 @@
% Pandoc User's Guide
% John MacFarlane
-% December 2, 2017
+% December 8, 2017
Synopsis
========
@@ -1532,6 +1532,11 @@ LaTeX variables are used when [creating a PDF].
`natbiboptions`
: list of options for natbib.
+`pagestyle`
+: An option for LaTeX's `\pagestyle{}`. The default article class
+ supports 'plain' (default), 'empty', and 'headings'; headings puts
+ section titles in the header.
+
[`article`]: https://ctan.org/pkg/article
[`report`]: https://ctan.org/pkg/report
[`book`]: https://ctan.org/pkg/book
diff --git a/data/templates/default.latex b/data/templates/default.latex
index 7e140004f..a9191aa2a 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -245,6 +245,9 @@ $else$
\fi
$endif$
$endif$
+$if(pagestyle)$
+\pagestyle{$pagestyle$}
+$endif$
% set default figure placement to htbp
\makeatletter