From fea830fcd27b4df2a337ac774daa7d4bbca00866 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 23 Dec 2015 13:28:59 -0800 Subject: [PATCH] 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. --- default.latex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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$