4

.adoc ファイルを .docx に変換しようとしています

実際に私は使用しています:

asciidoctor file.adoc -o file.html
pandoc -s -S file.html -o output.docx

.adoc 内の数式または記号は次のようになります。

latexmath:[$\phi$] and more text as Inline test latexmath:[$\sin(x)$]

docx への変換後、.docx 内の奇妙な行が返されます。

\($\phi$\) and more text as Inline test \($\sin(x)$\)

ヒントはありますか?

$ pandoc --version
pandoc 1.13.2.1
Compiled with texmath 0.8.2, highlighting-kate 0.5.15.
4

1 に答える 1