Re: [NTG-context] Re: [OS X TeX] TeX run : 8

2005-03-02 Thread Steffen Wolfrum
Hans Hagen [EMAIL PROTECTED] wrote:
 Steffen Wolfrum wrote:
  TEST.tex
  \startproject TEST
  \startfrontmatter
  \component PARTS/ONE.tex
  \component PARTS/TWO.tex
  \stopfrontmatter
  \stopproject
 
 
  ONE.tex
  \startcomponent ONE
  text
  \stopcomponent
 
  TWO.tex
  \startcomponent TWO
  text
  \stopcomponent
 
 
 
  The Mac output (plus the Win output) were unfortunately bounced back -
  Message body is too big: 59628 bytes with a limit of 40 KB.
 texexec test --pdf --runs=1
 copy test.tui 1.tui
 texexec test --pdf --runs=2
 copy test.tui 2.tui
 texexec test --pdf --runs=3
 copy test.tui 3.tui
 texexec test --pdf
 copy test.tui n.tui
 where do the tui's difer?
 Hans

They don't. They are all the same.
But nevertheless texexec test --pdf ran 8 runs ...
Steffen
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: [OS X TeX] TeX run : 8

2005-03-02 Thread Hans Hagen
Steffen Wolfrum wrote:
Hans Hagen [EMAIL PROTECTED] wrote:
 Steffen Wolfrum wrote:
  TEST.tex
  \startproject TEST
  \startfrontmatter
  \component PARTS/ONE.tex
  \component PARTS/TWO.tex
  \stopfrontmatter
  \stopproject
(not related to the problem but ...)
projects normally only have references to products/components/environments, so 
you example should be:

\startproduct TEST
\startfrontmatter
\component PARTS/ONE.tex
\component PARTS/TWO.tex
\stopfrontmatter
\stopproduct
Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Unexpected changes with pdfeTeX 1.20 (?)

2005-03-01 Thread Steffen Wolfrum
Hi,
while looking closer at the result of typesetting an older (Nov. 
2004) document with todays pdfeTeX and context stuff I noticed that 
the layout of my TOC changed:

Normally I write all setups in a SetupEnvironment file that is loaded 
at the beginning of a project structure.
Like this:

\startproject WLTHR_1
\environment SetupEnvironment_WLTHR
\startfrontmatter
\component Kapitel/Titelei
\component Kapitel/Vorwort
\completecontent
\stopfrontmatter
\startbodymatter
\component Kapitel/Kap_1
\component Kapitel/Kap_2
\component Kapitel/Kap_3
\component Kapitel/Kap_4
\component Kapitel/Kap_5
\stopbodymatter
\startbackmatter
\component Kapitel/Katalog
\component Kapitel/Literatur
\stopbackmatter
\stopproject
But as in SetupEnvironment also \setupindenting is set, now the TOC 
gets this indenting too!
Once (2004, before pdfeTeX 1.20 ?) this didn't affect the generated 
\completecontent - only the real \component files.

Is this change known? Are there more differences like this, so one 
knows what to look for when typesetting older documents with new TeX 
(ConTeXt?) files?

Steffen

A minimal test looks like this:
\starttext
\showframe
\showgrid
\definecombinedlist[content]
[chapter,section][level=section]
\setupindenting[30pt]% 
\completecontent% ---
%\setupindenting[30pt]% 
\chapter{Kapitel}
text
\section{Unterkapitel}
text
\section{Unterkapitel}
text
\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Unexpected changes with pdfeTeX 1.20 (?)

2005-03-01 Thread h h extern
Steffen Wolfrum wrote:
Hi,
while looking closer at the result of typesetting an older (Nov. 2004) 
document with todays pdfeTeX and context stuff I noticed that the layout 
of my TOC changed:

Normally I write all setups in a SetupEnvironment file that is loaded at 
the beginning of a project structure.
Like this:

\startproject WLTHR_1
\environment SetupEnvironment_WLTHR
\startfrontmatter
\component Kapitel/Titelei
\component Kapitel/Vorwort
\completecontent
\stopfrontmatter
\startbodymatter
\component Kapitel/Kap_1
\component Kapitel/Kap_2
\component Kapitel/Kap_3
\component Kapitel/Kap_4
\component Kapitel/Kap_5
\stopbodymatter
\startbackmatter
\component Kapitel/Katalog
\component Kapitel/Literatur
\stopbackmatter
\stopproject
But as in SetupEnvironment also \setupindenting is set, now the TOC gets 
this indenting too!
Once (2004, before pdfeTeX 1.20 ?) this didn't affect the generated 
\completecontent - only the real \component files.

Is this change known? Are there more differences like this, so one knows 
what to look for when typesetting older documents with new TeX 
(ConTeXt?) files?

Steffen

A minimal test looks like this:
\starttext
\showframe
\showgrid
\definecombinedlist[content]
[chapter,section][level=section]
\setupindenting[30pt]% 
\completecontent% ---
%\setupindenting[30pt]% 
\chapter{Kapitel}
text
\section{Unterkapitel}
text
\section{Unterkapitel}
text
\stoptext
fix (\dontleavehmode - \noindent) in core-sec.tex; you can put the patch in 
cont-new.tex if you have a recent version

\def\dodofixdlistelementABC#1#2#3#4#5#6% weeden
  {\endgraf
   \leftskip\listparameter\c!margin% na de \endgraf !
   \listparameter\c!before
   \!!widthc\listparameter\c!distance
   \doifelse{\listparameter\c!width}\v!fit
 {\!!widtha\zeropoint}
 {\doifelsenothing{#3}
{\doifelse{\listparameter\c!aligntitle}\v!yes
   {\!!widtha\zeropoint
\!!widthc\zeropoint}
   {\!!widtha\listparameter\c!width}}
{\!!widtha\listparameter\c!width}}%
   \getvalue{\??li\c!alternative\listparameter\c!alternative}%
   \endgraf
   \def\makelistelement##1##2%
 {\doifelse{\listparameter\c!interaction}{##1}
{\setbox0\hbox{\showcontrastlocation\??ia{#6}{##2}}%
 \linklisttoelement{#2}{#5}{#6}{\box0}}%{\copy0}}%
{\hbox{##2}}}%
   \doif{\listparameter\c!interaction}\v!text % not supported
 {\setlistparameter\currentlist\c!interaction\v!all}%
 % \dontleavehmode % new, else no margin, but wrong
   \noindent
   \makelistelement\v!all
 {\setlocalhsize \hsize\localhsize \hbox to \hsize
{\forgetall
 \dostartlistattributes\c!style\c!color\empty
 \!!widthb\hsize
 \setbox2\hbox \ifdim\!!widtha\zeropoint to \!!widtha \fi
   {\makelistelement\v!sectionnumber
  {\donestedlistattributes\c!numberstyle\c!numbercolor
 {\listparameter\c!numbercommand{\currentlistsymbol}}%
\hfill}}%
 \setbox4\hbox
   {\doif{\listparameter\c!pagenumber}\v!yes
  {\doifsomething{#5}% \listwidth is new ; temp hack
 {\hbox \ifdim\listwidth\zeropoint to \listwidth\fi
{\hfill
 \makelistelement\v!pagenumber
   {\donestedlistattributes\c!pagestyle\c!pagecolor
  {\listparameter\c!pagecommand
 {\pageprefix\??li\currentlist[#5]%
  \translatednumber[#5]}}}%
 \vbox
   {\hsize\!!widthb
\setupalign[\listparameter\c!align]%
\ifdim\!!widtha\hsize
  \hangindent\wd2
  \dimen2=\!!widthc % \listparameter\c!distance
  \advance\hangindent \dimen2
  \hangafter\plusone
  \doif{\listparameter\c!hang}\v!no{\hangafter\zerocount}%
  \ifdim\wd4=\zeropoint % \ifvoid4
% we kunnen gewoon afbreken aan het eind
  \else
\ifdim\listskip\zeropoint\relax
  \rightskip\listskip\!!plus10em\relax
  \parfillskip-\rightskip
\fi
  \fi
\else
  \dimen2\zeropoint
\fi
\parindent\zeropoint\relax
\leavevmode
\box2\relax
\hskip\dimen2
\bgroup
\donestedlistattributes\c!textstyle\c!textcolor
  {\let\\=\newlineinlist
   \dontconvertfont
  %\listparameter\c!textcommand{#4}}%
   \limitatedlistentry{#4}}%
  %\carryoverpar % new otherwise wrong linespacing
\egroup
\ifdim\wd4=\zeropoint\relax % \ifvoid4
  % \ifdim\!!widtha\hsize \hfill\strut \fi % spoils align
\else
  \nobreak\listfill
  \box4\relax
  \relax
\fi}%
 \hss
 \dostoplistattributes}}% new

Re: [NTG-context] reference error with startproduct

2005-02-18 Thread Hans Hagen
\useencoding[ffr]
this command should come first (i.e. even before any \startproject or so since 
it set an internal separator (has to do with active french quotes); some day i 
will change that to a more convenient method

Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] reference error with startproduct

2005-02-18 Thread Willi Egger
Hi, yes indeed I changed the code of Peter in that sense and made a 
separate file of the product-code before testing. I did this not because 
I knew it, but it looked just more Context-like to me ;-)

Willi
\setupoutput[pdftex]
\useencoding[ffr]
\mainlanguage[fr]
% This is the project file:
\starttext
\startproject project
\product product
\stopproject
\stoptext
Hans Hagen wrote:
\useencoding[ffr]

this command should come first (i.e. even before any \startproject or so 
since it set an internal separator (has to do with active french 
quotes); some day i will change that to a more convenient method

Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] reference error with startproduct

2005-02-18 Thread Peter Münster
On Fri, 18 Feb 2005, Hans Hagen wrote:

  \useencoding[ffr]
 
 this command should come first (i.e. even before any \startproject or so 
 since 
 it set an internal separator (has to do with active french quotes); some day 
 i 
 will change that to a more convenient method

Thanks for your explanations. My goal is, to write things like
\useencoding[ffr] and \mainlanguage[fr] only once in an environment file,
and not in every product.

What do you think about the following method, can I get other kinds of
problems?

Product file:

\startproduct product
\project project

\section[bla:bla]{bla}
test: \in[bla]

\section[bla]{bla}
test: \in[bla:bla]

hallo «hallo» hallo «hallo», hallo
hallo: hallo; hallo? hallo! hallo
\stopproduct

Project file:

\startproject project
\enableregime[il1]
\mainlanguage[fr]
\defineactivecharacter « {\leftguillemot\,}
\defineactivecharacter » {\,\rightguillemot}
\defineactivecharacter ! {\,\string!}
\defineactivecharacter ? {\,\string?}
\defineactivecharacter : {\,\string:}
\defineactivecharacter ; {\,\string;}

\product product

\stopproject

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] reference error with startproduct

2005-02-17 Thread Willi Egger
Hi Peter,
your code works if you say \in{section}[bla]. \in is normally used with 
a indicator what you are referencing.

\at{page}[bla]
\about[bla]
Using
 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
 pdfeTeXk, Version 3.141592-1.20a-2.2 (Web2c 7.5.3)
 ConTeXt  ver: 2005.01.26  fmt: 2005.1.26  int: english  mes: english
Willi
Peter Münster wrote:
Hello,
when I compile the following product, I get this error:
unknown reference [][bla]
\startproduct product
\project project
\section[bla]{bla}
test: \in[bla]
\stopproduct
This is the project file:
\startproject project
\useencoding[ffr]
\mainlanguage[fr]
\product product
\stopproject
Could someone help please?
Greetings, Peter
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Typesetting products and components

2005-02-15 Thread Hans Hagen
Randall Skelton wrote:
generated for the set of components.  Is it appropriate to want to do
this or have I misunderstood the role of projects, products and
components entirely.
as long as you understand the logic behind your choices it;s ok
I'll add a system mode: (put this in cont-new.tex)
\startvariables  dutch english
 germanczech
 italian   romanian
environment: omgeving  environment
 umgebung  prostredi
 ambiente  mediu
  component: onderdeel component
 komponentekomponenta
 componentecomponenta
product: produkt   product
 produkt   produkt
 prodotto  produs
project: project   project
 projekt   projekt
 progetto  proiect
\stopvariables
\unprotect
\let\currentcomponent\v!text
\def\donextlevel#1#2#3#4#5#6#7\\%
  {\pushmacro\currentcomponent
   \let\currentcomponent#1
   \setsystemmode\currentcomponent
   \beforesplitstring#7\at.\to#2\relax
   \ifcase\filelevel\relax
 \starttext
 \def\project ##1 {#3{##1}}%
 \def\environment ##1 {#4{##1}}%
 \def\product ##1 {#5{##1}}%
 \def\component   ##1 {#6{##1}}%
   \fi
   \increment\filelevel\relax
   \fullexpandoneargafter\addtocommalist{#1}\loadedfiles}
\def\doprevlevel
  {\popmacro\currentcomponent
   \setsystemmode\currentcomponent
   \ifnum\filelevel=\plusone
 \expandafter\stoptext
   \else
 \decrement\filelevel\relax
 \expandafter\endinput
   \fi}
\def\startproject #1 %
  {\donextlevel\v!project\currentproject
 \donotexecutefile\doexecutefileonce
 \doexecutefileonce\doexecutefile#1\\}
\def\startproduct #1 %
  {\doateverystarttext
   \donextlevel\v!product\currentproduct
 \doexecutefileonce\doexecutefileonce
 \donotexecutefile\doexecutefile#1\\}
\def\startcomponent #1 %
  {\doateverystarttext
   \donextlevel\v!component\currentcomponent
 \doexecutefileonce\doexecutefileonce
 \donotexecutefile\doexecutefile#1\\}
\def\startenvironment #1 %
  {\donextlevel\v!environment\currentenvironment
 \donotexecutefile\doexecutefileonce
 \donotexecutefile\donotexecutefile#1\\}
\protect
\starttext
% \startproject test
% 1: \startmode[*project] project \stopmode \endgraf
% 2: \startmode[*product] product \stopmode \endgraf
% \stopproject
\startproduct test
1: \startmode[*project] project \stopmode \endgraf
2: \startmode[*product] product \stopmode \endgraf
\stopproduct
\stoptext

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Problem with index generation

2004-11-22 Thread Matthias Weber
Hello all,
'upgrading' to the 2004 TeXLive distribution (via GW's  i-Installer)  
broke the following (which is
a distilled version of a much larger file)

\startproject test
\startbodymatter
\section{Why is $1+1=2$?}
Let us first discuss {\em addition\index{addition}}.
\stopbodymatter
\startbackmatter
\completeindex
\stopbackmatter
\stopproject
Commenting out \completeindex makes the file TeXable, but, of course,  
without index.
It don't get an error message but TeXshop 'stalls' with the following  
log:

 TeXExec 5.0 - ConTeXt / PRAGMA ADE 1997-2004
executable : pdfetex
format : cont-en
 inputfile : test
output : pdftex
 interface : en
  current mode : none
   TeX run : 1
This is pdfeTeX, Version 3.141592-1.20a-2.2 (Web2C 7.5.3)
 (/usr/local/teTeX/share/texmf.local/web2c/natural.tcx)
output format initialized to DVI
entering extended mode
(./test.tex
ConTeXt  ver: 2004.10.28  fmt: 2004.11.22  int: english  mes: english
language   : language en is active
protectionstate 0
system : cont-new loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/cont-new.tex
systems: beware: some patches loaded from cont-new.tex!
color  : palette rollover is available
system (E-TEX) : [line 1021]
system (E-TEX) : [line 1076]
)
system : cont-old loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/cont-old.tex
loading: Context Old Macros
)
system : cont-fil loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/cont-fil.tex
loading: Context File Synonyms
)
system : cont-sys.rme loaded
(/usr/local/teTeX/share/texmf.local/tex/context/user/cont-sys.rme
fonts  : [berry] [ec] []
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex))
bodyfont   : 12pt rm is loaded
language   : patterns en-default:default-1-2:2  
uk-default:default-2-2
:2 de-texnansi:texnansi-3-2:2 de-ec:ec-4-2:2  
fr-texnansi:texnansi-5-2:
2 fr-ec:ec-6-2:2 es-default:default-7-2:2  
it-texnansi:texnansi-8-2:2 i
t-ec:ec-9-2:2 nl-texnansi:texnansi-10-2:2 nl-ec:ec-11-2:2  
loaded
specials   : tex,postscript,rokicki loaded
system : test.top loaded
(./test.top
specials   : loading definition file tpd
(/usr/local/teTeX/share/texmf.local/tex/context/base/spec-tpd.tex
specials   : loading definition file fdf
(/usr/local/teTeX/share/texmf.local/tex/context/base/spec-fdf.tex
unprotect 3 unprotect 4
system (E-TEX) : [line 2255] \ifcsname
protect 4 protect 3)
specials   : fdf loaded
unprotect 3 protect 3)
specials   : fdf,tpd loaded
) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo)  
(./test.tuo)
 (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo)  
(./test.tuo)
(./test.tuo)
fonts  : using map file: texnansi-public-lm.map
fonts  : using map file: original-public-csr.map
fonts  : using map file: original-public-plr.map
fonts  : using map file: original-public-lm.map
fonts  : using map file: original-ams-euler.map
fonts  : using map file: original-ams-cmr.map
fonts  : using map file: texnansi-base.map
fonts  : using map file: qx-base.map
fonts  : using map file: 8r-base.map
fonts  : using map file: ec-base.map
fonts  : using map file: ec-public-lm.map
fonts  : using map file: original-base.map
systems: begin file test at line 1
structure  : begin of sectionblock bodymatter
section: 1 Why is $1+1=2$?
structure  : end of sectionblock bodymatter
[1.1{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ 
original-empty
.map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ 
texnansi-publ
ic-lm.map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ 
original
-public-csr.map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/ 
context/or
iginal-public-plr.map}{/usr/local/teTeX/share/texmf.local/fonts/map/ 
pdftex/cont
ext/original-public-lm.map}{/usr/local/teTeX/share/texmf.local/fonts/ 
map/pdftex
/context/original-ams-euler.map}{/usr/local/teTeX/share/texmf.local/ 
fonts/map/p
dftex/context/original-ams-cmr.map}{/usr/local/teTeX/share/texmf.local/ 
fonts/ma
p/pdftex/context/texnansi-base.map}{/usr/local/teTeX/share/texmf.local/ 
fonts/ma
p/pdftex/context/qx-base.map}{/usr/local/teTeX/share/texmf.local/fonts/ 
map/pdft
ex/context/8r-base.map}{/usr/local/teTeX/share/texmf.local/fonts/map/ 
pdftex/con
text/ec-base.map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/ 
context/e

[NTG-context] A simple project.

2004-11-15 Thread Dirar BOUGATEF
Hi all,
I have tried the document project on the cont-enp.pdf and am getting this 
error:

texexec --pdf documents
   executable : pdfetex
   format : cont-en
inputfile : documents
   output : pdftex
interface : en
 current mode : none
  TeX run : 1
This is pdfeTeXk, Version 3.141592-1.11b-2.1 (Web2c 7.5.2)
%-line parsing enabled.
(c:/TeXLive/texmf/web2c/cp8bit.tcx)
entering extended mode
(./documents.tex{c:/TeXLive/texmf-var/pdftex/config/pdftex.cfg}
ConTeXt  ver: 2003.9.25  fmt: 2004.8.17  int: english  mes: english
language   : language en is active
protectionstate 0
system : cont-new loaded
(c:/TeXLive/texmf/tex/context/base/cont-new.tex
systems: beware: some patches loaded from cont-new.tex!
! Undefined control sequence.
\@@toks -\everymathematics
\dodoappendtoks -\dodoglobal \@@toks
 [EMAIL PROTECTED] [EMAIL PROTECTED] \the [EMAIL PROTECTED] \@@toks \the 
...
l.275 \to \everymathematics

Here are my files:

documents.tex:
\startproject documents
\product teacher
\stopproject

teacher.tex:
\startproduct teacher
\project documents
\component student
\stopproduct

student.tex:
\startcomponent student
\project documents
\product teacher
\chapter{First chapter}
\stopcomponent
What is wrong ?
Thanks in advance.
Dirar.
_
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.com/

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \startenvironment \currentfile

2004-08-12 Thread Peter Mnster
Hello,
isn't it redundant:
\startenvironment filename
\startproject filename
\startproduct filename
\startcomponent filename
??

Is this argument really needed?
\startenvironment xxx seems to works too.

Peter

-- 
http://pmrb.free.fr/contact/
_
FilmSearch engine: http://f-s.sf.net/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \AtBeginDocument

2004-06-14 Thread Peter Mnster
On Sun, 13 Jun 2004, Hans Hagen Outside wrote:

 hm, starttext is called anyway so it should work with product as well

Indeed, I saw this in the definition of \startproduct. Now I know, why it
does not work here: in my example (see below), \startproduct is called
before the environment is read in.

file env.tex:
\startenvironment env
\appendtoks\def\TestIt{test}\to\everystarttext
\stopenvironment

file proj.tex:
\startproject proj
\environment env
\product prod
\stopproject

file prod.tex:
\startproduct prod
\project proj
Test it: \TestIt
\stopproduct

Doesn't matter, I'll find other solutions for my purposes.

 P.S.: Unfortunately, it is quite hard to browse the core-*.tex files,
 because of the mix of 2 languages...  Are the non-english user-interfaces
 really used?
   
 sure, i use it, esp for dutch books (styles)

Excuse me, in fact it was a silly question.

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
_
FilmSearch engine: http://f-s.sf.net/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Newbie question on \completecontent

2003-08-07 Thread Matthias Weber
Hello Gerben,

I am a beginner myself, and working on a book project too. Below I send
you my complete directory setup with sample files. I am happy with the 
set-up and
it might also be useful for you.

Matthias

Directory structure:

sas.tex % main project file
layout.tex % main layout file
screenbook/screenbook.tex  % product file
part1/chapter1/chapter1.tex
part1/chapter1/section1/section1.tex


And here the files:

% sas.tex:

\startproject sas

\environment layout

\product screenbook/screenbook

\stopproject

%layout.tex
% contains definitions and 'styles' relevant for all products
\startenvironment layout

\setuppagenumbering[location={footer,middle}]

\setuphead
[chapter]
[numberstyle=bold,
textstyle=cap,
before=\hairline\blank,
after={\nowhitespace\hairline\blank[line]}]
\stopenvironment



% screenbook/screenbook.tex

% contains definitions for the relevant product
% Maybe this can be moved to a secondary environment file,
% I haven't tried that yet.
\startproduct screenbook

\setupcolors[state=start]
\project sas
\setuppapersize[S6][S6]
\startfrontmatter
\starttext
\startstandardmakeup
\midaligned{My Little Book --- Screen Version}
\midaligned{by}
\midaligned{Myself}
\stopstandardmakeup
\stoptext
\completecontent

\stopfrontmatter

\startbodymatter

\component part1/part1
\component part2/part2
\component part3/part3
\component part4/part4
\stopbodymatter
\startbackmatter
\completeindex
\stopbackmatter
\stopproduct



% part1/chapter1/chapter1.tex

\chapter{My first chapter}

\starttext

This is about whatever I have to say.

\input part1/chapter1/section1/section1

\stoptext



% part1/chapter1/section1/section1.tex
% put all helper (images etc) files in this directory, too
% This file contains the actual text and doesn't see the project 
structure
% anymore.

\section{My first section}

blah blah blah

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


<    1   2