Pandoc: Latex: Ordered list/enumerate FAILS with "missing \item"

Created on 24 Apr 2014  Â·  5Comments  Â·  Source: jgm/pandoc

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}

Most helpful comment

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.

All 5 comments

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:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

naught101 picture naught101  Â·  5Comments

ocehugo picture ocehugo  Â·  3Comments

guifh picture guifh  Â·  4Comments

XiaTeng1993 picture XiaTeng1993  Â·  3Comments

chrissound picture chrissound  Â·  4Comments