Re: [NTG-context] Equivalent of Includeonly?

2012-11-20 Thread H. Özoguz

Sorry, I did not get you. I was asking about Context, not Latex?!


m 19.11.2012 12:00, schrieb ntg-context-requ...@ntg.nl:

see
http://projekte.dante.de/DanteFAQ/GrosseDokumente
if you are familiar with german.

Suppose you have a 1500 pages document,  but you really
work only on the 7th chapter which has 30 pages with lots
of references to other chapters/sectionb/images/

with \includeonly{chap7} you get a 30 pages document but
with correct page numbers and correct references.

With only \input chap7  you have wrong page numbers and
missing references

Herbert


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


Re: [NTG-context] Equivalent of Includeonly?

2012-11-20 Thread Herbert Voss

Am 20.11.2012 09:20, schrieb H. Özoguz:

Sorry, I did not get you. I was asking about Context, not Latex?!


sure, I only explained the difference of \input and \include
respectively \includeonly and explained only the existing behaviour
in LaTeX. The same should be possible in ConTeXt.

Herbert




m 19.11.2012 12:00, schrieb ntg-context-requ...@ntg.nl:

see
http://projekte.dante.de/DanteFAQ/GrosseDokumente
if you are familiar with german.

Suppose you have a 1500 pages document,  but you really
work only on the 7th chapter which has 30 pages with lots
of references to other chapters/sectionb/images/

with \includeonly{chap7} you get a 30 pages document but
with correct page numbers and correct references.

With only \input chap7  you have wrong page numbers and
missing references

Herbert


___

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
___




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


Re: [NTG-context] Equivalent of Includeonly?

2012-11-20 Thread Thomas A. Schmitz

On 11/19/2012 01:41 PM, Hans Hagen wrote:

that there is a lua error ...

can you try with:

 if not component or component == componentname
then
 -- skip
 else


Hans,

yes, this appears to work! I now get page numbers etc. when I compile 
single components, and I could kick myself for not knowing this earlier...


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
___


Re: [NTG-context] Equivalent of Includeonly?

2012-11-19 Thread Wolfgang Schuster

Am 19.11.2012 um 09:30 schrieb H. Özoguz h.oezo...@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
___


Re: [NTG-context] Equivalent of Includeonly?

2012-11-19 Thread Schmitz Thomas A.

On Nov 19, 2012, at 9:47 AM, Wolfgang Schuster wolfgang.schus...@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
___


Re: [NTG-context] Equivalent of Includeonly?

2012-11-19 Thread Marco Patzer
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
___

Re: [NTG-context] Equivalent of Includeonly?

2012-11-19 Thread Hans Hagen

On 11/19/2012 9:56 AM, Schmitz Thomas A. wrote:


On Nov 19, 2012, at 9:47 AM, Wolfgang Schuster wolfgang.schus...@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
___


Re: [NTG-context] Equivalent of Includeonly?

2012-11-19 Thread Hans Hagen

On 11/19/2012 9:47 AM, Wolfgang Schuster wrote:


Am 19.11.2012 um 09:30 schrieb H. Özoguz h.oezo...@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
___


Re: [NTG-context] Equivalent of Includeonly?

2012-11-19 Thread H. Özoguz




\startproduct mydocument

\component one
\component two
\component three
\component four

\stopproduct

Wolfgang


I always use \input for the chapters of books - what is the difference to 
component? I looked into the wiki, but didn't get the difference.

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
___


Re: [NTG-context] Equivalent of Includeonly?

2012-11-19 Thread Herbert Voss

Am 19.11.2012 10:47, schrieb H. Özoguz:




\startproduct mydocument

\component one
\component two
\component three
\component four

\stopproduct

Wolfgang


I always use \input for the chapters of books - what is the difference
to component? I looked into the wiki, but didn't get the difference.


see
http://projekte.dante.de/DanteFAQ/GrosseDokumente
if you are familiar with german.

Suppose you have a 1500 pages document,  but you really
work only on the 7th chapter which has 30 pages with lots
of references to other chapters/sectionb/images/

with \includeonly{chap7} you get a 30 pages document but
with correct page numbers and correct references.

With only \input chap7  you have wrong page numbers and
missing references

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


Re: [NTG-context] Equivalent of Includeonly?

2012-11-19 Thread Wolfgang Schuster

Am 19.11.2012 um 10:35 schrieb Hans Hagen pra...@wxs.nl:

 On 11/19/2012 9:47 AM, Wolfgang Schuster wrote:
 
 Am 19.11.2012 um 09:30 schrieb H. Özoguz h.oezo...@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
___


Re: [NTG-context] Equivalent of Includeonly?

2012-11-19 Thread Herbert Voss
Wolfgang Schuster schrieb:

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

because every file defined with \includeonly gets its own .aux file which
is _aöways_ read by the main tex file. The reason why all page numbers and
refences are correct.

Herbert

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

Re: [NTG-context] Equivalent of Includeonly?

2012-11-19 Thread Thomas A. Schmitz

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
___


Re: [NTG-context] Equivalent of Includeonly?

2012-11-19 Thread Hans Hagen

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
___