[NTG-context] Merging source ConTeXt files during compilation of main file

2018-02-19 Thread Jaroslav Hajtmar
Hello ConTeXist.
I have one main file and a large number of component files. I would like to 
merge all files in the right order without having to do it manually.
Is there a way to automatically merge several source files during the 
compilation of ConTeXt source text, which are loading using the input command 
or the component command? Example:

\starttext

Source code of main source….

\component file1
\component file2
\component file3 % etc.

Source code of main source….

\stoptext


The result should be one single source file that is created by merging all 
files and which can be compiled as one file:

\starttext

Source code of main source….

Contents of  file1

Contents of  file2

Contents of  file3

% etc.

Source code of main source….

\stoptext


Consequently, this file can be compiled, for example, with the online version 
of ConTeXt at live.contextgarden.net.

Thanx for any advice.

Jaroslav Hajtmar
___
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] Merging source ConTeXt files during compilation of main file

2018-02-19 Thread Jaroslav Hajtmar
Hello ConTeXist.
I have one main file and a large number of component files. I would like to 
merge all files in the right order without having to do it manually.
Is there a way to automatically merge several source files during the 
compilation of ConTeXt source text, which are loading using the input command 
or the component command? Example:

\starttext

Source code of main source….

\component file1
\component file2
\component file3 % etc.

Source code of main source….

\stoptext


The result should be one single source file that is created by merging all 
files and which can be compiled as one file:

\starttext

Source code of main source….

Contents of  file1

Contents of  file2

Contents of  file3

% etc.

Source code of main source….

\stoptext


Consequently, this file can be compiled, for example, with the online version 
of ConTeXt at live.contextgarden.net.

Thanx for any advice.

Jaroslav Hajtmar





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