* [NTG-context] About a pagination
@ 2024-07-23 6:57 Fabrice Couvreur
2024-07-23 18:33 ` [NTG-context] " Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Couvreur @ 2024-07-23 6:57 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2910 bytes --]
Hi,
I'm trying to get the same pagination as in the attached photos. Using the
wiki and Wolfgang's codes I get something interesting but not very elegant
(\ACFRAME{}). Only, I don't see how to emphasize the title of each chapter
in the same way.
Thanks.
Fabrice
\startcomponent[essai]
\setuplayout
[
backspace=28mm,
topspace=35mm,
width=140mm
]
\setuppagenumbering[alternative=doublesided,location=]
\setupbodyfont[pagella,11pt]
\mainlanguage[fr]
\setcharacterspacing
[frenchpunctuation]
\startuseMPgraphic{acframeleft}
fill OverlayBox
leftenlarged (BackSpace)
rightenlarged 5mm
withcolor "lightgray";
setbounds currentpicture to OverlayBox;
\stopuseMPgraphic
\defineoverlay
[acframeleft]
[\useMPgraphic{acframeleft}]
\defineframed
[ACFRAMELEFT]
[frame=off,
width=fit,
height=1ex,
background=acframeleft,
location=,
]
\startuseMPgraphic{acframeright}
fill OverlayBox
leftenlarged 5mm
rightenlarged 42mm
withcolor "lightgray";
setbounds currentpicture to OverlayBox;
\stopuseMPgraphic
\defineoverlay
[acframeright]
[\useMPgraphic{acframeright}]
\defineframed
[ACFRAMERIGHT]
[frame=off,
width=fit,
height=1ex,
background=acframeright,
location=hanging,
]
\setupheader[style=\tfx]
\startsetups [header:leftpage]
\setuplabeltext
[fr]
[chapter=\tfx Chapitre]
\ACFRAMERIGHT{}
\hfill
\labeltext{chapter} \getmarking[chapternumber] \getmarking[chapter]
\stopsetups
\startsetups [header:rightpage]
\getmarking[sectionnumber]
\space
\getmarking[section]
\hfill
\ACFRAMERIGHT{}
\stopsetups
\setupheadertexts
[\directsetup{header:rightpage}] [\prefixedpagenumber]
[\prefixedpagenumber] [\directsetup{header:leftpage}]
\defineframedtext
[ChapterFrame]
[frame=on,
width=local,
height=broad,
after={\blank[2*line]},
offset=0pt]
\startsetups [section:chapter]
\setuphead
[chapter]
[align=leftright,
textcommand=\groupedcommand{\blank[medium]}{},
numbercolor=,
textstyle=,
numberstyle=,
numbercommand=,
before=\startChapterFrame,
after=\stopChapterFrame,
header=nomarking]
\stopsetups
\startsectionblockenvironment [bodypart]
\directsetup{section:chapter}
\stopsectionblockenvironment
\doifmode{*component}{\directsetup{section:chapter}}
\setuplabeltext
[fr]
[chapter=\tf Chapitre\space]
\startchapter
[title={Polynômes}]
\startsection
[title={Forme réduite et identification}]
\dorecurse{6}{\input knuth}
\stopsection
\startsection
[title={Polynômes du second degré}]
\dorecurse{6}{\input knuth}
\stopsection
\stopchapter
\stopcomponent
[-- Attachment #1.2: Type: text/html, Size: 3642 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] 2+ messages in thread
* [NTG-context] Re: About a pagination
2024-07-23 6:57 [NTG-context] About a pagination Fabrice Couvreur
@ 2024-07-23 18:33 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2024-07-23 18:33 UTC (permalink / raw)
To: mailing list for ConTeXt users, Fabrice Couvreur
[-- Attachment #1.1: Type: text/plain, Size: 158 bytes --]
Fabrice Couvreur schrieb am 23.07.2024 um 08:57:
> Hi,
> I'm trying to get the same pagination as in the attached photos.
The images are missing.
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 680 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] 2+ messages in thread
end of thread, other threads:[~2024-07-23 18:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-23 6:57 [NTG-context] About a pagination Fabrice Couvreur
2024-07-23 18:33 ` [NTG-context] " Wolfgang Schuster
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).