[NTG-context] How to reset settings in setuphead back to defaults?

2022-08-21 Thread Joel via ntg-context
I have some settings like this, which define the part, chapter, and section 
titles within a file that contains all of my common settings for all files.

\definepagebreak[chapterpagebreak][yes, right]

\setuphead[part][style=\sse, placehead=yes, expansion=yes]
\setuphead[chapter][style=\sse, placehead=yes, expansion=yes, page=yes,
                        numbercommand=\groupedcommand{}{\blank[1cm]},
                        alternative=middle,
                        numberstyle=ssl,
                        numbercolor=white,
                        strut=yes,
                        page=chapterpagebreak,
                        header=empty]
\setuphead[subject][style=\sse, placehead=yes, expansion=yes, page=yes,
                        numbercommand=\groupedcommand{}{\blank[1cm]},
                        alternative=middle,
                        numberstyle=ssl,
                        numbercolor=white,
                        strut=yes,
                        page=chapterpagebreak,
                        header=empty]
A problem I have is I need one document to ignore all the above, basically 
pretend each of these is reset to defaults. Is there a way to rest all of the 
above items to default settings quickly?
--Joel
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Reset environment between MetaPost graphics?

2022-01-21 Thread Vincent Hennebert via ntg-context
On Thu, 2022-01-20 at 15:47 +0100, Hans Hagen via ntg-context wrote:
> On 1/20/2022 3:26 PM, Aditya Mahajan via ntg-context wrote:
> 
> > AFAIK, there is no in-built support for this.
> 
> FYEO:
> 
> \starttext
> 
> \startMPcode
>  u = 123;
> \stopMPcode
> 
> \ctxlua{metapost.reset("metafun:1")}
> 
> \startMPcode
>  u = 123;
> \stopMPcode
> 
> \stoptext
> 
> (the instance is reported on the console)

Thanks Aditya and Hans! Glad to hear I wasn’t missing anything obvious.

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


Re: [NTG-context] Reset environment between MetaPost graphics?

2022-01-20 Thread Hans Hagen via ntg-context

On 1/20/2022 3:42 PM, Hans Hagen via ntg-context wrote:

next upload:

\resetMPinstance[metafun:1]

but try to avoid this because reloading takes time

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
___


Re: [NTG-context] Reset environment between MetaPost graphics?

2022-01-20 Thread Hans Hagen via ntg-context

On 1/20/2022 3:26 PM, Aditya Mahajan via ntg-context wrote:


AFAIK, there is no in-built support for this.


FYEO:

\starttext

\startMPcode
u = 123;
\stopMPcode

\ctxlua{metapost.reset("metafun:1")}

\startMPcode
u = 123;
\stopMPcode

\stoptext

(the instance is reported on the console)

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
___


Re: [NTG-context] Reset environment between MetaPost graphics?

2022-01-20 Thread Hans Hagen via ntg-context

On 1/20/2022 2:59 PM, Vincent Hennebert via ntg-context wrote:

Hi,

Say I’m writing a document containing many independent MetaPost
figures. I don’t want to bother with enclosing each and every graphics
in a ‘begingroup...endgroup’ with the appropriate ‘save’ statement. But
I don’t want variables from previous graphics to leak into following
ones either.

Like this:

% SOF
\starttext

Text about some topic.

\startMPcode
u=1cm;
draw (-u, u)--origin--(u ,u);
\stopMPcode

Now on to another topic.

\startMPcode
u=2cm; % Triggers an error: Inconsistent equation (off by 28.34645)
draw (-u, u)..origin..(u ,u);
\stopMPcode

\stoptext
% EOF

Is that achievable?

you could do

  save u; u = 1cm;

or

  u := 1cm;

or

  numeric u; u := 1cm;

or you could use a dedicated instance (normally not needed)

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
___


Re: [NTG-context] Reset environment between MetaPost graphics?

2022-01-20 Thread Aditya Mahajan via ntg-context
On Thu, 20 Jan 2022, Vincent Hennebert via ntg-context wrote:

> Hi,
> 
> Say I’m writing a document containing many independent MetaPost
> figures. I don’t want to bother with enclosing each and every graphics
> in a ‘begingroup...endgroup’ with the appropriate ‘save’ statement. But
> I don’t want variables from previous graphics to leak into following
> ones either.
> 
> Like this:
> 
> % SOF
> \starttext
> 
> Text about some topic.
> 
> \startMPcode
> u=1cm;
> draw (-u, u)--origin--(u ,u);
> \stopMPcode
> 
> Now on to another topic.
> 
> \startMPcode
> u=2cm; % Triggers an error: Inconsistent equation (off by 28.34645)
> draw (-u, u)..origin..(u ,u);
> \stopMPcode
> 
> \stoptext
> % EOF
> 
> Is that achievable?

AFAIK, there is no in-built support for this. 

I workaround this as follows. Instead of defining new variables using 

numeric u; pair p; path q; etc.

use:

newnumeric u; newpair p; newpath p; etc.

which automatically does a save beforehand. The only place where the 
abstraction leaks is arrays. You cannot do, 

newpair p[];

but need save p; pair p[] instead. 

Another option is to use assignment rather than equality:

  u := 2cm;

Aditya___
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] Reset environment between MetaPost graphics?

2022-01-20 Thread Vincent Hennebert via ntg-context
Hi,

Say I’m writing a document containing many independent MetaPost
figures. I don’t want to bother with enclosing each and every graphics
in a ‘begingroup...endgroup’ with the appropriate ‘save’ statement. But
I don’t want variables from previous graphics to leak into following
ones either.

Like this:

% SOF
\starttext

Text about some topic.

\startMPcode
u=1cm;
draw (-u, u)--origin--(u ,u);
\stopMPcode

Now on to another topic.

\startMPcode
u=2cm; % Triggers an error: Inconsistent equation (off by 28.34645)
draw (-u, u)..origin..(u ,u);
\stopMPcode

\stoptext
% EOF

Is that achievable?

Thanks,
Vincent

___
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] Reset bibliography numbering

2018-10-24 Thread Martin Hasoň
Hi all,

I want to use a custom bibliography for every section in document. It is
possible to starting the numbering from 1 for each section?


\setupbtxrendering[default][
repeat=yes,
continue=yes,
method=local,
numbering=yes,
criterium=section,
]

\usebtxdataset[default][bib.buffer]
\starttext
\startsection[title=Section 1]
\cite[a]
\placelistofpublications
\stopsection

\startsection[title=Section 2]
  \cite[b] \cite[a] \cite[c]
  \placelistofpublications
\stopsection
\stoptext


Actual output:

Section 1
[1]

1  bib a


Section 2
[2] [1] [3]

2 bib b

1 bib a

3 bib c


Expected output:

Section 1
[1]

1  bib a


Section 2
[1] [2] [3]

1 bib b

2 bib a

3 bib c

Many thanks for your help

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

Re: [NTG-context] How to reset a new processor ?

2016-08-08 Thread Fabrice Couvreur
Oups, I forgot the  name "ex", I am confused.
Thanks
Fabrice

2016-08-08 13:27 GMT+02:00 Wolfgang Schuster :

> Fabrice Couvreur 
> 8. August 2016 um 13:11
> Hi Wolfgang,
> In fact, I have a project "Lesson" with components chapter 1, chapter 2,
> ...
> If I add \setupenumeration [] [way=bysubsection] to each component that
> does not work.
>
> \defineenumeration[exercise][text=Exercise ]
> \setupenumeration [exercise][way=bysection]
>
> \starttext
>
> \dorecurse{5}
> {\expanded{\chapter{Chapter \recurselevel}}
>  \dorecurse{3}
>{\expanded{\section{Section \recurselevel}}
> \dorecurse{3}
>   {\startexercise
>\input ward
>\stopexercise}}}
>
> \stoptext
>
> 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
> 
> ___
>
___
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] How to reset a new processor ?

2016-08-08 Thread Wolfgang Schuster

Fabrice Couvreur 
8. August 2016 um 13:11
Hi Wolfgang,
In fact, I have a project "Lesson" with components chapter 1, chapter 
2, ...
If I add \setupenumeration [] [way=bysubsection] to each component 
that does not work.

\defineenumeration[exercise][text=Exercise ]
\setupenumeration [exercise][way=bysection]

\starttext

\dorecurse{5}
{\expanded{\chapter{Chapter \recurselevel}}
 \dorecurse{3}
   {\expanded{\section{Section \recurselevel}}
\dorecurse{3}
  {\startexercise
   \input ward
   \stopexercise}}}

\stoptext

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] How to reset a new processor ?

2016-08-08 Thread Fabrice Couvreur
Hi Wolfgang,
In fact, I have a project "Lesson" with components chapter 1, chapter 2, ...
If I add \setupenumeration [] [way=bysubsection] to each component that
does not work.
Fabrice

2016-08-08 12:30 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>:

> Fabrice Couvreur <fabrice1.couvr...@gmail.com>
> 8. August 2016 um 12:27
> Hi,
> I use a counter for each "Exercises" section of each chapter (Wolfgang thank
> you !).
> How to reset the counter to 1 for each section ?
> thank you,
> Fabrice
>
>
> \defineprocessor[ACPROCESSOR][command=\EXFRAME]
> \defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
>
> \setupenumeration[...][way=bysection] % way=bychapter etc.
>
> 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
> 
> ___
>
___
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] How to reset a new processor ?

2016-08-08 Thread Wolfgang Schuster

Fabrice Couvreur <mailto:fabrice1.couvr...@gmail.com>
8. August 2016 um 12:27
Hi,
I use a counter for each "Exercises" section of each chapter (Wolfgang 
thank you!).

How to reset the counter to 1 for each section ?
thank you,
Fabrice


\defineprocessor[ACPROCESSOR][command=\EXFRAME]
\defineconversionset[ACCONVERSION][][ACPROCESSOR->n]


\setupenumeration[...][way=bysection] % way=bychapter etc.

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
___

[NTG-context] How to reset a new processor ?

2016-08-08 Thread Fabrice Couvreur
Hi,
I use a counter for each "Exercises" section of each chapter (Wolfgang thank
you !).
How to reset the counter to 1 for each section ?
thank you,
Fabrice


\defineprocessor[ACPROCESSOR][command=\EXFRAME]
\defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
___
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] late reset of counter with way=bypage

2016-02-22 Thread massifr
Solved with a workaround
> -
> \setupnotation[footnote][way=bypage]
> 
> \definecounter[authornote][way=bypage]
> 
> % taken and adapted from 
> https://www.mail-archive.com/ntg-context@ntg.nl/msg56637.html
> \define[1]\authorNote{\bgroup%
>\savecounter[footnote]%
   \incrementcounter[authornote]\decrementcounter[authornote]%  <-- authornote 
is incremented and decremented to force the reset by page
>\setcounter[footnote][{\rawcountervalue[authornote]}]%
>\setupnotation[footnote][numberconversion=set 1]%
>\footnote{#1}%
>\restorecounter[footnote]%
>\incrementcounter[authornote]%
>\egroup}
> 
> \starttext
> 
> First footnote\footnote{First footnote}.
> First author's footnote\authorNote{First author's footnote}.
> Second footnote\footnote{Second footnote}.
> Second author's footnote\authorNote{Second author's footnote}.
> 
> \page
> 
> First footnote\footnote{First footnote}.
> First author's footnote\authorNote{First author's footnote}.
> Second footnote\footnote{Second footnote}.
> Second author's footnote\authorNote{Second author's footnote}.
> 
> \stoptext
> -

Wolfgang Schuster already answered me on this (see 
https://www.mail-archive.com/ntg-context%40ntg.nl/msg78847.html):
> It’s a bug and hopefully fixed in a new beta but the counter is only reset
> when you increment the value.

If you need the value of a counter with "way=bypage" without modifying its 
value, the workaround is:
- increment the counter to force its reset by page
- decrement it to get the correct current value

Greetings,
Massi
___
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
___

[NTG-context] late reset of counter with way=bypage

2016-02-18 Thread massifr
Hello list,
this is an example of footnotes with two different markers (and counters): 
numbers for editor's footnotes, stars for author's footnotes.
The footnotes are typeset together, in the order they appear in the text, so 
number and star markers are interspersed.
The two counters are reset every page (way=bypage).
-
\setupnotation[footnote][way=bypage]

\definecounter[authornote][way=bypage]

% taken and adapted from 
https://www.mail-archive.com/ntg-context@ntg.nl/msg56637.html
\define[1]\authorNote{\bgroup%
   \savecounter[footnote]%
   \setcounter[footnote][{\rawcountervalue[authornote]}]%
   \setupnotation[footnote][numberconversion=set 1]%
   \footnote{#1}%
   \restorecounter[footnote]%
   \incrementcounter[authornote]%
   \egroup}

\starttext

First footnote\footnote{First footnote}.
First author's footnote\authorNote{First author's footnote}.
Second footnote\footnote{Second footnote}.
Second author's footnote\authorNote{Second author's footnote}.

\page

First footnote\footnote{First footnote}.
First author's footnote\authorNote{First author's footnote}.
Second footnote\footnote{Second footnote}.
Second author's footnote\authorNote{Second author's footnote}.

\stoptext
-

The problem: the first authorNote of the second page has its counter set to 3 
instead of 1 (you see 3 stars as marker).
The second authorNote has the right value of 2 (2 stars as marker).
This means that "way=bypage" works for the authornote counter too, but one step 
late.
What am I missing? Some \iftrialtypesetting?

Greetings,
Massi

___
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] reset blocks with dorecurse

2014-01-15 Thread DesdeChaves
Please, can someone provide some assistance in resolving this problem, if
possible. I need to prepare a worksheet for Friday and I'm having this
problem, ie, each worksheet show the hints and the answers of all
worksheets.


thanks in advance

Jorge


2014/1/14 DesdeChaves desdecha...@gmail.com

 Is there a way to empty the blocks after each recurse cycle.
 If i make three exams with the command \dorecurse[3], in the first exam i
 found the hints and the answers of all exams.

 I try with the commands \resetnumber[hint, answer], but don't work.

  begin question-hint-answer-blocks.tex
 \defineblock[question]
 \defineblock[hint]
 \defineblock[answer]

 \defineenumeration[question]
 [alternative=hanging,
 width=2.5cm,
 text={Question},
 headstyle={\bi},
 stopper={.}]

 \defineenumeration[hint]
 [alternative=hanging,
 width=4cm,
 text={Hint for question},
 headstyle={\bi},
 stopper={.}]

 \defineenumeration[answer]
 [alternative=hanging,width=4.5cm,
 text={Answer to question},
 headstyle={\bi},
 stopper={.}]

 \setupblock[question][before={\startquestion},after={\stopquestion}]
 \setupblock[hint][before={\starthint},after={\stophint}]
 \setupblock[answer][before={\startanswer},after={\stopanswer}]
 \keepblocks[question]
 \hideblocks[hint]
 \hideblocks[answer]




 \startsetups examn:make

 \resetnumber[answer]
 \resetnumber[question]
 \resetnumber[hint]
 \page
 \setcounter[userpage][1]
 \centerline{\kap{Maths}}
  \centerline{\kap{Worksheet}}  \crlf
  Name:\thinrules[n=1]%, interlinespace=big]
 Evaluation:\thinrules[n=1]%, interlinespace=big]


 \getbuffer[examn]

 \stopsetups

 \starttext
 \setuppagenumbering[state=stop]
 \startbuffer[examn]

 \section{Questions}

 \beginquestion
   Compute $4\times 5$.



 \endquestion

 \beginhint
   Use the fact that $2\times 5 = 10$.
 \endhint

 \beginanswer
   $20$.
 \endanswer

 \beginquestion
   What is the value of $100 / 10$?
 \endquestion

 \beginhint
 Remember that $10\times 10 = 100$.
 \endhint

 \beginanswer
 $10$
 \endanswer

 \section{Hints to all questions}

 \useblocks[hint]

 \section{Answers to all questions}

 \useblocks[answer]

 \setuppagenumber[number=1]
 \stopbuffer

 \setuprandomize[124] % set a seed


 \dorecurse{3} {\setups[examn:make]}

 \stoptext

 Thanks a lot

 Jorge




-- 
Atentamente

DesdeChaves
___
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] reset blocks with dorecurse

2014-01-15 Thread Wolfgang Schuster

Am 15.01.2014 um 15:06 schrieb DesdeChaves desdecha...@gmail.com:

 Please, can someone provide some assistance in resolving this problem, if 
 possible. I need to prepare a worksheet for Friday and I'm having this 
 problem, ie, each worksheet show the hints and the answers of all worksheets.

There is no command to reset a block, to create the different worksheets you 
have to process your document three times (don’t forget to delete the temporary 
files because the randomseed won’t change otherwise).

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] reset blocks with dorecurse

2014-01-15 Thread DesdeChaves
Thank you.

Jorge


2014/1/15 Wolfgang Schuster schuster.wolfg...@gmail.com


 Am 15.01.2014 um 15:06 schrieb DesdeChaves desdecha...@gmail.com:

 Please, can someone provide some assistance in resolving this problem, if
 possible. I need to prepare a worksheet for Friday and I'm having this
 problem, ie, each worksheet show the hints and the answers of all
 worksheets.


 There is no command to reset a block, to create the different worksheets
 you have to process your document three times (don’t forget to delete the
 temporary files because the randomseed won’t change otherwise).

 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

 ___




-- 
Atentamente

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

[NTG-context] reset blocks with dorecurse

2014-01-14 Thread DesdeChaves
Is there a way to empty the blocks after each recurse cycle.
If i make three exams with the command \dorecurse[3], in the first exam i
found the hints and the answers of all exams.

I try with the commands \resetnumber[hint, answer], but don't work.

 begin question-hint-answer-blocks.tex
\defineblock[question]
\defineblock[hint]
\defineblock[answer]

\defineenumeration[question]
[alternative=hanging,
width=2.5cm,
text={Question},
headstyle={\bi},
stopper={.}]

\defineenumeration[hint]
[alternative=hanging,
width=4cm,
text={Hint for question},
headstyle={\bi},
stopper={.}]

\defineenumeration[answer]
[alternative=hanging,width=4.5cm,
text={Answer to question},
headstyle={\bi},
stopper={.}]

\setupblock[question][before={\startquestion},after={\stopquestion}]
\setupblock[hint][before={\starthint},after={\stophint}]
\setupblock[answer][before={\startanswer},after={\stopanswer}]
\keepblocks[question]
\hideblocks[hint]
\hideblocks[answer]




\startsetups examn:make

\resetnumber[answer]
\resetnumber[question]
\resetnumber[hint]
\page
\setcounter[userpage][1]
\centerline{\kap{Maths}}
 \centerline{\kap{Worksheet}}  \crlf
 Name:\thinrules[n=1]%, interlinespace=big]
Evaluation:\thinrules[n=1]%, interlinespace=big]


\getbuffer[examn]

\stopsetups

\starttext
\setuppagenumbering[state=stop]
\startbuffer[examn]

\section{Questions}

\beginquestion
  Compute $4\times 5$.



\endquestion

\beginhint
  Use the fact that $2\times 5 = 10$.
\endhint

\beginanswer
  $20$.
\endanswer

\beginquestion
  What is the value of $100 / 10$?
\endquestion

\beginhint
Remember that $10\times 10 = 100$.
\endhint

\beginanswer
$10$
\endanswer

\section{Hints to all questions}

\useblocks[hint]

\section{Answers to all questions}

\useblocks[answer]

\setuppagenumber[number=1]
\stopbuffer

\setuprandomize[124] % set a seed


\dorecurse{3} {\setups[examn:make]}

\stoptext

Thanks a lot

Jorge
___
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] setupformulas reset not working

2013-01-18 Thread Zenlima
Thanks, that explanation makes it a lot easier :-)

 \formulaparameter is a command to access the values of the keys for
 the \setupformula command, e.g. \formulaparameter{spacebefore}
 results in “big”.
 
___
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
___

[NTG-context] setupformulas reset not working

2013-01-17 Thread Zenlima
Hi,

In my work I have standalone formulas and formulas inside a paragraph
(see idea of module pararef). For standalone formulas the default
settings are ok. But for the formuals inside the paragraphs I need to
change the afer- and beforespaces. So I have to change the spaces
before and after a formula often.

Unlucky \startformula[spacebefore=...,spaceafter=...] is not working.
So I try to achieve it via the big setup function:
\setupformulas[spacebefore=...,spaceafter=...] - not nice but it works
(except that strange space \formulaparameter).

But now after that paragraph I want to reset the spaces of
setupformulas. In the file strc-math.mkiv says that the spaces are
defined like this:
...
c!spacebefore=\v!big,
\c!spaceafter=\formulaparameter\c!spacebefore,
...
So I tried after \stopformula to reset the spaces with:

\setupformulas[spacebefore=\v!big,spaceafter=\formulaparameter\c!spacebefore]
and

\setupformulas[spacebefore=\big,spaceafter=\formulaparameter\spacebefore]
but both failed.

Is there any possibility to reset the spaces of setupformulas? And what
kind of space is \formulaparameter?

H.
___
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] setupformulas reset not working

2013-01-17 Thread Wolfgang Schuster

Am 17.01.2013 um 21:48 schrieb Zenlima p...@zenlima.eu:

 Hi,
 
 In my work I have standalone formulas and formulas inside a paragraph
 (see idea of module pararef). For standalone formulas the default
 settings are ok. But for the formuals inside the paragraphs I need to
 change the afer- and beforespaces. So I have to change the spaces
 before and after a formula often.
 
 Unlucky \startformula[spacebefore=...,spaceafter=...] is not working.
 So I try to achieve it via the big setup function:
 \setupformulas[spacebefore=...,spaceafter=...] - not nice but it works
 (except that strange space \formulaparameter).
 
 But now after that paragraph I want to reset the spaces of
 setupformulas. In the file strc-math.mkiv says that the spaces are
 defined like this:
   ...
   c!spacebefore=\v!big,
   \c!spaceafter=\formulaparameter\c!spacebefore,
   ...
 So I tried after \stopformula to reset the spaces with:
   
 \setupformulas[spacebefore=\v!big,spaceafter=\formulaparameter\c!spacebefore]
 and
   
 \setupformulas[spacebefore=\big,spaceafter=\formulaparameter\spacebefore]
 but both failed.

\setupformla[spacebefore=big,spaceafter=big]

 Is there any possibility to reset the spaces of setupformulas? And what
 kind of space is \formulaparameter?

\formulaparameter is a command to access the values of the keys for the 
\setupformula command,
e.g. \formulaparameter{spacebefore} results in “big”.

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] Reset counters by sectionblock

2012-03-13 Thread Hans Hagen

On 12-3-2012 18:44, Wolfgang Schuster wrote:

Hi Hans,

can add “way=block” to counter which reset the number at the start of each 
sectionblock,
for now it works in the same way as “way=text”.


Actually block is already implemented but not resolved right (due to 
inheritance resolving). This should do the trick:


\def\thenamedstructurecounterlevel#1%
  {\xthenamedheadlevel{\structurecounterway{#1}}}

\def\xthenamedheadlevel#1%
  {\xsectionlevel{#1}{\sectionheadsection{\sectionheadcoupling{#1

\def\xsectionlevel#1#2% direct indirect
  {\csname\??headlevel
 \ifcsname\??headlevel#1\endcsname
   #1%
 \else\ifcsname\??headlevel#2\endcsname
   #2%
 \else
   \v!none
 \fi\fi
   \endcsname}



\definestructureconversionset[frontpart:pagenumber][][romannumerals]
\definestructureconversionset [bodypart:pagenumber][][numbers]
\definestructureconversionset [appendix:pagenumber][][Characters]

\setuppagenumber[numberconverionset=pagenumber,way=block]

\startsectionblockenvironment[bodypart]
%\resetpagenumber
\stopsectionblockenvironment

\startsectionblockenvironment[appendix]
%\resetpagenumber
\stopsectionblockenvironment

\setupheadertexts[Page \userpagenumber\ of \lastuserpagenumber]

\starttext

\startfrontmatter

\chapter{Fontpart}

\dorecurse{20}{\input knuth\par}

\stopfrontmatter

\startbodymatter

\chapter{Bodypart}

\dorecurse{20}{\input tufte\par}

\stopbodymatter

\startappendices

\chapter{Appendix}

\dorecurse{20}{\input zapf\par}

\stopappendices

\stoptext

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
___



--

-
  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] Reset counters by sectionblock

2012-03-13 Thread Wolfgang Schuster

Am 13.03.2012 um 12:38 schrieb Hans Hagen:

 On 12-3-2012 18:44, Wolfgang Schuster wrote:
 Hi Hans,
 
 can add “way=block” to counter which reset the number at the start of each 
 sectionblock,
 for now it works in the same way as “way=text”.
 
 Actually block is already implemented but not resolved right (due to 
 inheritance resolving). This should do the trick:
 
 \def\thenamedstructurecounterlevel#1%
  {\xthenamedheadlevel{\structurecounterway{#1}}}
 
 \def\xthenamedheadlevel#1%
  {\xsectionlevel{#1}{\sectionheadsection{\sectionheadcoupling{#1
 
 \def\xsectionlevel#1#2% direct indirect
  {\csname\??headlevel
 \ifcsname\??headlevel#1\endcsname
   #1%
 \else\ifcsname\??headlevel#2\endcsname
   #2%
 \else
   \v!none
 \fi\fi
   \endcsname}

Yes, it works.

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
___


[NTG-context] Reset counters by sectionblock

2012-03-12 Thread Wolfgang Schuster
Hi Hans,

can add “way=block” to counter which reset the number at the start of each 
sectionblock,
for now it works in the same way as “way=text”.

\definestructureconversionset[frontpart:pagenumber][][romannumerals]
\definestructureconversionset [bodypart:pagenumber][][numbers]
\definestructureconversionset [appendix:pagenumber][][Characters]

\setuppagenumber[numberconverionset=pagenumber,way=block]

\startsectionblockenvironment[bodypart]
%\resetpagenumber
\stopsectionblockenvironment

\startsectionblockenvironment[appendix]
%\resetpagenumber
\stopsectionblockenvironment

\setupheadertexts[Page \userpagenumber\ of \lastuserpagenumber]

\starttext

\startfrontmatter

\chapter{Fontpart}

\dorecurse{20}{\input knuth\par}

\stopfrontmatter

\startbodymatter

\chapter{Bodypart}

\dorecurse{20}{\input tufte\par}

\stopbodymatter

\startappendices

\chapter{Appendix}

\dorecurse{20}{\input zapf\par}

\stopappendices

\stoptext

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
___


[NTG-context] How to reset numbers of formulas?

2011-11-17 Thread Otared Kavian
Hi,

Is it possible to reset the numbers which appear after invoking \placeformula?

To be more precise, I mean the following situation:

\starttext

Euler says
\placeformula
\startformula
{\rm e}^{{\rm i} \pi} + 1 = 0.
\stopformula
The above formula will have number (1). Euler's formula is the same as the 
following
\placeformula
\startformula
{\rm e}^{{\rm i} \pi} = - 1.
\stopformula
The above formula will have number (2), but for some reasons I wish to number 
it again as (1).
\stoptext

I would like to have a solution which works with ConTeXt mkiv.

Thanks for any advice, and best regards: OK




___
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] How to reset numbers of formulas?

2011-11-17 Thread Otared Kavian
Many thanks, Christian: that's the way…
I added a note in the wiki:
http://wiki.contextgarden.net/Reference/en/placeformula

Best regards: OK
On 17 nov. 2011, at 14:48, Christian wrote:

 Is it possible to reset the numbers which appear after invoking
 \placeformula?
 
 To be more precise, I mean the following situation:
 
 \starttext
 
 Euler says
  \placeformula
  \startformula
  {\rm e}^{{\rm i} \pi} + 1 = 0.
  \stopformula
 The above formula will have number (1). Euler's formula is the same as the
 following
  \placeformula
  \startformula
  {\rm e}^{{\rm i} \pi} = - 1.
  \stopformula
 The above formula will have number (2), but for some reasons I wish to
 number it again as (1).
 \stoptext
 
 I would like to have a solution which works with ConTeXt mkiv.
 
 Thanks for any advice, and best regards: OK
 
 \resetnumber[formula]
 or
 \setnumber[formula]{insert number}
 
 ___
 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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




___
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] TOC : margin size doesn't reset if next section is a chapter

2011-05-26 Thread Hans Hagen

On 26-5-2011 6:23, Wolfgang Schuster wrote:


Am 25.05.2011 um 22:08 schrieb Mathieu DUPONT:


It bugs on the \leftskip command.
Any idea why ?


I forgot that \listparameter can’t handle arguments in braces
(e.g. \listparameter{before}), this is a real limitation and i hope
Hans is going to change this.

\unprotect
\define[3]\ChapterList
   {\par
\listparameter\c!before
\leftskip\listparameter\c!margin
\noindent\currentlistsymbol\crlf#2\enspace\listdots\enspace#3\par
\listparameter\c!after}
\protect


we can use the command handler instead but it will need some testing 
(i'll have a look at it)


Hans

-
  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] TOC : margin size doesn't reset if next section is a chapter

2011-05-26 Thread Mathieu DUPONT


Until then, this works fine for me now.Thank you !


Mathieu



From: schuster.wolfg...@googlemail.com
Date: Thu, 26 May 2011 06:23:08 +0200
To: ntg-context@ntg.nl
CC: pra...@wxs.nl
Subject: Re: [NTG-context] TOC : margin size doesn't reset if next section  
is a chapter




Am 25.05.2011 um 22:08 schrieb Mathieu DUPONT:It bugs on the \leftskip 
command.Any idea why ?
I forgot that \listparameter can’t handle arguments in braces(e.g. 
\listparameter{before}), this is a real limitation and i hopeHans is going to 
change this.
\unprotect\define[3]\ChapterList  {\par   \listparameter\c!before   
\leftskip\listparameter\c!margin   
\noindent\currentlistsymbol\crlf#2\enspace\listdots\enspace#3\par   
\listparameter\c!after}\protect
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
___
   ___
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
___

[NTG-context] TOC : margin size doesn't reset if next section is a chapter

2011-05-25 Thread Mathieu DUPONT


In the following example, I set the margin for subsections to 1.25cm, in order 
for the subsection number to be aligned with the titles of sections.If the next 
section after a subsection is a section or another subsection, there is no 
problem.But if (as shown here) the next section (after a subsection) is a 
chapter, it becomes shifted to the right (its margin is 1.25cm).Is there 
something I could add to my command \ChapterList to reset the margin to 0cm 
?Thanks !

\setuplabeltext[chapter=CHAPTER~]
\define[3]\ChapterList{ \blank  \par\noindent\currentlistsymbol\crlf
#2\enspace\listdots\enspace #3\par  }\setuplist[chapter][   margin=0cm, 
   % this line doesn't do anything  label=yes,  alternative=command,
command=\ChapterList,   
]\setuplist[section][margin=0cm,width=1.25cm]\setuplist[subsection][margin=1.25cm,width=1.25cm]
\starttext
\completecontent
\chapter{CHAPTER}\section{SECTION}\subsection{SUBSECTION}
\chapter{CHAPTER}\section{SECTION}\subsection{SUBSECTION}
\stoptext 


Mathieu

  ___
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] TOC : margin size doesn't reset if next section is a chapter

2011-05-25 Thread Wolfgang Schuster

Am 25.05.2011 um 20:21 schrieb Mathieu DUPONT:

 
 In the following example, I set the margin for subsections to 1.25cm, in 
 order for the subsection number to be aligned with the titles of sections.
 If the next section after a subsection is a section or another subsection, 
 there is no problem.
 But if (as shown here) the next section (after a subsection) is a chapter, 
 it becomes shifted to the right (its margin is 1.25cm).
 Is there something I could add to my command \ChapterList to reset the 
 margin to 0cm ?
 Thanks !
 
 
 \setuplabeltext[chapter=CHAPTER~]
 
 \define[3]\ChapterList{
   \blank
   \par\noindent\currentlistsymbol\crlf
   #2\enspace\listdots\enspace
   #3\par
   }

\define[3]\ChapterList
  {\par
   \listparameter{before}%
   \leftskip\listparameter{margin}%
   \noindent#2\enspace\listdots\enspace#3\par
   \listparameter{after}}

 \setuplist[chapter][
   margin=0cm,% this line doesn't do anything
   label=yes,
   alternative=command,
   command=\ChapterList,
   ]

\setuplist
  [chapter]
  [alternative=command,
   command=\ChapterList,
   label=yes,
   before=\blank,
   margin=0pt]

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] TOC : margin size doesn't reset if next section is a chapter

2011-05-25 Thread Mathieu DUPONT


It bugs on the \leftskip command.Any idea why ?If I omit \leftskip, the problem 
doesn't get solved.

to be read again 
   \emptyargin 
\ChapterList ... \leftskip \listparameter {margin}
   \noindent \currentlistsym...
\processlistofstructure ...\fi \fi \fi \endcsname 
  \dostoptagged \processlist...
l.11 {}
   
\doplacestructurelist ...s = #4, order = #5 }}
  \dostoptagged 
\doplacecombinedlist ...edlistparameter \c!order }
  \doendoflist \stoplistrefe...
...
l.49 
 
? 


Mathieu



From: schuster.wolfg...@googlemail.com
Date: Wed, 25 May 2011 20:51:14 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] TOC : margin size doesn't reset if next section  
is a chapter




Am 25.05.2011 um 20:21 schrieb Mathieu DUPONT:In the following example, I set 
the margin for subsections to 1.25cm, in order for the subsection number to be 
aligned with the titles of sections.If the next section after a subsection is 
a section or another subsection, there is no problem.But if (as shown here) the 
next section (after a subsection) is a chapter, it becomes shifted to the 
right (its margin is 1.25cm).Is there something I could add to my command 
\ChapterList to reset the margin to 0cm ?Thanks !

\setuplabeltext[chapter=CHAPTER~]
\define[3]\ChapterList{ \blank  \par\noindent\currentlistsymbol\crlf
#2\enspace\listdots\enspace #3\par  }
\define[3]\ChapterList  {\par   \listparameter{before}%   
\leftskip\listparameter{margin}%   \noindent#2\enspace\listdots\enspace#3\par   
\listparameter{after}}
\setuplist[chapter][margin=0cm,% this line doesn't do anything  
label=yes,  alternative=command,command=\ChapterList,   ]
\setuplist  [chapter]  [alternative=command,   command=\ChapterList,   
label=yes,   before=\blank,   margin=0pt]
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
___
   ___
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] TOC : margin size doesn't reset if next section is a chapter

2011-05-25 Thread Wolfgang Schuster

Am 25.05.2011 um 22:08 schrieb Mathieu DUPONT:

 It bugs on the \leftskip command.
 Any idea why ?

I forgot that \listparameter can’t handle arguments in braces
(e.g. \listparameter{before}), this is a real limitation and i hope
Hans is going to change this.

\unprotect
\define[3]\ChapterList
  {\par
   \listparameter\c!before
   \leftskip\listparameter\c!margin
   \noindent\currentlistsymbol\crlf#2\enspace\listdots\enspace#3\par
   \listparameter\c!after}
\protect

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] setupindenting[no] does not reset indentation for items

2011-04-13 Thread Cecil Westerhof
Nobody an idea about this problem?

How at least getting items without indent?

2011/4/9, Cecil Westerhof cldwester...@gmail.com:
 I have the following code:
 \starttext

 {\bf\em default}

 paragrap1

 paragrap2

 paragrap3

 \startitemize
 \item paragrap1

 paragrap2

 paragrap3
 \stopitemize

 \setupindenting[yes,medium]

 {\bf\em after setupindenting[yes,medium]}

 paragrap1

 paragrap2

 paragrap3

 \startitemize
 \item paragrap1

 paragrap2

 paragrap3
 \stopitemize

 \setupindenting[no]

 {\bf\em after setupindenting[no]}

 paragrap1

 paragrap2

 paragrap3

 \startitemize
 \item paragrap1

 paragrap2

 paragrap3
 \stopitemize

 \stoptext

 I would expect the default and setupindentation[no] to do the same.
 But it does not. By the last one normal text is not indented anymore,
 but the items still are. Is this a bug, or a feature?


 --
 Cecil Westerhof



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


[NTG-context] setupindenting[no] does not reset indentation for items

2011-04-09 Thread Cecil Westerhof
I have the following code:
\starttext

{\bf\em default}

paragrap1

paragrap2

paragrap3

\startitemize
\item paragrap1

paragrap2

paragrap3
\stopitemize

\setupindenting[yes,medium]

{\bf\em after setupindenting[yes,medium]}

paragrap1

paragrap2

paragrap3

\startitemize
\item paragrap1

paragrap2

paragrap3
\stopitemize

\setupindenting[no]

{\bf\em after setupindenting[no]}

paragrap1

paragrap2

paragrap3

\startitemize
\item paragrap1

paragrap2

paragrap3
\stopitemize

\stoptext

I would expect the default and setupindentation[no] to do the same.
But it does not. By the last one normal text is not indented anymore,
but the items still are. Is this a bug, or a feature?


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


[NTG-context] missing or ungrouped '=' after 'reset'

2011-03-19 Thread Reviczky, Adam
Hi

I'm getting lines like these since context experimental 2011.03.11 (including 
2011.03.18) by using definelayout reset.

checkmissing or ungrouped '=' after 'reset' in line 8 (@@ly2)
checkmissing or ungrouped '=' after 'reset' in line 12 (@@ly9)

Did something change around definelayout and its options or is that just a 
normal (verbose) message?

I'm using the example on http://wiki.contextgarden.net/Layout:
%%%
\setuplayout[% default layout for all the pages
backspace=1cm,
width=middle]

\definelayout[1][% set this layout on the first page
backspace=6cm]

\definelayout[2][reset] % reset to the default layout starting from the second 
page

\definelayout[5][backspace=6cm] % use this layout starting from  page 5

\definelayout[9][reset] % reset to the default layout starting from  page 9

\starttext
\showframe
\dorecurse{20}{\input dawkins \blank[big] \input knuth \page}
\stoptext
%%%

Adam
___
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] missing or ungrouped '=' after 'reset'

2011-03-19 Thread Wolfgang Schuster

Am 19.03.2011 um 15:01 schrieb Reviczky, Adam:

 Hi
 
 I'm getting lines like these since context experimental 2011.03.11 (including 
 2011.03.18) by using definelayout reset.
 
 checkmissing or ungrouped '=' after 'reset' in line 8 (@@ly2)
 checkmissing or ungrouped '=' after 'reset' in line 12 (@@ly9)
 
 Did something change around definelayout and its options or is that just a 
 normal (verbose) message?

The example is wrong, for \definelayout only assignments are valid parameters
while \setuplayout accepts also “reset” for the first (with one argument)
or second (with two arguments) argument.

Valid settings are:

\definelayout[name][key=value,...]

\setuplayout[reset]
\setuplayout[key=value,...]
\setuplayout[name][reset]
\setuplayout[name][key=value,...]

The message above comes when you write this:

  \setupfoo[key=value,option]

ConTeXt doesn’t support mixed option where you write assignments and keywords
in one argument and for the unused keyword context gives a error message.

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] missing or ungrouped '=' after 'reset'

2011-03-19 Thread Reviczky, Adam
The example is wrong, for \definelayout only assignments are valid parameters
while \setuplayout accepts also “reset” for the first (with one argument)
or second (with two arguments) argument.
Hmm, but it's the only way it produces the output with the right layouts.
So what needs to be changed for this example to be in a correct way (and still 
get the layouts right)?

Thanks
Adam
___
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] missing or ungrouped '=' after 'reset'

2011-03-19 Thread Wolfgang Schuster

Am 19.03.2011 um 16:08 schrieb Reviczky, Adam:

 The example is wrong, for \definelayout only assignments are valid parameters
 while \setuplayout accepts also “reset” for the first (with one argument)
 or second (with two arguments) argument.
 Hmm, but it's the only way it produces the output with the right layouts.
 So what needs to be changed for this example to be in a correct way (and 
 still get the layouts right)?

\definelayout[2][] % when you don’t like the empty argument you can write 
\...[2][state=start]

and you can add

\setuplayout[2][reset]

but this isn’t necessary.

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
___


[NTG-context] \blank[reset] in MkIV

2011-02-10 Thread Ogam

Hi,

The command \blank[reset] works in MkII but not in MkIV. Is it a bug, or 
has the keyword reset been changed?

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


[NTG-context] footnote numbering reset bychapter

2010-08-25 Thread Horacio Suarez

hello all
in the sample bellow, when a \part have only one \chapter inside, the footnote 
number does not reset properly, but if there is more than one chapter in a 
part, it resets fine.
thankyou
%
\starttext
\setuphead[chapter][number=no,page=no]\setuphead[part][placehead=yes,number=no,page=no]\setupfootnotes[way=bychapter]

\part Part I
\chapter Chapter 1
Text Chapter 1\footnote{footnote 1 chapter 2}
\part Part II
\chapter Chapter 2
Texto chapter 2\footnote{Footnote 1 chapter 2. This footnote should be 1!!}
\chapter Chapter 3
Texto chapter 3\footnote{footnote 1 chapter 3}
\part Part III
\chapter Chapter 4
Texto chapter 4\footnote{footnote 1 chapter 4}
\part Part IV
\chapter Chapter 5
Text chapter 5\footnote{footnote 1 chapter 5. This footnote shlould be 1 too.}
\stoptext
%


Horacio Suarez


  ___
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] How to reset the chapter number

2009-09-21 Thread Joshua Lee
Hi Derek,
I write a little example, there's still a little issue. The chapter
number start with 1 for part II, how to make it continue from part I.
Thanks.


Best regards,
Joshua

On Sat, 19 Sep 2009, Derek CORDEIRO wrote:

 On Sat, Sep 19, 2009 at 4:13 PM, Joshua Lee muz...@gmail.com wrote:
 
  Hi Guys,
  Here's a little example,
   \setupcolors[state=start]
 
 
 \setuphead[chapter][sectionsegments=2:100]
 
 
   \starttext
 
   \completecontent
   \part{First Part}
   \chapter{First Chapter}
   \chapter{Second Chapter}
   \part{Second Part}
   \chapter{Third Chapter}
   \chapter{Chapter 4}
   \stoptext
 
  I would like to show the chapter number 1,2,3,4.. instead of
  1.1,1.2,2.1,2.2 .. how to do it?
 
 
 
 Read http://www.opensubscriber.com/message/ntg-context@ntg.nl/12416208.html

 ___
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___


-- 
Joshua Lee
Alpha Networks(Chengdu) Co., LTD
Shanghai Branch

TEL: (86-21)61609650 EXT: 8020
FAX: (86-21)61609650 EXT: 8041
ADD: Suite 301, No.10, 198 Lane, Zhangheng Road,
 ZJ Hi-Tech Park, Shanghai, China 201204



example.pdf
Description: Adobe PDF document
\setuphead[part][resetnumber=no,placehead=yes,conversion=R]
\setuphead[chapter,section,subsection][resetnumber=no,placehead=yes,sectionsegments=2:100]
\starttext
\part{part one}
\chapter{chapter one}
\section{section one}
\section{section two}
\chapter{chapter two}
\section{section one}
\section{section two}
\part{part two}
\chapter{chapter three}
\section{section one}
\section{section two}
\chapter{chapter four}
\section{section one}
\section{section two}
\stoptext

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to reset the chapter number

2009-09-21 Thread Wolfgang Schuster


Am 21.09.2009 um 17:40 schrieb Joshua Lee:


Hi Derek,
I write a little example, there's still a little issue. The chapter
number start with 1 for part II, how to make it continue from part I.


\definestructureresetset[default][0,0][1]

\setuphead[part][sectionresetset=default]

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to reset the chapter number

2009-09-21 Thread Joshua Lee
Hi Wolfgang,
It works, thanks for your quick response.

Best regards,
Joshua

On Mon, 21 Sep 2009, Wolfgang Schuster wrote:

 
 Am 21.09.2009 um 17:40 schrieb Joshua Lee:
 
  Hi Derek,
  I write a little example, there's still a little issue. The chapter
  number start with 1 for part II, how to make it continue from part I.
 
 \definestructureresetset[default][0,0][1]
 
 \setuphead[part][sectionresetset=default]
 
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

-- 
Joshua Lee
Alpha Networks(Chengdu) Co., LTD
Shanghai Branch

TEL: (86-21)61609650 EXT: 8020
FAX: (86-21)61609650 EXT: 8041
ADD: Suite 301, No.10, 198 Lane, Zhangheng Road,
 ZJ Hi-Tech Park, Shanghai, China 201204

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to reset the chapter number

2009-09-21 Thread Aditya Mahajan

Hi Wolfgang,

On Mon, 21 Sep 2009, Wolfgang Schuster wrote:



Am 21.09.2009 um 17:40 schrieb Joshua Lee:


Hi Derek,
I write a little example, there's still a little issue. The chapter
number start with 1 for part II, how to make it continue from part I.


\definestructureresetset[default][0,0][1]

\setuphead[part][sectionresetset=default]


Can you (or someone else) explain how the new numbering mechanism works? I 
have looked at the examples posted in this and other threads, and I do not 
understand how things work.


Aditya
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] How to reset the chapter number

2009-09-19 Thread Joshua Lee
Hi Guys,
Here's a little example,
 \setupcolors[state=start]
 \starttext
 
 \completecontent
 \part{First Part}
 \chapter{First Chapter}
 \chapter{Second Chapter}
 \part{Second Part}
 \chapter{Third Chapter}
 \chapter{Chapter 4}
 \stoptext

I would like to show the chapter number 1,2,3,4.. instead of 1.1,1.2,2.1,2.2 .. 
how to do it? 

Thanks.

Best regards,
Joshua


___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to reset the chapter number

2009-09-19 Thread Derek CORDEIRO
On Sat, Sep 19, 2009 at 4:13 PM, Joshua Lee muz...@gmail.com wrote:

 Hi Guys,
 Here's a little example,
  \setupcolors[state=start]


\setuphead[chapter][sectionsegments=2:100]


  \starttext

  \completecontent
  \part{First Part}
  \chapter{First Chapter}
  \chapter{Second Chapter}
  \part{Second Part}
  \chapter{Third Chapter}
  \chapter{Chapter 4}
  \stoptext

 I would like to show the chapter number 1,2,3,4.. instead of
 1.1,1.2,2.1,2.2 .. how to do it?



Read http://www.opensubscriber.com/message/ntg-context@ntg.nl/12416208.html
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Footnotes number can not be reset by way=bychapter

2009-04-19 Thread Yanrui Li
Hi,

\setupfootnotes[way=bychapter] can not work. This is minimal example:


\setupfootnotes[way=bychapter]

\starttext
\chapter{The Bare Basics}

In this\footnote{CAGD} first chapter, we cover some basic
geometry\footnote{CAGD}.

\chapter{Lines and Planes}

Next, we cover\footnote{CAGD} the basics of lines and planes\footnote{CAGD}.
\stoptext


However, I can get expected result with
\setupnumber[footnote][way=bychapter,start=0].
If I set start=1, footnotes number will begin with 2 but not 1.

What's wrong with it?

-- 
Best wishes,
Li Yanrui

* Gentoo Linux (~x86)
* ConTeXt Minimals Beta (2009.04.18 13:47)
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Reset linenumbers on each page

2008-12-17 Thread Wolfgang Schuster

Hi,

How can I reset the linenumber on each new page.

\starttext

\startlinenumbering
\dorecurse{10}{\input knuth\par}
\stoplinenumbering

\stoptext

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] how to NOT reset subsection ONLY ??

2008-04-03 Thread Steffen Wolfrum
Hi,


please have a look a this:


\setupsection[section-2][conversion=numbers]
\setupsection[section-3][conversion=numbers,previousnumber=no]
\setupsection[section-4][conversion=numbers,previousnumber=no]
\setupsection[section-5][conversion=numbers,previousnumber=no]

\setuphead[section][resetnumber=no]


\starttext

\chapter{aa}
\section{bbb}
\subsection{ccc}
\section{bbb}
\subsection{ccc}
\subsubsection{sss}

\chapter{aa}
\section{bbb}
\subsection{(-should be 3) ccc}
\section{bbb}
\subsection{(-should be 4) ccc}
\subsubsection{ddd}

\stoptext



trying to avoid resetting subsection by \setuphead[section] 
[resetnumber=no] fails:
chapter resets everything! but chapter should only reset section and  
not subsection too!!

any idea how to solve this problem (without fiddling with every  
appearance of subsection individually)??


Thank you,

Steffen
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] how to NOT reset subsection ONLY ??

2008-04-03 Thread Wolfgang Schuster
On Thu, Apr 3, 2008 at 10:51 AM, Steffen Wolfrum [EMAIL PROTECTED] wrote:
 Hi,


 please have a look a this:


 \setupsection[section-2][conversion=numbers]
 \setupsection[section-3][conversion=numbers,previousnumber=no]
 \setupsection[section-4][conversion=numbers,previousnumber=no]
 \setupsection[section-5][conversion=numbers,previousnumber=no]

 \setuphead[section][resetnumber=no]


 \starttext

 \chapter{aa}
 \section{bbb}
 \subsection{ccc}
 \section{bbb}
 \subsection{ccc}
 \subsubsection{sss}

 \chapter{aa}
 \section{bbb}
 \subsection{(-should be 3) ccc}
 \section{bbb}
 \subsection{(-should be 4) ccc}
 \subsubsection{ddd}

 \stoptext



 trying to avoid resetting subsection by \setuphead[section]
 [resetnumber=no] fails:
 chapter resets everything! but chapter should only reset section and
 not subsection too!!

 any idea how to solve this problem (without fiddling with every
 appearance of subsection individually)??

You could define subsection as a copy from section.

\setupsection[section][conversion=numbers,previousnumber=no]

\definehead[subsection][section]
\setuphead[subsection][style=]

I tried to get this effect also with ConTeXt's subhead and setupsection
commands but failed to get the desired effect. The only way to know
and understand the keys for both commands is to read the source :-(

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to not reset page numbers with a new part?

2008-02-13 Thread Wolfgang Schuster
On Feb 12, 2008 11:33 PM, Bart Wise [EMAIL PROTECTED] wrote:
 Willi,

 I tried that and it did do what I wanted.  My book has frontmatter and
 bodymatter.  The page numbering will start at 1 on the title page, displayed
 in roman numerals.  And then when the bodymatter is entered, the numbering
 should get reset to 1.  However, when I did a way=bytext, I could not reset
 the numbering to 1 when I was in the bodymatter section.

 Any more hints?

 Just for clarity sake,  here's some sample code of what I'm trying to do:

 \enablemode[doublesided]

 \setuppagenumbering[
 location={footer,middle},
 alternative=doublesided,
 partnumber=no,
 style=\em\tfx,
 way=bytext]

 \starttext

 \startfrontmatter
 \setuppagenumbering[conversion=romannumerals]

 \startstandardmakeup[headerstate=none]
 Half-Title Here
 \stopstandardmakeup

 \startstandardmakeup[doublesided=no]
 Title Here
 \stopstandardmakeup

 \startstandardmakeup[page=no]
 Copyright here
 \stopstandardmakeup

 \chapter{Preface}  \dorecurse{10}{\input tufte  }
 \stopfrontmatter

 \startbodymatter
 \setuppagenumbering[conversion=]
 \setuppagenumbering[number=1]

\setuppagenumber[number=1]

 \part{Part One}
 \chapter{first}  \dorecurse{10}{\input tufte  }
 \chapter{second} \dorecurse{10}{\input davis  }
 \part{Part Two}
 \chapter{third}  \dorecurse{10}{\input zapf   }
 \chapter{fourth} \dorecurse{10}{\input bryson }
 \stopbodymatter

 \stoptext

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to not reset page numbers with a new part?

2008-02-12 Thread Willi Egger
Hi Bart,

\setuppagenumbering[way=bytext]

is your friend.

Willi

On Feb 12, 2008, at 6:35 PM, Bart Wise wrote:

 When I define a new part to my document (\part{Part One}), the page  
 numbers
 always get reset to 0.  How do I prevent this?

 Thanks,
 Bart
 __ 
 _
 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to not reset page numbers with a new part?

2008-02-12 Thread Bart Wise
Willi,

I tried that and it did do what I wanted.  My book has frontmatter and  
bodymatter.  The page numbering will start at 1 on the title page, displayed 
in roman numerals.  And then when the bodymatter is entered, the numbering 
should get reset to 1.  However, when I did a way=bytext, I could not reset 
the numbering to 1 when I was in the bodymatter section.

Any more hints?

Just for clarity sake,  here's some sample code of what I'm trying to do:

\enablemode[doublesided]

\setuppagenumbering[
location={footer,middle},
alternative=doublesided,
partnumber=no,
style=\em\tfx,
way=bytext]

\starttext

\startfrontmatter
\setuppagenumbering[conversion=romannumerals]

\startstandardmakeup[headerstate=none]
Half-Title Here
\stopstandardmakeup

\startstandardmakeup[doublesided=no]
Title Here
\stopstandardmakeup

\startstandardmakeup[page=no]
Copyright here
\stopstandardmakeup

\chapter{Preface}  \dorecurse{10}{\input tufte  }
\stopfrontmatter

\startbodymatter
\setuppagenumbering[conversion=]
\setuppagenumbering[number=1]

\part{Part One}
\chapter{first}  \dorecurse{10}{\input tufte  }
\chapter{second} \dorecurse{10}{\input davis  }
\part{Part Two}
\chapter{third}  \dorecurse{10}{\input zapf   }
\chapter{fourth} \dorecurse{10}{\input bryson }
\stopbodymatter

\stoptext


Bart

On Tuesday February 12 2008, Willi Egger wrote:
 Hi Bart,

 \setuppagenumbering[way=bytext]

 is your friend.

 Willi

 On Feb 12, 2008, at 6:35 PM, Bart Wise wrote:
  When I define a new part to my document (\part{Part One}), the page
  numbers
  always get reset to 0.  How do I prevent this?
 
  Thanks,
  Bart
  __
  _
  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  : https://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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] How to not reset page numbers with a new part?

2008-02-12 Thread Bart Wise
When I define a new part to my document (\part{Part One}), the page numbers 
always get reset to 0.  How do I prevent this?  

Thanks,
Bart
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] error with \setcharacterspacing[reset]

2007-12-04 Thread Peter Münster
Hello,
With \setcharacterspacing[reset] I get the following error:

! Missing number, treated as zero.
to be read again 
   \relax 
l.5 \setcharacterspacing[reset]

But no problem with \doresetattribute{spacing}.

Test file:

% engine=luatex
\setcharacterspacing[frenchpunctuation]
\starttext
bla: bla\blank
\setcharacterspacing[reset]
%\doresetattribute{spacing}
bla: bla
\stoptext

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Reset a setup directive

2007-07-11 Thread Wolfgang Schuster
2007/7/10, Saji Njarackalazhikam Hameed [EMAIL PROTECTED]:
 Hi Folks,

 Is there a way to reset a \setupSomeThing[ ] directive?

 Consider for instance a complex setup for TABLES. Imagine
 I have used this setup for some parts of the document, but
 later on I want to have a radically different setup for TABLES, say.

 Is there a convenient way to do this as we can do with \reset[counter].

 saji

Hi Saji,

there is currently no command to reset the global TABLE setups
but you set them local for every table:

\start
\setupTABLE[...]
\bTABLE
...
\eTABLE
\stop

or you can define setups with often used setup parameters in the preamble
and use call them in your document for the corresponding table.

\startsetups table:noframe
  \setupTABLE[frame=off]
\stopsetups

\startsetups table:colorlines
  \setupTABLE[row][odd][background=screen]
\stopsetups

\startsetups table:normal
  \setupTABLE[background=,frame=on]
\stopsetups

\setupcolors[state=start]

\starttext

\startbuffer
\bTABLE
\dorecurse{10}
  {\bTR
   \bTD Text \eTD\bTD Text \eTD
   \eTR}
\eTABLE
\stopbuffer

\start
\setups{table:noframe}
\getbuffer
\stop

\start
\setups{table:colorlines}
\getbuffer
\stop

\getbuffer

\stoptext

@Hans: Is it possible to integrate a setups key into \bTABLE to write
something like \bTABLE[setups=table:noframe] to avoid the \start/\stop
and \setups{..} commands as I did in my example above.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Reset a setup directive

2007-07-11 Thread Saji Njarackalazhikam Hameed
Hi Wolfgang,

Thanks very much for the detailed response. I have been organizing a
co-ordinated document development project (more in the next mail)
with my colleagues. We use a wiki to input contents, which I then
scrape with hapricot and filter into a context document. Having
a setup like what you suggested eases up the process.

Thanks again,

saji
...

* Wolfgang Schuster [EMAIL PROTECTED] [2007-07-11 08:36:39 +0200]:

 2007/7/10, Saji Njarackalazhikam Hameed [EMAIL PROTECTED]:
  Hi Folks,
 
  Is there a way to reset a \setupSomeThing[ ] directive?
 
  Consider for instance a complex setup for TABLES. Imagine
  I have used this setup for some parts of the document, but
  later on I want to have a radically different setup for TABLES, say.
 
  Is there a convenient way to do this as we can do with \reset[counter].
 
  saji
 
 Hi Saji,
 
 there is currently no command to reset the global TABLE setups
 but you set them local for every table:
 
 \start
 \setupTABLE[...]
 \bTABLE
 ...
 \eTABLE
 \stop
 
 or you can define setups with often used setup parameters in the preamble
 and use call them in your document for the corresponding table.
 
 \startsetups table:noframe
   \setupTABLE[frame=off]
 \stopsetups
 
 \startsetups table:colorlines
   \setupTABLE[row][odd][background=screen]
 \stopsetups
 
 \startsetups table:normal
   \setupTABLE[background=,frame=on]
 \stopsetups
 
 \setupcolors[state=start]
 
 \starttext
 
 \startbuffer
 \bTABLE
 \dorecurse{10}
   {\bTR
\bTD Text \eTD\bTD Text \eTD
\eTR}
 \eTABLE
 \stopbuffer
 
 \start
 \setups{table:noframe}
 \getbuffer
 \stop
 
 \start
 \setups{table:colorlines}
 \getbuffer
 \stop
 
 \getbuffer
 
 \stoptext
 
 @Hans: Is it possible to integrate a setups key into \bTABLE to write
 something like \bTABLE[setups=table:noframe] to avoid the \start/\stop
 and \setups{..} commands as I did in my example above.
 
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

-- 
Saji N. Hameed

APEC Climate Center +82 51 668 7470
National Pension Corporation Busan Building 12F 
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 [EMAIL PROTECTED]
KOREA
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Reset a setup directive

2007-07-11 Thread Aditya Mahajan
On Wed, 11 Jul 2007, Wolfgang Schuster wrote:

 @Hans: Is it possible to integrate a setups key into \bTABLE to write
 something like \bTABLE[setups=table:noframe] to avoid the \start/\stop
 and \setups{..} commands as I did in my example above.

I second this request. In fact, a setups (or setup?) key will be 
useful for other commands also. Recently, I had to do something 
similar for flowcharts.

Aditya
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Reset a setup directive

2007-07-11 Thread Saji Hameed

I think this concept would help keep the styling (setups) away from  
the structural markup (section, tables etc).  This would be a much  
desirable feature.

saji

On Jul 11, 2007, at 4:43 PM, Aditya Mahajan wrote:

 On Wed, 11 Jul 2007, Wolfgang Schuster wrote:

 @Hans: Is it possible to integrate a setups key into \bTABLE to write
 something like \bTABLE[setups=table:noframe] to avoid the \start/ 
 \stop
 and \setups{..} commands as I did in my example above.

 I second this request. In fact, a setups (or setup?) key will be
 useful for other commands also. Recently, I had to do something
 similar for flowcharts.

 Aditya
 __ 
 _
 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Reset a setup directive

2007-07-10 Thread Saji Njarackalazhikam Hameed
Hi Folks,

Is there a way to reset a \setupSomeThing[ ] directive?

Consider for instance a complex setup for TABLES. Imagine
I have used this setup for some parts of the document, but
later on I want to have a radically different setup for TABLES, say.

Is there a convenient way to do this as we can do with \reset[counter].

saji

-- 
Saji N. Hameed

APEC Climate Center +82 51 668 7470
National Pension Corporation Busan Building 12F 
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 [EMAIL PROTECTED]
KOREA
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] reset command for natural tables.

2007-03-12 Thread Hans Hagen
JOHN CULLETON wrote:
 Sometimes when I combine different pieces of the same document the natural 
 tables settings for one chapter will mess up tables in another chapter. I am 
 looking for a generic
 \setupTABLE [reset]
 type command to put everything back to default values. Since there is no 
 manual for natural tables, only examples, I don't know where to find this 
 information. 

   
\startsetups whatever
table setups 
\stopsetups 


\start 
\setups{whatever}
your table 
\stop

-
  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


footnotes number doesn�t reset bychapter

2006-09-03 Thread Horacio Suarez

hello:

\setupfootnotes[way=bychapter]

doesn´t reset all the chapters footnotes numbering.

I´ve also tryed:

\setupnumber[footnote][start=1],

\setnumber[footnote]{1} and

\setupnumber[footnote][way=bysection,start=1]

and didn´t work.

I have 9 parts and 20 chapters. 5 chapters are wrong numered and they all 
are the first chapter after a part.


Please help!!!

thankyou in advance.

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


RE: footnotes number doesn�t reset bychapter

2006-09-03 Thread Horacio Suarez

i´ve fixed it making a fake chapterlike head, [placehead=no,page=] .

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How can I reset the height of a row in \bTABLE..\eTABLE?

2006-02-01 Thread Hans Hagen
Pearson, Mark (Capita Symonds) wrote:
 Hello All,

 The example below shows two tables. The first table has the height
 of its 1st row explicitly set, which then carries over to the second
 table causing the content to overflow the boundaries of the table. 

 My question: Is there a way to either a) reset the row height for the
 second table using something like \setupTABLE[r][1][height=auto] or 
 b) set the minimum height of a row e.g. \setupTABLE[r][1][minheight=3ex]
 so that the height is able to expand if necessary?

 I found a macro named \resetallTABLEparameters but it doesn't seem
 to have the desired effect.


 Thanks in advance,

 Mark Pearson


 \starttext

   
\start

\setupTABLE[r][1][height=1.5\lineheight]
 \bTABLE
 \bTR 
 \bTD 
 Cell 1
 \eTD
 \bTD 
 Cell 2
 \eTD
 \eTR
 \eTABLE
   
\stop

 \blank[2*big]

 \bTABLE
 \bTR 
 \bTD 
 This is a table cell with a long section of text in it which I 
 sincerely hope is going to force the table to resize accordingly
 \eTD
 \bTD 
 This is another table cell with some text in it too
 \eTD
 \eTR
 \eTABLE

 \stoptext


 **
 This email and any files transmitted with it are confidential, and may be 
 subject to legal privilege, and are intended solely for the use of the 
 individual or entity to whom they are addressed.  
 If you have received this email in error or think you may have done so, you 
 may not peruse, use, disseminate, distribute or copy this message. Please 
 notify the sender immediately and delete the original e-mail from your system.

 Computer viruses can be transmitted by e-mail. Recipients should check this 
 e-mail for the presence of viruses. The Capita Group and its subsidiaries 
 accept no liability for any damage caused by any virus transmitted by this 
 e-mail.
 ***
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
   


-- 

-
  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] How can I reset the height of a row in \bTABLE..\eTABLE?

2006-01-31 Thread Pearson, Mark (Capita Symonds)
Hello All,

The example below shows two tables. The first table has the height
of its 1st row explicitly set, which then carries over to the second
table causing the content to overflow the boundaries of the table. 

My question: Is there a way to either a) reset the row height for the
second table using something like \setupTABLE[r][1][height=auto] or 
b) set the minimum height of a row e.g. \setupTABLE[r][1][minheight=3ex]
so that the height is able to expand if necessary?

I found a macro named \resetallTABLEparameters but it doesn't seem
to have the desired effect.


Thanks in advance,

Mark Pearson


\starttext

\setupTABLE[r][1][height=1.5\lineheight]

\bTABLE
\bTR 
\bTD 
Cell 1
\eTD
\bTD 
Cell 2
\eTD
\eTR
\eTABLE

\blank[2*big]

\bTABLE
\bTR 
\bTD 
This is a table cell with a long section of text in it which I 
sincerely hope is going to force the table to resize accordingly
\eTD
\bTD 
This is another table cell with some text in it too
\eTD
\eTR
\eTABLE

\stoptext


**
This email and any files transmitted with it are confidential, and may be 
subject to legal privilege, and are intended solely for the use of the 
individual or entity to whom they are addressed.  
If you have received this email in error or think you may have done so, you may 
not peruse, use, disseminate, distribute or copy this message. Please notify 
the sender immediately and delete the original e-mail from your system.

Computer viruses can be transmitted by e-mail. Recipients should check this 
e-mail for the presence of viruses. The Capita Group and its subsidiaries 
accept no liability for any damage caused by any virus transmitted by this 
e-mail.
***
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \reset deprecated?

2005-12-21 Thread Hans Hagen

David Arnold wrote:


All,

I can't get \reset to work as in the manual. Is it deprecated?  
Replaced with something?


ah, has to do with low level optimizations (\currentdescriptor etc); 
i'll fix that reset


Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \reset deprecated?

2005-12-20 Thread David Arnold

All,

I can't get \reset to work as in the manual. Is it deprecated?  
Replaced with something?



%output=pdf

\defineenumeration[question][location=serried,text=Question]
\defineenumeration[answer][location=serried,text=Answer]
\defineblock[question,answer]
\hideblocks[answer]

\starttext

\chapter{First Chapter}

\input tufte

\beginquestion
\startquestion
  What is the square root of 4?
\stopquestion
\endquestion

\beginanswer
\startanswer
  2
\stopanswer
\endanswer

\section{Answers}
\reset[answer]
\selectblocks[answer][criterium=chapter]

\chapter{Second Chapter}

\input tufte

\beginquestion
\startquestion
  What is the square root of 4?
\stopquestion
\endquestion

\beginanswer
\startanswer
  2
\stopanswer
\endanswer

\stoptext

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \reset deprecated?

2005-12-20 Thread Taco Hoekwater

David Arnold wrote:

All,

I can't get \reset to work as in the manual. Is it deprecated?  Replaced 
with something?


Broken, I think ;-)

Meanhile, you can use \resetnumber[answer] directly, but I do not
believe you have to (not in this example at least).

Cheers,

Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: pb reset table setup

2004-10-19 Thread olivier Turlier

you need to use grouping:
\start
\stop
an alternative is to move the \setupTABLE
to directly after \bTABLE[...]

Thank you Hans for your answer.
I've found grouping this morning by enclosing a whole table  between { }.
--
olivier Turlier
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] pb reset table setup

2004-10-18 Thread olivier Turlier
Hi contexers,
I  got a recurrent problem with tables : the setup of the first one 
affect following other and different setup tables. See an exemple below :

\usemodule[units]
\useregime[il1]
\enableregime[il1]
\useencoding[ffr]
\mainlanguage[fr]
\setupcolors[state=start]
\definecolor[Grisbleu]  [r=0.91,g=0.91,b=0.93]
\setupitemize[each][headstyle=\bfa]
\starttext
\chapter[chapreponses]{Answers}
\section[]{baobab baobab baobab \quote{baobabbaobabbaobab}}
\startitemize[A]
   \head roots
   \setupTABLE[row][1][style=\bfxx,frame=on,align={middle,lohi}]
   \setupTABLE[1][5][style=\bfx,align=middle]
   
\setupTABLE[2][5][style=\bf,background=color,backgroundcolor=Grisbleu,align={middle,lohi}]
   \bTABLE[align=lohi,width=broad,style=tfxx]
   \bTR  \bTD Condition \eTD \bTD Vérification \eTD\eTR
   \bTR  \bTD maison non climatisée \eTD \bTD OK \eTD\eTR
   \bTR  \bTD dont la surface habitable est inférieure à 220 m\high{2} 
\eTD   \bTD OK \eTD\eTR
   \bTR  \bTD dont la surface des portes et fenêtres est inférieure à 
25 \% de la surface habitable \eTD  \bTD OK \eTD\eTR
   \bTR  \bTD Conclusion : \eTD  \bTD OK \eTD\eTR
   \eTABLE

   \head Isolation of soils, walls and ceilings

% \resetTABLE %-- NOT WORKING !!!
   \setupTABLE[row][1][style=\bfxx,frame=on,align={middle,lohi}]
   \setupTABLE[c][1][align={middle,lohi}]
   \setupTABLE[c][3][width=.5\textwidth]
   \setupTABLE[1][8][style=\bfx,align=middle]
   
\setupTABLE[5][8][style=\bf,background=color,backgroundcolor=Grisbleu,align={middle,lohi}]
   \bTABLE[align=lohi,width=broad,style=tfxx]
   \bTR  \bTD Nivel \eTD \bTD Paroi \eTD  \bTD Insulation system \eTD  
\bTD Value {\bf R} \eTD\bTD goto page \dots \eTD\eTR
   \bTR  \bTD [nr=3] R-1 \eTD  \bTD sol \eTD   \bTD floormate 200 
({\sc Isover}) ep. 60 sous dallage BA\eTD   \bTD 2 \eTD  
\bTD 40 (cours)\eTD\eTR
   \bTR   \bTD mur \eTD\bTD 
néant \eTD\bTD \eTD \bTD \eTD\eTR
   \bTR\bTD plafond \eTD \bTD 
entrevous polystyrène rectofibre ({\sc Rector}) \eTD \bTD K = 
0,31 $\dashrightarrow$ R = 3,22, feu : M1\eTD  \bTD 41 (ctrl)\eTD\eTR
   \bTR  \bTD [nr=3] R+0 \eTD  \bTD sol \eTD   \bTD dito plafond 
R-1 \eTD   \bTD 2 \eTD  \bTD 40 (cours)\eTD\eTR
   \bTR   \bTD mur \eTD\bTD 
doublage Xtherm 32 (100+13) ({\sc Knauf})\eTD\bTD 
3,15\eTD \bTD 8 (ctrl)\eTD\eTR
   \bTR\bTD plafond \eTD \bTD Laine 
verre IBR monocouche ({\sc Isover}) ep. 240 \eTD \bTD 6 \eTD  
\bTD 40 (cours)\eTD\eTR
   \bTR  \bTD [nc=4] Nombre de points : \eTD  \bTD 5 \eTD\eTR
   \eTABLE

   \head Ponts thermiques
   \startitemize[n]
   \item Ponts thermiques entre les murs extérieurs et les 
planchers

   \item dont la surface habitable est inférieure à 220 
\Square\Meter

   \item dont la surface des portes et fenêtres est inférieure 
à 25 \% de la surface habitable
   \stopitemize
   \head

   \head
\stopitemize
\stoptext
ù
The unwanted setup is on the second table, on the c2-r5 cell (sol).
What can I do ?
Thanks for your answers. Hope you understand french for better reading !
--
olivier TURLIER
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: reset \use[sub]path

2003-11-10 Thread Hans Hagen
At 17:37 10/11/2003, you wrote:
Hi,

 From: Hans Hagen [EMAIL PROTECTED]
 \usesubpath[reset]
Hans, are you sure about that?
(\use*sub*path)
 Also without expected results. So what is wrong in the following
 code?

 \starttext
 \usesubpath[lofo1]
 \processXMLfilegrouped{aqq.xml}
 \usesubpath[reset]
try: \usepath[reset]
indeed reset only works for usepath

(has to do with the fact that any \usesubpath triggers extension of the 
path list)

Hans

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


Re: [NTG-context] Re: reset \use[sub]path

2003-11-10 Thread Pawel Jackowski na Onet
Problem: reset path

  Also without expected results. So what is wrong in the following
  code?
 

  \starttext
  \usesubpath[lofo1]
  \processXMLfilegrouped{aqq.xml}
  \usesubpath[reset]

 try: \usepath[reset]

I did so. I've noticed that 'reset' option works for \usepath only but I
still get the solution. Please consider the following example (attached). We
have './lofo1' and './lofo2' directories, each contains 'x.xml' file (the
same filename but different content). ConTeXt code is as following:

\starttext
 \usepath[lofo1]
 \processXMLfilegrouped{x.xml}

 \usepath[reset]

 \usepath[lofo2]
 \processXMLfilegrouped{x.xml}
\stoptext

In this case 'reset' option works probably OK, since \allinputpaths variable
IS redefined to \empty (lines 99 to 104 of core-job.tex). So I expect that
the first processed XML file should be './lofo1/x.xml' and the second --
'./lofo2/x.xml'. But './lofo1/x.xml' file is processed twice instead. What
construction should I use to process two or more XML files, which have the
same name but different localization? I'm aware that my problem is not
common but...

Thanks for Your help, Pawe/l


usepath.zip
Description: Binary data


[NTG-context] Re: reset \use[sub]path

2003-11-10 Thread Patrick Gundlach
Hello again,

 I did so. I've noticed that 'reset' option works for \usepath only but I
 still get the solution. Please consider the following example
 (attached). 

OK, I had a close look at it and digged into deeper mechanisms of
path handling in ConTeXt.

ConTeXt stores the exact location of a file just by the filename.
Once you read x.xml, ConTeXt remembers where it is. You get a hint
when saying \tracefilestrue in your tex source. Next time you read
x.xml, ConTeXt looks into its internal macros (fn..x.xml in this
case) and reads the full path. And this is lofo1 in your case.


I don't have a solution for you. Sorry.

Patrick
-- 
You are your own rainbow!
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] reset \use[sub]path

2003-11-03 Thread Pawel Jackowski na Onet
Hi all!

Lets consider the following situation. There are 3 catalogs; ./lofo1,
./lofo2, ./lofo3, each of them contains files 'aqq.xml' and 'cow.png' for
example. Filenames are the same, but they may have different content. I need
to include all these files into one PDF document WITHOUT giving absolute
paths in TeX code. I tried something like

\usepath[lofo1]
\processXMLfilegrouped{aqq.xml}
\usepath[lofo2]
\processXMLfilegrouped{aqq.xml}
\usepath[lofo3]
\processXMLfilegrouped{aqq.xml}

but in this example the same file (./lofo1/aqq.xml) will be processed 3
times and that is not what I need. Actually the situation is even more
complicated; I have quite big XML tree with hunderts of files and images,
with dozens of catalogs. I wrote a perl script which change current
directory for each process and run texexec in changed one. And it works OK
since I want to have separate PDF document from each `lofo?' catalog. But
how to make one PDF document in such situation using \use[sub]path texnique?

In other words, how to reset settings from \usepath and \usesubpath
commands? And how to do the same for externalfigures?


Thanks in advance, Pawe/l



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


Re: [NTG-context] reset \use[sub]path

2003-11-03 Thread Hans Hagen
At 20:12 03/11/2003, you wrote:

In other words, how to reset settings from \usepath and \usesubpath
commands? And how to do the same for externalfigures?
\usesubpath[reset]

Hans  

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


Re: [NTG-context] reset \use[sub]path

2003-11-03 Thread Pawel Jackowski na Onet
problem: reseting input paths

Hi Hans

At 20:12 03/11/2003, Pawel wrote:

 In other words, how to reset settings from \usepath and \usesubpath
commands? And how to do the same for externalfigures?


From: Hans Hagen [EMAIL PROTECTED]
 \usesubpath[reset]

Thanks a lot but I still can't get it. After inspecting core-job.tex file
and tried
'reset' option. Also without expected results. So what is
wrong in the following code?

\starttext
\usesubpath[lofo1]
\processXMLfilegrouped{aqq.xml}
\usesubpath[reset]
\usesubpath[lofo2]
\processXMLfilegrouped{aqq.xml}
\usesubpath[reset]
\write16{\allinputpaths}
\stoptext

In this example \allinputpaths comma-list written to log looks like this:

lofo1,lofo1/reset,lofo1/lofo2,lofo1/reset/lofo2,lofo1/reset/reset,lofo1/lofo
2/reset,lofo1/reset/lofo2/reset

So 'reset' is treated as a directory name. Why? What am I doing wrong?



Pawe/l





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