Skip to content

Printglossary fix breaks build scripts like latexmk #9

@stefanct

Description

@stefanct

Hi,
I was using your hack to keep \printglossary from inserting empty pages. Unfortunately there is a problem with creating the file before \printglossary (

\newwrite\ult@tmp@glossary@file
) is called resulting in the glossary (or list of abbreviation in my case) to not be printed at all because the .acr file is never created correctly.

I am using latexmk to automate building. It relies on parsing the stdout prints to derive the which files do not exist and launches the respective build steps (like executing makeglossaries). This does not longer happen which your hack. I tried to fix that by pretending that the file is not really there (by adding \typeout{No file ##1.}. Unfortunately this does not fool latexmk :(

Also, \immediate\write\ult@tmp@glossary@file{} adds a newline character to the resulting file. You can simply leave that out to create an empty file (dunno if that could a regression or fixes other use cases - JFYI). I don't have tried further to find a fix because I have no time ATM (and lost lots of it already due to this :/). Maybe patching \@print@glossary directly instead would work better?

BTW: why is Nicola doing that \null there anyway? Maybe we should ask her (she is very responsive on stackexchange).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions