aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-12-23 13:28:59 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-12-23 13:28:59 -0800
commitfea830fcd27b4df2a337ac774daa7d4bbca00866 (patch)
tree337ed50711ac492afb31128b09b2e642c2d82e72
parent133a7e04074ba83176ca22ed4a18818263340f84 (diff)
downloadpandoc-fea830fcd27b4df2a337ac774daa7d4bbca00866.tar.gz
Added 'paper' after $papersize$ variable in latex template.
Thus you can say `papersize: a4` and the latex will contain `a4paper`. This change may break some existing workflows; if you currently specify `a4paper`, you'll get `a4paperpaper` which is meaningless. However, the change seems worth it, as it will make the `papersize` variable work uniformly across ConTeXt, LaTeX, and html->pdf via wkhtmltopdf.
-rw-r--r--default.latex2
1 files changed, 1 insertions, 1 deletions
diff --git a/default.latex b/default.latex
index 48ddc82e7..afa679a95 100644
--- a/default.latex
+++ b/default.latex
@@ -1,4 +1,4 @@
-\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-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[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
$else$