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 <[email protected]>
Gesendet: Dienstag, 30. September 2025 16:14:43
An: [email protected]
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 : [email protected] / 
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 : [email protected] / 
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 via email to