ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hraban Ramm <texml@fiee.net>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: Use of marking
Date: Wed, 20 Mar 2024 15:22:36 +0100	[thread overview]
Message-ID: <a68ccaf7-6c92-45f5-a095-84aadb5b96e4@fiee.net> (raw)
In-Reply-To: <e531895f-5b78-4b88-91a1-a8bfe31f1eaf@t-online.de>


[-- Attachment #1.1: Type: text/plain, Size: 2757 bytes --]

\setupheadtext[de][section=Aufgabe]
Rename the section, then you don’t need marking.

Sorry, I'm in a hurry and must look up how to get the number…

Am 20.03.24 um 12:18 schrieb Thomas Meyer:
> Hi Hraban,
>
> and thanks.
>
> setuphead[chapter,section][numberwidth=2em] or "fit"
> works!
>
> I know \setupheadertexts, but do not know what shall I write here:
> \startsection[titel=Aufgabe, marking=?????]
> If I write marking=Aufgabe I get Aufgabe, no number! For chapter the same.
>
> \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} – \getmarking{section}} 
>> might fit your request.
>>
>> The formatting should be possible with 
>> \setuphead[chapter,section][numberwidth=2em] 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
> ___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 6501 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2024-03-20 14:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-20  7:18 [NTG-context] " Thomas Meyer
2024-03-20  8:09 ` [NTG-context] " Hraban Ramm
2024-03-20 11:18   ` Thomas Meyer
2024-03-20 14:22     ` Hraban Ramm [this message]
2024-03-20 18:45       ` Andres Conrado Montoya
2024-03-21 15:34         ` Bruce Horrocks
2024-03-21 18:00           ` Thomas Meyer
2024-03-22 17:23             ` Pablo Rodriguez via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a68ccaf7-6c92-45f5-a095-84aadb5b96e4@fiee.net \
    --to=texml@fiee.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).