From: Marco Patzer <homerow@lavabit.com>
To: ntg-context@ntg.nl
Subject: Re: Hiding \part completely except for in the ToC
Date: Tue, 6 Aug 2013 11:54:25 +0200 [thread overview]
Message-ID: <20130806095425.GK2084@homerow> (raw)
In-Reply-To: <CAJ3GPSmPmNiv9+DxB4ry1R8OYLwZ-DKXLCj7Rx255KY=wxUbag@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1486 bytes --]
On 2013–08–06 Alexander van Ratingen wrote:
> I'm having a little problem and I'm hoping you can help. For my table of
> contents, I need to group my sections, but I don't want any heads for this
> in the text. Now, I've been using \part for this but unfortunately I cannot
> get rid of the empty space it leaves.
Please provide an example next time. It's hard to tell what space
you're talking about.
> The only way I've been able to get rid of the empty space is by setting:
> \setuphead[part][placehead=empty]
> But then it's not in the ToC either.
>
> Alternatively, when setting placehead to any other value, it still leaves
> an empty line in the text.
Example please.
> Is it possible to have both, ie \part's in the ToC without any space taken
> by it in the text?
\definehead
[sectiongroup]
[part]
[placehead=empty,
page=no,
number=no]
\setuphead
[chapter]
[sectionresetset=none,
sectionsegments=chapter]
\setuplist
[sectiongroup]
[pagenumber=no]
\defineresetset
[none] [] [0]
\setupcombinedlist
[content]
[list={sectiongroup, chapter}]
\starttext
\completecontent
\startsectiongroup [title=First]
\startchapter [title=Foo]
\stopchapter
\startchapter [title=Bar]
\stopchapter
\stopsectiongroup
\startsectiongroup [title=Second]
\startchapter [title=Alpha]
\stopchapter
\startchapter [title=Beta]
\stopchapter
\stopsectiongroup
\stoptext
Marco
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 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-08-06 9:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-05 23:16 Alexander van Ratingen
2013-08-06 9:54 ` Marco Patzer [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=20130806095425.GK2084@homerow \
--to=homerow@lavabit.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).