Re: [NTG-context] headers: numberconversion=something or \definestructureconversionset

2011-12-13 Thread Philipp A.
2011/12/12 Wolfgang Schuster schuster.wolfg...@googlemail.com

 Am 08.12.2011 um 11:21 schrieb Philipp A.

 hi list,

 i want to make an exercise sheet style. exercises are already correctly
 rendered as “*Exercise 1: Text*”, but sub-exercises should simply be
 like “*a)*”.

 what i tried:

 \definestructureconversionset[ex][numbers,characters][numbers]
 \setupheads[numberconversion=ex]


 sectionconversionset=…

 and

 \setuphead[subsection][numberconversion=characters, …]


 sectionconversion=…

 but i have no idea what i’m doing in the first case and even less idea of
 what i’m doing wrong in the second.

 documentation would help in both cases, but contextgarden just has some
 (for me) incomprehensible examples.


 For a list with the correct names of the keys look here (the “conversion”
 in the pdf for \setuphead is wrong but i fixed it in my local version):
 https://bitbucket.org/wolfs/commands/downloads

 Wolfgang


very nice, thanks. i willput it on contextgarden as soon as i figured out
what exactly it does (i.e. how it works together with numbercommand)
___
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] headers: numberconversion=something or \definestructureconversionset

2011-12-12 Thread Wolfgang Schuster

Am 08.12.2011 um 11:21 schrieb Philipp A.:

 hi list,
 
 i want to make an exercise sheet style. exercises are already correctly 
 rendered as “Exercise 1: Text”, but sub-exercises should simply be like 
 “a)”.
 
 what i tried:
 
 \definestructureconversionset[ex][numbers,characters][numbers]
 \setupheads[numberconversion=ex]

sectionconversionset=…

 and
 
 \setuphead[subsection][numberconversion=characters, …]

sectionconversion=…

 but i have no idea what i’m doing in the first case and even less idea of 
 what i’m doing wrong in the second.
 
 documentation would help in both cases, but contextgarden just has some (for 
 me) incomprehensible examples.

For a list with the correct names of the keys look here (the “conversion” in 
the pdf for \setuphead is wrong but i fixed it in my local version): 
https://bitbucket.org/wolfs/commands/downloads

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] headers: numberconversion=something or \definestructureconversionset

2011-12-08 Thread Philipp A.
hi list,

i want to make an exercise sheet style. exercises are already correctly
rendered as “*Exercise 1: Text*”, but sub-exercises should simply be
like “*a)*”.

what i tried:

\definestructureconversionset[ex][numbers,characters][numbers]
\setupheads[numberconversion=ex]

and

\setuphead[subsection][numberconversion=characters, …]

but i have no idea what i’m doing in the first case and even less idea of
what i’m doing wrong in the second.

documentation would help in both cases, but contextgarden just has some
(for me) incomprehensible examples.

thanks,
philipp

--

what i’d really love to have is the following commands, but i’ll figure it
out once i have above problem solved.

“\sheet” reads the current sheet number from the file name and gives “*Sheet
1*” as title level header.
“\exercise[descr]” gives “*Exercise 1*” without and “*Exercise 1:
descr*” as section level header.
“\subexercise[descr]” gives “*a)*” without and “*a: descr)*” with
description as subsection level header.
___
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
___