* [***SPAM***] Changing the font of the TOC-Title
@ 2013-04-15 6:06 "H. Özoguz"
2013-04-15 8:14 ` Wolfgang Schuster
2013-04-15 8:20 ` Tim Li
0 siblings, 2 replies; 4+ messages in thread
From: "H. Özoguz" @ 2013-04-15 6:06 UTC (permalink / raw)
To: ntg-context
Hello,
I know, that I can change the TOC-Title by
\setupheadtext[content=Whatever the TOC-Title may be]
How can I change the Font of the TOC-Title, is there a style key, or
somewhat like that?
(Directly "\setupheadtext[content=Whatever the TOC-Title may be,
style=Chapterstyle]" does not work, where "Chapterstyle" is a defined Font)
Huseyin
___________________________________________________________________________________
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: [***SPAM***] Changing the font of the TOC-Title
2013-04-15 6:06 [***SPAM***] Changing the font of the TOC-Title "H. Özoguz"
@ 2013-04-15 8:14 ` Wolfgang Schuster
2013-04-15 8:20 ` Tim Li
1 sibling, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2013-04-15 8:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 15.04.2013 um 08:06 schrieb "H. Özoguz" <h.oezoguz@mmnetz.de>:
> Hello,
>
> I know, that I can change the TOC-Title by
>
> \setupheadtext[content=Whatever the TOC-Title may be]
>
> How can I change the Font of the TOC-Title, is there a style key, or somewhat like that?
> (Directly "\setupheadtext[content=Whatever the TOC-Title may be, style=Chapterstyle]" does not work, where "Chapterstyle" is a defined Font)
The title for the TOC is placed with the \title command, to change it’s style you have
to change the values for \title, e.g.
\setuphead[title][style=\ssc]
When you don’t want to change the style of all title-headings you can create
your heading with a different style, e.g.
\definehead[toctitle][title]
\setuphead[toctitle][style=\ssc]
\starttext
\toctitle[content]{\headtext{content}}
\placecontent
…
\stoptext
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: [***SPAM***] Changing the font of the TOC-Title
2013-04-15 6:06 [***SPAM***] Changing the font of the TOC-Title "H. Özoguz"
2013-04-15 8:14 ` Wolfgang Schuster
@ 2013-04-15 8:20 ` Tim Li
2013-04-15 8:25 ` Tim Li
1 sibling, 1 reply; 4+ messages in thread
From: Tim Li @ 2013-04-15 8:20 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1630 bytes --]
I have achieved this by the following method:
I think we'd better only change the label by \setupheadtext and chage its style by \setuphead. An example as follows \setupheadtext[content={CONTENTS}]
\def\mytitle#1{%
\midaligned{#1}}
\setuphead
[title]
[style={\bfb},
color=red,
before={},
after={\blank[3*big]},
textcommand={\mytitle}] it works well for me :-) but please note that if you use \title in the frontmatter, the title also will be changed. Maybe you want to define your own title to solve this problem.> Date: Mon, 15 Apr 2013 08:06:54 +0200
> From: h.oezoguz@mmnetz.de
> To: ntg-context@ntg.nl
> Subject: [NTG-context] [***SPAM***] Changing the font of the TOC-Title
>
> Hello,
>
> I know, that I can change the TOC-Title by
>
> \setupheadtext[content=Whatever the TOC-Title may be]
>
> How can I change the Font of the TOC-Title, is there a style key, or
> somewhat like that?
> (Directly "\setupheadtext[content=Whatever the TOC-Title may be,
> style=Chapterstyle]" does not work, where "Chapterstyle" is a defined Font)
>
> Huseyin
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 2156 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
* Re: [***SPAM***] Changing the font of the TOC-Title
2013-04-15 8:20 ` Tim Li
@ 2013-04-15 8:25 ` Tim Li
0 siblings, 0 replies; 4+ messages in thread
From: Tim Li @ 2013-04-15 8:25 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1941 bytes --]
oh, sorry, I don't konw Wolfgang has replied to this question. Please take the method provided by Wolfgang.
From: timli2013@outlook.com
To: ntg-context@ntg.nl
Subject: RE: [NTG-context] [***SPAM***] Changing the font of the TOC-Title
Date: Mon, 15 Apr 2013 08:20:11 +0000
I have achieved this by the following method:
I think we'd better only change the label by \setupheadtext and chage its style by \setuphead. An example as follows
\setupheadtext[content={CONTENTS}]
\def\mytitle#1{%
\midaligned{#1}}
\setuphead
[title]
[style={\bfb},
color=red,
before={},
after={\blank[3*big]},
textcommand={\mytitle}]
it works well for me :-)
but please note that if you use \title in the frontmatter, the title also will be changed. Maybe you want to define your own title to solve this problem.
> Date: Mon, 15 Apr 2013 08:06:54 +0200
> From: h.oezoguz@mmnetz.de
> To: ntg-context@ntg.nl
> Subject: [NTG-context] [***SPAM***] Changing the font of the TOC-Title
>
> Hello,
>
> I know, that I can change the TOC-Title by
>
> \setupheadtext[content=Whatever the TOC-Title may be]
>
> How can I change the Font of the TOC-Title, is there a style key, or
> somewhat like that?
> (Directly "\setupheadtext[content=Whatever the TOC-Title may be,
> style=Chapterstyle]" does not work, where "Chapterstyle" is a defined Font)
>
> Huseyin
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 2717 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-04-15 8:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-15 6:06 [***SPAM***] Changing the font of the TOC-Title "H. Özoguz"
2013-04-15 8:14 ` Wolfgang Schuster
2013-04-15 8:20 ` Tim Li
2013-04-15 8:25 ` Tim Li
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).