ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Table of Contents issues
@ 2011-02-12 17:12 Tom
  2011-02-12 18:55 ` Wolfgang Schuster
  0 siblings, 1 reply; 20+ messages in thread
From: Tom @ 2011-02-12 17:12 UTC (permalink / raw)
  To: ntg-context

Using a very recent download of TexLive 2010 (MKII) on my PC, my success
generating a useful table of contents has been somewhat limited.

I can't figure out how to put the title, "Contents," in the font I desire.
The various parameters I found in the documentation affect the chapter
titles and the page numbers but nothing I've found allows me to control the
title of the ToC. What am I overlooking? 

I would also like for the unnumbered "chapter" titles, such as introduction
or preface, to align with the other chapter titles, not with their numbers.
Aligntitle seems to have no effect on anything from what I have seen.

\definehead [intro][chapter]
\setuphead  [intro][number=no,textstyle=\ss\bf]
\setuphead  [chapter][textstyle=\ss\bf,numberstyle=\ss\bf] 
\definecombinedlist [content][intro,chapter,section]
\setupcombinedlist[content][style=\ss\bf,textstyle=\ss\bf,pagestyle=\ss\bf,n
umberstyle=\ss\bf,aligntitle=yes]
\setuplist [intro][headnumber=no]

\starttext
\completecontent
\intro{Introduction}
\input knuth
\chapter{First chapter}
\input knuth
\chapter{Second Chapter}
\input Knuth
\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com





___________________________________________________________________________________
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] 20+ messages in thread
* Stretching chapter titles - MKII
@ 2011-02-15  0:45 Tom
  2011-02-15  7:53 ` Hans Hagen
  2011-02-15 18:14 ` Wolfgang Schuster
  0 siblings, 2 replies; 20+ messages in thread
From: Tom @ 2011-02-15  0:45 UTC (permalink / raw)
  To: ntg-context


Follows is some code that executes. The lines immediately following
\starttext create a sample of the desired output format. However, I want to
accomplish similar results for chapter titles via the passing of arguments
containing the chapter title and number. Numerous attempts at that have
resulted in abject failure. I am clearly missing something.


\def\MyChapterCommand#1#2
  {\switchtobodyfont[ss,30pt]
   \hbox to \hsize {\stretched{Chapter\\One}}
   \blank[small]
   \switchtobodyfont[sansbold,20pt]
   \hbox to \hsize {\stretched{It\\Was\\The\\Best\\Of\\Times}}}

\setuphead[chapter]
 [command=\MyChapterCommand,
  header=empty,footer=chapter,page=mychapterpagebreak,
  after={\blank[0.5in]},before={\blank[force,1.0in]}]
  

\starttext
\switchtobodyfont[sans,30pt]
\hbox to \hsize {\stretched{Chapter\\One}}
\blank[small]
\switchtobodyfont[sansbold,20pt]
\hbox to \hsize {\stretched{It\\Was\\The\\Best\\Of\\Times}}

\chapter{It\\Was\\The\\Best\\Of\\Times}
\input knuth
\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com





___________________________________________________________________________________
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] 20+ messages in thread

end of thread, other threads:[~2011-02-16 15:20 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-12 17:12 Table of Contents issues Tom
2011-02-12 18:55 ` Wolfgang Schuster
2011-02-12 20:29   ` Tom
2011-02-13  9:19     ` Wolfgang Schuster
2011-02-13  3:38   ` Using fonts from multiple families Tom
2011-02-13  9:59     ` Wolfgang Schuster
2011-02-13 13:23       ` Tom
2011-02-13 13:36         ` Wolfgang Schuster
2011-02-13 14:39           ` Tom
2011-02-13 14:55             ` Wolfgang Schuster
2011-02-13 20:40       ` Getting paragraphs to indent Tom
2011-02-13 20:58         ` Wolfgang Schuster
2011-02-13 21:55           ` Tom
2011-02-16 14:06           ` Stretching chapter titles - MKII Tom
2011-02-16 14:14             ` Cedric Mauclair
2011-02-16 14:52               ` John McGarrachan
2011-02-16 15:20             ` Aditya Mahajan
2011-02-15  0:45 Tom
2011-02-15  7:53 ` Hans Hagen
2011-02-15 18:14 ` Wolfgang Schuster

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).