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 | 102🔗 |
---|---|
Date: | 2015-11-30 16:44:56 |
Status | Closed (Can Not Implement) |
Category | glossaries |
Version | 4.18 |
Summary | \printglossary outputs extra empty pages when there is no glossary file yet |
Sign in to subscribe to notifications about this report.
Description
Hello,when glossary files are not ready yet, there are extra empty pages due to use of \null in
\IfFileExists{\jobname.\csname @glotype@\@glo@type @in\endcsname}% {}% {\null}%Is there some reason to use
\null
instead of \relax
? It seems to work correctly with \relax
instead of \null
as far as I tried.
Regards,
MWE
Download (123B)
\documentclass{book} \usepackage{glossaries} \makeglossary \begin{document} \printglossary \cleardoublepage \end{document}
Evaluation
The reason for this is given in the documented code (PDF) (section 1.16):
If the glossary file doesn't exist, do \null
. (This ensures
that the page is shipped out and all write commands are done.)
This might produce an empty page, but at this point the document
isn't complete, so it shouldn't matter.
I think this is a feature rather than a bug. It's more important that the external files are completed and closed in the event that the glossary occurs right at the end of the document otherwise the glossary may not be properly generated by makeindex/xindy.Comments
3 comments.
Date: 2015-12-03 15:55:00
I can't do this without breaking backward-compatibility. There are users who will do something like:
\documentclass{article} \usepackage[acronym]{glossaries-extra} \makeglossaries \newacronym{laser}{laser}{light amplification by stimulated emission of radiation} \begin{document} \gls{laser} \printglossaries \end{document}and then just run makeindex on the acronym file. The proposed modification would insert an empty section for the "main" glossary. (Of course, the simple fix is to add the
nomain
option to the package list, but people tend to get upset if the default behaviour suddenly changes.)
However, I have added it as the default (along with explanatory text) to the glossaries-extra package, which is currently still under development.
Date: 2016-04-30 16:40:00
The glosssaries-extra package is now on CTAN, so I'm closing this as "Can Not Implement" as it can't be implemented in glossaries, but you can use glossaries-extra instead.
Add Comment
Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=102
Date: 2015-12-01 10:21:27
Would it then be possible to make the behaviour consistent with table of contents (output chapter or section text in that case, so the page is not empty)?