Latest news 2025-07-01: Ebook Sale July 2025. Cybercrime fiction short stories Unsocial Media and Smile for the Camera free; crime fiction short story The Briefcase free; short story noir crime fiction I’ve Heard the Mermaid Sing free; crime fiction novel The Private Enemy US$1.99; illustrated children’s story The Foolish Hedgehog US$0.99.

Bug Tracker RSS feed

One or more errors has occurred:

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

Return to Search Results

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. All guest comments have to be manually checked before they appear on the page. There are too many bots trying to spam the site to allow unauthenticated users to post without verification.

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

Return to Search Results