Re: [NTG-context] How to make all heads \ss?
Am 22.02.2013 um 08:40 schrieb Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: 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 ___ 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 make all heads \ss?
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. l...@pontex.cz: 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 ___ ___ 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 make all heads \ss?
Hi Devendra! ···date: 2013-02-22, Friday···from: Devendra Ghate··· 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 pgpaq2sZ6nzX0.pgp Description: PGP signature ___ 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 make all heads \ss?
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:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 t3.mkiv Description: Binary data t3.pdf Description: Adobe PDF document ___ 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 ___