You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's known that it's hard for the TEX scanner to recognize all files that are included and put them into the dependency graph (see #1730 for a mention of the general problem). However, "missing" include files cause problems any time there's a variant directory involved. A specific case is a file of glossary entries.
If you like, you can put all your definitions in another file (for example, defns.tex) and load that file in the preamble using \loadglsentries with the filename as the argument. For example:
\loadglsentries{defns}
We can see this problem if we take an existing (working) test - test/TEX/newglossary.py - unpack it (a cheap way is PRESERVE=1 ./runtest.py test/TEX/newglossary.py and go to the preserve directory).
The test program creates two source files, newglossary.tex and symbols.tex, and the former includes the latter as part of this sequence:
\newacronym{gnu}{GNU}{GNU's Not UNIX}
\makeglossaries\glstoctrue%\loadglsentries[\acronymtype]{chapters/acronyms} \loadglsentries[symbol]{symbols}
%\loadglsentries[definition]{defns}
This build works fine as written, because the included file is in the same directory we're running the build in, but if you add a variant_dir to the mix, the TEX processor will fail with an error missing symbols.tex. Which is because SCons never discovered this file and added to its dependency tree (and so, in the variant_dir case, never copied/linked it from the source dir):
It's known that it's hard for the TEX scanner to recognize all files that are included and put them into the dependency graph (see #1730 for a mention of the general problem). However, "missing" include files cause problems any time there's a variant directory involved. A specific case is a file of glossary entries.
\loadglsentries{defns}
We can see this problem if we take an existing (working) test -
test/TEX/newglossary.py
- unpack it (a cheap way isPRESERVE=1 ./runtest.py test/TEX/newglossary.py
and go to the preserve directory).The test program creates two source files,
newglossary.tex
andsymbols.tex
, and the former includes the latter as part of this sequence:This build works fine as written, because the included file is in the same directory we're running the build in, but if you add a variant_dir to the mix, the TEX processor will fail with an error missing
symbols.tex
. Which is because SCons never discovered this file and added to its dependency tree (and so, in the variant_dir case, never copied/linked it from the source dir):No sign of
symbols.tex
.The text was updated successfully, but these errors were encountered: