I have a little problem to get a list of symbols. I found and uses the listofsymbols package, and it is working so far. But as soon as I use mathematical Symbols in the Symbol description it screws up. Here a little example:
Code: Select all
\documentclass[a4paper, oneside, 12pt]{book}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage[draft]{listofsymbols}
\opensymdef
\newsym[small e]{syme}{e}
\newsym[$\mathcal{P}_S$ is the speaker period]{mcalP}{\mathcal{P}_S}
\closesymdef
\begin{document}
\listofsymbols
test: \syme
\end{document}
without the \mathcal use everything works fine. When I compile I get more or less an Undefined control sequence error, but if explicitly use mathmode it doesn't work either. Does anybody know the problem cause? Is it a problem with the mathmode?
I really spent alread a lot of time trying to fix this.
Any help would be highly appreciated.
Toby
P.S: I don't want to use the symbol in reality for describing its meaning, it is just an example
