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.6 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham 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 689812173A for ; Wed, 20 Mar 2024 19:48:43 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 59548481589 for ; Wed, 20 Mar 2024 19:48:01 +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 vmOPdkhpBy5q for ; Wed, 20 Mar 2024 19:48:00 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C46F64839A6 for ; Wed, 20 Mar 2024 19:46:31 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C2B1A480F6F for ; Wed, 20 Mar 2024 19:46:04 +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 edaxVRnMFOiC for ; Wed, 20 Mar 2024 19:46:02 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.45; helo=mail-ej1-f45.google.com; envelope-from=andresconrado@gmail.com; receiver= Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 79CFE480F5A for ; Wed, 20 Mar 2024 19:46:02 +0100 (CET) Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a467d8efe78so12954666b.3 for ; Wed, 20 Mar 2024 11:46:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710960362; x=1711565162; 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=Fo2S7xqVDQR1X8V4eOG08VztYI/pcZxhpO9RU8AZS1k=; b=UZYQW6bZLD1tak+2e1SxPx/Ap9jwVFpmDdgBpH/G348wtI2qJAf5rzbTc8kvM2CE4e nzPQ/PyfB6B6l1rtwwzYtE6yUg6WdG4nMR0kMs7mkx9FWnwEt47cUWQ15u8rX/wWLPen fyQk1vldQ2TobgqKnoStqvZGvoemVQNUPMONtzlQUsYiXzVfO4SKMzNgWNWLYup4tWIs 8ZVGt1AyHe0aqWggQFzPe84Z+UNOPTlaItc0/icmZfx2YLDOFr5UaXNgfZOjZl4JfG1P kQ+PcoNO4rYA5X4Ihgtx0EWMto11R0xgZ4rQgGsgogSI7o7rm8tjL2B+I/lwuVWkLef2 kERA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710960362; x=1711565162; 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=Fo2S7xqVDQR1X8V4eOG08VztYI/pcZxhpO9RU8AZS1k=; b=qfbCXhXFCai3Uza2qQ7XCqHOhrftRhKlSX357kp48Ar3LJ9MC7MvULnR1/qcy1C+g/ mV6sgA3YrssulXIstF62c64d1wQkRemiUG2NcXjz2lQcSdg3Dc6j1U8SwAKtCtzR0g2p rWPvCo3y34+epj0TBYv79cObJvkMG1pmZdRdIHwdvsoc2zOarIlmaKZxS9jaXJrt6KFO Jyht8L8CIOksTtOzUzdGpZOUTuJx0nMcJA7MIj29W5NZp3b0m1z12HAC8AHPsk3j/N6/ qOJE+i4ivLp8QpeFTqOb+9P2QJOEecdkBeqzX+l+HHrEeb5RJFt4mMUKPkN5RYF+UQyc 6NOw== X-Gm-Message-State: AOJu0YwESl776wA8kcMh4pyqE2CVDwMlN+8g3rG9HMUnl6sD1YCl6vO+ efq33sZ137Hj+JuiCB59fqaK2isMxxPLUQ3MMzbO8oYfZssxQ9FPNC8MzwL6wavjzTl1dLfDd4c JpDnZ13byZSnllvQHldQM8ijBQaC3PLid X-Google-Smtp-Source: AGHT+IFnVDN7MWwMBwjk1RpyrxqrndUVcnJeecKILurZfEWR45nfzqzJroz5UYlYD8qkrjQvg1JnTvXsvQK662K5PlM= X-Received: by 2002:a17:906:fa85:b0:a46:ea3c:72ab with SMTP id lt5-20020a170906fa8500b00a46ea3c72abmr3602224ejb.74.1710960361511; Wed, 20 Mar 2024 11:46:01 -0700 (PDT) MIME-Version: 1.0 References: <28387089-6477-4393-a08e-86e3f472a7fd@t-online.de> <9ba2a422-8c05-45cb-8e18-e9f4ef1dca2d@fiee.net> In-Reply-To: From: Andres Conrado Montoya Date: Wed, 20 Mar 2024 13:45:25 -0500 Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: YXNJ6VT4BAC7DKCTL76C2ADTVR4GUVB5 X-Message-ID-Hash: YXNJ6VT4BAC7DKCTL76C2ADTVR4GUVB5 X-MailFrom: andresconrado@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: Use of marking 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="===============1686705485498154018==" --===============1686705485498154018== Content-Type: multipart/alternative; boundary="00000000000092a60006141c0039" --00000000000092a60006141c0039 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable As I understand, Thomas needs a layout in which the header shows something like 1. Chapter title -- 1.1. Section title (including the numbers! *This is the important bit!*) There are a couple things about this: 1. In a section (part, chapter, section, etc.) you can introduce three versions of the title for that section. title=3D is the general one and if nothing else is specified, this will be used in markings (headers or footer or wherever you want to put therm) and in listings (contents). If you give those arguments, marking=3D and listing=3D, you will get those texts in tho= se places: marking=3D on markings (you can call them with \getmarking) and listing=3D in the table of contents. 2. As far as I have found, including the chapter/section number in the marking is *not really a trivial task*. I usually hack something using \headnumber and \getmarking, like so: \setuppagenumbering[alternative=3Ddoublesided,location=3D,] \setupheadertexts[{\headnumber[section].~\getmarking[section]}---{\headnumb= er[chapter].~\getmarking[chapter]}] \setupfootertexts[][pagenumber][pagenumber][] \setuphead[chapter][header=3Dhigh] \starttext \dorecurse{10}{ \startchapter[title=3D{This is my chapter}] This is a chapter\par \dorecurse{6}{\input knuth } \input math-kontinuitet-sv \startsection[title=3D{This is my section}] This is a section\par \dorecurse{6}{\input knuth }\input math-kontinuitet-sv \stopsection \stopchapter } \stoptext But with a caveat: the `header=3Dhigh` setting in setuphead for the chapter needs to be included, or you will get a section number in the first page, even if there is no section. I have not found a better mechanism yet, but I'm quite sure there is a correct solution for this... I just haven't found it yet. Checking for the presence of \getmarking[section] with \doifsomething does not work, or I could not make it work. A little bit more info here: https://wiki.contextgarden.net/Command/getmarking https://wiki.contextgarden.net/Command/headnumber El mi=C3=A9, 20 mar 2024 a las 9:23, Hraban Ramm () escribi= =C3=B3: > \setupheadtext[de][section=3DAufgabe] > Rename the section, then you don=E2=80=99t need marking. > > Sorry, I'm in a hurry and must look up how to get the number=E2=80=A6 > > > Am 20.03.24 um 12:18 schrieb Thomas Meyer: > > Hi Hraban, > > and thanks. > > setuphead[chapter,section][numberwidth=3D2em] or "fit" > works! > > I know \setupheadertexts, but do not know what shall I write here: > \startsection[titel=3DAufgabe, marking=3D?????] > If I write marking=3DAufgabe I get Aufgabe, no number! For chapter the sa= me. > > \setupheadertexts > [] [{\getmarking[chapter]} - {\getmarking[section]}] > [{\getmarking[chapter]} - {\getmarking[section]}] [] > ----> Kapitel - Aufgabe > > > Thanks in advance > Greetings > Thomas > > > Am 20.03.24 um 09:09 schrieb Hraban Ramm: > > > Am 20.03.24 um 08:18 schrieb Thomas Meyer: > > HI folks, > > yesterday while reading along I learned how to suppress the chapter > numbers in sections. That was something I was looking for myself. > > But how do you use marking correctly in startsection? I would like to see > "1. Kapitel - 1. Aufgabe" in the header on the right. How can I automate > this with marking? > And how can I reduce the space between the number (1.) and the title > (Kapitel or Aufgabe)? > > Thanks for your help > Thomas > > Hi Thomas, > > do you know how to use \setupheadertexts? > > https://wiki.contextgarden.net/Command/setupheadertexts > > I guess you're using the section level for "Aufgabe"? > > Then something like {\getmarking{chapter} =E2=80=93 \getmarking{section}}= might > fit your request. > > The formatting should be possible with > \setuphead[chapter,section][numberwidth=3D2em] or "fit". > > Hraban > > _________________________________________________________________________= __________ > 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 > _________________________________________________________________________= __________ > > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > --=20 Andr=C3=A9s Conrado Montoya Andi K=C3=BA andresconrado@gmail.com http://sesentaycuatro.com http://messier87.com http://chiquitico.org ---------------------------------------- Los fines no justifican los medios, porque la medida verdadera de nuestro car=C3=A1cter est=C3=A1 dada por los medios que estamos dispuestos a utiliz= ar, no por los fines que proclamamos. ---------------------------------------- =E2=80=9CYou develop an instant global consciousness, a people orientation,= an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international politics look so petty. You want to grab a politician by the scruff of the neck and drag him a quarter of a million miles out and say, =E2=80=98Look at that, you so= n of a bitch.=E2=80=99=E2=80=9D =E2=80=94 Apollo 14 astronaut Edgar Mitchell --00000000000092a60006141c0039 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
As I understand, Thomas=C2=A0needs a layout in which = the header shows something like=C2=A0

1. Chapter t= itle -- 1.1. Section=C2=A0title (including the numbers! This is the impo= rtant bit!)

There are a couple things about th= is:=C2=A0

1. In a section (part, chapter, section, etc.= ) you can introduce three versions of the title for that section. title=3D = is the general one and if nothing else is specified, this will be used in m= arkings (headers or footer or wherever you want to put therm) and in listin= gs (contents). If you give those arguments, marking=3D and listing=3D, you = will get those texts in those places: marking=3D on markings (you can call = them with \getmarking) and listing=3D in the table of contents.=C2=A0
<= br>
2. As far as I have found, including the chapter/section number in = the marking is not really a trivial task. I usually hack something= =C2=A0using \headnumber=C2=A0and \getmarking, like so:=C2=A0

=
\setuppagenumbering[alternative=3Ddoublesided,location=3D,]
<= br>\setupheadertexts[{\headnumber[section].~\getmarking[section]}---{\headn= umber[chapter].~\getmarking[chapter]}]
\setupfootertexts[][pagenumber][p= agenumber][]
\setuphead[chapter][header=3Dhigh]

\starttext
\do= recurse{10}{
=C2=A0 \startchapter[title=3D{This is my chapter}]
=C2= =A0 This is a chapter\par \dorecurse{6}{\input knuth } \input math-kontinui= tet-sv

=C2=A0 \startsection[title=3D{This is my section}]
=C2=A0 = =C2=A0This is a section\par \dorecurse{6}{\input knuth }\input math-kontinu= itet-sv
=C2=A0 \stopsection
=C2=A0 \stopchapter
}
\stoptext
=

But with a caveat: the `header=3Dhigh` setting in= setuphead for the chapter needs to be included, or you will get a section = number in the first page, even if there is no section. I have not found a b= etter mechanism yet,=C2=A0but I'm quite sure there is a correct solutio= n for this... I just haven't found it yet. Checking for the presence of= \getmarking[section] with \doifsomething=C2=A0does not work, or I could no= t make it work.=C2=A0

A little bit more info here:= =C2=A0


El mi=C3=A9, 20 mar 2024 a las 9:23, Hraban R= amm (<texml@fiee.net= >) escribi=C3=B3:
=20 =20 =20
\setupheadtext[de][section=3DAufgabe]
Rename the section, then you don=E2=80=99t need marking.

Sorry, I'm in a hurry and must look up how to get the number=E2=80=A6

Am 20.03.24 um 12:18 schrieb Thomas Meyer:
=20 Hi Hraban,

and thanks.

setuphead[chapter,sectio= n][numberwidth=3D2em] or "fit"
works!

I know
\setupheadertex= ts, but do not know what shall I write here:
\startsection[titel=3DAufgabe, marking=3D?????]
If I write marking=3DAufgabe I get Aufgabe, no number! For chapter the same.

\setupheadertexts
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [] [{\getmarking[chapter]} - {= \getmarking[section]}] [{\getmarking[chapter]} - {\getmarking[section]}] []
----> Kapitel - Aufgabe


Thanks in advance
Greetings
Thomas


Am 20.03.24 um 09:09 schrieb Hraban Ramm:
=20


Am 20.03.24 um 08:18 schrieb Thomas Meyer:
=20 HI folks,

yesterday while reading along I learned how to suppress the chapter numbers in sections. That was something I was looking for myself.

But how do you use marking correctly in startsection? I would like to see "1. Kapitel - 1. Aufgabe" in the he= ader on the right. How can I automate this with marking?
And how can I reduce the space between the number (1.) and the title (Kapitel or Aufgabe)?

Thanks for your help
Thomas

Hi Thomas,

do you know how to use \setupheadertexts?

https://wiki.co= ntextgarden.net/Command/setupheadertexts

I guess you're using t= he section level for "Aufgabe"?

Then something like {\getmarking{chapter} =E2=80=93 \getmarking{section}} might fit= your request.

The formatting should be possible with \setuphead[chapter,section][numberwidth=3D2em] or "fit".

Hraban


______________________________________________________________=
_____________________
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/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
___________________________________________________________________________= ________


--
Andr=C3=A9s Conrado Montoya
An= di K=C3=BA
= andresconrado@gmail.com
http://sesentaycuatro.com
----------------------------------------
Los fines no justifican los me= dios, porque la medida verdadera de nuestro car=C3=A1cter est=C3=A1 dada po= r los medios que estamos dispuestos a utilizar, no por los fines que procla= mamos.
----------------------------------------

=E2=80=9CYou devel= op an instant global consciousness, a people orientation,=20 an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international=20 politics look so petty. You want to grab a politician by the scruff of=20 the neck and drag him a quarter of a million miles out and say, =E2=80=98Lo= ok at that, you son of a bitch.=E2=80=99=E2=80=9D =E2=80=94 Apollo 14 astronaut = Edgar Mitchell

--00000000000092a60006141c0039-- --===============1686705485498154018== 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 ___________________________________________________________________________________ --===============1686705485498154018==--