Bug Tracker 
| ID | 218🔗 |
|---|---|
| Date: | 2023-02-22 15:17:50 |
| Last update: | 2023-02-22 16:22:50 |
| Status | Closed (Not a Bug) |
| Category | glossaries-extra |
| Version | 1.48 |
| Summary | \glssetcategoryattribute not working with multiple comma separated attributes |
Sign in to subscribe to notifications about this report.
Description
Expected behavior of\glssetcategoryattribute{general,common}{nohyper}{true}
should be equivalent to
\glssetcategoryattribute{general}{nohyper}{true}
\glssetcategoryattribute{common}{nohyper}{true}
but is not. It seems the {nohyper}{true} never does anything with a comma separated attribute argument to \glssetcategoryattribute.
MWE
Download (1.17K)
\documentclass{article}
\usepackage[colorlinks]{hyperref}
\usepackage[automake]{glossaries-extra}
\makeglossaries
\glssetcategoryattribute{general,common}{nohyper}{true} %this doesn't do anyhting?
%\glssetcategoryattribute{general}{nohyper}{true}
%\glssetcategoryattribute{common}{nohyper}{true} %These lines produces the expected behaivor of \glssetcategoryattribute{general,common}{nohyper}{true}
% dummy entries copied from example-glossaries-brief.tex
\newglossaryentry{lorem}{name={lorem},description={ipsum}}
\newglossaryentry{dolor}{name={dolor},description={sit},category={common}}
\newglossaryentry{amet}{name={amet},description={consectetuer},category={common}}
\newglossaryentry{adipiscing}{name={adipiscing},description={elit}}
\newglossaryentry{ut}{name={ut},description={purus},category={common}}
\newglossaryentry{elit}{name={elit},description={vestibulum}}
\begin{document}
Use the entries: \gls{lorem}, \gls{dolor}, \gls{amet},
\gls{adipiscing}, \gls{ut}, \gls{elit}.
Use the entries again: \gls{lorem}, \gls{dolor}, \gls{amet},
\gls{adipiscing}, \gls{ut}, \gls{elit}.
Force the hyperlink on: \gls+{ut} or \gls+{dolor}.
\printglossaries
\end{document}Evaluation
The \glssetcategoryattribute command only allows a single category and single attribute in the arguments. There are four related commands:
\glssetcategoryattribute{category}{attribute}{value}(single values only) this is simply implemented with an internal definition;\glssetcategoriesattribute{category list}{attribute}{value}(first argument is a comma-separated list of labels, the second argument is a single attribute label) this is implemented with a single internal loop;\glssetcategoryattributes{category}{attribute list}{value}(first argument is a single category label, the second argument is a comma-separated list of attribute labels) this is implemented with a single internal loop;\glssetcategoriesattributes{category list}{attribute list}{value}(first argument is a comma-separated list of category labels, the second argument is a comma-separated list of attribute labels) this is implemented with a nested internal loop.
\glssetcategoriesattribute or \glssetcategoriesattributes.Comments
0 comments.
Add Comment
Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=218
