From: Tim Li <timli2013@outlook.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: [***SPAM***] Changing the font of the TOC-Title
Date: Mon, 15 Apr 2013 08:25:23 +0000 [thread overview]
Message-ID: <BLU152-W6477A4A808D6D33CEB0346A9CC0@phx.gbl> (raw)
In-Reply-To: <BLU152-W33AC16E4661EB6E96D6224A9CC0@phx.gbl>
[-- 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
___________________________________________________________________________________
prev parent reply other threads:[~2013-04-15 8:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-15 6:06 "H. Özoguz"
2013-04-15 8:14 ` Wolfgang Schuster
2013-04-15 8:20 ` Tim Li
2013-04-15 8:25 ` Tim Li [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BLU152-W6477A4A808D6D33CEB0346A9CC0@phx.gbl \
--to=timli2013@outlook.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).