Document Classeslistofsymbols

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
tomileee
Posts: 9
Joined: Tue Jul 08, 2008 11:49 am

listofsymbols

Post by tomileee »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

listofsymbols

Post by Stefan Kottwitz »

Hi Thomas,

welcome to the board!
All \newsym commands have to be between \opensymdef and \closesymdef:

Code: Select all

\opensymdef
\newsym[Gierrate]{psiPunkt}{\dot{\psi}}
\closesymdef
Stefan
LaTeX.org admin
tomileee
Posts: 9
Joined: Tue Jul 08, 2008 11:49 am

Re: listofsymbols

Post by tomileee »

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
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

listofsymbols

Post by Stefan Kottwitz »

Hi Thomas,

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}
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
LaTeX.org admin
tomileee
Posts: 9
Joined: Tue Jul 08, 2008 11:49 am

listofsymbols

Post by tomileee »

I just figured out that the problem makes the amsmath package.
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}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

listofsymbols

Post by Stefan Kottwitz »

You could store the orginal \dot in your own command before amsmath is called and use that instead. This will work:

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}
Further you could call

Code: Select all

\let\dot\mydot
after loading amsmath, if you want to write \dot instead of \mydot in the rest of the document.

Stefan
LaTeX.org admin
tomileee
Posts: 9
Joined: Tue Jul 08, 2008 11:49 am

Re: listofsymbols

Post by tomileee »

Now it works. Thanx a lot.
Post Reply