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 | 196🔗 |
---|---|
Date: | 2022-02-08 13:16:52 |
Last update: | 2022-10-19 18:24:46 |
Status | Closed (Fixed) |
Category | glossaries |
Version | 1.48 |
Summary | Incompatibility between xindy and LuaLatex |
Sign in to subscribe to notifications about this report.
Description
From: [TeX.SX Link]Consider the following MWE:
\documentclass{article} \usepackage{shellesc} \usepackage[acronym, automake=immediate, xindy]{glossaries-extra} \newacronym{test}{TEST}{This is a test} \makeglossaries \begin{document} \gls{test} \printglossary[type=\acronymtype] \end{document}If I compile the following MWE with PDFLatex, there is no problem, I get the desired result. However, if I use LuaLaTeX to compile, I get no result even after several compilations. Using automake=immediate doesn't seem to do anything.
Ulrike Fischer proposes the following solution:
\documentclass{article}
\usepackage{shellesc}
\usepackage[acronym, automake=immediate, xindy={codepage=utf8}]{glossaries-extra}
\newacronym{test}{TEST}{This is a test}
\makeglossaries
\begin{document}
\gls{test}
\printglossary[type=\acronymtype]
\end{document}
MWE
Download (246B)
\documentclass{article} \usepackage{shellesc} \usepackage[acronym, automake=immediate, xindy]{glossaries-extra} \newacronym{test}{TEST}{This is a test} \makeglossaries \begin{document} \gls{test} \printglossary[type=\acronymtype] \end{document}
Evaluation
I've changed the status from glossaries-extra to glossaries.
Note that if you run xindy via the shell escape you need to ensure that you set the codepage and language. For example:
\documentclass{article} \usepackage{shellesc} \usepackage[acronym, automake=immediate, xindy={language=english,codepage=utf8} ]{glossaries} \newacronym{test}{TEST}{This is a test} \makeglossaries \begin{document} \gls{test} \printglossary[type=\acronymtype] \end{document}It's not always necessary, but the language names used by xindy don't always correspond to the document language name.
The switches are normally determined by the makeglossaries script. If you don't use that script you need to ensure they are correctly set. (This isn't causing the issue reported here. Your MWE doesn't set the codepage but it doesn't cause a syntax error because the actual command isn't being run.)
In summary, there are two issues here:
- The codepage isn't being set correctly in the xindy call (you need to explicitly set it until this issue is fixed)
- The xindy call isn't actually been run in the shell escape with LuaLaTeX (use the shellesc package as a workaround).
Update 2022-10-19: fixed in glossaries v4.50. Make sure that when you update to glossaries v4.50 you also update to mfirstuc v2.08 and glossaries-extra v1.49.
Comments
1 comment.
Add Comment
Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=196
Date: 2022-06-09 20:13:01
Hi All,
I would just like to report as another affected user on the LuaLaTeX shell escape issue. In the hope that
shellesc
can be incorporated eventually.Kind regards,
Gustavo