Ok,  I can make it work with \doiffileexistselse

But is there a more elegant way ?


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

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

\starttext
\input subdir/chapter1
\stoptext

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

Subfile1 :
\starttext
Asdf
\stopttext

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?

Best,
Denis
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to