I'm looking for some converter LaTeX -> ConTeXt and perhaps LaTeX <- ConTeXt (just in case). I can write simple script and implement translation of basic syntax, but perhaps someone did it?
1 Answer
If pandoc conversion fits your need, then you can directly use it in ConTeXt using the filter module:
\usemodule[filter]
\defineexternalfilter
[latex]
[
filter={pandoc -f latex -t context -o \externalfilteroutputfile},
output=\externalfilterbasefile.tex,
]
\starttext
\startlatex
This is a \textbf{\LaTeX} document that includes a \emph{table}
\begin{tabular}{ll}
One & Two \\
Three & Four \\
\end{tabular}
\stoplatex
\stoptext
which gives
Note that the conversion is not perfect because Pandoc's internal document model is not rich enough to store all LaTeX/ConTeXt documents.
-
Well, pandoc isn't perfect. Probably I need to write own script later. Sep 29, 2013 at 21:40
-
-
I have skills, but it is time consuming. And I'm not sure if I want to use ConTeXt, perhaps I will stick to LaTeX. Sep 30, 2013 at 0:50