[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 ___
Re: [NTG-context] [***SPAM***] Changing the font of the TOC-Title
Am 15.04.2013 um 08:06 schrieb "H. Özoguz" : > 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 ___
Re: [NTG-context] [***SPAM***] Changing the font of the TOC-Title
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.oezo...@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 > ___ ___ 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] [***SPAM***] Changing the font of the TOC-Title
oh, sorry, I don't konw Wolfgang has replied to this question. Please take the method provided by Wolfgang. From: timli2...@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 + 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.oezo...@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 > ___ ___ 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 ___