From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114872 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joel via ntg-context Newsgroups: gmane.comp.tex.context Subject: How to place "Content" and other chapter-level titles the same vertical distance from the top? Date: Sun, 8 May 2022 02:49:32 +0000 (UTC) Message-ID: <1824062514.395281.1651978172584@mail.yahoo.com> References: <1824062514.395281.1651978172584.ref@mail.yahoo.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4497677065608137181==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3004"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joel To: "ntg-context@ntg.nl" Original-X-From: ntg-context-bounces@ntg.nl Sun May 08 04:51:20 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nnX0y-0000XZ-Dz for gctc-ntg-context-518@m.gmane-mx.org; Sun, 08 May 2022 04:51:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EEEB0360533; Sun, 8 May 2022 04:49:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EGQpDl75afZv; Sun, 8 May 2022 04:49:43 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EC9B4360674; Sun, 8 May 2022 04:49:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B80BC360674 for ; Sun, 8 May 2022 04:49:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 48y_julKlcOz for ; Sun, 8 May 2022 04:49:40 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=74.6.132.42; helo=sonic306-3.consmr.mail.bf2.yahoo.com; envelope-from=uaru99@yahoo.com; receiver= Original-Received: from sonic306-3.consmr.mail.bf2.yahoo.com (sonic306-3.consmr.mail.bf2.yahoo.com [74.6.132.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id D05A3360533 for ; Sun, 8 May 2022 04:49:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1651978177; bh=jHo9BRF8d6TFVxnulJuvlcZP3fOWYd1SYsxUGBxjgq0=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=Wn+hCgDvYuEQdilkeb+qvsUCN4d4dNuFIboLGR6ce5/xIbLR5eOmCNCgwlIXOotagETvmGBjYnuZQZLp8adzHgb89LrkQPPYen0N/wV2eG1XDOMhfoCi4Q/1mCsmzEFzNS9O0Zbv2OLyhmrZn5nnKL6r0Fgj9kRilmk6AVkjuLsW7mi3V64/dqVSr7zb3dHOTEC6WmYu80VRgrnEsFVicFfa9ubkvIB52QUCEKnR9Vgt1U164KEepg38YricBMCrr+CijW8RpJ9cgr/ohNS5K8b4XzpieoO/2qlZQx+NPSQSX1GZzhxwNon8lEcvUquxkNvnmLf3x8Ysr4S84C4b0g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1651978177; bh=ySoPQVR20Gf4dVURjP4kYf2DMIMvviQXiBOux4JjrOz=; h=X-Sonic-MF:Date:From:To:Subject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AO8EiV5k8qaLJTZWd5cfHwi7aIRDYylCqrGRCJ MvrzgQWJ72Pd8Gi.lbfawdDx.2U4B5E1xlEh36XnWnVKghzZVFRRkYrdUiO812c.fKu5yjtK720N l8zkl_7qemmQyUGAj5yxZPx_RiEqYc7QGaigooiKEI X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.bf2.yahoo.com with HTTP; Sun, 8 May 2022 02:49:37 +0000 X-Mailer: WebService/1.1.20188 YMailNorrin X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:114872 Archived-At: --===============4497677065608137181== Content-Type: multipart/alternative; boundary="----=_Part_395280_657052746.1651978172582" ------=_Part_395280_657052746.1651978172582 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I created a chapter title style with a large number telling the chapter num= ber, and below it the title of the chapter. It looks like this: ---------------------=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= <--really big chapter number=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D <-- there is= a border created by a background image between these =C2=A0=C2=A0=C2=A0 How to keep=C2=A0 <--chapter title =C2=A0=C2=A0=C2=A0 fish This is the article <-- the article begins about how to keepfish --------------------- \definefontsize[a]% \definefontsize[b]% \definefontsize[c]% \definefontsize[l]% \setupbodyfontenvironment[default]% =C2=A0=C2=A0 =C2=A0[% =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0a=3D1.200, =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0b=3D1.440, =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0c=3D1.728, =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0l=3D8.916 =C2=A0=C2=A0 =C2=A0]% % \setuplabeltext[chapter=3D\strut] \setuphead[chapter][style=3D\ssc,placehead=3Dyes,expansion=3Dyes,page=3Dyes= , numbercommand=3D\groupedcommand{}{\blank[1cm]}, alternative=3Dmiddle, numberstyle=3Dssl, numbercolor=3Dgreen, strut=3Dyes] \starttext =C2=A0=C2=A0 =C2=A0\completecontent =C2=A0=C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0\chapter{Test} =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\input knuth =C2=A0=C2=A0 =C2=A0\chapter{Test} =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\input knuth \stoptext The problem I'm facing, is anytime a chapter title is called, such as "Cont= ent" in complete content, or something in the appendix, such as one of the = indexes, no number is printed above, so the vertical distance from the top = of the page to the top of the chapter title changes. I need these to be con= sistent, as there is a background image, with vertical lines. Basically, if I call \chapter{}, it appears perfectly aligned vertically on= the page, with no other settings. But when calling \completecontent or a s= imilar title that won't get a number, because the number isn't placed, it i= s vertically higher on the page, but I need it to be printed the same heigh= t, as it it had an invisible number. I've tried adding strut (the code has it in two places), but don't know if = I've used it appropriately, and it didn't solve the problem. --Joel ------=_Part_395280_657052746.1651978172582 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I created a chapter title style with a large= number telling the chapter number, and below it the title of the chapter.<= /div>

It looks like this:

-------------------= --
    &nbs= p;   1          = ;     <--really big chapter number
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D <-- there i= s a border created by a background image between these
    How to keep  <--chap= ter title
   = ; fish

This is the article <-- the article begins
<= /div>
about how to keep
fish
---------------------

\define= fontsize[a]%
\definefontsize[b]%
\definefontsize[c]%
\definefontsi= ze[l]%
\setupbodyfontenvironment[default]%
    [%
&= nbsp;       a=3D1.200,
     = ;   b=3D1.440,
        c=3D1.728= ,
        l=3D8.916
    = ]%
%

\setuplabeltext[chapter=3D\strut]
\setuphead[chapter][sty= le=3D\ssc,placehead=3Dyes,expansion=3Dyes,page=3Dyes,
numbercommand=3D\g= roupedcommand{}{\blank[1cm]},
alternative=3Dmiddle,
numberstyle=3Dssl= ,
numbercolor=3Dgreen,
strut=3Dyes]

\starttext

 &n= bsp;  \completecontent
    
    \c= hapter{Test}
        \input knuth

&= nbsp;   \chapter{Test}
        \= input knuth

\stoptext

The problem I'm facing, is anytime a chapter title is called, = such as "Content" in complete content, or something in the appendix, such a= s one of the indexes, no number is printed above, so the vertical distance = from the top of the page to the top of the chapter title changes. I need th= ese to be consistent, as there is a background image, with vertical lines.<= /div>

Basically, if I call \chapter{}, it appears perfectly ali= gned vertically on the page, with no other settings. But when calling \comp= letecontent or a similar title that won't get a number, because the number = isn't placed, it is vertically higher on the page, but I need it to be prin= ted the same height, as it it had an invisible number.

I'= ve tried adding strut (the code has it in two places), but don't know if I'= ve used it appropriately, and it didn't solve the problem.

--Joel
------=_Part_395280_657052746.1651978172582-- --===============4497677065608137181== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============4497677065608137181==--