Pandoc cannot recognize some uppercase Greek letters and lowercase omicron
BrentHuang opened this issue · 8 comments
Explain the problem.
my markdown file content:
# greek_letters
| UpperCase | LowerCase | Pronunciation | UpperCase | LowerCase | Pronunciation |
|--|--|--|--|--|--|
| $\Alpha$ | $\alpha$ | Alpha | $\Beta$ | $\beta$ | Beta |
| $\Gamma \varGamma$ | $\gamma$ | Gamma | $\Delta \varDelta$ | $\delta$ | Delta |
| $\Epsilon$ | $\epsilon \varepsilon$ | Epsilon | $\Zeta$ | $\zeta$ | Zeta |
| $\Eta$ | $\eta$ | Eta | $\Theta \varTheta$ | $\theta \vartheta$ | Theta |
| $\Iota$ | $\iota$ | Iota | $\Kappa$ | $\kappa \varkappa$ | Kappa |
| $\Lambda \varLambda$ | $\lambda$ | Lambda | $\Mu$ | $\mu$ | Mu |
| $\Nu$ | $\nu$ | Nu | $\Xi \varXi$ | $\xi$ | Xi |
| $\Omicron$ | $\omicron$ | Omicron | $\Pi \varPi$ | $\pi \varpi$ | Pi |
| $\Rho$ | $\rho$ | Rho | $\Sigma \varSigma$ | $\sigma$ | Sigma |
| $\Tau$ | $\tau$ | Tau | $\Upsilon \varUpsilon$ | $\upsilon$ | Upsilon |
| $\Phi \varPhi$ | $\phi \varphi$ | Phi | $\Chi$ | $\chi$ | Chi |
| $\Psi \varPsi$ | $\psi$ | Psi | $\Omega \varOmega$ | $\omega$ | Omega |
command: pandoc ./greek_letters.md -o greek_letters.html
the output:
[WARNING] Could not convert TeX math \Alpha, rendering as TeX:
\Alpha
^
unexpected control sequence \Alpha
expecting "%", "\label", "\tag", "\nonumber", whitespace or "\allowbreak"
[WARNING] Could not convert TeX math \Beta, rendering as TeX:
\Beta
^
unexpected control sequence \Beta
expecting "%", "\label", "\tag", "\nonumber", whitespace or "\allowbreak"
[WARNING] Could not convert TeX math \Epsilon, rendering as TeX:
\Epsilon
^
unexpected control sequence \Epsilon
expecting "%", "\label", "\tag", "\nonumber", whitespace or "\allowbreak"
[WARNING] Could not convert TeX math \Zeta, rendering as TeX:
\Zeta
^
unexpected control sequence \Zeta
expecting "%", "\label", "\tag", "\nonumber", whitespace or "\allowbreak"
[WARNING] Could not convert TeX math \Eta, rendering as TeX:
\Eta
^
unexpected control sequence \Eta
expecting "%", "\label", "\tag", "\nonumber", whitespace or "\allowbreak"
[WARNING] Could not convert TeX math \Iota, rendering as TeX:
\Iota
^
unexpected control sequence \Iota
expecting "%", "\label", "\tag", "\nonumber", whitespace or "\allowbreak"
[WARNING] Could not convert TeX math \Kappa, rendering as TeX:
\Kappa
^
unexpected control sequence \Kappa
expecting "%", "\label", "\tag", "\nonumber", whitespace or "\allowbreak"
[WARNING] Could not convert TeX math \Mu, rendering as TeX:
\Mu
^
unexpected control sequence \Mu
expecting "%", "\label", "\tag", "\nonumber", whitespace or "\allowbreak"
[WARNING] Could not convert TeX math \Nu, rendering as TeX:
\Nu
^
unexpected control sequence \Nu
expecting "%", "\label", "\tag", "\nonumber", whitespace or "\allowbreak"
[WARNING] Could not convert TeX math \Omicron, rendering as TeX:
\Omicron
^
unexpected control sequence \Omicron
expecting "%", "\label", "\tag", "\nonumber", whitespace or "\allowbreak"
[WARNING] Could not convert TeX math \omicron, rendering as TeX:
\omicron
^
unexpected control sequence \omicron
expecting "%", "\label", "\tag", "\nonumber", whitespace or "\allowbreak"
[WARNING] Could not convert TeX math \Rho, rendering as TeX:
\Rho
^
unexpected control sequence \Rho
expecting "%", "\label", "\tag", "\nonumber", whitespace or "\allowbreak"
[WARNING] Could not convert TeX math \Tau, rendering as TeX:
\Tau
^
unexpected control sequence \Tau
expecting "%", "\label", "\tag", "\nonumber", whitespace or "\allowbreak"
[WARNING] Could not convert TeX math \Chi, rendering as TeX:
\Chi
^
unexpected control sequence \Chi
expecting "%", "\label", "\tag", "\nonumber", whitespace or "\allowbreak"
Pandoc version?
pandoc.exe 3.1.12.2, windows 10
Transferring to jgm/texmath.
Note: the list here
https://www.cmor-faculty.rice.edu/~heinken/latex/symbols.pdf
does not contain these; I assume they are defined in amssymb
or somewhere else?
I learned here that unicode-math
defines those macros. I verified it for some of them, but I didn't find it in the docs.
That's quite strange. According to the documentation here unicode-math defines \mupAlpha
(upright), \mitAlpha
(italics), and \mbfAlpha
(bold), but it says nothing about \Alpha
.
texmath knows how to handle \mitAlpha
(though not the other variants), but not \Alpha
.
I'd like to know better where this symbol is defined. Maybe this is the place?
https://mirror.las.iastate.edu/tex-archive/macros/unicodetex/latex/unicode-math/unicode-math-code.pdf p. 123.
What should I do?
It is fixed in this library. The fix will be in the next release of pandoc.
You can try a pandoc nightly for now.
thank you!
\theta > 90 \degree
Unable to recognize '\degree'
Please submit a separate report (including full instructions for reproducing; I can't really tell from what you wrote).