Document Classes ⇒ listofsymbols
listofsymbols
I have a problem with the listofsymbols package:
I want to add the symbol for yaw rate, which is \dot{\psi}.
When i add the line,
\newsym[Gierrate]{psiPunkt}{\dot{\psi}}
i get an "undefined control sequence" error.
Does anybody know how to fix this problem?
Best regards, Thomas
I want to add the symbol for yaw rate, which is \dot{\psi}.
When i add the line,
\newsym[Gierrate]{psiPunkt}{\dot{\psi}}
i get an "undefined control sequence" error.
Does anybody know how to fix this problem?
Best regards, Thomas
NEW: TikZ book now 40% off at Amazon.com for a short time.
- Stefan Kottwitz
- Site Admin
- Posts: 10321
- Joined: Mon Mar 10, 2008 9:44 pm
listofsymbols
Hi Thomas,
welcome to the board!
All \newsym commands have to be between \opensymdef and \closesymdef:
Stefan
welcome to the board!
All \newsym commands have to be between \opensymdef and \closesymdef:
Code: Select all
\opensymdef
\newsym[Gierrate]{psiPunkt}{\dot{\psi}}
\closesymdef
LaTeX.org admin
Re: listofsymbols
Thanx Stefan,
that is not the problem, i already had the begining and end statement.
I just wrote the single line. So I still have this problem.
Best regards
that is not the problem, i already had the begining and end statement.
I just wrote the single line. So I still have this problem.
Best regards
- Stefan Kottwitz
- Site Admin
- Posts: 10321
- Joined: Mon Mar 10, 2008 9:44 pm
listofsymbols
Hi Thomas,
that line should not cause the error. This example is compilable and works for me:
You could try this and tell me, if the problem occures there to.
Perhaps provide a minimal example (like I did above) that produces this error.
Stefan
that line should not cause the error. This example is compilable and works for me:
Code: Select all
\documentclass[a4paper,10pt]{article}
\usepackage{listofsymbols}
\opensymdef
\newsym[Gierrate]{psiPunkt}{\dot{\psi}}
\closesymdef
\begin{document}
Test: \psiPunkt
\end{document}
Perhaps provide a minimal example (like I did above) that produces this error.
Stefan
LaTeX.org admin
listofsymbols
I just figured out that the problem makes the amsmath package.
Please try:
Please try:
Code: Select all
\documentclass[a4paper,10pt]{article}
\usepackage{listofsymbols}
\usepackage{amsmath}
\opensymdef
\newsym[Gierrate]{psiPunkt}{\dot{\psi}}
\closesymdef
\begin{document}
Test: \psiPunkt
\end{document}
- Stefan Kottwitz
- Site Admin
- Posts: 10321
- Joined: Mon Mar 10, 2008 9:44 pm
listofsymbols
You could store the orginal \dot in your own command before amsmath is called and use that instead. This will work:
Further you could call
after loading amsmath, if you want to write \dot instead of \mydot in the rest of the document.
Stefan
Code: Select all
\documentclass[a4paper,10pt]{article}
\usepackage{listofsymbols}
\newcommand*\mydot{}
\let\mydot\dot
\usepackage{amsmath}
\opensymdef
\newsym[Gierrate]{psiPunkt}{\mydot{\psi}}
\closesymdef
\begin{document}
Test: \psiPunkt
\end{document}
Code: Select all
\let\dot\mydot
Stefan
LaTeX.org admin
Re: listofsymbols
Now it works. Thanx a lot.