Re: [NTG-context] Project structure light

2021-03-01 Thread Wolfgang Schuster

denis.ma...@ub.unibe.ch schrieb am 01.03.2021 um 17:54:


Hi,

another question regarding project structure. I want to put each 
chapter of a book in a component or a distinct file loaded with 
\input, but I don’t want to have a full project structure. Just a main 
file and the chapters. Nevertheless, I want to load the environment 
file in each subfile. Is that possible or will that cause problems?




There is no problem with this method because environment files are 
loaded only once, all further attempts to load the same file are ignored.


Even though replacing \input with \component can be useful because 
\component doesn't generate a error when the given file doesn't exist.


Wolfgang

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

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


Re: [NTG-context] Project structure light

2021-03-01 Thread Hans Hagen

On 3/1/2021 5:54 PM, denis.ma...@ub.unibe.ch wrote:

Hi,

another question regarding project structure. I want to put each chapter 
of a book in a component or a distinct file loaded with \input, but I 
don’t want to have a full project structure. Just a main file and the 
chapters. Nevertheless, I want to load the environment file in each 
subfile. Is that possible or will that cause problems?


Best,

Denis

main.tex

--

\environment test

\starttext

\input chapter1

\stoptext

--

chapter1.tex

--

\environment test

\starttext

Some text.

\stoptext

many of the manuals are that way, just look in the doc subtree for examples

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Project structure light

2021-03-01 Thread denis.maier
Hi,
another question regarding project structure. I want to put each chapter of a 
book in a component or a distinct file loaded with \input, but I don't want to 
have a full project structure. Just a main file and the chapters. Nevertheless, 
I want to load the environment file in each subfile. Is that possible or will 
that cause problems?
Best,
Denis

main.tex
--
\environment test
\starttext
\input chapter1
\stoptext
--

chapter1.tex
--
\environment test
\starttext
Some text.
\stoptext
--


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

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