From: Ursula Hermann <ursula.hermann@univie.ac.at>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: Sectionnumber and foo on the same line
Date: Wed, 1 Oct 2025 08:16:44 +0000 [thread overview]
Message-ID: <2674bf6b09d64b879d90a60d6bebf347@univie.ac.at> (raw)
In-Reply-To: <24e88751-b7f7-4643-9b17-93951183f259@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2827 bytes --]
Dear LIst, Dear Wolfgang
I have another example, which is a little bit longer.
\starttext
\startsetups [footer:leftpage]
\prefixedpagenumber
\space
\undepthed{\blackrule
[
width=\linewidth,
height=\strutht,
depth=\dimexpr\footerheight+\bottomspace\relax,
]}
\space
\labeltext{chapter} \getmarking[chapternumber]
\stopsetups
\startsetups [footer:rightpage]
\getmarking[chapter]
\space
\undepthed{\blackrule
[
width=\linewidth,
height=\strutht,
depth=\dimexpr\footerheight+\bottomspace\relax,
]}
\space
\prefixedpagenumber
\stopsetups
\setuplabeltext
[en]
[chapter=Chapter]
\setuphead
[chapter]
[bodypartlabel=]
\setupfootertexts
[] [\directsetup{footer:rightpage}]
[\directsetup{footer:leftpage}] []
\setuppagenumbering
[alternative=doublesided]
\starttext
\startchapter [title=First chapter]
\dorecurse{10}{\input knuth}
\stopchapter
\startchapter [title=Second chapter]
\dorecurse{10}{\input knuth}
\stopchapter
\stoptext
How can I change the setups in the header?
Many thanks
Uschi
________________________________
Von: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Gesendet: Dienstag, 30. September 2025 16:14:43
An: ntg-context@ntg.nl
Betreff: [NTG-context] Re: Sectionnumber and foo on the same line
Am 30.09.2025 um 14:35 schrieb Ursula Hermann:
> Dear List,
>
> I have the followimg example, where the Sectionnumber Is not in the same
> line, as the text after the frame.
>
> \setuppapersize[A4,width=19cm,height=24cm]]
This doesn't work, you need:
\definepapersize [uschi] [width=19cm,height=24cm]
\setuppapersize [uschi]
> \starttext
>
> 3.11\line{\framed[frame=,leftframe=on,rulethickness=4pt,framecolor=red]{foo}
> }
>
> \stoptext
>
> How can I put both in the same line?
3.11\inframed[frame=,leftframe=on,rulethickness=4pt,framecolor=red]{foo}
and drop \line because it creates a horizontal box with a width of the
textblock, as you have also text before the box \line extends into the
right margin and you get a overfull box message.
Wolfgang
___________________________________________________________________________________
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: 5716 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
___________________________________________________________________________________
prev parent reply other threads:[~2025-10-01 8:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-30 12:35 [NTG-context] " Ursula Hermann
2025-09-30 14:14 ` [NTG-context] " Wolfgang Schuster
2025-10-01 8:16 ` Ursula Hermann [this message]
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=2674bf6b09d64b879d90a60d6bebf347@univie.ac.at \
--to=ursula.hermann@univie.ac.at \
--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).