Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pending new version of glossaries (v4.47) will be changing the format of the .glsdefs file #8

Open
nlct opened this issue Sep 18, 2021 · 0 comments

Comments

@nlct
Copy link

nlct commented Sep 18, 2021

As part of a bug fix, the next version of glossaries (v4.47) will have a slightly different syntax in the .glsdefs file. This will affect atom-autocomplete-glossaries.

Example documents:

\documentclass{article}
\usepackage{glossaries}

\begin{document}
\newglossaryentry{test}{name={test},description={sample}}
\gls{test}.
\end{document} 

or with glossaries-extra:

\documentclass{article}
\usepackage[docdef=atom]{glossaries-extra}

\newglossaryentry{test}{name={test},description={sample}}

\begin{document}
\gls{test}.
\end{document} 

Currently (v4.46 and below) this will write the data for each entry in the .glsdefs file as:

\ifglsentryexists{<label>}{}%
{%
\gls@defglossaryentry{<label>}%
{%
<key value list>
}%
}%

The new format will be:

\glsdefs@newdocentry{<label>}%
{%
<key value list>
}% 

This new internal command means that any future modifications will hopefully not require any further changes in the file format.

It will be possible to rollback to v4.46 to retain the old format:

\usepackage{glossaries}[=v4.46]

(but you won't get the benefit of the bug fixes).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant