Error using Pandoc with Markdown

I am using pandoc v. 1.18 on Mac OS 10.12 to convert this markup file to pdf using a simple command line:

# A list that does not work - one - two - three 

And I get this error:

 ! Undefined control sequence. l.53 \tightlist pandoc: Error producing PDF 

How can this be solved?

+5
source share
1 answer

\tightlist been introduced since pandoc 1.14 (see this commit ). The most likely cause of this error is that you are using the template from a previous version and did not update it. This can be fixed by adding a couple of lines to your latex pattern. They can be found in $DATA-DIR/templates/default.latex for regular latex and $DATA-DIR/templates/default.beamer for the beam. You will need to add these two lines (before \begin{document} ):

 \providecommand{\tightlist}{% \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} 

To make sure that this does not happen again with the future evolution of templates, it would be nice to branch out the pandoc-templates repository .

+7
source

Source: https://habr.com/ru/post/1259321/


All Articles