Carlos schrieb am 20.08.2023 um 17:51:
On Sun, Aug 20, 2023 at 03:38:15PM +0200, Wolfgang Schuster wrote:
Carlos schrieb am 19.08.2023 um 15:32:
On Fri, Aug 18, 2023 at 08:58:58PM +0200, Wolfgang Schuster wrote:
Hi,

1. Learn to two provide a working minimal example which shows the problem.

Did the minimal example I provided earlier wasn't enough for you?

Besides, You know perfectly well that \stoptext is not even necessary,
superflous; it's not required to compile any context flavor file for
ages now.

So I suggest you to save those keystrokes for other tasks. Not those,
petty petty betty. I know it's hard to teach an ol' dog new tricks,
but… it's worth to try! right?
Please explain why this example (which is a valid ConTeXt document) works

Opening a group with \starttext makes no sense because there is nothing after 
\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 \starttext in its
definition.

%%%% begin example
\starttext

\starttext

\stoptext

\stoptext
%%%% end example

but this doesn't.

%%%% begin example
\starttext

\starttext
%%%% end example

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

As you can see the luatex engine processes the file cont-yes.mkiv and not your 
document which put as argument to context. Your document is just read by 
cont-yes.mkiv and at the end of the document ConTeXt inserts an extra \stoptext 
which is ignored when your document
is valid (equal number of \starttext and \stoptext).

Wolfgang. I do appreciate your emphasis and your input on all of this.
I do. I really do. But we can't go over this, over and over again. Do
you know who said the above? Not me. You. Do you know whose remarks
are those? Not mine.  Yours.

Just because ConTeXt fixes your mistake doesn't mean you should abuse it and *no* user should learn from your example.

Each ConTeXt document should contain a starttext/stoptext  pair or equivalent commands (e.g. startdocument/stopdocument or startproduct/stopproduct).

Replace cont-yes.mkiv with the newer equivalent. And you're right though. 
\starttext is not even needed most of the times.

And now it gets even worse, see https://meeting.contextgarden.net/2021/talks/2021-09-21/starttext.pdf why \starttext is necessary.

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

Reply via email to