ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How to make all heads \ss?
@ 2013-02-22  7:40 Procházka Lukáš Ing. - Pontex s. r. o.
  2013-02-22  8:01 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2013-02-22  7:40 UTC (permalink / raw)
  To: ConTeXt

[-- Attachment #1: Type: text/plain, Size: 505 bytes --]

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

[-- Attachment #2: t3.mkiv --]
[-- Type: application/octet-stream, Size: 75 bytes --]

\setupheads[style=\ss]

\starttext
  \section{Abc}

  Def
\stoptext

[-- Attachment #3: t3.pdf --]
[-- Type: application/pdf, Size: 6597 bytes --]

[-- Attachment #4: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to make all heads \ss?
  2013-02-22  7:40 How to make all heads \ss? Procházka Lukáš Ing. - Pontex s. r. o.
@ 2013-02-22  8:01 ` Wolfgang Schuster
  2013-02-22  8:26   ` Devendra Ghate
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2013-02-22  8:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 22.02.2013 um 08:40 schrieb Procházka Lukáš Ing. - Pontex s. r. o. <LPr@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to make all heads \ss?
  2013-02-22  8:01 ` Wolfgang Schuster
@ 2013-02-22  8:26   ` Devendra Ghate
  2013-02-22 13:57     ` Philipp Gesang
  0 siblings, 1 reply; 4+ messages in thread
From: Devendra Ghate @ 2013-02-22  8:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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. <LPr@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to make all heads \ss?
  2013-02-22  8:26   ` Devendra Ghate
@ 2013-02-22 13:57     ` Philipp Gesang
  0 siblings, 0 replies; 4+ messages in thread
From: Philipp Gesang @ 2013-02-22 13:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1190 bytes --]

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

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-02-22 13:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-22  7:40 How to make all heads \ss? Procházka Lukáš Ing. - Pontex s. r. o.
2013-02-22  8:01 ` Wolfgang Schuster
2013-02-22  8:26   ` Devendra Ghate
2013-02-22 13:57     ` Philipp Gesang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).