[Tex/LaTex] Merge acronym and glossary lists and display acronyms both short and long

glossaries

My current glossary looks like this:

enter image description here

What I'd like to do is:

  1. Have the acronym-list print the short and the long version of the acronym, like this:

FPS (Frames Per Second) Text describing the acronym

  1. "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

Best Answer

So what I ended up doing was this:

To solve Nr. 1, I used this older answer from @Nicola Talbot:

\setacronymstyle{long-short-desc}  % Print both long and short
\renewcommand*{\acronymentry}[1]{%
 \acronymfont{\glsentryshort{#1}} (\textnormal{\glsentrylong{#1}})} % Print it the way I want
\makeglossaries
\loadglsentries{glossar.tex} % Or define them directly...

To solve Nr. 2, Nicola helped me in the comments directly, by pointing out that leaving the acronym package option out of the \usepackage-command would result in just what I wanted.

Together, the output now looks like this:

enter image description here