Bug Tracker
ID | 193🔗 |
---|---|
Submitted by: | Nicola Talbot 🦜 |
Date: | 2021-12-01 20:48:20 |
Status | Open Sign in if you want to bump this report. |
Category | glossaries-extra |
Version | 1.48 |
Summary | \Glsxtrhiername fails with child entries |
Sign in to subscribe to notifications about this report.
Description
Using\Glsxtrhiername
with sub-entries causes:
Glossary entry `' has not been definedThis is a result of
\glscurrentfieldvalue
losing its value in the recursive call. It needs to be expanded first.Patch:
\renewcommand*{\Glsxtrhiername}[1]{% \glsdoifexists{#1}% {% \glsxtrifhasfield{parent}{#1}% {% \expandafter\Glsxtrhiername\expandafter {\glscurrentfieldvalue}\glsxtrhiernamesep \ifglshasshort{#1}{\glsfmttext{#1}}{\glsfmtname{#1}}% }% {\ifglshasshort{#1}{\Glsfmttext{#1}}{\Glsfmtname{#1}}}% }% }
MWE
Download (296B)
% arara: pdflatex \documentclass{article} \usepackage{glossaries-extra} \newglossaryentry{sample}{name={sample},description={}} \newglossaryentry{childex}{parent={sample},name={child example},description={}} \begin{document} \Glsxtrhiername{sample}. \glsxtrhiername{childex}. \end{document}
Evaluation
Comments
0 comments.
Add Comment
Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=193