From: <denis.maier@ub.unibe.ch>
To: <ntg-context@ntg.nl>
Subject: Re: Nested structure of files loaded by input
Date: Tue, 30 Mar 2021 08:06:02 +0000 [thread overview]
Message-ID: <fff8597077eb4034ba7c4576c011ab72@ub.unibe.ch> (raw)
In-Reply-To: <85377049ca374f0387635bb744ee7e1a@ub.unibe.ch>
[-- Attachment #1.1: Type: text/plain, Size: 968 bytes --]
Ok, I can make it work with \doiffileexistselse
But is there a more elegant way ?
Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von denis.maier@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
[-- Attachment #1.2: Type: text/html, Size: 4535 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2021-03-30 8:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-30 7:43 denis.maier
2021-03-30 8:06 ` denis.maier [this message]
2021-03-30 8:13 ` Henning Hraban Ramm
2021-03-30 8:23 ` denis.maier
2021-03-30 8:46 ` Henning Hraban Ramm
2021-03-30 9:54 ` Wolfgang Schuster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fff8597077eb4034ba7c4576c011ab72@ub.unibe.ch \
--to=denis.maier@ub.unibe.ch \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).