Replies: 3 comments 8 replies
-
Why should it be? Pandoc doesn't know the past history of this conversion. It doesn't know that For the references: I think we can do better here. Makes sense to open an issue for this. You already submitted an issue about the macros, so I've tried to answer your question there. |
Beta Was this translation helpful? Give feedback.
-
But pandoc also doesn't know the history of the LaTeX document. Still it decides to convert This just follows from the idea of a successful https://en.wikipedia.org/wiki/Round-trip_format_conversion:
|
Beta Was this translation helpful? Give feedback.
-
The treatment of math environments like I note that texmath (our math conversion library) will convert align environments to other formats. MathJaX also handles them, even between So, one possibility, I suppose, would be to allow these special math environments (align, equation, etc.) as contents of pandoc Math elements, and move any necessary special treatment to the writers. (E.g. the LaTeX writer would need to render them as raw TeX rather than between |
Beta Was this translation helpful? Give feedback.
-
I converted the following
test.tex
filevia pandoc
to markdown
and back again via
to latex
The first issue is that the generated latex fails compiling
The reason seems to be that the conversion of
\begin{align}
->$$\begin{aligned}
is not reverted when converting from Markdown to LaTeX.I also don't understand is, why the
\eqref
commands are not converted back again to\eqref
, although the information is stored in markdown asreference-type="eqref"
. So the information which type of reference it was wasn't lost after converting to markdown. Still pandoc does seem to ignore that, when converting from Markdown to LaTeX again.And finally it seems strange that the latex macros get expanded when converting to markdown, although this is not necessary, as the
latex_macros
extension is activated by default for markdown. So the latex macros are lost in the roundtrip.Are there deeper reasons why a roundtrip for such a simple LaTeX document is not possible with pandoc?
Beta Was this translation helpful? Give feedback.
All reactions