[NTG-context] How to not propagate head settings?
Interesting, when I set any property of a section, the subsections and subsubsections are affected too. This is not bad, but is there a key to disable such a propagation? In the following example I need to turn off textstyle and restore align: \setuphead[section][textstyle=WORD, style={\bfa}, align=center] \setuphead[subsection][textstyle={}, style={\bf}, align=right] Regards, Vyatcheslav ___ 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 not propagate head settings?
Am 06.06.10 23:39, schrieb Vyatcheslav Yatskovsky: Interesting, when I set any property of a section, the subsections and subsubsections are affected too. This is not bad, but is there a key to disable such a propagation? In the following example I need to turn off textstyle and restore align: \setuphead[section][textstyle=WORD, style={\bfa}, align=center] \setuphead[subsection][textstyle={}, style={\bf}, align=right] Not untill Hans change the parameter handling in the section code, currently parts use the global settings from \setupheads, chapter the settings from \part etc. When you make a example you will notice that \subsubsection use the values from your \subsection setup for style and alignment. 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 not propagate head settings?
Thanks, current state of affairs is not bad (maybe even better then not-propagating alternative), but it's always good to have another option, like \setuphead[section][textstyle=WORD, style={\bfa}, align=center, propagate=no] \setuphead[subsection][style={\bf}] :) Another question - I try to make a macro for a filled in date. Empty date is ok \def \FillInDate {\hl[2]\hl[4]\hskip1mm 20\hl[2]\hskip.5mm} \starttext \FillInDate \stoptext But my printing date under lines is a mess. In particular, I want to add a bit more space around numbers, but anything I do, the space is not underlined for some strange reason. In contrary, month and year are glued together, while I want them to be separated by space. \def \FilledDate#1#2#3 {\underbar{ #1 }\hskip5mm\underbar{#2}\hskip5mm \underbar{#3}\hskip.5mm} \starttext \FilledDate{06}{05}{2010} \stoptext -- Best Regards, Vyatcheslav Yatskovsky ___ 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 ___