transpect/docx2tex

Undefined color '{color-1}

wlmchen opened this issue · 7 comments

image

I get this error after compiling.

It seems that a color is used, which is not in the list of defined colors. Can you please provide me your DOCX file then I can analyze and hopefully fix your issue?

Here is the docx file (with only the problematic part)
test.docx

console logs: https://pastebin.com/afRmXA28

Thanks for providing the file. I'll have a look under the hood.

Seems like its just the highlighting that screws it up

The issue wasn't a unspecified color but that \colorbox was wrapped inside of other styles, so I changed the rule priority for \colorbox that it is processed before other text styles.

(\colorbox{color-1}{\ul{\textbf{\textit{test}}}})

You just need to update the master branch.

cool thanks!

Thanks for your report!