Re: Questions about \start-ing things with \environment and \project
Henning Hraban Ramm <[email protected]>
| Newsgroups | gmane.comp.tex.context |
|---|---|
| Message-ID | <[email protected]> |
Am 25.03.26 um 21:17 schrieb Jim: > Using LMTX, if instead of \starttext and \stoptext, I have either > (a) \startcomponent[aaa] Hello \stopcomponent > or > (b) \startproduct[aaa] Hello \stopproduct > then running context on such a file gives me a PDF with "Hello" in it. > > Contrariwise, if I use > (c) \startproject[aaa] Hello \startproject > I get a PDF with a page number, but no "Hello". That’s expected. The project is not meant to be typeset. > AIUI, when LMTX sees \starttext it does some initialization, > as well as signalling that actual textual content follows. > > Q1: Do \startcomponent and \startproduct do the same initialization > as \starttext, so that I will see the same output, or will things be > different in some situations? It should be the same. > Q2: Is it "accidental" that \startcomponent and \startproduct work for me > right now, or is it part of ConTeXt's design that they work like this? You should be able to typeset a single component, but (in my older experience, not recently checked) you must include the \environment, and it can matter if your components are in subdirectories (paths of environment, images etc.). > Q3: When one uses \startproduct, does it matter if any \environment > commands go before or after? That is, are both of these equally valid, > or is one The Right Way and one The Wrong Way? > (a) > \environment myenv > \startproduct mydoc > ... > (b) > \startproduct mydoc > \environment myenv > ... > Q4: When one uses \startproduct, does it matter if any \project > commands go before or after? That is, are both of these equally valid, > or is one The Right Way and one The Wrong Way? > (a) > \project myproject > \startproduct mydoc > ... > (b) > \startproduct mydoc > \project myproject > ... Not sure. I have \environment, \project etc. after \startcomponent / \startproduct > Q5: In addition to \starttext, \startTEXpage, \startcomponent and > \startproduct, are there any other \start<something> commands which > signify the start of the text to be typeset? e.g. \startdocument or any other “documents” that are defined with \definedocument also \startMPpage Hraban ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : [email protected] / 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 ___________________________________________________________________________________