My current glossary looks like this:
What I'd like to do is:
- Have the acronym-list print the short and the long version of the acronym, like this:
FPS (Frames Per Second) Text describing the acronym
- "Merge" the glossary and the acronym list into one single list. This should also order the acronyms and the glossary-entries together, so that the acronym "FPS" would be between the glossary-entries "App" and "Heap".
I've checked out the huge user-manual for glossaries and some of the questions here, but no luck. Also, I found this How to combine Acronym and Glossary, which I can accept as a last resort, but I'd like to put them both in one list.
The merged glossary would be something like this:
activity Eine Art Controller[...] 6,19
FPS (Frames Per Second) Gibt an, wie oft der[...] 4,18,19,26
Heap Ein Baum, welcher die Heap[...] 5,10,81
Where activity
and Heap
are normal glossary entries and FPS
is an acronym.
MWE
\documentclass[12pt,titlepage]{article}
\usepackage[toc, nopostdot]{glossaries}
\setacronymstyle{long-short}
\makeglossaries
\loadglsentries{glossar.tex}
\newcommand{\Gloss}[1]{\textit{\Gls{#1}}}
\newcommand{\gloss}[1]{\textit{\gls{#1}}}
\newcommand{\Glosspl}[1]{\textit{\Glspl{#1}}}
\newcommand{\glosspl}[1]{\textit{\glspl{#1}}}
\begin{document}
Some text goes here \Gloss{glossar:acro:jvm} yada yada yada...
\cleardoublepage
\printglossary[title=Glossar]
\end{document}
That creates this output:
Some text goes here Java Virtual Machine (JVM) yada yada yada...
and the second time
Some other text later in the document has a JVM related topic
glossaries
package, then just remove theacronym
package option to have a single glossary. For a short and long version with a description try\setacronymstyle{long-short-desc}
.acronym
option from the package works for question 2, thanks for that! Though the\setacronymstyle
is for displaying long and short in the text, right? I only want the long and short version in the glossary.\setacronymstyle
also sets how thename
key (used in the glossary) is constructed, but it may be more appropriate to define a custom glossary style. What do you want in the text? Long only or short only? It really would help if you could provide minimal working example we can work with.