From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110991 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.comp.tex.context Subject: Re: Nested structure of files loaded by input Date: Tue, 30 Mar 2021 08:06:02 +0000 Message-ID: References: <85377049ca374f0387635bb744ee7e1a@ub.unibe.ch> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2685986435763638401==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31845"; mail-complaints-to="usenet@ciao.gmane.io" To: Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 30 10:06:46 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lR9Of-0008Az-Kk for gctc-ntg-context-518@m.gmane-mx.org; Tue, 30 Mar 2021 10:06:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 78F5F281FC4; Tue, 30 Mar 2021 10:06:08 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rnFC2E0t7i0E; Tue, 30 Mar 2021 10:06:05 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E9F93281FC8; Tue, 30 Mar 2021 10:06:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E7B8E281FC3 for ; Tue, 30 Mar 2021 10:06:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tcyjmjY8b4nb for ; Tue, 30 Mar 2021 10:06:04 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=130.92.0.82; helo=mailhub-lb1.unibe.ch; envelope-from=denis.maier@ub.unibe.ch; receiver= Original-Received: from mailhub-lb1.unibe.ch (mailhub-lb1.unibe.ch [130.92.0.82]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 07DE6281FB6 for ; Tue, 30 Mar 2021 10:06:03 +0200 (CEST) X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-01.campus.unibe.ch [130.92.13.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb1.unibe.ch (Postfix) with ESMTPS id D74C05000AA for ; Tue, 30 Mar 2021 10:06:02 +0200 (CEST) Thread-Topic: Nested structure of files loaded by input Thread-Index: AdclN5ny0ufmAYapS3q09OVdNTOSbAAA8vVg In-Reply-To: <85377049ca374f0387635bb744ee7e1a@ub.unibe.ch> Accept-Language: de-CH, en-US Content-Language: de-DE x-originating-ip: [172.18.72.2] X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:110991 Archived-At: --===============2685986435763638401== Content-Language: de-DE Content-Type: multipart/alternative; boundary="_000_fff8597077eb4034ba7c4576c011ab72ubunibech_" --_000_fff8597077eb4034ba7c4576c011ab72ubunibech_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Ok, I can make it work with \doiffileexistselse But is there a more elegant way ? Von: ntg-context Im Auftrag von denis.maier@ub= .unibe.ch Gesendet: Dienstag, 30. M=E4rz 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 subdi= r : \starttext \input subdir/chapter1 \stoptext Chapter1.tex itself loads some other files that are also placed in the subd= ir 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 -> =AB 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 --_000_fff8597077eb4034ba7c4576c011ab72ubunibech_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Ok,  I can make it work with \doiffileexistsels= e

 

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=E4rz 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 :<= /span>

\starttext

\input subfile1

\stoptext

 

Subfile1 :

\starttext

Asdf

\stopttext

 

Now, when in the subdir `contex= t chapter1` and `context subfile1` both work. But in the main directory thi= s here fails : context main

-> =AB input file ̵= 6;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

--_000_fff8597077eb4034ba7c4576c011ab72ubunibech_-- --===============2685986435763638401== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2685986435763638401==--