[parent not found: <mailman.5.1353322801.15079.ntg-context@ntg.nl>]
* Equivalent of Includeonly?
@ 2012-11-19 8:30 "H. Özoguz"
2012-11-19 8:47 ` Wolfgang Schuster
2012-11-19 9:30 ` Marco Patzer
0 siblings, 2 replies; 15+ messages in thread
From: "H. Özoguz" @ 2012-11-19 8:30 UTC (permalink / raw)
To: ntg-context
Is there an equivalent of the LaTeX "\includeonly" ? - I'm working on
books (nearly only on books), so such a command would speed up my work.
Huseyin
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Equivalent of Includeonly?
2012-11-19 8:30 "H. Özoguz"
@ 2012-11-19 8:47 ` Wolfgang Schuster
2012-11-19 8:56 ` Schmitz Thomas A.
2012-11-19 9:35 ` Hans Hagen
2012-11-19 9:30 ` Marco Patzer
1 sibling, 2 replies; 15+ messages in thread
From: Wolfgang Schuster @ 2012-11-19 8:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 19.11.2012 um 09:30 schrieb H. Özoguz <h.oezoguz@mmnetz.de>:
> Is there an equivalent of the LaTeX "\includeonly" ? - I'm working on books (nearly only on books), so such a command would speed up my work.
No there isn’t.
@Hans: With with \includeonly and \excludeonly command you can specify which external files should be included in the document by the \inlcude{…} (a special version of \input{…}) command.
When you add \includeonly{one,three} in the following example only the files “one.tex” and “three.tex” will be included and the other two are ignored. With \excludeonly{two,three} the files “one.tex” and “four.tex” are read but two and three are ignored.
\startproduct mydocument
\component one
\component two
\component three
\component four
\stopproduct
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Equivalent of Includeonly?
2012-11-19 8:47 ` Wolfgang Schuster
@ 2012-11-19 8:56 ` Schmitz Thomas A.
2012-11-19 9:33 ` Hans Hagen
2012-11-19 9:35 ` Hans Hagen
1 sibling, 1 reply; 15+ messages in thread
From: Schmitz Thomas A. @ 2012-11-19 8:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Nov 19, 2012, at 9:47 AM, Wolfgang Schuster <wolfgang.schuster@gmail.com> wrote:
> No there isn’t.
>
>
> @Hans: With with \includeonly and \excludeonly command you can specify which external files should be included in the document by the \inlcude{…} (a special version of \input{…}) command.
>
> When you add \includeonly{one,three} in the following example only the files “one.tex” and “three.tex” will be included and the other two are ignored. With \excludeonly{two,three} the files “one.tex” and “four.tex” are read but two and three are ignored.
>
> \startproduct mydocument
>
> \component one
> \component two
> \component three
> \component four
>
> \stopproduct
>
> Wolfgang
> _________
That reminds me: at the context meeting 2011, we talked about the possibility of retaining page numbers, cross-references, etc. when compiling just one component. Hans. you, said this wasn't too complex (because all the information is already there in the tuc file). Is this possible now, or can we have that in the near future? :-)
Thomas
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Equivalent of Includeonly?
2012-11-19 8:56 ` Schmitz Thomas A.
@ 2012-11-19 9:33 ` Hans Hagen
2012-11-19 11:47 ` Thomas A. Schmitz
0 siblings, 1 reply; 15+ messages in thread
From: Hans Hagen @ 2012-11-19 9:33 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Schmitz Thomas A.
On 11/19/2012 9:56 AM, Schmitz Thomas A. wrote:
>
> On Nov 19, 2012, at 9:47 AM, Wolfgang Schuster <wolfgang.schuster@gmail.com> wrote:
>
>> No there isn’t.
>>
>>
>> @Hans: With with \includeonly and \excludeonly command you can specify which external files should be included in the document by the \inlcude{…} (a special version of \input{…}) command.
>>
>> When you add \includeonly{one,three} in the following example only the files “one.tex” and “three.tex” will be included and the other two are ignored. With \excludeonly{two,three} the files “one.tex” and “four..tex” are read but two and three are ignored.
>>
>> \startproduct mydocument
>>
>> \component one
>> \component two
>> \component three
>> \component four
>>
>> \stopproduct
>>
>> Wolfgang
>> _________
>
> That reminds me: at the context meeting 2011, we talked about the possibility of retaining page numbers, cross-references, etc. when compiling just one component. Hans. you, said this wasn't too complex (because all the information is already there in the tuc file). Is this possible now, or can we have that in the near future? :-)
this is already in place for a while given that one uses the right
structures:
http://www.pragma-ade.com/general/magazines/mag-1103.pdf
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Equivalent of Includeonly?
2012-11-19 9:33 ` Hans Hagen
@ 2012-11-19 11:47 ` Thomas A. Schmitz
2012-11-19 12:41 ` Hans Hagen
0 siblings, 1 reply; 15+ messages in thread
From: Thomas A. Schmitz @ 2012-11-19 11:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 11/19/2012 10:33 AM, Hans Hagen wrote:
> this is already in place for a while given that one uses the right
> structures:
>
> http://www.pragma-ade.com/general/magazines/mag-1103.pdf
Oops, sorry, I must have missed this! But I can't get it working. After
adding
\setupreferencing[autofile=yes]
\setupinteraction[state=start]
to all components, compiling single components fails with
! LuaTeX error
...text/tex/texmf-context/tex/context/base/strc-ref.lua:902: table index
is nil
stack traceback:
...text/tex/texmf-context/tex/context/base/strc-ref.lua:902: in
function 'loadproductreferences'
...text/tex/texmf-context/tex/context/base/strc-ref.lua:1021: in
function 'loadpresets'
...text/tex/texmf-context/tex/context/base/strc-ref.lua:1043: in
function 'useproduct'
<main ctx instance>:1: in main chunk.
system > tex > error on line 6 in file test.tex: LuaTeX error ...
Any idea what this might mean?
All best
Thomas
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Equivalent of Includeonly?
2012-11-19 11:47 ` Thomas A. Schmitz
@ 2012-11-19 12:41 ` Hans Hagen
2012-11-20 10:25 ` Thomas A. Schmitz
0 siblings, 1 reply; 15+ messages in thread
From: Hans Hagen @ 2012-11-19 12:41 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Thomas A. Schmitz
On 11/19/2012 12:47 PM, Thomas A. Schmitz wrote:
> On 11/19/2012 10:33 AM, Hans Hagen wrote:
>> this is already in place for a while given that one uses the right
>> structures:
>>
>> http://www.pragma-ade.com/general/magazines/mag-1103.pdf
>
> Oops, sorry, I must have missed this! But I can't get it working. After
> adding
>
> \setupreferencing[autofile=yes]
> \setupinteraction[state=start]
>
> to all components, compiling single components fails with
>
> ! LuaTeX error
> ....text/tex/texmf-context/tex/context/base/strc-ref.lua:902: table
> index is nil
> stack traceback:
> ...text/tex/texmf-context/tex/context/base/strc-ref.lua:902: in
> function 'loadproductreferences'
> ...text/tex/texmf-context/tex/context/base/strc-ref.lua:1021: in
> function 'loadpresets'
> ...text/tex/texmf-context/tex/context/base/strc-ref.lua:1043: in
> function 'useproduct'
> <main ctx instance>:1: in main chunk.
>
> system > tex > error on line 6 in file test.tex: LuaTeX error ...
>
> Any idea what this might mean?
that there is a lua error ...
can you try with:
if not component or component == componentname then
-- skip
else
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Equivalent of Includeonly?
2012-11-19 8:47 ` Wolfgang Schuster
2012-11-19 8:56 ` Schmitz Thomas A.
@ 2012-11-19 9:35 ` Hans Hagen
2012-11-19 10:55 ` Wolfgang Schuster
1 sibling, 1 reply; 15+ messages in thread
From: Hans Hagen @ 2012-11-19 9:35 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster
On 11/19/2012 9:47 AM, Wolfgang Schuster wrote:
>
> Am 19.11.2012 um 09:30 schrieb H. Özoguz <h.oezoguz@mmnetz.de>:
>
>> Is there an equivalent of the LaTeX "\includeonly" ? - I'm working on books (nearly only on books), so such a command would speed up my work.
>
> No there isn’t.
>
>
> @Hans: With with \includeonly and \excludeonly command you can specify which external files should be included in the document by the \inlcude{…} (a special version of \input{…}) command.
>
> When you add \includeonly{one,three} in the following example only the files “one.tex” and “three.tex” will be included and the other two are ignored. With \excludeonly{two,three} the files “one.tex” and “four.tex” are read but two and three are ignored.
>
> \startproduct mydocument
>
> \component one
> \component two
> \component three
> \component four
>
> \stopproduct
\startproduct mysmalldocument
\component one
\component three
\stopproduct
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Equivalent of Includeonly?
2012-11-19 9:35 ` Hans Hagen
@ 2012-11-19 10:55 ` Wolfgang Schuster
2012-11-19 11:12 ` Herbert Voss
0 siblings, 1 reply; 15+ messages in thread
From: Wolfgang Schuster @ 2012-11-19 10:55 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster
Am 19.11.2012 um 10:35 schrieb Hans Hagen <pragma@wxs.nl>:
> On 11/19/2012 9:47 AM, Wolfgang Schuster wrote:
>>
>> Am 19.11.2012 um 09:30 schrieb H. Özoguz <h.oezoguz@mmnetz.de>:
>>
>>> Is there an equivalent of the LaTeX "\includeonly" ? - I'm working on books (nearly only on books), so such a command would speed up my work.
>>
>> No there isn’t.
>>
>>
>> @Hans: With with \includeonly and \excludeonly command you can specify which external files should be included in the document by the \inlcude{…} (a special version of \input{…}) command.
>>
>> When you add \includeonly{one,three} in the following example only the files “one.tex” and “three.tex” will be included and the other two are ignored. With \excludeonly{two,three} the files “one.tex” and “four.tex” are read but two and three are ignored.
>>
>> \startproduct mydocument
>>
>> \component one
>> \component two
>> \component three
>> \component four
>>
>> \stopproduct
>
> \startproduct mysmalldocument
>
> \component one
> \component three
>
> \stopproduct
This doesn’t the same because with \includeonly the chapter/figure/page/etc. counters from the skipped files are honored like they do with single component files from Thomas request.
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Equivalent of Includeonly?
2012-11-19 8:30 "H. Özoguz"
2012-11-19 8:47 ` Wolfgang Schuster
@ 2012-11-19 9:30 ` Marco Patzer
1 sibling, 0 replies; 15+ messages in thread
From: Marco Patzer @ 2012-11-19 9:30 UTC (permalink / raw)
To: ntg-context
2012-11-19 H. Özoguz:
> Is there an equivalent of the LaTeX "\includeonly" ?
You can place individual chapters in components and use the mode
mechanism:
\startproduct *
\startmodeset
[alpha] {\component [alpha]}
[beta] {\component [beta]}
[gamma] {\component [gamma]}
\stopmodeset
\stopproduct
Then compile with `context --mode=alpha,gamma main.tex`.
http://wiki.contextgarden.net/Project_structure
Marco
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2012-11-20 10:25 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <mailman.246.1353317095.2161.ntg-context@ntg.nl>
2012-11-19 9:47 ` Equivalent of Includeonly? "H. Özoguz"
2012-11-19 10:25 ` Herbert Voss
[not found] <mailman.5.1353322801.15079.ntg-context@ntg.nl>
2012-11-20 8:20 ` "H. Özoguz"
2012-11-20 8:35 ` Herbert Voss
2012-11-19 8:30 "H. Özoguz"
2012-11-19 8:47 ` Wolfgang Schuster
2012-11-19 8:56 ` Schmitz Thomas A.
2012-11-19 9:33 ` Hans Hagen
2012-11-19 11:47 ` Thomas A. Schmitz
2012-11-19 12:41 ` Hans Hagen
2012-11-20 10:25 ` Thomas A. Schmitz
2012-11-19 9:35 ` Hans Hagen
2012-11-19 10:55 ` Wolfgang Schuster
2012-11-19 11:12 ` Herbert Voss
2012-11-19 9:30 ` Marco Patzer
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).