Math & Sciencelistofsymbols | Problems with non-trivial Symbols

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Vilietha
Posts: 7
Joined: Sun Sep 25, 2011 9:13 pm

listofsymbols | Problems with non-trivial Symbols

Post by Vilietha »

Hello everyone,

I am writing my thesis in mathematics, and I would like to use a list of symbols. Therefore, I tried the package "listofsymbols". It seems to be favourable, because one cannot only create the list, one defines macros for the symbols one is using. Which is very convenient, because one can define longer symbols, and then simply use the short macro name instead of the math formula.

However, I encountered some problem which I need to solve. The package accepts for example the following two definitions:

Code: Select all

\newsym[The energy 1 of the system]{symE1}{( E_1 )}
\newsym[Energy 2]{symE2}{\mathcal{E}_2}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Argument one is the description, argument 2 the name of the macro, argument three the symbol/output. But it does not accept

Code: Select all

\newsym[Energy]{symE}{(\mathcal{E})}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The problem occurs here when round braces are present and the \mathcal is used at the same time. But most of the symbols I want to define consist of both elements.

Another problem: I get errors when I use for example $\mathcal(E)$ in a description. But $\lambda$ works fine...

I look forward to your answers, and hope there is a simple solution.

Best wishes,
Vilietha

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
justdeath
Posts: 69
Joined: Mon Sep 05, 2011 10:27 am

listofsymbols | Problems with non-trivial Symbols

Post by justdeath »

Your code does not work, did you even compile it?

First, you cannot have numbers in commands.

Second, that is not a MWE. Here is one:

Code: Select all

Code, edit and compile here:
\documentclass{article}
\usepackage{listofsymbols}
\opensymdef
\newsym[The energy 1 of the system]{symEa}{( E_1 )}
\newsym[Energy 2]{symEb}{\mathcal{E}_2}
\newsym[Energy]{symEc}{(\cal{E})}
\closesymdef
\begin{document}
Text here $\symEa$, $\symEb$, $\symEc$.
\listofsymbols
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The package does not allow (\mathcal{E}), you can use (\cal{E}) (no idea why is that), but this doesn't get printed correctly in the list of symbols.

Can't fix it, need someone more knowledgeable.

Nikolay
Vilietha
Posts: 7
Joined: Sun Sep 25, 2011 9:13 pm

Re: listofsymbols | Problems with non-trivial Symbols

Post by Vilietha »

Hello Nikolay,

thank you very much for your answer!
It has solved several of my problems.

Does anyone have a recommendation about similar packages which are recommendable? And do most of you hardcode the formulas in your tex-documents? (I am writing a thesis in measure theory, and many formulas occur so many times, such as measure spaces, which is why I prefer macros for them.)

Best wihses,
Vilietha
Post Reply