From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM,HTML_MESSAGE, MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id B8CC22A673 for ; Mon, 4 Mar 2024 06:18:58 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C64AA484032 for ; Mon, 4 Mar 2024 06:17:20 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=gmail.com Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sx8_ErtQd7bf for ; Mon, 4 Mar 2024 06:17:18 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id AA422484229 for ; Mon, 4 Mar 2024 06:15:44 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id ADBB24834D8 for ; Mon, 4 Mar 2024 06:14:54 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7S1uNnpTLkh8 for ; Mon, 4 Mar 2024 06:14:54 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.215.181; helo=mail-pg1-f181.google.com; envelope-from=contextntg@gmail.com; receiver= Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 423924834D2 for ; Mon, 4 Mar 2024 06:14:53 +0100 (CET) Received: by mail-pg1-f181.google.com with SMTP id 41be03b00d2f7-5d81b08d6f2so3812880a12.0 for ; Sun, 03 Mar 2024 21:14:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709529292; x=1710134092; darn=ntg.nl; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=Uj/OeIxQIwKAm3RhWHtKKxMTlJlODBv8ErKdrMIclbU=; b=hM2hAChAc50gk7VMzwXaF9LNzgZhKAnno7jgmOoiXT4JMXVpjJmVBb+LZ/l/o0F3sm dZdnctJALuGjxFfGxM2wYlm4tmxvC47547p6ish5F7JcM50Yjs9ITywdJFDRyTgdeO62 ScU9YnIeZCVySGAcNYLTqxvnGOIagqvC6JFIxTbu64O1fvOocpExQGWlPVPrU/4a57Wi ghR6C/pdVXcXQk5Ea0qR4OT8P9nEtdWydUMvbAGwb1EFoZsrGLVBiB7Qi1XXtvKpQ6Dy ItgrZTpmoJ7yewj9gaFjhMXERwitpHwkCy7r+8ICc9KVxyqNi85fx7yoVcwq1WPao9sD qHgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709529292; x=1710134092; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Uj/OeIxQIwKAm3RhWHtKKxMTlJlODBv8ErKdrMIclbU=; b=cThoBhUHjZiMtQOXDx3a5u2GrIh/qwjKFGIYgFfuLDuKMRoiIfsvbvB7Fs4IxjgzhF uDnLF9j5Ngg48nsDSkAdfI3SsSAZFgIaX645ldDkoXCuMgduOSmDmOKdFSv8PuJzcgxs jqJ32+qxOWx4eNTbr1gCu0wku5bP4Zsf2fdY6ZKREIn/yp/wW4BQ4OoGZ50TkJIvh0u1 lfGZ/rtLNzIx8rfQlfoiCNmVckUgw5GVkxn7G4rpReCk4hG0NgikBwnYNx3gm7cMEFMU 2h05T0YP9dYN4x9QKuOS6eLNp75JzwTMRKbPA/uJ0p57h1gU9aKZaSProLaVU8JU03y+ /21A== X-Gm-Message-State: AOJu0Yw2EpEoWyvNSLWN+3D7aDLg2ZJyW7PxlHYNpOgPsA0gMK0ZKAvk 4Cq13D6lhD+Tz+w6Z4UtGIeVgwq+mN4EgLMfvs4pv3XcWZF8XN8VGiiIhbP9gnnvmJ3d/l03qoR cdH/g7J0K0duLp7oIUGVYsM1u6f+GrONt6TA= X-Google-Smtp-Source: AGHT+IEBwgSb6z28w6twctqF+IvGF/2LnbE10f4Csgmw3mkhozrFY476u506m8nlGZRMJH8bP2tJZniuSllPMO9clPU= X-Received: by 2002:a17:90a:ce:b0:29a:5748:a67b with SMTP id v14-20020a17090a00ce00b0029a5748a67bmr5880721pjd.11.1709529291371; Sun, 03 Mar 2024 21:14:51 -0800 (PST) MIME-Version: 1.0 References: <563000c6-5985-4ce3-b89a-e26fca45174f@fiee.net> In-Reply-To: From: Jeroen Date: Mon, 4 Mar 2024 06:14:39 +0100 Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: XFN44MVTDADECS22OT5A3D4SX4MLSXWX X-Message-ID-Hash: XFN44MVTDADECS22OT5A3D4SX4MLSXWX X-MailFrom: contextntg@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Local alternative to \input List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============2132359197779005180==" --===============2132359197779005180== Content-Type: multipart/alternative; boundary="00000000000025495e0612ceceb9" --00000000000025495e0612ceceb9 Content-Type: text/plain; charset="UTF-8" With a single environment it seems to work, though when I expand it to multiple, it does not seem to work anymore \starttext SomeText \\ \environment aaa \\ SomeText \\ \environment bbb \\ SomeText \\ \startenvironment aaa \samplefile{lorem} \stopenvironment \startenvironment bbb \samplefile{tufte} \stopenvironment \stoptext Op do 4 jan 2024 om 20:14 schreef Henning Hraban Ramm : > Am 04.01.24 um 18:00 schrieb Jeroen: > > I just would like to have a lot of mark-up for combined figures and > > tables etc moved out of the way, similar to this. I am loosing the > > general documetn flow because of all this markup. Would there be a > > construction similar to this: > > > > \starttext > > > > \environment foo > > \environment bar > > > > \startenvironment foo > > this is a lot of text > > \stopenvironment > > > > \startenvironment bar > > and this is another piece of text > > \stopenvironment > > > > \stoptext > > An environment is a separate file. > \environment is like \input with a few more checks, e.g. it loads the > file only once. > > e.g. > > -- file "env_foo.tex" -- > \startenvironment env_foo > % settings > \stopenvironment > -- > > > -- file document.tex -- > \environment env_foo > > \starttext > % whatever > \stoptext > -- > > Instead of the call within your document, you can also call > > context --environment=env_foo.tex document > > (Usually that makes only sense in XML workflows.) > > Hraban > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___________________________________________________________________________________ > --00000000000025495e0612ceceb9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
With a single environment it seems to work, though when I = expand=C2=A0it to multiple, it does not seem to work anymore

=
\starttext

SomeText \\
\environment aaa \\
SomeText \\\environment bbb \\
SomeText \\

\startenvironment aaa
\sample= file{lorem}
\stopenvironment

\startenvironment bbb
\samplefile= {tufte}
\stopenvironment

\stoptext

Op do 4 jan 2024 om = 20:14 schreef Henning Hraban Ramm <tex= ml@fiee.net>:
Am 04.01.24 um 18:00 schrieb Jeroen:
> I just would like to have a lot of mark-up for combined figures and > tables etc moved out of the way, similar to this. I am loosing the > general documetn flow because of all this markup. Would there be a > construction similar to this:
>
> \starttext
>
> \environment foo
> \environment bar
>
> \startenvironment foo
> this is a lot of text
> \stopenvironment
>
> \startenvironment bar
> and this is another piece of text
> \stopenvironment
>
> \stoptext

An environment is a separate file.
\environment is like \input with a few more checks, e.g. it loads the
file only once.

e.g.

-- file "env_foo.tex" --
\startenvironment env_foo
% settings
\stopenvironment
--


-- file document.tex --
\environment env_foo

\starttext
% whatever
\stoptext
--

Instead of the call within your document, you can also call

context --environment=3Denv_foo.tex document

(Usually that makes only sense in XML workflows.)

Hraban
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / https://mailman.ntg.nl/mail= man3/lists/ntg-context.ntg.nl
webpage=C2=A0 : https://www.pragma-ade.nl / https://context.aanhet.net= (mirror)
archive=C2=A0 : https://github.com/contextgarden/context=
wiki=C2=A0 =C2=A0 =C2=A0: https://wiki.contextgarden.net
___________________________________________________________________________= ________
--00000000000025495e0612ceceb9-- --===============2132359197779005180== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ --===============2132359197779005180==--