Generalglossaries | Split Glossary into Latin and Greek Symbols

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
horst1
Posts: 3
Joined: Fri Aug 05, 2011 3:11 pm

glossaries | Split Glossary into Latin and Greek Symbols

Post by horst1 »

Hi,

I want to create a glossary using glossaries where first latin symbols are displayed (in alphabetical order) and greek symbols after that.

I use the code below:

Code: Select all

\documentclass[listof=flat,a4paper,12pt,headsepline,bibliography=totoc,listof=totoc,index=totoc,cleardoublepage=empty,numbers=noenddot,headings=normal]{scrreprt}

\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amssymb}

\usepackage{makeidx}
\usepackage[nonumberlist,toc,acronym]{glossaries}
\newglossary[slg]{symbolslist}{syi}{syg}{Notation}
\renewcommand*{\glspostdescription}{}
\glsdisablehyper
\makeglossaries
\include{Symbols}

\newglossaryentry{latinletters}{name={},description={},sort=a}
\newglossaryentry{greekletters}{name={},description={},sort=b}

\newglossaryentry{symb:c}{sort=ac,
name={\ensuremath{c}},
description={first-stage objective (e.g. $c^Tx$)},
parent=latinletters,
type=symbolslist}

\newglossaryentry{symb:Omega}{sort=bomega,
name={\ensuremath{\Omega}},
description={set of all random events},
parent=greekletters,
type=symbolslist}

\glsaddall

\begin{document}

\newglossarystyle{mylist}{%
\glossarystyle{super}% base this style on the list style
\renewcommand{\glsgroupskip}{}% make nothing happen between groups
}
\printglossary[type=symbolslist,style=mylist ,title=Notation]

helloworld

\end{document}
It looks really fine but the problem is that symbols (c, Omega) are not being displayed in the glossary (only their description).

How can I sort out this problem?

Many thanks!

Recommended reading 2024:

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

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

horst1
Posts: 3
Joined: Fri Aug 05, 2011 3:11 pm

glossaries | Split Glossary into Latin and Greek Symbols

Post by horst1 »

Using index style instead of super worked out.

Now i want each description to start at one certain position like for the style super.

How does the my index based style "mylist" has to be changed?

Code: Select all

\documentclass[listof=flat,a4paper,12pt,headsepline,bibliography=totoc,listof=totoc,index=totoc,cleardoublepage=empty,numbers=noenddot,headings=normal]{scrreprt}

\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amssymb}

\usepackage{makeidx}
\usepackage[nonumberlist,toc,acronym]{glossaries}
\newglossary[slg]{symbolslist}{syi}{syg}{Notation}
\renewcommand*{\glspostdescription}{}
\glsdisablehyper
\makeglossaries
\include{Symbols}

\newglossaryentry{latinletters}{name={},description={},sort=a}
\newglossaryentry{greekletters}{name={},description={},sort=b}

\newglossaryentry{symb:N0}{sort=an,
name={\ensuremath{\mathbb N_{0}}},
description={set of natural numbers with 0},
parent=latinletters,
type=symbolslist}

\newglossaryentry{symb:N}{sort=bn,
name={\ensuremath{\mathbb N}},
description={set of natural numbers},
parent=greekletters,
type=symbolslist}

\newglossaryentry{symb:c}{sort=ac,
name={\ensuremath{c}},
description={first-stage objective (e.g. $c^Tx$)},
parent=latinletters,
type=symbolslist}

\newglossaryentry{symb:Omega}{sort=bomega,
name={\ensuremath{\Omega}},
description={set of all random events},
parent=greekletters,
type=symbolslist}

\glsaddall

\begin{document}

\newglossarystyle{mylist}{%
\glossarystyle{index}% base this style on the list style
\renewcommand{\glsgroupskip}{}% make nothing happen between groups
}
\printglossary[type=symbolslist,style=mylist ,title=Notation]

hallowelt

\end{document}
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

glossaries | Split Glossary into Latin and Greek Symbols

Post by localghost »

It would be very kind if you mention when doing a crossposting [1]*. This is only fair because it prevents others from double efforts and waste of time.

* According to the rules you are obliged to do so.

[1] Unterteilung Glossar in lateinische und griechische Symbole .:. goLaTeX — Mein LaTeX-Forum


Best regards and welcome to the board
Thorsten
horst1
Posts: 3
Joined: Fri Aug 05, 2011 3:11 pm

Re: glossaries | Split Glossary into Latin and Greek Symbols

Post by horst1 »

Hi Thorsten,

sorry, my fault! Thank you for your kind advice. I promise improvement.

horst1
User avatar
nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

glossaries | Split Glossary into Latin and Greek Symbols

Post by nlct »

horst1 wrote:Using index style instead of super worked out.

Now i want each description to start at one certain position like for the style super.
I think the nearest to it would be to use the alttree style and use \glssetwidest{<widest label>}.

Regards
Nicola Talbot
Post Reply