von ChrisW » Mi 6. Dez 2017, 09:24
Hallo Markus,
das mit der google-Suche hab ich schon hinter mir. Entweder wurden andere Pakete verwendet oder die Antworten waren etwas alt oder ich hab's nicht verstanden (?). Daher meine Frage hier im Forum.
Dein zweiter Link stellt - soweit ich das verstanden habe - einen workaround dar, ist aber für mich unpraktikabel, da ich nicht bei jedem Vorkommen eines Acronyms dieses erst erstellen will, was ja mit der vorgestellten Lösung zumindest in jedem Kapitel, in dem das Acronym verwendet wird, gemacht werden muss.
Ich hätte da lieber eine globale Liste (ähnlich einem Literaturverzeichnis), die in einem Kapitel verwendet werden kann oder halt nicht und entsprechend im Kapitel-Glossar erscheint bzw, eben nicht.
Als Minimalbeispiel kann ich Folgendes bieten (ist nicht von mir, aber etwas modifiziert) Ich verwende derzeit nur Acronyme, möchte aber nicht ausschließen, dass da auch mal Formelzeichen dazukommen:
\documentclass{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[acronym]{glossaries}
\makeglossaries
\newglossaryentry{latex}
{
name=latex,
description={Is a mark up language specially suited for
scientific documents}
}
\newglossaryentry{maths}
{
name=mathematics,
description={Mathematics is what mathematicians do}
}
\newglossaryentry{formula}
{
name=formula,
description={A mathematical expression}
}
\newacronym{gcd}{GCD}{Greatest Common Divisor}
\newacronym{lcm}{LCM}{Least Common Multiple}
\begin{document}
\chapter{Kapitel 1}
The \Gls{latex} typesetting markup language is specially suitable
for documents that include \gls{maths}. \Glspl{formula} are
rendered properly an easily once one gets used to the commands. In the following chapter \gls{lcm} and \gls{gcd} will be defined.
\chapter{Kapitel 2}
Given a set of numbers, there are elementary methods to compute
its \acrlong{gcd}, which is abbreviated \acrshort{gcd}. This
process is similar to that used for the \acrfull{lcm}.
\clearpage
\printglossary[type=\acronymtype]
\printglossary
\end{document}
Hallo Markus,
das mit der google-Suche hab ich schon hinter mir. Entweder wurden andere Pakete verwendet oder die Antworten waren etwas alt oder ich hab's nicht verstanden (?). Daher meine Frage hier im Forum.
Dein zweiter Link stellt - soweit ich das verstanden habe - einen workaround dar, ist aber für mich unpraktikabel, da ich nicht bei jedem Vorkommen eines Acronyms dieses erst erstellen will, was ja mit der vorgestellten Lösung zumindest in jedem Kapitel, in dem das Acronym verwendet wird, gemacht werden muss.
Ich hätte da lieber eine globale Liste (ähnlich einem Literaturverzeichnis), die in einem Kapitel verwendet werden kann oder halt nicht und entsprechend im Kapitel-Glossar erscheint bzw, eben nicht.
Als Minimalbeispiel kann ich Folgendes bieten (ist nicht von mir, aber etwas modifiziert) Ich verwende derzeit nur Acronyme, möchte aber nicht ausschließen, dass da auch mal Formelzeichen dazukommen:
[code]
\documentclass{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[acronym]{glossaries}
\makeglossaries
\newglossaryentry{latex}
{
name=latex,
description={Is a mark up language specially suited for
scientific documents}
}
\newglossaryentry{maths}
{
name=mathematics,
description={Mathematics is what mathematicians do}
}
\newglossaryentry{formula}
{
name=formula,
description={A mathematical expression}
}
\newacronym{gcd}{GCD}{Greatest Common Divisor}
\newacronym{lcm}{LCM}{Least Common Multiple}
\begin{document}
\chapter{Kapitel 1}
The \Gls{latex} typesetting markup language is specially suitable
for documents that include \gls{maths}. \Glspl{formula} are
rendered properly an easily once one gets used to the commands. In the following chapter \gls{lcm} and \gls{gcd} will be defined.
\chapter{Kapitel 2}
Given a set of numbers, there are elementary methods to compute
its \acrlong{gcd}, which is abbreviated \acrshort{gcd}. This
process is similar to that used for the \acrfull{lcm}.
\clearpage
\printglossary[type=\acronymtype]
\printglossary
\end{document}
[/code]