svmiller / svm-r-markdown-templates

This is my (deprecated) suite of R Markdown templates for academic manuscripts, beamer presentations, and syllabi. DOWNLOAD {stevetemplates} INSTEAD.
http://svmiller.com/stevetemplates/
Other
896 stars 737 forks source link

Suggestion/Bug fix: support \tightlist #7

Closed briatte closed 7 years ago

briatte commented 7 years ago

Pandoc (at least until version 1.17) treats

- a
- b
- c

as a tightlist, using the \tightlist command when converting to TeX.

By default, the latex-ms template does not understand that command, and breaks if the document contains such a list.

The problem does not reproduce if * is used instead of - to build the list, which I find a bit puzzling to be honest.

Anyway, "tight lists" can easily be supported by copy-pasting this bit of code in the preamble of the TeX template:

\providecommand{\tightlist}{%
  \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
svmiller commented 7 years ago

Easy enough addition. Pretty sure that came standard in the default pandoc template but my smashing of that template left a lot of things like that on the cutting floor.

Thanks for this and the other suggestion.