[NTG-context] Nested structure of files loaded by input

denis.maier at ub.unibe.ch denis.maier at ub.unibe.ch
Tue Mar 30 10:06:02 CEST 2021

Ok,  I can make it work with \doiffileexistselse

But is there a more elegant way ?

Von: ntg-context <ntg-context-bounces at ntg.nl> Im Auftrag von denis.maier at ub.unibe.ch
Gesendet: Dienstag, 30. März 2021 09:44
An: ntg-context at ntg.nl
Betreff: [NTG-context] Nested structure of files loaded by input

I have file main.tex that loads various subfiles that are placed in a subdir :

\input subdir/chapter1

Chapter1.tex itself loads some other files that are also placed in the subdir directory :
\input subfile1

Subfile1 :

Now, when in the subdir `context chapter1` and `context subfile1` both work. But in the main directory this here fails : context main
-> « input file 'subfile1' is not found, quitting'

What am I missing ? Does \input resolve filenames according to the CWD, not to the location itself is located ?
How can I make that work?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20210330/014efaf3/attachment.htm>

More information about the ntg-context mailing list