jgm/texmath

\enspace bug

Closed this issue · 1 comments

Here is my issue on google groups: https://groups.google.com/g/pandoc-discuss/c/MRi8Fz8LbtY

My content:

APP:\enspace <MS\_SET,\enspace MS_{RELATION}>

Error:

[WARNING] Could not convert TeX math
  APP:\ <MS\_SET,\enspace MS_{RELATION}>
  , rendering as TeX:

                     ^
  unexpected control sequence \enspace
  expecting "%", "\\label", "\\tag", "\\nonumber" or whitespace

If I change content to this:

\renewcommand{\enspace}{\hspace{0.5em}}
APP:\enspace <MS\_SET,\enspace MS_{RELATION}>

New error:

[WARNING] Could not convert TeX math
  \renewcommand{\enspace}{\hspace{0.5em}}
  APP:\ <MS\_SET,\enspace MS_{RELATION}>
  , rendering as TeX:

                     ^
  unexpected "."
  expecting digit, "em", "pt", "in" or "cm"
jgm commented

In the workaround it might need to be .5em, or some other tex length measurement...