On Friday, April 1, 2016 at 7:20:06 PM UTC+1, BP Jonsson wrote: > > Den 2016-04-01 kl. 19:03, skrev Dylan Evans: > > I have the following YAML metadata block at the top of a Markdown file: > > > > --- > > header-includes: > > - \usepackage[scaled]{helvet} > > - \renewcommand\familydefault{\sfdefault} > > - \usepackage[T1]{fontenc} > > - \usepackage[compact]{titlesec} > > geometry: margin=1in > > --- > > > > Without titlesec everything works fine but with it I get the error: > > > > ! Argument of \paragraph has an extra }. > > > > \par > > l.1276 \ttl@extract\paragraph > > > > pandoc: Error producing PDF > > > > I get the same error if I try to include geometry (although I've found > out > > that I don't need to do that now obviously). > > > > I don't know what's causing this. Any help would be much appreciated. > > > > The contents of the header-includes lines are treated by pandoc as > markdown text rather than as raw LaTeX. > > You can use this filter > which will turn > any code block with a raw=FORMAT attribute into a raw block of the > appropriate output format. > > (Note: I wrote it myself.) > > Note you must change your YAML to > > ````yaml > header-includes: > - | > ``` {raw=latex} > \usepackage[scaled]{helvet} > \renewcommand\familydefault{\sfdefault} > \usepackage[T1]{fontenc} > \usepackage[compact]{titlesec} > ``` > ```` > > The alternative is to use an --include-in-header file. > > /bpj > Thanks very much, I didn't know that. I find it odd that the font stuff works fine though. -- 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/4f82153d-160e-4ada-bccc-0534bd5c24a9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.