From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110995 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Nested structure of files loaded by input Date: Tue, 30 Mar 2021 11:54:06 +0200 Message-ID: References: <85377049ca374f0387635bb744ee7e1a@ub.unibe.ch> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8736994630909078838==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1458"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 30 11:54:38 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 1lRB54-0000Fi-3X for gctc-ntg-context-518@m.gmane-mx.org; Tue, 30 Mar 2021 11:54:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0547D281FA9; Tue, 30 Mar 2021 11:54:23 +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 shbZaD4Bs_yC; Tue, 30 Mar 2021 11:54:21 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 52DF4281FB8; Tue, 30 Mar 2021 11:54:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 09FFA281FA9 for ; Tue, 30 Mar 2021 11:54:21 +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 WWfuSI2rwgJ1 for ; Tue, 30 Mar 2021 11:54:19 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.54; helo=mail-io1-f54.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Original-Received: from mail-io1-f54.google.com (mail-io1-f54.google.com [209.85.166.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id A559A2818D4 for ; Tue, 30 Mar 2021 11:54:19 +0200 (CEST) Original-Received: by mail-io1-f54.google.com with SMTP id v26so15786014iox.11 for ; Tue, 30 Mar 2021 02:54:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=4XExsODzlugUTt6/KfPen2no1eWUYeqHSDpirfV+Jf0=; b=j7McgUMOMKTABXPsJbcv4I9n8WEYbsC5kcAImVVm/gEmCdzbuyRnQnyWvAdzyT0lat rtdIaoBOVoIxeSQgJJHEgrB3pjXJ8ZmZxc1kq9A0oADTVbiY4Coc0kjy5zBTB9C0sVax ccMzZfx0WkeKkuz+MqLoZhHY5Pj5stWZII9MsvHAFhOBoPuDldYeklqCbTY5BPYmmbZO 5UufWEzXRHoF4Jmgy3PEWR6Ku/jr2gBsMyQZ5Jm/H62J2hydgD8egdBuMYWH+/7mnQ2H +p+8gSIyrdJxiJXsUoIBPRlbRjMCMpI8iU2Oj8wgeoV87FZuCLO1/+Sz4w8zMEGvO2WT e+VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=4XExsODzlugUTt6/KfPen2no1eWUYeqHSDpirfV+Jf0=; b=Ayxahi1/rTjJj40fifBwIpFrtQIEDVv4VL1hkYzsR4VMo0OLc7HkOnQqw6uWwTWggA PcOZjlydhZhcxpbShsSfwWWGnifIfMLzfhxWZOG8QMIB6QsdRYrWfEdlMcs82XHMxkxD DfDFHnNg2oukLqhXnBra4W1V2lNw/qAzixFN7nDyoITEEB0yKnBLuEFVxraSgFaTFIbO fjwRaU0/0O3TWFQD2B5lvHt92G8MbnQe4t61SDK91UWk1lqqQx5nSRIWz+j7ryEpD6hO uYb87+1+24FZvnWEwNEb3dM6urAPF4cCW23obSIBgOd15AOhQQaKkjw3re/Amo43wyGq XJEg== X-Gm-Message-State: AOAM530EuhFq+q8S5mhfB1OE9kzWbeZebjZGr/8SnLefLOlLgh1vGdpb 3HWOoddPqJn5Sgec4+UKvfyu2qqCcZzx2CZX3+2xoKj0 X-Google-Smtp-Source: ABdhPJwy1b2I/O/N1a/W/LDKN7BuOw3W+5UctL/JDqgpEFKqYH9AO8bO+8vguRwaqIRuyWxJ+ncS4yAi87UjV9gBHag= X-Received: by 2002:a05:6638:1390:: with SMTP id w16mr28477814jad.83.1617098057668; Tue, 30 Mar 2021 02:54:17 -0700 (PDT) In-Reply-To: <85377049ca374f0387635bb744ee7e1a@ub.unibe.ch> 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:110995 Archived-At: --===============8736994630909078838== Content-Type: multipart/alternative; boundary="0000000000004b598805bebdfb75" --0000000000004b598805bebdfb75 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable schrieb am Di., 30. M=C3=A4rz 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 > > -> =C2=AB input file =E2=80=98subfile1=E2=80=99 is not found, quitting=E2= =80=99 > > > > 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 --0000000000004b598805bebdfb75 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
<denis.m= aier@ub.unibe.ch> schrieb am Di., 30. M=C3=A4rz 2021, 09:45:

Hi,

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

=C2=A0

\starttext=

\input subdir/chapter1

\stoptext<= /p>

=C2=A0

Chapter1.tex itself loads some = other files that are also placed in the subdir directory=C2=A0:

\starttext=

\input subfile1

\stoptext<= /p>

=C2=A0

Subfile1=C2=A0:

\starttext=

Asdf

\stopttext=

=C2=A0

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

-> =C2=AB=C2=A0input file = =E2=80=98subfile1=E2=80=99 is not found, quitting=E2=80=99

=C2=A0

What am I missing=C2=A0? Does \= input resolve filenames according to the CWD, not to the location itself is= located=C2=A0?

How can I make that work?


\usepath[subdir]

Wolfgang

--0000000000004b598805bebdfb75-- --===============8736994630909078838== 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== --===============8736994630909078838==--