From 166561cc8da7b22ecd7845f66daa1e8bb8080512 Mon Sep 17 00:00:00 2001 From: Thomas Hodgson Date: Tue, 12 Dec 2017 05:26:16 +0000 Subject: [PATCH] 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 --- MANUAL.txt | 7 ++++++- data/templates/default.latex | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) 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