![](https://secure.gravatar.com/avatar/d6e7462bd4209f9c4cd08271985a50df.jpg?s=120&d=mm&r=g)
Hello, is there a way how to change all heads style, e.g. to sans? This doesn't work for me: ---- \setupheads[style=\ss] \starttext \section{Abc} Def \stoptext ---- TIA. Best regards, Lukas (ConTeXt ver: 2012.11.26 13:31 MKIV fmt: 2012.11.27 int: english/english) -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
![](https://secure.gravatar.com/avatar/27c34cb91f1e92bd850fe60b3d9ef336.jpg?s=120&d=mm&r=g)
Am 22.02.2013 um 08:40 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
Hello,
is there a way how to change all heads style, e.g. to sans?
This doesn't work for me:
---- \setupheads[style=\ss]
\starttext \section{Abc}
Def \stoptext ----
TIA.
This doesn’t work because chapter, section etc. have a individual style which is used instead of the global setting. \setuphead[chapter][style=\ssc] \setuphead[section][style=\ssa] Wolfgang
![](https://secure.gravatar.com/avatar/dbfd0b336a5b4c42b7a8335233ed4f41.jpg?s=120&d=mm&r=g)
On 02/22/2013 01:31 PM, Wolfgang Schuster wrote:
Am 22.02.2013 um 08:40 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
: Hello,
is there a way how to change all heads style, e.g. to sans?
This doesn't work for me:
---- \setupheads[style=\ss]
\starttext \section{Abc}
Def \stoptext ----
TIA. This doesn’t work because chapter, section etc. have a individual style which is used instead of the global setting.
\setuphead[chapter][style=\ssc] \setuphead[section][style=\ssa]
Wolfgang
A slightly more verbose alternative which I have been using is: \definehead [chapter] [section] \setuphead [chapter] [section] [style=\ss] \setuphead [chapter] [style=\tfb] \setuphead [section] [style=\tfx] \starttext \chapter{Chapter} \section{Section} \stoptext Is this not recommended? Regards, Devendra
___________________________________________________________________________________ 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 ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/e1d6b7d0f096cb8cf44273fa33fb05f0.jpg?s=120&d=mm&r=g)
Hi Devendra!
···
A slightly more verbose alternative which I have been using is:
\definehead [chapter] [section]
\setuphead [chapter] [section] [style=\ss]
\setuphead [chapter] [style=\tfb]
\setuphead [section] [style=\tfx]
\starttext \chapter{Chapter} \section{Section} \stoptext
Is this not recommended?
With \definehead[chapter][section] you set the structurelevel of \section to that of \chapter, essentially creating a synonym with a slightly different style. This is guaranteed to mess up your lists (e.g. toc). To verify that, execute this snippet: \definehead[chapter][section] \starttext \chapter{foo} \section{bar} \chapter{baz} \stoptext Observe that \section and \chapter now share a counter. Btw. to avoid confusion better create your own set of macros (\definehead[myexperimentalsection][section]) instead of overriding pre-defined functionality. Hth Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
participants (4)
-
Devendra Ghate
-
Philipp Gesang
-
Procházka Lukáš Ing. - Pontex s. r. o.
-
Wolfgang Schuster