Lualatex and fontspec - Compile to DOCX

by Lincoln   Last Updated May 23, 2020 01:23 AM

I've written a thing in LaTeX that I need to submit as a docx or doc file. I have a font that I specified with

\usepackage{fontspec}
\setmainfont{ FONT }

If I pandoc assignment.tex -o assignment.docx (or to HTML, ODT, from PDF, etc) the font is replaced with Times New Roman and the double spacing is removed (\usepackage{setspace} and \doublespacing). In additon, some newlines have a grey background color, which is really weird. Using lualatex to compile to a pdf works perfectly, and then nothing else works at all. I've seen multiple questions about compiling to a docx, but none of the proposed solutions ended up working. Thanks for any help you can provide!



Related Questions


Font doesn't change in math mode with mathasfont

Updated July 28, 2019 06:23 AM

Use Custom Made Font

Updated May 01, 2018 10:23 AM



How can I use SourceHanCodeJP.ttc with LuaTeX?

Updated August 08, 2015 14:10 PM