From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM,HTML_MESSAGE, MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 061432B740 for ; Tue, 19 Mar 2024 19:54:06 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id D3F0B48351D for ; Tue, 19 Mar 2024 19:53:27 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=gmail.com Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9M-F1Ns5vKE9 for ; Tue, 19 Mar 2024 19:53:27 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 1509E482155 for ; Tue, 19 Mar 2024 19:52:37 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 54FCA480EF1 for ; Tue, 19 Mar 2024 19:52:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MJC990ZWkl_b for ; Tue, 19 Mar 2024 19:52:11 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.215.169; helo=mail-pg1-f169.google.com; envelope-from=contextntg@gmail.com; receiver= Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id DE2C7480EDF for ; Tue, 19 Mar 2024 19:52:11 +0100 (CET) Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-5cfd95130c6so3703622a12.1 for ; Tue, 19 Mar 2024 11:52:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710874330; x=1711479130; darn=ntg.nl; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=PqxW1QZIgL238cX7bEEtB07cOAEwTlVTbZYrpyETSII=; b=DRdMhDdtDXI++VM7lEtbQDr0bGhucvV1ISEMYMW98UY/DYziF1Z0TS3WBPEiOHIW7V 8XKn9/oDg4Bxx2/8Y1YZzjEwe4jS/P62O9krnNkhOm0Gd3PVR+TMK3hJ71w+ybfECR3/ EP3u7VAvCb2uWmiiGnMNVxHnzg8HelqQzYgqQvZfhtr1zUte1F5U5IQ+Br6N3OOGodB0 5AP+Us4oO6v8e5YRrqhBwocV5QBcLyNTJkHxHKvl7JqZneIEfOHuc3eXmwrcmO0B2d4N 8y8qB2DtJWx5Y8X/BYTlJqJB1J3nNHCmFddRqClxmr1nV4yNUARdlNMMtVzjJNpy1OjS d5Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710874330; x=1711479130; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PqxW1QZIgL238cX7bEEtB07cOAEwTlVTbZYrpyETSII=; b=plPhNBrf1GR7zkavh02ktJm8eklF/tikvLZW9o7XERVI8Zc0yl5hgguaPeCpUC6LYw cbHCtW+gb3jHEIoLWBLyHTZPLH6K+D0WAcyF/Jd/gKjXC7zZFPhOlJ692iCxSpcQmdeI COgIKmlOCtW5rfnXET7sLFVBrOpSObigBBrq61SEh9HMLHjD0Gl7sOo7eYqm+G+/YlkB aW6lwrIivMA72UUHQM95NW6UzqbAcXdeNcnv0vKp1oi5F5+XrRf3w3h97pIaSH8DWy3/ yfB/HMLAddbsXGpkaa2d0sXssh6daDdfrwrFg8D0F9JYT4+ckrC/3JYg2yReLvB65ESb HBWw== X-Gm-Message-State: AOJu0YylQzrKHBLYiyr+kx6Mqf/bi77flgUyYEof6dNQnaXW9Oj4XRP1 VSNwl5OhzmSC4WIACbIrLAv7MqNIHbeOOUdSADm7dFt6iBol5F6LhyjbpOE9OWatfbVAsQ8ZEUp Q+cboAHzuPHu77sr+7VpCFfX9izzT6KCKuJo= X-Google-Smtp-Source: AGHT+IEFwLWo6J1AMUocFpzZUd6sD8rMxRmJzNJJlGfF47oYWK+jMShmJuGh1HMZtZEzqBcJGQLIjW09figyKkMCfWg= X-Received: by 2002:a17:90a:7785:b0:29e:2b58:ba55 with SMTP id v5-20020a17090a778500b0029e2b58ba55mr3263886pjk.20.1710874329767; Tue, 19 Mar 2024 11:52:09 -0700 (PDT) MIME-Version: 1.0 References: <8acc5515-b309-43f8-bc99-8c24d2f758b8@fiee.net> In-Reply-To: <8acc5515-b309-43f8-bc99-8c24d2f758b8@fiee.net> From: Jeroen Date: Tue, 19 Mar 2024 19:51:58 +0100 Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: QYLQQWHIZ5WDRTARIUPCEZ5Q7DXOLYGT X-Message-ID-Hash: QYLQQWHIZ5WDRTARIUPCEZ5Q7DXOLYGT X-MailFrom: contextntg@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Adjusted Chapter Headings List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============5934764859015687634==" --===============5934764859015687634== Content-Type: multipart/alternative; boundary="000000000000ae66fb061407f885" --000000000000ae66fb061407f885 Content-Type: text/plain; charset="UTF-8" I have been able to achieve it as following, but the first frame width is fixed so will cause problems with other chapter numbers such as VIII \unexpanded\def\HeadTitle#1#2% {\hbox to \hsize \bgroup \hfill \setupframed[offset=.5em,frame=off] \tbox{\framed[width=22mm,align=right]{#1}}% \tbox{\framed[width=130mm,align=right,leftframe=on, rulethickness=0.8pt]{#2}}% \egroup} \setuplabeltext[chapter=Boek~] \setuphead[chapter][style={\bfc}, command=\HeadTitle, textstyle=bold] ... \startchapter [title={Algemene Beginselen}, ownnumber={I}] Op di 19 mrt 2024 om 15:49 schreef Hraban Ramm : > Hi Jeroen, > > it might make sense to use > > \setuphead[chapter][ > conversion=R, > ] > \setuplabeltext[nl][chapter={Boek }] > > instead of ownnumber. > > I would use one command for number and title and put both in the same kind > of frame. Probably you should use a \strut in the text or > \inframed[strut=yes] to assure the same text height. > > HTH, Hraban > Am 19.03.24 um 12:59 schrieb Jeroen: > > I have some style adjustments for the chapters. The chapter "numbers" need > to be Boek I, Boek II, etc. A vertical separator was introduced with an > inframe. The chapter title at the right side does not vertically align > properly with the chapter number in the frame (inside the frame is > vertically centered, the title not). Is there a way to align the chapter > title with the chapter number? > > > > \starttexdefinition MyNumberChapterCommand #1 > \inframed[frame=off,rightframe=on,framecolor=black, > rulethickness=1px,height=30pt]{#1\enspace} > \stoptexdefinition > > \setuphead[chapter][style={\bfc},numbercommand=\MyNumberChapterCommand, > page=no] > > \starttext > > \startchapter > [title={Algemene Beginselen}, > ownnumber={Boek I}] > > \samplefile{tufte} > > \stopchapter > > \startchapter > [title={Organisatorische Structuren}, > ownnumber={Boek II}] > > \samplefile{tufte} > > \stopchapter > > \stoptext > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > ___________________________________________________________________________________ > > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___________________________________________________________________________________ > --000000000000ae66fb061407f885 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have been able to achieve it as following, but the first= frame width is fixed so will cause problems with other chapter numbers suc= h as VIII


\unexpanded\def\HeadTitle#1= #2%
{\hbox to \hsize \bgroup
\hfill
\setupframed[offset=3D.5em,fra= me=3Doff]
\tbox{\framed[width=3D22mm,align=3Dright]{#1}}%
\tbox{\fram= ed[width=3D130mm,align=3Dright,leftframe=3Don,
rulethickness=3D0.8pt]{#2= }}%
\egroup}

\setuplabeltext[chapter=3DBoek~]

\setuphead[c= hapter][style=3D{\bfc}, command=3D\HeadTitle, textstyle=3Dbold]

...<= br>
\startchapter
=C2=A0 [title=3D{Algemene Beginselen},
=C2=A0 = =C2=A0ownnumber=3D{I}]

Op di 19 mrt 2024 om 15:49 schreef Hraban R= amm <texml@fiee.net>:
=
=20 =20 =20

Hi Jeroen,

it might make sense to use

\setuphead[chapter][
  conversion=3DR,
]
\setuplabeltext[nl][chapter=3D{Boek }]

instead of ownnumber.

I would use one command for number and title and put both in the same kind of frame. Probably you should use a \strut in the text or \inframed[strut=3Dyes] to assure the same text height.

HTH, Hraban

Am 19.03.24 um 12:59 schrieb Jeroen:
=20
I have some style adjustments for the chapters. The chapter "numbers" need to be Boek I, Boek II, etc. A vert= ical separator was introduced with an inframe. The chapter title at the right side does not vertically align properly with the chapter number in the frame (inside the frame is vertically centered, the title not). Is there a way to align the chapter title with the chapter number?



\starttexdefinition MyNumberChapterCommand #1
=C2=A0 =C2=A0 \inframed[frame=3Doff,rightframe=3Don,framecolor=3D= black,
=C2=A0 =C2=A0 =C2=A0rulethickness=3D1px,height=3D30pt]{#1\enspace= }
\stoptexdefinition

\setuphead[chapter][style=3D{\bfc},numbercommand=3D\MyNumberChapterCommand,=
=C2=A0 =C2=A0 page=3Dno]

\starttext

\startchapter
=C2=A0 [title=3D{Algemene Beginselen},
=C2=A0 =C2=A0ownnumber=3D{Boek I}]

\samplefile{tufte}

\stopchapter

\startchapter
=C2=A0 [title=3D{Organisatorische Structuren},
=C2=A0 =C2=A0ownnumber=3D{Boek II}]

\samplefile{tufte}

\stopchapter

\stoptext

________________________________________________________________=
___________________
If your question is of interest to others as well, please add an entry to t=
he Wiki!

maillist : ntg-cont=
ext@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-cont=
ext.ntg.nl
webpage  : https://=
www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : htt=
ps://wiki.contextgarden.net
___________________________________________________________________________=
________
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / https://mailman.ntg.nl/mail= man3/lists/ntg-context.ntg.nl
webpage=C2=A0 : https://www.pragma-ade.nl / https://context.aanhet.net= (mirror)
archive=C2=A0 : https://github.com/contextgarden/context=
wiki=C2=A0 =C2=A0 =C2=A0: https://wiki.contextgarden.net
___________________________________________________________________________= ________
--000000000000ae66fb061407f885-- --===============5934764859015687634== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ --===============5934764859015687634==--