1

xparse instructions and enumitem formatting appear to be lost on pandoc (inline and {{; }} in this case). It's been pointed out conversion from LaTeX to TeX is not possible, so what are the options?

\documentclass{article}
\usepackage{enumitem}
\usepackage{xparse}

\newlist{foo}{enumerate}{1} \setlist[foo]{label=\arabic), itemjoin={{; }}}

\ExplSyntaxOn \tl_set:Nn\g__erw_foo_tl{\item \textbf{a}\item b} %

\NewDocumentCommand\Foo{}{\tl_use:N\g__erw_foo_tl} \NewDocumentCommand\Bar{}{\item \textbf{c}\item d} \def\Qux{\item \textbf{e}\item f}

\ExplSyntaxOff

\begin{document}

\begin{foo} \Foo\Bar\Qux \end{foo}

\end{document}

CLI

$ pandoc -f latex -t plain jobname.tex
E

f

enter image description here

Erwann
  • 2,100

0 Answers0