From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/100443 Path: news.gmane.org!.POSTED!not-for-mail From: "John Culleton" Newsgroups: gmane.comp.tex.context Subject: Re: Questions about \starttext Date: Mon, 2 Apr 2018 15:03:09 -0700 Message-ID: References: <20180320113810.GA11776@akela.mendelu.cz> <5AC278E4.5090802@gmail.com> Reply-To: sales@wexfordpress.com, mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2707585973463409108==" X-Trace: blaine.gmane.org 1522706699 20151 195.159.176.226 (2 Apr 2018 22:04:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 2 Apr 2018 22:04:59 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 03 00:04:55 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f37ZP-0005Au-IC for gctc-ntg-context-518@m.gmane.org; Tue, 03 Apr 2018 00:04:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C7A365C9CB6; Tue, 3 Apr 2018 00:03:36 +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 68xUKskPxJbO; Tue, 3 Apr 2018 00:03:36 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 0D0745C9CB7; Tue, 3 Apr 2018 00:03:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 70EC95C9CB6 for ; Tue, 3 Apr 2018 00:03:35 +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 7QSvwLwhFV_0 for ; Tue, 3 Apr 2018 00:03:34 +0200 (CEST) Original-Received: from dpmailmta02.doteasy.com (dpmailmta02-38.doteasy.com [65.61.219.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id CCE185C9CB4 for ; Tue, 3 Apr 2018 00:03:23 +0200 (CEST) X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=192.168.101.84; Original-Received: from dpmailrp04.doteasy.com (unverified [192.168.101.84]) by dpmailmta02.doteasy.com (DEO) with ESMTP id 25975299-1393315 for ; Mon, 02 Apr 2018 15:03:21 -0700 Original-Received: from dpsmartmail45.doteasy.com (dpsmartmail45.doteasy.com [192.168.101.45]) by dpmailrp04.doteasy.com (8.14.4/8.14.4/Debian-8+deb8u2) with ESMTP id w32M3L6p030886 for ; Mon, 2 Apr 2018 15:03:21 -0700 X-SmarterMail-Authenticated-As: sales@wexfordpress.com Original-Received: by dpmail104.doteasy.com via HTTP; Mon, 2 Apr 2018 15:03:09 -0700 X-X-Originating-IP: [69.143.255.9] In-Reply-To: <5AC278E4.5090802@gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: base:default, @@RPTN) X-CanIt-Geo: No geolocation information available for 192.168.101.45 X-CanItPRO-Stream: base:default X-Canit-Stats-ID: 01Vty3lq5 - 338cd86fab2b - 20180402 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.168.101.84 X-Originating-IP: 192.168.101.84 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:100443 Archived-At: This is a multipart message in MIME format. --===============2707585973463409108== Content-Type: multipart/alternative; boundary=31acc4fe3fa3448a95b3eb5627501d2e This is a multipart message in MIME format. --31acc4fe3fa3448a95b3eb5627501d2e Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable ---------------------------------------- From: "Wolfgang Schuster" Sent: Monday, April 2, 2018 2:41 PM To: "mailing list for ConTeXt users" Subject: Re: [NTG-context] Questions about \starttext Tomas Hala 20. M=E4rz 2018 um 12:43 Hi all, doing some tests I discovered two interesting facts. The first is that commands \starttext and \stoptext do not behave as a grou= p. Minimal example (tested on TL2015, TL2016, TL2017, current CTX from the Gar= den): \starttext text \starttext \bf text \stoptext text % this text is in bold, too. \stoptext Is this the expected behaviour, or not? Opening a group with \starttext makes no sense because there is nothing aft= er \stoptext. The possibility to nest \starttext is necessary when you \startproduct etc.= where components can be be documents on its own and this means \startcomponent includes \sta= rttext in its definition. The second interesting thing is that the unbalanced document is compile= d without protests: Minimal example #1 (tested on TL2015, TL2016, TL2017, current CTX from the = Garden): \starttext text % in this case, the "text" is shipped out Take a look at the command line when you process a file and you should see = something like this: mtx-context | run 1: luatex --fmt=3D"[...]/cont-en" --jobname=3D"test" = [...] --c:input=3D"./test.tex" [...] "cont-yes.mkiv" As you can see the luatex engine processes the file cont-yes.mkiv and not y= our document which put as argument to context. Your document is just read by cont-yes.mk= iv and at the end of the document ConTeXt inserts an extra \stoptext which is ignored whe= n your document is valid (equal number of \starttext and \stoptext). Minimal example #2 (tested on TL2015, TL2016, TL2017, current CTX from = the Garden): text % in this case, the "text" is not shipped out \stoptext The reason why no text appears is that ConTeXt doesn't load the default fon= ts untill \starttext. The reason for this is to is a gain in speed and you sav= e resources. You can test this by adding \setupbodyfont[modern] at the begin of your exa= mple. Wolfgang --31acc4fe3fa3448a95b3eb5627501d2e Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable =
 
 
 
 

From: "Wolfgang Schuster" <schuster.wolfgang@gmail.com= >
Sent: Monday, April 2, 2018 2:41 PM
To: "mailing list for ConTeXt users" <ntg-context@ntg.n= l>
Subject: Re: [NTG-context] Questions about \starttext
 
 
20. M&aum= l;rz 2018 um 12:43
Hi all,

doing some tests I discovered two interesting facts.

The first is that commands \starttext and \stoptext do not behave as a grou= p.

Minimal example (tested on TL2015, TL2016, TL2017, current CTX from the Gar= den):

\starttext
text
\starttext
\bf text
\stoptext
text % this text is in bold, too.
\stoptext

Is this the expected behaviour, or not?

Opening a group with \starttext makes no sense because there is nothing aft= er \stoptext.

The possibility to nest \starttext is necessary when you \startproduct etc.= where components
can be be documents on its own and this means \startcomponent includes \sta= rttext in its
definition.
 
The second interesting thing is that the unbalanced document is compil= ed without protests:

Minimal example #1 (tested on TL2015, TL2016, TL2017, current CTX from the = Garden):

\starttext
text % in this case, the "text" is shipped out

Take a look at the command line when you process a file and you should see = something like this:

mtx-context     | run 1: luatex --fmt=3D"[...]/con= t-en" --jobname=3D"test" [...] --c:input=3D"./test.tex&= quot; [...] "cont-yes.mkiv"


As you can see the luatex engine processes the file cont-yes.mkiv and not y= our document
which put as argument to context. Your document is just read by cont-yes.mk= iv and at the
end of the document ConTeXt inserts an extra \stoptext which is ignored whe= n your document
is valid (equal number of \starttext and \stoptext).
 
Minimal example #2 (tested on TL2015, TL2016, TL2017, current CTX from= the Garden):

text % in this case, the "text" is not shipped out
\stoptext

The reason why no text appears is that ConTeXt doesn’t load the defau= lt fonts
untill \starttext. The reason for this is to is a gain in speed and you sav= e resources.

You can test this by adding \setupbodyfont[modern] at the begin of your exa= mple.


Wolfgang
 
--31acc4fe3fa3448a95b3eb5627501d2e-- --===============2707585973463409108== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============2707585973463409108==--