[Tex/LaTex] (error) \tightlist (converting .md file into .pdf using pandoc)

errorspandoc

I was converting 'lecture1.md' file I made via Rstudio into 'lecture1.pdf'
using Pandoc at Mac Terminal.

and I got this error message :

! Undefined control sequence.
<recently read> \tightlist 

l.213 \end{frame}

pandoc: Error producing PDF from TeX source
make: *** [lecture1.pdf] Error 43

What's strange thing is the same procedure with same files works with my colleague's computer.

Anyone's any comments would be helpful, and I'd appreciate them.

Best Answer

The writer.latex file in Pandoc's source code currently defines \tightlist as:

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

This is also currently the case in the default LaTeX template, from the jgm/pandoc-templates project on Github.

For posterity, here is a link to the most up-to-date LaTeX default template:

Related Question