I am creating a document where I'd like to have a glossary of terms, a list of acronyms and a list of symbols. Some glossary entries combine several, e.g. BSDF stands for "bidirectional distribution function", can have some definition in the glossary and is represented as $f$
in equations.
So far, I put together this MWE:
\documentclass{article}
\usepackage[acronym,symbols]{glossaries}
\makeglossaries
% define entry in 'main' glossary:
\newglossaryentry{bsdf}{name={bidirectional scattering distribution function},
description={Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua}
}
% define entry in 'acronym' glossary:
\newacronym{acr:bsdf}{BSDF}{bidirectional scattering distribution function}
% define entry in 'symbols' glossary:
\newglossaryentry{sym:bsdf}{
name={\ensuremath{f}},
description={\acrfull{acr:bsdf}},
type=symbols
}
\begin{document}
A sample document with a \gls{bsdf} (\acrshort{acr:bsdf}) and its symbol \gls{sym:bsdf}.
\printglossary[type=main]
\printglossary[type=acronym]
\printglossary[type=symbols]
\end{document}
I still have a different label for the term, acronym and symbol, which is inconvenient. Actually, in addition to having a single key to print the name, acronym and symbol, the best would be to have a single glossary entry, which I could then filter to print my glossaries.
Something like:
\documentclass{article}
\usepackage[<some options>]{glossaries}
\makeglossaries
\newglossaryentry{bsdf}{name={bidirectional scattering distribution function},
description={Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua},
acronym={BSDF},
symbol={\ensuremath{f}}
}
\begin{document}
A sample document with a \gls{bsdf} (\glsacronym{bsdf}) and its symbol \glssymbol{bsdf}.
\printglossary[type=terms]
\printglossary[type=acronyms]
\printglossary[type=symbols]
\end{document}
Is there a way to achieve that?
bsdf
appear in thesymbols
glossary, even if the symbol has never been used, only the abbreviation?glossaries
' capability to automatically switch between short and long forms of abbreviations?glossaries
is offering. For example, you could have the entries sorted differently in the different glossaries, which might be useful.