Issue with \ref
command in math environment
#10377
-
When I'm trying to convert my tex work to a docx file,the command
and the warning is:
How can I use the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We don't support As a workaround, you might add this to the beginning of your tex file:
This will allow the math to be converted without error, but all references (including those outside of math) will be |
Beta Was this translation helpful? Give feedback.
We don't support
\ref
in math yet, sorry. It's difficult to see how to support this. Math conversion is done bytexmath
, and it wouldn't know how to resolve the reference. Perhaps pandoc could do its own macro substitution and resolve the reference before passing the tex totexmath
, but currently there is no tracking of equation numbers.As a workaround, you might add this to the beginning of your tex file:
This will allow the math to be converted without error, but all references (including those outside of math) will be
?
. (Currently pandoc will resolve references to sections and figures outside of math; if you want to keep this you might need to use etoolbox …