I've had tons of problems with this in the past. All the existing issues I found (also on the mailing list) are about template mismatches etc.
Now it happened again, with a freshly installed pandoc 1.12.3, MacTex and a very minimal example.
Is this a bug or am I doing something completely wrong?
Input: test.md
# title
1. foo
2. bar
Command:
pandoc -i test.md -f markdown -s -o test.pdf
Error:
pandoc: Error producing PDF from TeX source.
! LaTeX Error: Something's wrong--perhaps a missing \item.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.56 f
This is the relevant generated tex source:
\begin{enumerate}[<+->]
\def\labelenumi{\arabic{enumi}.}
\itemsep1pt\parskip0pt\parsep0pt
\item
foo
\item
bar
\end{enumerate}
It does compile if i remove the argument after enumerate:
\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\itemsep1pt\parskip0pt\parsep0pt
\item
foo
\item
bar
\end{enumerate}
Have you looked up what -i does in the User's Guide or man page?
I suspect you think it means "input file," but it doesn't.
Take out -i and it will work. -i is only for use with beamer
and other slide formats.
Well, this is embarrassing but better than a bug :blush:
(I've read the Guide many times, but in the meantime apparently spend too much time writing abstractions around pandoc so I forgot about the actual arguments…)
Thanks!
Thanks, fell into the same trap :-) -i just looks so natural to the -o.
So did I. Stupidly typing from memory…
@eins78 Thank you ..you just saved me :+1:
Most helpful comment
Have you looked up what
-idoes in the User's Guide or man page?I suspect you think it means "input file," but it doesn't.
Take out
-iand it will work.-iis only for use with beamerand other slide formats.