Latest news 2021-09-06: new blog post "Legacy Documents and TeX Live Docker Images".

Bug Tracker

ID 191🔗
Submitted by: Nicola Talbot 🦜
Date: 2021-11-20 21:04:02
Status Open
Sign in if you want to bump this report.
Category glossaries
Version 4.49
Summary local \gls option not localised

Sign in to subscribe to notifications about this report.

Description

The local option to commands like \gls and \glsdisp changes the setting for the rest of the current scope instead of limiting it to the current command.

The attached MWE produces:

local: hypertext markup language (HTML), extensible markup language
(XML).
global: hypertext markup language (HTML), extensible markup language
(XML).
Expected result:
local: hypertext markup language (HTML), extensible markup language
(XML).
global: hypertext markup language (HTML), XML.

MWE

Download (305B)

% arara: pdflatex
\documentclass{article}

\usepackage{glossaries}

\setacronymstyle{long-short}
\newacronym{html}{HTML}{hypertext markup language}
\newacronym{xml}{XML}{extensible markup language}

\begin{document}
{local: \gls[local]{html}, \gls{xml}.
}

global: \gls{html}, \gls{xml}.


\end{document}

Evaluation

Patched in glossaries-extra v1.48 (2021-11-22). Will also be fixed in the next release of glossaries.

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=191