Ah, but you should just write "papersize: a4". The "paper" is included automatically by the template. Unfortunately LaTeX just ignores "a4paperpaper" instead of raising an error. Den 29 apr 2016 19:48 skrev "R (Chandra) Chandrasekhar" : On 29/04/16 23:12, BP Jonsson wrote: > Den 2016-04-29 kl. 13:29, skrev R (Chandra) Chandrasekhar: > >> If, I replace >> >> papersize: a4paper >> >> by >> >> classoption: a4paper >> >> in the YAML metablock. I do indeed get an A4 page sized PDF. >> >> I guess now my question becomes, why does it not work for papersize? >> > > Apparently there is no variable $papersize$ in the default latex template. > > /bpj > > But there is ... The first line of template.tex for latex is: \documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$} Note the extra paper that I think was the cause of my problem. Chandra -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b199b75f-a40f-0877-5782-9cc0ce7f0b69%40gmail.com . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhBVACxDSUvqsxaCTdk4bKsdopLQfKMdYV8%2BYvprw_PG5A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.