ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Project structure light
@ 2021-03-01 16:54 denis.maier
  2021-03-01 17:07 ` Hans Hagen
  2021-03-01 17:12 ` Wolfgang Schuster
  0 siblings, 2 replies; 3+ messages in thread
From: denis.maier @ 2021-03-01 16:54 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 613 bytes --]

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
--------------------------



[-- Attachment #1.2: Type: text/html, Size: 3468 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Project structure light
  2021-03-01 16:54 Project structure light denis.maier
@ 2021-03-01 17:07 ` Hans Hagen
  2021-03-01 17:12 ` Wolfgang Schuster
  1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2021-03-01 17:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users, denis.maier

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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Project structure light
  2021-03-01 16:54 Project structure light denis.maier
  2021-03-01 17:07 ` Hans Hagen
@ 2021-03-01 17:12 ` Wolfgang Schuster
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2021-03-01 17:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 712 bytes --]

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


[-- Attachment #1.2: Type: text/html, Size: 2317 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-01 17:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-01 16:54 Project structure light denis.maier
2021-03-01 17:07 ` Hans Hagen
2021-03-01 17:12 ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).