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

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Tue Mar 30 11:54:06 CEST 2021


<denis.maier at ub.unibe.ch> schrieb am Di., 30. März 2021, 09:45:

> 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?
>

\usepath[subdir]

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


More information about the ntg-context mailing list