Re: [NTG-context] how access to \namedstructurevariable [next / previous]
Got a solution, but it looks like "not a proper way to do it" Is it recommanded to work directly with lua tables like these : - structures.sections.current().references - fonts.current().specification === \def\CheckC% {\startluacode local numero = structures.sections.current() if numero == nil then numero = 1 else numero = structures.sections.current().references.listindex + 1 end context.page() context("inbetween : "..structures.lists.collected[numero].titledata.title) context.page() \stopluacode} \setuphead [section] [color=darkred,style=\tfc,inbetween={\mono{\CheckC}}] \setuphead [subsection] [inbetween=] \starttext \startsection[title=Section A] Text of section A. \startsubsection[title=SubSection A.A] Text of subsection A.A \stopsubsection \stopsection \startsection[title=Section B] Text of section B. \startsubsection[title=SubSection A.A] Text of subsection A.A \stopsubsection \stopsection \stoptext Le 29/04/2023 à 18:07, Garulfo a écrit : Hi all, I would like to use the title and the number of a section twice : - first with a specific layout (with makeup) - second, as usual, as part of the page flow. like in : http://www.pragma-ade.nl/general/manuals/cont-enp.pdf#page=23 looking at the source code (http://context.aanhet.net/svn/manuals/context/layo-00.tex), I understood that it was achieved with : \setuphead [\v!chapter] [\c!command=\PlaatsHoofdstuk, \c!page=\v!yes, \c!before=, \c!inbetween=\PlaatsHoofdstukIndex, %\c!incrementnumber=cont-\currentlanguage, \c!header=\v!nomarking, \c!textstyle=\bfd, \c!numberstyle=\bfe] and \def\PlaatsHoofdstukIndex % todo: lucida {%\startnotmode[*\v!frontpart] \page[\v!right] \setupbackgrounds[\v!paper][\c!background=\v!color] \startmakeup[\v!standard] \raggedleft \doifsomething{\currentheadnumber} {\hfill\expanded{\processMPheadnumber{\currentheadnumber}}} \vfill \hfill\expanded{\processMPheadtext{\currentheadtext}} \stopmakeup \setupbackgrounds[\v!paper][\c!background=] }%\stopnotmode} But currently, I can not reproduce it : - \currentheadtex return empty - \namedstructurevariable{section}{title} only report the update title once the title is actually typesetted Is there a way to access \namedstructurevariable with [next] or [previous] like options ? Here is a test trying to reproduce cont-enp.pdf example === \def\CheckA{{\mono\currentheadtext}} \def\CheckB{{\mono\namedstructurevariable{section}{title}}\page} \setuphead [section] [before={before : \CheckA - \CheckB}, inbetween={inbetween: \CheckA - \CheckB}, after={after: \CheckA - \CheckB}, beforesection={beforesection: \CheckA - \CheckB}, insidesection={insidesection: \CheckA - \CheckB}, aftersection={aftersection: \CheckA - \CheckB}, color=darkred, style=\tfc, ] \starttext \startsection[title=Section A] Text of section A. \stopsection \startsection[title=Section B] Text of section B. \stopsection \stoptext === Thanks for your help Garulfo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] how access to \namedstructurevariable [next / previous]
Hi all, I would like to use the title and the number of a section twice : - first with a specific layout (with makeup) - second, as usual, as part of the page flow. like in : http://www.pragma-ade.nl/general/manuals/cont-enp.pdf#page=23 looking at the source code (http://context.aanhet.net/svn/manuals/context/layo-00.tex), I understood that it was achieved with : \setuphead [\v!chapter] [\c!command=\PlaatsHoofdstuk, \c!page=\v!yes, \c!before=, \c!inbetween=\PlaatsHoofdstukIndex, %\c!incrementnumber=cont-\currentlanguage, \c!header=\v!nomarking, \c!textstyle=\bfd, \c!numberstyle=\bfe] and \def\PlaatsHoofdstukIndex % todo: lucida {%\startnotmode[*\v!frontpart] \page[\v!right] \setupbackgrounds[\v!paper][\c!background=\v!color] \startmakeup[\v!standard] \raggedleft \doifsomething{\currentheadnumber} {\hfill\expanded{\processMPheadnumber{\currentheadnumber}}} \vfill \hfill\expanded{\processMPheadtext{\currentheadtext}} \stopmakeup \setupbackgrounds[\v!paper][\c!background=] }%\stopnotmode} But currently, I can not reproduce it : - \currentheadtex return empty - \namedstructurevariable{section}{title} only report the update title once the title is actually typesetted Is there a way to access \namedstructurevariable with [next] or [previous] like options ? Here is a test trying to reproduce cont-enp.pdf example === \def\CheckA{{\mono\currentheadtext}} \def\CheckB{{\mono\namedstructurevariable{section}{title}}\page} \setuphead [section] [before={before : \CheckA - \CheckB}, inbetween={inbetween: \CheckA - \CheckB}, after={after: \CheckA - \CheckB}, beforesection={beforesection: \CheckA - \CheckB}, insidesection={insidesection: \CheckA - \CheckB}, aftersection={aftersection: \CheckA - \CheckB}, color=darkred, style=\tfc, ] \starttext \startsection[title=Section A] Text of section A. \stopsection \startsection[title=Section B] Text of section B. \stopsection \stoptext === Thanks for your help Garulfo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Trial to use LibreOffice Calc (+ python) to build ConTeXt customized environnements files
Hi all, I started an attempt to help producing customized environnements files with LibreOffice Calc and macro with python, to see if and how it can helps newcomers (after viewing video about batch commander from Ricardo Lafuente and Kaveh Bazargan). It is very early stage (and very quick and dirty), but any feedback is welcome. = Currently working: - one sheet to setup colors ==> env_A05_color.tex - after clicking on button Go!, colors are actually shown deduced from hsv parameter - one sheet to setup sectionning ==> env_B14_section.tex - Options are categorized - 01-Style - 02-Numbering - 03-Position (not yet clear) - 04-Insert - 05-Reference - 06-commands - one sheet to setup layout ==> env_A01_layout.tex - one sheet to setup font==> env_A04_fonts.tex - thanks to mtxrun --script font it provides - the list of available font families - after 1st clic on fonts button - the list of available font names - after selecting families and 2nd clic on fonts button - it can help to produce simple typescripts in 1min = Package can be found at https://wiki.contextgarden.net/images/7/73/SetupContext_with_libreoffice_v00.04.zip 4 files 1/ SetupContext_with_libreoffice.py --- Python file that should be put in - gnu+linux : ~/.config/libreoffice/4/user/Scripts/python - win : C:\Users\x\AppData\Roaming\OpenOffice\4\user\Scripts\python - mac : /Applications//LibreOffice\ Vanilla.app/Contents/Resources/Scripts/python/ def Initialization(): should be adapted for ContextPath = "path to …/tex/texmf-linux-64/bin/" 2/ readme.tex Basic document with content and ref to global environnement file 3/ env_00.tex environnement file that refers to other specific environnement files which are produced by the macro 4/ gui_v04.ods LibreOffice Calc as interface for user = examples of output env files are attached. \setuplayout [ backspace=37mm, width=136mm, topspace=12mm, height=273mm, margindistance=5mm, leftmargin=20mm, rightmargin=20mm, edgedistance=2mm, leftedge=5mm, rightedge=5mm, headerdistance=5mm, header=10mm, footerdistance=5mm, footer=10mm, topdistance=2mm, top=5mm, bottomdistance=2mm, bottom=5mm, grid=no, ] \setuppapersize[A4] \starttypescript [serif] [myfont] \setups[font:fallback:serif] \definefontsynonym [Serif] [name:palatinoltstdlight] [features=default] \definefontsynonym [SerifItalic] [name:palatinoltstdlightitalic] [features=default] \definefontsynonym [SerifBold] [name:palatinoltstdmedium] [features=default] \definefontsynonym [SerifBoldItalic] [name:palatinoltstdmediumitalic][features=default] \stoptypescript \starttypescript [sans] [myfont] \setups[font:fallback:sans] \definefontsynonym [Sans] [name:ibmplexsans] [features=default] \definefontsynonym [SansItalic] [name:ibmplexsansitalic][features=default] \definefontsynonym [SansBold] [name:ibmplexsansbold] [features=default] \definefontsynonym [SansBoldItalic] [name:ibmplexsansbolditalic][features=default] \stoptypescript \starttypescript [mono] [myfont] \setups[font:fallback:mono] \definefontsynonym [Mono] [name:sourcecodeprolight] [features=default] \definefontsynonym [MonoItalic] [name:sourcecodeprolightit] [features=default] \definefontsynonym [MonoBold] [name:sourcecodeprobold][features=default] \definefontsynonym [MonoBoldItalic] [name:sourcecodeproblackit] [features=default] \stoptypescript \starttypescript [math] [myfont] \setups[font:fallback:math] \definefontsynonym [Math] [name:lmroman10regular] [features=default] \definefontsynonym [MathItalic] [name:lmroman10italic] [features=default] \definefontsynonym [MathBold] [name:lmroman10bold][features=default] \definefontsynonym [MathBoldItalic] [name:lmroman10bolditalic] [features=default] \stoptypescript \starttypescript [handwriting] [myfont] \setups[font:fallback:handwriting] \definefontsynonym [Handwriting] [name:snellroundhandltstdscr] [features=default] \definefontsynonym
Re: [NTG-context] Best way to access casul fonts
Hi, Following the instruction from : https://wiki.contextgarden.net/Use_the_fonts_you_want mtxrun --script font --list --file -pattern=*casual* gives : familyname weight style width variant fontname filename subfont fontweight lucidacasual normal normal normal normal lucidacasual /home//.fonts/LucidaCasual.ttf Then the following code should work : \starttypescript [myserif] \definefontsynonym[LucidaCasual-Regular] [file:LucidaCasual.ttf] \stoptypescript \starttypescript [myserif] \setups[font:fallback:serif] \definefontsynonym[Serif] [LucidaCasual-Regular] [features=default] \stoptypescript \starttypescript [myserif] \definetypeface [myserif] [rm] [serif] [myserif] [default] \stoptypescript \setupbodyfont[12pt] \starttext The quick brown fox jumps over the lazy dog \setupbodyfont[myserif] The quick brown fox jumps over the lazy dog \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Pull quote between two column - trial
to use pull quotes, I need to use the dimensions of the different elements to be typeset, before typesetting, in order to adapt the shapes of the flow accordingly. So here is just a basic code to 1/ get the dimensions of an item A that will be typeset, before it is actually typeset 2/ use these dimensions to define a item B that should be typeset before item 1 3/ typeset of item B and finally item A It is a quick and dirty solution. Please, could you help me to have a more elegant solution 1/ to replace "width=\measure{FTitleW}," by something more direct like "width=\GetDim{myframes}{FTitle} 2/ to replace context("\\definemeasure[#2W][" .. (n.width /65536) .. "pt]") by a more "luametatexish" formulation Le 28/05/2022 à 20:25, Garulfo a écrit : some progress... if it can help. No more issue with nonsymetrical behavior, and \framed are properly aligned with the grid. Garulfo mesure_framed.pdf Description: Adobe PDF document \defineblock[myframes] \unexpanded\def\GetDim#1#2{ \setbox\scratchbox\hbox\bgroup\useblocks[#1][#2]\egroup% \directlua{% local n = tex.getbox('scratchbox') context("\\definemeasure[#2W][" .. (n.width /65536) .. "pt]") context("\\definemeasure[#2H][" .. (n.height /65536) .. "pt]") }} %-- \starttext \beginmyframes[FTitle] \framed [align=normal] {initial framed for a title zone\\ early in the source code but not yet typeset\\ with a long sentence to take place horizontaly and for demonstration} \endmyframes \GetDim{myframes}{FTitle} \framed [align=normal, width=\measure{FTitleW}, height=\measure{FTitleH}] {a second framed, with dimensions equal to the original frame, typeset before the original} \useblocks[myframes][FTitle] \stoptext %-- ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Pull quote between two column - trial
some progress... if it can help. No more issue with nonsymetrical behavior, and \framed are properly aligned with the grid. Garulfo getshapetext_for_pullquote.pdf Description: Adobe PDF document \setuplayout [grid=yes] \showgrid \definecolor [transparentred] [r=1,t=.5,a=1] \def\numA{18} \def\numB{4} \def\numC{8} \def\numD{14} \def\mygap{0.001pt} %=== \startMPinclusions path pleft ; path pright ; numeric LA ; LA := (\numA-1)*LineHeight + StrutHeight + StrutDepth + \mygap ; numeric LB ; LB := \numB *LineHeight - StrutHeight - StrutDepth + \mygap ; numeric LC ; LC := \numC *LineHeight - StrutHeight - StrutDepth - \mygap ; numeric LD ; LD := \numD *LineHeight ; numeric LE ; LE := 2cm ; pleft := (0cm , 0cm) -- (LD , 0cm) -- (LD , LA - LC) -- (LD - LE , LA - LC) -- (LD - LE , LA - LB) -- (LD , LA - LB) -- (LD , LA ) -- (0cm , LA ) -- cycle ; pright := pleft reflectedabout ((LD/2,0cm) , (LD/2,1cm)); \stopMPinclusions \startuseMPgraphic{mytest1} % column on the left of the pull quote lmt_parshape [path = pleft ] ; fill pleft withcolor \MPcolor{transparentred} ; \stopuseMPgraphic \startuseMPgraphic{mytest2} % column on the right of the pull quote lmt_parshape [path = pright] ; fill pright withcolor \MPcolor{transparentred} ; \stopuseMPgraphic \defineoverlay[myOL1][\useMPgraphic{mytest1}] \defineoverlay[myOL2][\useMPgraphic{mytest2}] %=== \defineframed [MyBigFrame] [offset=-0.26pt, frameoffset=0pt, frame=off, strut=yes, before=, location=top, height=\dimexpr(\numA\lineheight), width=\textwidth, align=normal,] \defineframed [MyFrame] [MyBigFrame] [location=high, width=\dimexpr(\numD\lineheight), after=\dontleavehmode,] %=== \starttext {\bf Before} % \startshapetext[mytest1,mytest2] \strut\samplefile{douglas} \stopshapetext \MyBigFrame{% \MyFrame[background=myOL1]{\getshapetext}% \hfill% \MyFrame[background=myOL2]{\getshapetext}} {\bf Between} % \startshapetext[mytest1,mytest2] \strut\samplefile{knuth}\par\samplefile{knuth} \stopshapetext \MyBigFrame{% \MyFrame[background=myOL1]{\getshapetext}% \hfill% \MyFrame[background=myOL2]{\getshapetext}} {\bf After}% \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Pull quote between two column - trial
Hi all, hope you are all doing well. I am still trying to display pull quote between two columns. lmt_parshape is really helpfull. I need to add a 1pt gap to make the left column behave correctly, but the right column remains shifted one line below the intended one. Question1: any clue ? Question2: is there a way to use the columnset system to produce a similar output ? Thanks again for your feedbacks, Garulfo \setuplayout [grid=yes, headerdistance=5mm, margindistance=5mm, backspace=17.5mm, margin=10mm, topspace=40mm, height=23cm, header=10mm, footer=10mm, width=17.5cm] %\showframe %\showgrid \usemodule [visual] \setupbodyfont [palatino,11pt] \definecolor [transparentred] [r=1,t=.5,a=1] \definecolor [transparentgreen][g=1,t=.5,a=1] % \def\posA{10} \def\posB{20} \def\mygap{1pt} \def\mypen{1pt} \def\PQhalfwith{20mm} % \startuseMPgraphic{mytest0} % for basic straight column begingroup ; save p ; path p ; p := (0,0) -- (0.3*TextWidth,0cm) -- (0.3*TextWidth,TextHeight) -- (0cm,TextHeight) --cycle ; lmt_parshape [path = p] ; draw p withpen pencircle scaled \mypen ; endgroup ; \stopuseMPgraphic \startuseMPgraphic{mytest1} % column on the left of the pull quote begingroup ; save p ; path p ; p := (0,0) -- (0.3*TextWidth,0cm) -- (0.3*TextWidth,TextHeight+\mygap-\posB*LineHeight) -- (0.3*TextWidth-\PQhalfwith,TextHeight+\mygap-\posB*LineHeight) -- (0.3*TextWidth-\PQhalfwith,TextHeight-\mygap-\posA*LineHeight) -- (0.3*TextWidth,TextHeight-\mygap-\posA*LineHeight) -- (0.3*TextWidth,TextHeight) -- (0cm,TextHeight) --cycle ; lmt_parshape [path = p] ; draw p withpen pencircle scaled \mypen ; endgroup ; \stopuseMPgraphic \startuseMPgraphic{mytest2} % column on the right of the pull quote begingroup ; save p ; path p ; p := (0,0) -- (0.3*TextWidth,0cm) -- (0.3*TextWidth,TextHeight) -- (0cm,TextHeight) -- (0.0*TextWidth,TextHeight-\mygap-\posA*LineHeight) -- (0.0*TextWidth+\PQhalfwith,TextHeight-\mygap-\posA*LineHeight) -- (0.0*TextWidth+\PQhalfwith,TextHeight+\mygap-\posB*LineHeight) -- (0.0*TextWidth,TextHeight+\mygap-\posB*LineHeight) -- cycle ; lmt_parshape [path = p] ; draw p withpen pencircle scaled \mypen ; endgroup ; \stopuseMPgraphic \defineoverlay[myOL1][\useMPgraphic{mytest1}] \defineoverlay[myOL2][\useMPgraphic{mytest2}] % \defineframed [FramePage] [align=width, frame=off, location=high, strut=yes, offset=0pt, width=\textwidth, height=\textheight, before=] \defineframed [FrameColumn] [FramePage] [background=color, backgroundcolor=transparentred, width=0.3\textwidth, after=\dontleavehmode] % \definelayer % used to display the pull quote on the page [test] [x=0mm, y=0mm, width=\paperwidth, height=\paperheight] %=== \starttext \startshapetext[mytest1,mytest2,mytest0,mytest0]% \strut% \dorecurse{3}{\samplefile{douglas} \blank[1*line]}% \stopshapetext % % First page \FramePage{% \FrameColumn[background={color,myOL1}]{\getshapetext}\hfill \FrameColumn[background={color,myOL2}]{\getshapetext}\hfill \FrameColumn{empty}} % and the pull quote \setlayer [test] [hoffset=\backspace+0.3\textwidth-\PQhalfwith+0.2pt, voffset=\dimexpr(\topspace+\headerheight+\headerdistance+\posA\baselineskip-0.4pt)] {\framed[ background=color, backgroundcolor=transparentgreen, frame=off, strut=yes, offset=0pt, width=\dimexpr(0.05\textwidth)+\PQhalfwith+\PQhalfwith, height=\dimexpr(\posB\baselineskip-\posA\baselineskip)]{\bfd PULL QUOTE\\TRIAL}} \setupbackgrounds[page][background={foreground,test}] % % Second page just to demonstrate that \getshapetext continue to work \page \FramePage{% \FrameColumn{\getshapetext}\hfill \FrameColumn{\getshapetext}\hfill \FrameColumn{empty}} \stoptext pullquote_between_column_v01.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net _
[NTG-context] intercolumn pull quotes typesetting
Hi all, what would be the prefered way to typeset pull quotes (with \startcolumns or even \startcolumnset if needed) between 2 columns. Examples: https://tex.stackexchange.com/questions/45709/how-do-you-create-pull-quotes https://www.societal.fr/sites/societal/files/old_site/societal-46-6-boiteux-reperesettendances.pdf#page=2 Thanks for your ideas and solutions. Garulfo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] intercolumn pull quotes typesetting
Hi all, what would be the prefered way to typeset pull quotes (with \startcolumns or even \startcolumnset if needed) between 2 columns. Examples: https://tex.stackexchange.com/questions/45709/how-do-you-create-pull-quotes https://www.societal.fr/sites/societal/files/old_site/societal-46-6-boiteux-reperesettendances.pdf#page=2 Thanks for your ideas and solutions. Garulfo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] An Org Mode export backend for ConTeXt
Hi, From https://blog.tecosaur.com/tmio/2021-08-38-roaming.html " We’ve long been able to export to LaTeX files with ox-latex, but now you can export to ConTeXt too with ox-context! While only just released, a lot of work has already gone into this — with development starting almost a year ago by the commit history." Link : https://github.com/Jason-S-Ross/ox-context Great! Garulfo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] update
> Hopefully there are no side effects but the idea is to have somewhat > better (more robust and predictable) support for e.g. footnotes in > situations that are not natural to tex (like columns). The first > mechanism to benefit from that is page columns but all that is a > stepwise process. I keep track of that in yet another lowlevel manual. > These column things are on the agenda for next month and beyond. Good news, thank you very much ! I'm fond of typesetting in columns (with footnotes and margin notes) Garulfo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] MetaFun : textext.dflt / textext.dlft and MkIV / LMTX
Hi, After https://mailman.ntg.nl/pipermail/ntg-context/2021/102052.html It seems that there is no backward compatibility between MkIV and LMTX for textext.dflt (MVE below) | MkIV | LMTX | -|---|--| textext.dflt | OK | KO | as DefauLT (unlike ulft and llft) textext.dlft | KO | OK | as Default + LeFT (like ulft and llft) For backward compatibility, would it be possible to add textext.dflt to LMTX as a synonym of textext.dlft ? % \startuseMPgraphic{MonGraphique} StartPage ; picture Pict ; % Pict := textext.dlft("Brouillon DLFT") xsized (.5PaperWidth); % OK with LMTX 2021.09.03 18:49 % KO with MkIV 2020.03.10 14:44 Pict := textext.dflt("Brouillon DFLT") xsized (.5PaperWidth); % KO with LMTX 2021.09.03 18:49 % OK with MkIV 2020.03.10 14:44 Pict := Pict shifted (bbwidth Pict /2 , (bbheight Pict / -2) ) ; Pict := Pict rotated 45; Pict := Pict shifted (.5PaperWidth, .5PaperHeight) ; draw Pict withcolor darkyellow ; StopPage ; \stopuseMPgraphic %- \defineoverlay[MonOverlay][\useMPgraphic{MonGraphique}] \setupbackgrounds[page][background=MonOverlay] \starttext \input knuth \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___