TeX - LaTeX Asked by klausDerRiese on July 22, 2021
I am working with Overleaf on a university assignment, which requires an overview of all mathematical symbols with description and unit. Therefore, I tried using a listofsymbols but when I put a Greek symbol via Theta
it’s throwing an error. (I am using pdfLaTeX compiler)
package:
usepackage[final]{listofsymbols}
document:
opensymdef
newsym[True anomaly $(degree)$] {trueanomaly}{Theta}
closesymdef
Is giving me a red error
MT@res@a has an extra
and inline there is written
Theta must be in math mode.
But when I surround it with $
it gives even more errors.
Nevertheless, when I use the
§ trueanomaly = 1 $
later in my writing, it correctly shows the symbol in my equation. But it does not show the symbol in the listofsymbols.
There seems to be some kind of incompatibility between degree
and the listofsymbols
package. Using {}^circ
(a circle superscript without preceding symbol) does work (and looks the same as degree
from the gensymb
package).
MWE:
documentclass{article}
usepackage[final]{listofsymbols}
opensymdef
newsym[True anomaly $({}^circ)$]{trueanomaly}{Theta}
closesymdef
begin{document}
$trueanomaly = 1$
listofsymbols
end{document}
Result:
Correct answer by Marijn on July 22, 2021
I'm not sure what definition of degree
you're using, because it's not a standard command.
On the other hand, this works as expected
documentclass{article}
usepackage[final]{listofsymbols}
usepackage{etoolbox}
robustifytextdegree
opensymdef
newsym[True anomaly (textdegree)]{trueanomaly}{Theta}
closesymdef
begin{document}
$trueanomaly = 1$
listofsymbols
end{document}
Answered by egreg on July 22, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP