I'm using to pandoc to create pdf via following command:

pandoc -s -o analysis.pdf latex_header.md Analysis.md

The following error is shown :

Error producing PDF.
! Undefined control sequence.
l.129 ...uence of real number is a function,(f:\N

Content of latex_header.md

\newcommand{\pdiff}[2]{\frac{\partial #1}{\partial #2}}

The line in Analysis.md where the error is creeping in:

  1. A sequence of real number is a function,$f:\N \ra \R$ . Commonly represented as $\sequence{a} = \braces{a_1, a_2, a_3, \cdots}$.

I also used the pandoc to get the intermediate tex. I can see the problem in line 61 and 75 of the tex file \[...\]. I don't know how to fix it.

Thanks in advance!

1 Answer 1


Welcome to TeX.SX!

The error arises from your \braces command: use \left\lbrace and \right\rbrace as delimiters.

In addition, still in the latex_header.md, the $$ are useless.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .