alexpovel / latex-cookbook

A comprehensive LaTeX template with examples for theses, books and more, employing the 'latest and greatest' (UTF8, glossaries, fonts, ...). The PDF artifact is built using CI/CD, with a Python testing framework.
MIT License
223 stars 20 forks source link

\glssetcategoryattribute fails to index only the first occurrence #5

Closed alexpovel closed 2 years ago

alexpovel commented 2 years ago

Original issue (2021-10-18): https://collaborating.tuhh.de/alex/latex-cookbook/-/issues/12

Using \glssetcategoryattribute{<category>}{indexonlyfirst}{true}. For all items in <category>, it is meant to only add the very first reference to the printed glossary. If this reference is within a float, this breaks, and nothing shows up in the '##2' column.

alexpovel commented 2 years ago

The way the document was set up, most symbols are currently affected. However, in an actual document, it is highly unlikely you will be referencing/using (with \gls{<symbol>}) symbols the first time in floating objects. Therefore, this problem is likely not a realistic issue, but still a bug.