Project structure light
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 --------------------------
On 3/1/2021 5:54 PM, denis.maier@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 -----------------------------------------------------------------
denis.maier@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
participants (3)
-
denis.maier@ub.unibe.ch
-
Hans Hagen
-
Wolfgang Schuster