From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89589 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 22:29:25 +0100 Message-ID: References: <5495FB13.8000409@gmx.es> <549737AA.4000902@gmx.es> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1656731866==" X-Trace: ger.gmane.org 1419197411 27908 80.91.229.3 (21 Dec 2014 21:30:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Dec 2014 21:30:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Dec 21 22:30:07 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 1Y2o4k-00078L-G9 for gctc-ntg-context-518@m.gmane.org; Sun, 21 Dec 2014 22:30:06 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D5ECD10221 for ; Sun, 21 Dec 2014 22:30:05 +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 gI4vigVe9xPn for ; Sun, 21 Dec 2014 22:30:04 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id C23FE1025E for ; Sun, 21 Dec 2014 22:29:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B5A4A10221 for ; Sun, 21 Dec 2014 22:29:29 +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 5rqLQokC1KOt for ; Sun, 21 Dec 2014 22:29:28 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 7E6D210220 for ; Sun, 21 Dec 2014 22:29:28 +0100 (CET) Original-Received: from mail-qg0-x235.google.com (mail-qg0-x235.google.com [IPv6:2607:f8b0:400d:c04::235]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id sBLLTQIa001664 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 21 Dec 2014 22:29:27 +0100 Original-Received: by mail-qg0-f53.google.com with SMTP id l89so2636012qgf.40 for ; Sun, 21 Dec 2014 13:29:26 -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=8zU0LLywLWSKqly1/SOPY7CtejQi2SNTNaZXYtWWEHM=; b=bBo1hCKYDqhzp2lfs0J5IGU2X8ZJSZCd25jJ31EGkQ/09jzzGiklkJefrv58T1mN49 wCg6/gqdpuglWX5UQIAbS5WbfAc42/syg8S7nkPmSRAQB9V68cQwF7cEbFM2Y6qCHFx/ Q29dZgzsn2jyx1+HGaQ55gB7kx5R7kw0MbxQpCf4y++YN6MIqQ6T0hNmBuTFtK+HX7NT /UUEu/XUL0SnspgEMZW9r2lDb1FQ+Z1vHq6EYy38biBB72hE4ZPjH14iScBbg0ojlU5x VTJnNT0pNswoEqZN7hyi3Ah+oK5twQ4oI5ceC6UQ5YDCdftVil7a2J89gryBNBLrgNvw fg6g== X-Received: by 10.229.97.73 with SMTP id k9mr31773955qcn.15.1419197366012; Sun, 21 Dec 2014 13:29:26 -0800 (PST) Original-Received: by 10.229.203.67 with HTTP; Sun, 21 Dec 2014 13:29:25 -0800 (PST) In-Reply-To: <549737AA.4000902@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::235; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01NultrVD - a58e3bc76f24 - 20141221 (trained as not-spam) Received-SPF: pass (filter4-ams.mf.surf.net: domain of mszepien@gmail.com designates 2607:f8b0:400d:c04::235 as permitted sender) receiver=filter4-ams.mf.surf.net; client-ip=2607:f8b0:400d:c04::235; envelope-from=; helo=mail-qg0-x235.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:89589 Archived-At: --===============1656731866== Content-Type: multipart/alternative; boundary=001a113379dcde4ea0050ac0a245 --001a113379dcde4ea0050ac0a245 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, Dec 21, 2014 at 10:12 PM, Pablo Rodriguez wrote: > > On 12/21/2014 09:01 PM, Mark Szepieniec wrote: > > 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 pag= e > > number in the way you suggest. > > > > So just leaving out the makeup works fine, thanks! > > Hi Mark, > > to get rid of page numbers in the table of contents, > > http://wiki.contextgarden.net/Table_of_Contents#Suppressing_page_numberin= g_for_the_ToC_pages > may help you. > > Just in case it helps, > > Pablo > > > > > 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 \chapte= r > > command. \chapter inserts a page break before the heading. > > > > > [...] > > > Here, the table of contents and the section are both placed on th= e > > > 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 o= r > > similar ones. Their contents should fit in a single page, because t= he > > contents won=E2=80=99t be split across pages. > > > > Here you have a sample that shows why makeup pages shouldn=E2=80=99= t be used > for > > table of contents: > > > > \starttext > > \startmakeup[standard][top=3D,] > > \chapter{Contents} > > \dorecurse{50}{\section{testsection}} > > \stopmakeup > > \stoptext > > > > I hope it helps, > > > > > > Pablo > Interesting, thanks! --001a113379dcde4ea0050ac0a245 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Sun, Dec 21, 2014 at 10:12 PM, Pablo Rodriguez <= ;oinos@gmx.es> wrote:
On 12/21/2014 09:= 01 PM, Mark Szepieniec wrote:
> 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 pa= ge
> number in the way you suggest.
>
> So just leaving out the makeup works fine, thanks!

Hi Mark,

to get rid of page numbers in the table of contents,
http://wiki.contextgarden.n= et/Table_of_Contents#Suppressing_page_numbering_for_the_ToC_pages
may help you.

Just in case it helps,

Pablo



> On Sat, Dec 20, 2014 at 11:41 PM, Pablo Rodriguez wrote:
>
>=C2=A0 =C2=A0 =C2=A0On 12/20/2014 03:13 AM, Mark Szepieniec wrote:
>=C2=A0 =C2=A0 =C2=A0> There is a trick mentioned on the wiki for top= -aligning the contents of
>=C2=A0 =C2=A0 =C2=A0> a makeup page, namely adding "top=3D,&quo= t;, which cancels the default value of
>=C2=A0 =C2=A0 =C2=A0> \vss, which is infinitely strechable space. >=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0> However, that doesn't seem to work when th= e first element in the makeup
>=C2=A0 =C2=A0 =C2=A0> page is \completecontent:
>
>=C2=A0 =C2=A0 =C2=A0Hi Mark,
>
>=C2=A0 =C2=A0 =C2=A0this is what it happens when you start a makeup pag= e with a \chapter
>=C2=A0 =C2=A0 =C2=A0command. \chapter inserts a page break before the h= eading.
>
>=C2=A0 =C2=A0 =C2=A0> [...]
>=C2=A0 =C2=A0 =C2=A0> Here, the table of contents and the section ar= e both placed on the
>=C2=A0 =C2=A0 =C2=A0> makeup page, but they are centered vertically.= If the \completecontent
>=C2=A0 =C2=A0 =C2=A0> line is commented out, the correct vertical al= ignment of the section
>=C2=A0 =C2=A0 =C2=A0> header is obtained. Is there a way to get top-= alignment when a makeup
>=C2=A0 =C2=A0 =C2=A0> page starts with \completecontent? Is this a b= ug?
>
>=C2=A0 =C2=A0 =C2=A0As far as I know, this isn=E2=80=99t a bug.
>
>=C2=A0 =C2=A0 =C2=A0You can disable the page break before chapter with:=
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\setuphead[chapter][page=3D]
>
>=C2=A0 =C2=A0 =C2=A0This way it works as you intend.
>
>=C2=A0 =C2=A0 =C2=A0> Or should I even be using makeup pages in my t= able of contents?
>
>=C2=A0 =C2=A0 =C2=A0I wonder whether this makes sense at all.
>
>=C2=A0 =C2=A0 =C2=A0Why do you want or why do you think you need the ta= ble of contents
>=C2=A0 =C2=A0 =C2=A0wrapped in a makeup page?
>
>=C2=A0 =C2=A0 =C2=A0A makeup page is fine for contents such as title pa= ges, colophons or
>=C2=A0 =C2=A0 =C2=A0similar ones. Their contents should fit in a single= page, because the
>=C2=A0 =C2=A0 =C2=A0contents won=E2=80=99t be split across pages.
>
>=C2=A0 =C2=A0 =C2=A0Here you have a sample that shows why makeup pages = shouldn=E2=80=99t be used for
>=C2=A0 =C2=A0 =C2=A0table of contents:
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\starttext
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\startmakeup[standard][top=3D,]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\chapter{Contents}
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\dorecurse{50}{\section{testsection}}=
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\stopmakeup
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\stoptext
>
>=C2=A0 =C2=A0 =C2=A0I hope it helps,
>
>
>=C2=A0 =C2=A0 =C2=A0Pablo

Interesting, thanks!
--001a113379dcde4ea0050ac0a245-- --===============1656731866== 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= --===============1656731866==--