ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Sectionnumber and foo on the same line
@ 2025-09-30 12:35 Ursula Hermann
  2025-09-30 14:14 ` [NTG-context] " Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Ursula Hermann @ 2025-09-30 12:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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]]
\starttext
3.11\line{\framed[frame=,leftframe=on,rulethickness=4pt,framecolor=red]{foo}
}
\stoptext

How can I put both in the same line?

Many thanks

Uschi

[-- Attachment #1.2: Type: text/html, Size: 2996 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [NTG-context] Re: Sectionnumber and foo on the same line
  2025-09-30 12:35 [NTG-context] Sectionnumber and foo on the same line Ursula Hermann
@ 2025-09-30 14:14 ` Wolfgang Schuster
  2025-10-01  8:16   ` Ursula Hermann
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2025-09-30 14:14 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [NTG-context] Re: Sectionnumber and foo on the same line
  2025-09-30 14:14 ` [NTG-context] " Wolfgang Schuster
@ 2025-10-01  8:16   ` Ursula Hermann
  0 siblings, 0 replies; 3+ messages in thread
From: Ursula Hermann @ 2025-10-01  8:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-10-01  8:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-30 12:35 [NTG-context] Sectionnumber and foo on the same line Ursula Hermann
2025-09-30 14:14 ` [NTG-context] " Wolfgang Schuster
2025-10-01  8:16   ` Ursula Hermann

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).