Seite 1 von 1

Unterteilung Glossar in lateinische und griechische Symbole

Verfasst: Sa 30. Jul 2011, 16:07
von jukka
Hallo,

mein Symbolverzeichnis enthält sowohl lateinische als auch römische Symbole. Nun sollen zunächst die lateinischen und dann die römischen Symbole alphabetisch erscheinen. Folgenden Code verwende ich:
\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}
\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]
Bis auf eine Sache klappt das auch gut: Die Symbole werden nicht dargestellt (die Beschreibung schon). Was kann ich tun, damit auch die Symbole ansich angezeigt werden?

Danke im voraus.

Verfasst: Di 2. Aug 2011, 11:54
von jukka
Hallo,

ein Tipp wäre wirklich hilfreich.

Gruß,
jukka

Verfasst: Di 2. Aug 2011, 13:50
von Sepp99
jukka hat geschrieben:ein Tipp wäre wirklich hilfreich.
Ein Tipp: wie wärs mit einem lauffähigem Minimalbeispiel? [3] in meiner Signatur.
Gruß, Sepp.-

Verfasst: Di 2. Aug 2011, 14:39
von cgnieder
So spontan würde ich sagen: den Namen in geschweiften Klammern angeben:
\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}
Gruß

Verfasst: Di 2. Aug 2011, 15:33
von jukka
Hi,

@Sepp99: Danke für den Tipp. Ich weiß nicht, ob untenstehender Code wirklich exakt einem Minimalbeispiel entspricht. Falls nicht, bitte ich um ein wenig Nachsicht und würde mich über Verbesserungsvorschläge freuen.
\documentclass[listof=flat,a4paper,12pt,headsepline,bibliography=totoc,listof=totoc,index=totoc,cleardoublepage=empty,numbers=noenddot,headings=normal]{scrreprt}

% fancy math
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amssymb}

\usepackage{makeidx}
\usepackage[nonumberlist,toc,acronym]{glossaries}
\newglossary[slg]{symbolslist}{syi}{syg}{Notation}
\renewcommand*{\glspostdescription}{} %Punkt am Ende entfernen
\glsdisablehyper
\makeglossaries
\include{Symbols} % all 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={{$\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{super}% base this style on the list style
\renewcommand{\glsgroupskip}{}% make nothing happen between groups
}
\printglossary[type=symbolslist,style=mylist ,title=Notation] %Symbole ausgeben (vorher style long

hallowelt

\end{document}
@cgnieder: Danke, das Hinzufügen von geschweiften Klammern hat leider keine Veränderung mit sich gebracht (siehe Minimalbeispiel).

Verfasst: Fr 5. Aug 2011, 10:51
von jukka
Weiß keiner um Rat oder ist das Minimalbeispiel falsch?

Verfasst: Fr 5. Aug 2011, 12:00
von KOMA
Keine Zeit zum Ausprobieren, da ich weg muss, aber: \ensuremath statt $…$ verwenden!

Verfasst: Fr 5. Aug 2011, 12:51
von jukka
Wird gemacht. Das Problem bleibt bestehen. Hier das Minimalbeispiel etwas verkürzt:
\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]

hallowelt

\end{document}

Verfasst: Fr 5. Aug 2011, 17:03
von jukka
Verwendung vom Style index anstelle von super bringt die Lösung.

Ich hätte nun aber gerne den Tabulatorabstand vom Style super, damit die Symbolbeschreibung immer an der gleiche Stelle beginnt. Meine Überlegung war, dass ich meinen eigenen Glossarystyle (mylist) durch den entsprechenden Code vom Style super ergänze. Dies führt aber nicht zu einer Veränderung. Vermutlich habe ich die falschen Befehle übernommen (siehe Abschnitt \newglossarystyle{mylist}):
\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
\renewenvironment{index}%
    {\tablehead{}\tabletail{}%
     \begin{supertabular}{lp{\glsdescwidth}}}%
    {\end{supertabular}}%
}
\printglossary[type=symbolslist,style=mylist ,title=Notation]

hallowelt

\end{document}