Bug Tracker
I’m currently working on a major new version of the datatool package. This may take a while. Please be patient. (Experimental version available for testing.)
ID | 193🔗 |
---|---|
Submitted by: | Nicola Talbot 🦜 |
Date: | 2021-12-01 20:48:20 |
Last update: | 2022-10-19 19:55:28 |
Status | Closed (Fixed) |
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
Fixed in v1.49 (make sure you also update glossaries and mfirstuc as well).
Comments
0 comments.
Add Comment
Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=193