Latest news 2021-06-05: New blog post: Dickimaw Books Site Account.

Bug Tracker

ID 108🔗
Date: 2016-04-28 09:54:38
Status Closed (Fixed)
Category glossaries
Version 4.22
Summary nogroupskip + style=long results in error

Sign in to subscribe to notifications about this report.

Description

If you use option nogroupskip with style long, you get an error message because of an unclosed \iftrue.
\documentclass{article}
\usepackage{glossaries}                                               
\makenoidxglossaries
\newglossaryentry{min}{name=Minimum,description={Minimum}}
\newglossaryentry{max}{name=Maximum,description={Maximum}}

\begin{document}                                        
\printnoidxglossary[style=long,nogroupskip]

\gls{min}
\gls{max}

\end{document}
You have to move the \ifglsnogroupskip in the definition of style long to fix this:
\documentclass{article}
\usepackage{glossaries}                                               
\makenoidxglossaries
\newglossaryentry{min}{name=Minimum,description={Minimum}}
\newglossaryentry{max}{name=Maximum,description={Maximum}}

\newglossarystyle{long-fixed}{%
  \setglossarystyle{long}%
  \ifglsnogroupskip
    \renewcommand*{\glsgroupskip}{}%
  \else
    \renewcommand*{\glsgroupskip}{ & \tabularnewline}%
  \fi
}

\begin{document}  

\printnoidxglossary[style=long-fixed,nogroupskip]

\gls{min}
\gls{max}

\end{document}
The same bug can be found at other table style, too.

MWE

Download (438B)

\documentclass{article}
\usepackage{glossaries}                                               
\makenoidxglossaries
\newglossaryentry{min}{name=Minimum,description={Minimum}}
\newglossaryentry{max}{name=Maximum,description={Maximum}}

\begin{document}                                        

\printnoidxglossary[style=long,nogroupskip]

\gls{min}
\gls{max}

\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:

Evaluation

Thank you. Fixed in v4.23 (for all the tabular-like styles). Uploaded to CTAN 2016-04-30, please allow a few days for it to reach the TeX distributions.

Comments

0 comments.


Add Comment

Name (optional):

Are you human? Please confirm the bug report ID (which can be found at the top of this page) or login if you have an account.

Comment:

You can use the following markup:

Block:

[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[tt]code[/tt]
[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]
[sub]subscript[/sub]

Ordered list:
[ol]
[li]first item[/li]
[li]second item[/li]
[/ol]

Unordered list:
[ul]
[li]first item[/li]
[li]second item[/li]
[/ul]

You can use the Preview button to review your message formatting before submitting.

Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=108