ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: robheus <robheus@xs4all.nl>
To: ntg-context@ntg.nl
Subject: Formatting TOC
Date: Mon, 03 Aug 2015 11:22:03 +0200	[thread overview]
Message-ID: <cfd021386560828186a3613ff8fdcf08@xs4all.nl> (raw)

Hello list,

I need some adjustments to my TOC and chapter titles.

1. The title and the title of every chapter need to be indented (leaving 
enough room

2. The title of part does not need to be indented, but uses two 
consecutive lines, preceded and followed with a blank line, as follows

DEEL <part number>
<part title>

3. Chapter entries are on consecutive lines, except that between the 
first and second, and before the last chapter entry there is a blank 
line.

(I use "\setuplist[chapter][before=]" and tried to use 
"\writebetweenlist[content]{\blank}" at the specified locations to get 
blank lines there, but this didn't work)

4. The part number needs to be capital roman numbers, and titles of 
chapters are preceded with the capital roman part number.

(The option "conversion=Romannumerals" in "\setuphead[part]" doesn't 
seem to work)

5. There are 2 parts, part 1 with 5 chapters, part 2 with 4 chapters. 
Chapter numbering of part 1 only starts with 0 instead of 1.

(I use currently the "ownnumber" option of \startchapter for all 
chapters of part 1, but is there a more simple or elegant option for 
this, just setting the chapter number 0 directly after part 1 starts or 
so?)


Greetings,

Rob


The code I use now, is below:


\setupheadtext[content=INHOUDSOPGAVE] % Kop boven de inhoudsopgave
\setuphead[title][align=flushleft]

\definecombinedlist[content][part,chapter] % welke structuur-elementen 
in de inhoudsopgave komen
\setupcombinedlist[content][level=2, alternative=b]

\setuphead[part][placehead=no,bodypartlabel=Deel,conversion=Romannumerals]
\setuphead[chapter][page=right,indentnext=yes,align={nothyphenated},style=\bf,after={\blank[2cm]},sectionsegments=part:chapter]
\setuphead[section][style=\bf,indentnext=yes,sectionsegments=chapter:section,align={nothyphenated}]
\setuphead[subject][indentnext=yes,style=\tf]

\define[3]\PartListEntry{
	\vbox{DEEL #1\crlf #2}
	}

\setuplist[part][state=start,headnumber=no,pagenumber=no,alternative=command,command=\PartListEntry]
\setuplist[chapter][before=]
___________________________________________________________________________________
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
___________________________________________________________________________________

             reply	other threads:[~2015-08-03  9:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-03  9:22 robheus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-09-26 11:14 Diego Depaoli
2008-09-26 11:21 ` Mikael Persson
2008-09-26 11:49   ` Diego Depaoli
2008-09-26 12:43     ` Hans Hagen
2008-09-26 15:00       ` Diego Depaoli
2008-09-27  7:03   ` Wolfgang Schuster
2008-09-28 21:54     ` Diego Depaoli
2008-10-10 10:02       ` Wolfgang Schuster
2008-09-26 11:37 ` Wolfgang Schuster

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=cfd021386560828186a3613ff8fdcf08@xs4all.nl \
    --to=robheus@xs4all.nl \
    --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).