From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89585 Path: news.gmane.org!not-for-mail From: Mark Szepieniec Newsgroups: gmane.comp.tex.context Subject: Re: vertical alignment of table of contents in makeup Date: Sun, 21 Dec 2014 21:01:45 +0100 Message-ID: References: <5495FB13.8000409@gmx.es> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0210556632==" X-Trace: ger.gmane.org 1419192362 18544 80.91.229.3 (21 Dec 2014 20:06:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Dec 2014 20:06:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Dec 21 21:05:55 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y2mlE-0003tu-LF for gctc-ntg-context-518@m.gmane.org; Sun, 21 Dec 2014 21:05:52 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DC41D10543 for ; Sun, 21 Dec 2014 21:05:51 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 47cXQqrFrMDc for ; Sun, 21 Dec 2014 21:05:50 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id C6AB31025D for ; Sun, 21 Dec 2014 21:05:15 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 90D3D10229 for ; Sun, 21 Dec 2014 21:05:11 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id acKdYzan3jZ3 for ; Sun, 21 Dec 2014 21:05:10 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 7DED41021B for ; Sun, 21 Dec 2014 21:01:48 +0100 (CET) Original-Received: from mail-qg0-x22d.google.com (mail-qg0-x22d.google.com [IPv6:2607:f8b0:400d:c04::22d]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id sBLJoG05006525 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 21 Dec 2014 20:50:17 +0100 Original-Received: by mail-qg0-f45.google.com with SMTP id f51so2624228qge.32 for ; Sun, 21 Dec 2014 12:01:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=guQ8kY2MR8sAYi0WN7FwOKm3K5aAo04UXqmYkGyFfBU=; b=htXXg+xJspVaxOQoubnn4xcHcuGXW5mhJrBNTg+Y2hqaJhEiHL9cvBIVcnB8scgFis FIC0t51HEWn6qKILBg2KPW072IcHYnHoMw7TqrG9EZz6TViR48iqfzNP6X3uhrrrf1xD HkEs/4ogt/+Aaam4UpuRZNyXxZPCq8ez/pzi/8VCWrkyFuEoGwQgssHgMzldRlPQxIuN 20MhDPU+Wk8i8K5H/eOtAGsaUwBJ+NhRNsIQcSYAkxnxWqUOdu8yPvflHlVnheJ01+FR s/LeHzd3IH7kIZphr3r+at/eMehd3vadWYwNG5Yz9zm/Mn81LXNwIMmOJanbX9nYu0mZ ZXMQ== X-Received: by 10.224.45.69 with SMTP id d5mr31896227qaf.56.1419192105789; Sun, 21 Dec 2014 12:01:45 -0800 (PST) Original-Received: by 10.229.203.67 with HTTP; Sun, 21 Dec 2014 12:01:45 -0800 (PST) In-Reply-To: <5495FB13.8000409@gmx.es> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:400d:c04::22d; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WNujOhbH - df9cdd028f2d - 20141221 (trained as not-spam) Received-SPF: pass (filter5-til.mf.surf.net: domain of mszepien@gmail.com designates 2607:f8b0:400d:c04::22d as permitted sender) receiver=filter5-til.mf.surf.net; client-ip=2607:f8b0:400d:c04::22d; envelope-from=; helo=mail-qg0-x22d.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:89585 Archived-At: --===============0210556632== Content-Type: multipart/alternative; boundary=001a11c1f8b0556f47050abf69ad --001a11c1f8b0556f47050abf69ad Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Pablo, thanks for your clarifications. My thinking was that I didn't want my table of contents page to have a page number, but I didn't realize that the ToC head acts as a chapter head, so you can just get rid of the page number in the way you suggest. So just leaving out the makeup works fine, thanks! On Sat, Dec 20, 2014 at 11:41 PM, Pablo Rodriguez wrote: > > On 12/20/2014 03:13 AM, Mark Szepieniec wrote: > > There is a trick mentioned on the wiki for top-aligning the contents of > > a makeup page, namely adding "top=3D,", which cancels the default value= of > > \vss, which is infinitely strechable space. > > > > However, that doesn't seem to work when the first element in the makeup > > page is \completecontent: > > Hi Mark, > > this is what it happens when you start a makeup page with a \chapter > command. \chapter inserts a page break before the heading. > > > [...] > > Here, the table of contents and the section are both placed on the > > makeup page, but they are centered vertically. If the \completecontent > > line is commented out, the correct vertical alignment of the section > > header is obtained. Is there a way to get top-alignment when a makeup > > page starts with \completecontent? Is this a bug? > > As far as I know, this isn=E2=80=99t a bug. > > You can disable the page break before chapter with: > > \setuphead[chapter][page=3D] > > This way it works as you intend. > > > Or should I even be using makeup pages in my table of contents? > > I wonder whether this makes sense at all. > > Why do you want or why do you think you need the table of contents > wrapped in a makeup page? > > A makeup page is fine for contents such as title pages, colophons or > similar ones. Their contents should fit in a single page, because the > contents won=E2=80=99t be split across pages. > > Here you have a sample that shows why makeup pages shouldn=E2=80=99t be u= sed for > table of contents: > > \starttext > \startmakeup[standard][top=3D,] > \chapter{Contents} > \dorecurse{50}{\section{testsection}} > \stopmakeup > \stoptext > > I hope it helps, > > > Pablo > -- > http://www.ousia.tk > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ --001a11c1f8b0556f47050abf69ad Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Pablo,

thanks for your clarification= s. My thinking was that I didn't want my table of contents page to have= a page number, but I didn't realize that the ToC head acts as a chapte= r head, so you can just get rid of the page number in the way you suggest.<= /div>

So just leaving out the makeup works fine, thanks!=

On Sa= t, Dec 20, 2014 at 11:41 PM, Pablo Rodriguez <oinos@gmx.es> wrot= e:
On 12/20/2014 03:13 AM, M= ark Szepieniec wrote:
> There is a trick mentioned on the wiki for top-aligning the contents o= f
> a makeup page, namely adding "top=3D,", which cancels the de= fault value of
> \vss, which is infinitely strechable space.
>
> However, that doesn't seem to work when the first element in the m= akeup
> page is \completecontent:

Hi Mark,

this is what it happens when you start a makeup page with a \chapter
command. \chapter inserts a page break before the heading.

> [...]
> Here, the table of contents and the section are both = placed on the
> makeup page, but they are centered vertically. If the \completecontent=
> line is commented out, the correct vertical alignment of the section > header is obtained. Is there a way to get top-alignment when a makeup<= br> > page starts with \completecontent? Is this a bug?

As far as I know, this isn=E2=80=99t a bug.

You can disable the page break before chapter with:

=C2=A0 =C2=A0 \setuphead[chapter][page=3D]

This way it works as you intend.

> Or should I even be using makeup pages in my table of contents?

I wonder whether this makes sense at all.

Why do you want or why do you think you need the table of contents
wrapped in a makeup page?

A makeup page is fine for contents such as title pages, colophons or
similar ones. Their contents should fit in a single page, because the
contents won=E2=80=99t be split across pages.

Here you have a sample that shows why makeup pages shouldn=E2=80=99t be use= d for
table of contents:

=C2=A0 =C2=A0 \starttext
=C2=A0 =C2=A0 \startmakeup[standard][top=3D,]
=C2=A0 =C2=A0 \chapter{Contents}
=C2=A0 =C2=A0 \dorecurse{50}{\section{testsection}}
=C2=A0 =C2=A0 \stopmakeup
=C2=A0 =C2=A0 \stoptext

I hope it helps,


Pablo
--
http://www.ousia.tk ___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" target=3D"_blank"= >http://www.ntg.nl/mailman/listinfo/ntg-context
webpage=C2=A0 : http= ://www.pragma-ade.nl / http://tex.aanhet.net
archive=C2=A0 : http://foundry.supelec.fr/projects/contextrev/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--001a11c1f8b0556f47050abf69ad-- --===============0210556632== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0210556632==--