Open squinky86 opened 3 years ago
We could certainly add support for the nth
package. I'm a bit hesitant, though: it would not be sustainable for pandoc to support every package on CTAN, so we try to support only the most commonly used ones. I have no idea how commonly used this one is.
Recommendation 2: When unknown commands (like \nth} are encountered in the text of the document, display the text as-is so that something is shown.
I don't think this is going to give good results in general. Documents will be littered with raw tex.
Note that if you use pandoc -f latex+raw_tex -t native
, \nth{2}
(in this context) gets parsed as RawInline (Format "latex") "\\nth{2}"
. So the recommended way to deal with this kind of thing is:
-f latex+raw_tex
Pandoc does not currently display the text within the nth environment:
Output from "pandoc -f latex -t docx -o mwe.docx mwe.tex" where mwe.tex is the contents of the above code: mwe.docx
Recommendation: use the Text.Ordinal package (https://hackage.haskell.org/package/linguistic-ordinals-0.1.0.2/docs/Text-Ordinal.html) to duplicate this feature in pandoc.
Recommendation 2: When unknown commands (like \nth} are encountered in the text of the document, display the text as-is so that something is shown.