pandoc-generated docx misses italic variables in equations

前端 未结 3 422
名媛妹妹
名媛妹妹 2021-01-07 12:30

I have the following segment of Markdown with embedded LaTeX equations:

# Fisher\'s linear discriminant

\\newcommand{\\cov}{\\mathrm{cov}}
\\newcommand{\\A}         


        
3条回答
  •  终归单人心
    2021-01-07 12:42

    As discussed above, Windows doesn't have the font Lucida Grande, so substituting the Math Font with Cambria Math should work.

    1. Rename the test.docx to test.zip
    2. vim test.zip and select test/word/settings.xml
    3. find and change Lucida Grande to Cambria Math
    4. save and rename zip to docx. This results in something like this docx.

    You can then also supply that file as a sort of docx template to pandoc with the --reference-docx option.

提交回复
热议问题