[NTG-context] Re: what are the interaction between \showframe and \realpageno in \startuseMPgraphic ?

2024-04-24 Thread Wolfgang Schuster
fullsquare xscaled r yscaled e shifted (r/2, h/2) withcolor darkred; \stopuseMPgraphic \defineoverlay [MonGraphisme_OL] [\useMPgraphic{MonGraphisme_MP}] \setupbackgrounds [footer] [rightmargin] [background={MonGraphisme_OL}] \starttext \dorecurse{10}{\input tufte\page} \stoptext Any clue is warmly

[NTG-context] what are the interaction between \showframe and \realpageno in \startuseMPgraphic ?

2024-04-20 Thread garulfo
darkred; \stopuseMPgraphic \defineoverlay [MonGraphisme_OL] [\useMPgraphic{MonGraphisme_MP}] \setupbackgrounds [footer] [rightmargin] [background={MonGraphisme_OL}] \starttext \dorecurse{10}{\input tufte\page} \stoptext Any clue is warmly welcome

[NTG-context] command line arguments

2024-03-19 Thread Hraban Ramm
=footer] \setupheadertexts[\CONTEXT\ imposition test] \showframe \setupbackgrounds [text][text][background=color,backgroundcolor=lightgray] % Where the block of pages is placed on the sheet % (relevant if there is space left over.) \setuplayout [location=middle,marking=on] \startbuffer[Fakepage

[NTG-context] Re: Double sided pages leave a thin white line on the right side

2023-10-28 Thread Mikael Sundqvist
noticed a thin white line on the right side. > > Here is a Minimal Working Example: > > ConTeXt ver: 2023.09.26 18:19 LMTX > > \setupbackgrounds[page][background=color,backgroundcolor=black] > \setuppagenumbering[alternative=doubles

[NTG-context] Double sided pages leave a thin white line on the right side

2023-10-28 Thread Mia Bikey
Hi, I was using \setuppagenumbering[alternative=doublesided] to get double sided pages. After doing that I noticed a thin white line on the right side. Here is a Minimal Working Example: ConTeXt ver: 2023.09.26 18:19 LMTX \setupbackgrounds[page][background=color,backgroundcolor=black

[NTG-context] Re: enhancing MetaPost presentation progress graphics

2023-07-19 Thread Taco Hoekwater
2)) ... > endfor > (OverlayWidth,yoffset)--(OverlayWidth,0)--cycle; > fill wave withcolor "Sea"; > endfor; > > pair pos; > pos := (OverlayWidth * RealPageNumber/NOfPages, height/2 randomized 2); > path ship; > ship := (0,10)---(70,10)...(60,0)---(10,0)...cycle; &

[NTG-context] enhancing MetaPost presentation progress graphics

2023-07-19 Thread Henning Hraban Ramm
= (0,10)---(70,10)...(60,0)---(10,0)...cycle; fill ship xysized (10,5) shifted pos rotatedaround (pos, 15) withcolor red; \stopuseMPgraphic \defineoverlay[Waves][\useMPgraphic{Waves}] \setupbackgrounds[state=repeat] \setupbackgrounds[page][background={Waves}] \starttext \dorecurse{10}{\recurs

[NTG-context] Re: MP setup for a progress bar

2023-07-05 Thread Henning Hraban Ramm
area as well as under the margins. * I thought \useMPgraphics would be enough to re-calculate on every page? * How can I set a background to the footer area, but page width? * I tried \overlaywidth as well as OverlayWidth in the MP graphic – how do I get the page size? You need \setupbackgrounds

[NTG-context] Re: MP setup for a progress bar

2023-07-04 Thread Wolfgang Schuster
\setupbackgrounds[state=repeat]. \setuppapersize[SW] \startuseMPgraphic{Blocks} fill unitsquare xysized (OverlayWidth * PageNumber / LastPageNumber, OverlayHeight) withcolor blue; %setbounds currentpicture to OverlayBox; \stopuseMPgraphic \defineoverlay[Blocks][\useMPgraphic{Blocks}] \setupbackgrounds[state

[NTG-context] MP setup for a progress bar

2023-07-04 Thread Henning Hraban Ramm
tsquare xysized (800 * RealPageNumber/NOfPages, 50) withcolor blue; \stopuseMPgraphic \defineoverlay[Blocks][\useMPgraphic{Blocks}] \setupbackgrounds[footer][background={Blocks}] \starttext \dorecurse{10}{\recurselevel\page} \stopt

[NTG-context] Custom TOC with makeup and setups

2023-05-10 Thread Jethro Djan via ntg-context
, footerstate=empty, setups={toclist}, before=\setups{toc:setups}, ] \startsetups toc:setups \setupbackgrounds[page][background=color, backgroundcolor=blue] \stopsetups \definemakeup [standard] [ doublesided=no, page=right, pagestate=start, headerstate=empty

Re: [NTG-context] how access to \namedstructurevariable [next / previous]

2023-04-29 Thread Garulfo via ntg-context
Index % 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  

[NTG-context] how access to \namedstructurevariable [next / previous]

2023-04-29 Thread Garulfo via ntg-context
, \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

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-17 Thread Keith McKay via ntg-context
, footer=0.75cm, ] \definelayer[test3] %[x=.5\paperwidth, y=.5\paperheight] [x=.5\textwidth, y=.5\textheight] %\setupbackgrounds[page] \setupbackgrounds[text] [background=test3] \starttext \setlayer[test3][location={middle}] \framed[offset=overlay

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Pablo Rodriguez via ntg-context
\showframe \setupexternalfigures[location={default}] \setuplayout [backspace=2.5cm, topspace=1cm, height=28cm, width=17cm, header=0cm, footer=0.75cm, ] \definelayer[test3] %[x=.5\paperwidth, y=.5\paperheight] [x=.5\textwidth, y=.5\textheight] %\setupback

[NTG-context] Problem with \setuplayout parameters being ignored

2023-03-05 Thread Keith McKay via ntg-context
[ backspace = 2.5cm, margin = 0.5cm, width = 16cm, header = 1cm, footer = 1cm, ] \setupbackgrounds[state=repeat] \defineoverlay[apage][ {\startMPcode StartPage; definecolor[ name = "MyColor1", r = uniformdeviate(1), g = uniformdeviate(1), b = uniformdeviate(1) ] ; definec

Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Thomas A. Schmitz via ntg-context
led (0,2) shifted ( (i-1)*factor,-diff-0.85cm) withcolor blue ; else : fill p shifted ( (i-1)*factor, 0) withcolor red ; fi ; endfor ; StopPage ; \stopuseMPgraphic \defineoverlay [Ornament] [\useMPgraphic{ornament}] \setupbackgrounds[page] [state=rep

Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-21 Thread Otared Kavian via ntg-context
up pencircle scaled 2pt ; > draw p[0] withcolor red ; > StopPage ; > \stopreusableMPgraphic > > \defineoverlay[Card][\reuseMPgraphic{card}] > > \setupbackgrounds[page] >[state=repeat, > background={Card}] > > \starttext > >

[NTG-context] Backgrounds has changed in latest lmtx

2022-10-21 Thread Thomas A. Schmitz via ntg-context
(0, -14.42pt) ; draw p[i] withcolor (0.5,0.5,0.5) ; endfor ; pickup pencircle scaled 2pt ; draw p[0] withcolor red ; StopPage ; \stopreusableMPgraphic \defineoverlay[Card][\reuseMPgraphic{card}] \setupbackgrounds[page] [state=repeat, background={Card

[NTG-context] Perceptrons

2022-10-16 Thread Thangalin via ntg-context
ons scaled SCALE; \stopuseMPgraphic \startuseMPgraphic{HexGridBgGraphic} % Define the grid background colour color gridback; gridback := (0.15, 0.18, 0.24); fill unitsquare xyscaled (OverlayWidth, OverlayHeight) withcolor gridback; \stopuseMPgraphic \defineoverlay[HexGri

Re: [NTG-context] startTEXpage on A4

2022-10-09 Thread Hans Hagen via ntg-context
ppapersize [label] [A4] \setuplayout [page] \setuppaper [nx=3, ny=10, dx=1mm, dy=1mm] \setuplayout [horoffset=50mm, veroffset=10mm] \setuparranging [XY] \setupbackgrounds [page] [frame=on] \starttext \dorecurse{56} {\startpagemakeup \midalign

[NTG-context] \startcolumnset ... \stopcolumnset is working.

2022-09-14 Thread Jeong Dal via ntg-context
\defineoverlay [verticalrule] [\useMPgraphic{verticalrule3}] \definecolumnset [exam] [n=2, background=verticalrule] \setuplayout[width=19cm, height=26cm, header=1cm, footer=.5cm,backspace=1cm] \setupheader[before=\vfil, after=\vfil] \setupbackgrounds[header][text][frame=off, background

Re: [NTG-context] MP scratch counter

2022-07-13 Thread Hans Hagen via ntg-context
ted (i*5pt, 0pt)    withcolor if i < PageNumber : red else :  black fi ; endfor ; StopPage ; \stopuseMPgraphic \defineoverlay[background:ornament][\useMPgraphic{MP:ornament}] \setupbackgrounds[page][background={background:ornament}] \set

[NTG-context] MP scratch counter

2022-07-13 Thread Henning Hraban Ramm via ntg-context
else : black fi ; endfor ; StopPage ; \stopuseMPgraphic \defineoverlay[background:ornament][\useMPgraphic{MP:ornament}] \setupbackgrounds[page][background={background:ornament}] \setupbodyfont[ss,18pt] \starttext \dorecurse{10}{ \strut\par

Re: [NTG-context] Two minor questions

2022-06-06 Thread Stefan Nedeljkovic via ntg-context
; exact same dimensions as my page. I'd like to set that graphic as a > > background. How do I do this? > > (Again, untested) > > \startuseMPgraphic{background-image} > input graphic.mp; > \stopuseMPgraphic > > \defineo

Re: [NTG-context] Two minor questions

2022-06-06 Thread Aditya Mahajan via ntg-context
{background-image} input graphic.mp; \stopuseMPgraphic \defineoverlay[background-image][\useMPgraphic{background-image}] \setupbackgrounds[page][background={background-image}] Aditya ___ If your question is of interest t

Re: [NTG-context] Two minor questions

2022-06-06 Thread Wolfgang Schuster via ntg-context
\defineoverlay [backgroundimage] [\reuseMPgraphic{backgroundgraphic}] \setupbackgrounds [page] [background=backgroundimage] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki!

[NTG-context] Pull quote between two column - trial

2022-05-21 Thread Garulfo via ntg-context
\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

[NTG-context] MetaFun manual's "texvar" is not working for me

2022-05-21 Thread Gavin via ntg-context
\setupbackgrounds [page] [background={backgraphics,foreground,foregraphics}] \defineoverlay [backgraphics] [\positionoverlay{backgraphics}] \defineoverlay [foregraphics] [\positionoverlay{foregraphics}] \setupMPvariables [mpos:box] [linecolor=blue, linewidth=\linewidth, fillcolor

Re: [NTG-context] placing (on) layers

2022-04-16 Thread Pablo Rodriguez via ntg-context
][ preset=lefttop, %x=0mm,y=0mm, width=\paperwidth, height=\paperheight, ] \setupbackgrounds[page][background=papier] \starttext \showframe TEST \setlayerframed[papier][ preset=lefttop, %x=-\measure{Bleed}, %y=-\measure{Bleed}, offset=overlay,

Re: [NTG-context] placing (on) layers

2022-04-16 Thread Henning Hraban Ramm via ntg-context
Hi Willi, thank you, I wasn’t aware that \flushlayer works this way. This was also the problem in my real project. And I had the wrong layer mentioned in \setupbackgrounds from another test. Also, cropoffset was interfering in the real project, see my other mail. Hraban Am 16.04.22 um 22:27

Re: [NTG-context] placing (on) layers

2022-04-16 Thread Willi Egger via ntg-context
imexpr\paperwidth + 2\measure{Bleed}\relax}] > > \definelayer[papier][ > preset=lefttop, > %x=0mm,y=0mm, > width=\paperwidth, > height=\paperheight, > ] > \setupbackgrounds[paper][background=cover,state=start] > > > \starttext > \showframe > TEST >

[NTG-context] placing (on) layers

2022-04-15 Thread Henning Hraban Ramm via ntg-context
}\relax}] \definelayer[papier][ preset=lefttop, %x=0mm,y=0mm, width=\paperwidth, height=\paperheight, ] \setupbackgrounds[paper][background=cover,state=start] \starttext \showframe TEST \setlayerframed[papier][ preset=lefttop, %x=-\measure{Bleed}, %y=-\measure{Bleed}, offset

Re: [NTG-context] Metafun, difficulty with graphical element in the margin

2022-03-20 Thread Wolfgang Schuster via ntg-context
neoverlay[chapter-thumb][\useMPgraphic{chapter-thumb}] \startsectionblockenvironment[bodypart] \setupbackgrounds[rightpage][background=chapter-thumb] \stopsectionblockenvironment \showframe \starttext \startfrontmatter \startchapter[title=Test A] \samplefile{ward} \stopchapt

[NTG-context] Errors compiling the MetaFun manual

2022-03-12 Thread Marco Patzer via ntg-context
wn string ta %% metafun > log > %% metafun > log > error: Equation cannot be performed (unknown string=vacuous) \setupbackgrounds [page] [background={foreground,foregraphics}] \defineoverlay [foregraphics] [\positionoverlay{foregraphics}] \starttext \startMPpo

Re: [NTG-context] help with facing page image

2022-03-07 Thread jbf via ntg-context
ddpageelse{} {\pushbackground[page] \resetlayer[chapCover] \setlayer [chapCover] {\determineheadnumber[chapter] \externalfigure [chap-cover-\currentheadnumber] [width=\paperwidth]} \setupbackgrounds[page][background=chapCover] \

Re: [NTG-context] help with facing page image

2022-03-07 Thread jbf via ntg-context
\externalfigure [chap-cover-\currentheadnumber] [width=\paperwidth]} \setupbackgrounds[page][background=chapCover] \page[empty] \popbackground} \stopsetups \startsetups chapter:after \doifoddpageelse{} {\page[empty]} \stopsetups \set

Re: [NTG-context] help with facing page image

2022-03-06 Thread śrīrāma via ntg-context
tartsetups chapter:before \doifoddpageelse{} {\pushbackground[page] \resetlayer[chapCover] \setlayer [chapCover] {\determineheadnumber[chapter] \externalfigure [chap-cover-\currentheadnumber] [width=\paperwidth]} \setupbackgrounds[page][background=cha

Re: [NTG-context] help with facing page image

2022-03-06 Thread jbf via ntg-context
layer[mill]{\externalfigure[mill][width=\paperwidth]} \startsetups chapter:before \doifoddpageelse{} {\pushbackground[page] \setupbackgrounds[page][background=mill] \page[empty] \popbackground} \stopsetups \startsetups chapter:after \doifoddpageelse{} {\page[empty]} \

Re: [NTG-context] help with facing page image

2022-03-06 Thread śrīrāma via ntg-context
[x=0mm, y=0mm, width=\paperwidth, height=\paperheight,repeat=yes] \setlayer [mill] {\externalfigure[mill][width=\paperwidth]} \startsetups chapter:before \doifoddpageelse{} {\pushbackground[page] \setupbackgrounds[page][background=mill] \p

Re: [NTG-context] help with facing page image

2022-03-06 Thread śrīrāma via ntg-context
perwidth,height=\paperheight,repeat=yes] \setlayer[mill]{\externalfigure[mill][width=\paperwidth]} \startsetups chapter:before \doifoddpageelse{} {\pushbackground[page] \setupbackgrounds[page][background=mill] \page[empty] \popbackground} \stopsetups \startsetup

[NTG-context] help with facing page image

2022-03-06 Thread jbf via ntg-context
\textwidth]} \doifoddpageelse {} {\pushbackground[page] \setupbackgrounds[page]%[background=color,backgroundcolor=red] [background=mylayer] \page[empty] \popbackground} \startchapter[title={Prelude}] etc. This correctly places the Chapter1.jpg on the facing page to Chapter 1. My problem comes

[NTG-context] Double-sided documents with MetaFun's Field[Text][Text]

2022-02-06 Thread śrīrāma via ntg-context
}] \setupbackgrounds[page][background=page] \starttext \dorecurse{10}{\input knuth \page} \stoptext %%% EOF In the resulting PDF the Field[Text][Text] path is not positioned (/computed?) correctly, while the manually positioned Area[Text][Text] path is as expected. So, it seems

Re: [NTG-context] doublesided margin page number

2022-01-31 Thread Wolfgang Schuster via ntg-context
Youssef Cherem via ntg-context schrieb am 24.01.2022 um 02:28: I've managed to put double-sided page numbers -- but numbers are restarting after two, though. What's going on? Add     \setupbackgrounds[state=repeat] to your setups to ensure the text background is refreshed. Wolfgang

Re: [NTG-context] doublesided margin page number

2022-01-31 Thread Pablo Rodriguez via ntg-context
On 1/24/22 2:28 AM, Youssef Cherem via ntg-context wrote: > I've managed to put double-sided page numbers -- but numbers are > restarting after two, though. What's going on? Hi Yousesef, I think this is related to how \setupbackgrounds is invoked. The following command

[NTG-context] doublesided margin page number

2022-01-23 Thread Youssef Cherem via ntg-context
[pagenumber] [ width=\paperwidth, height=\paperheight, % preset=rightbottom, voffset=.3\paperheight ] %\setupbackgrounds[page][background=pagenumber, setups=setpagenumber] \setupbackgrounds[text] [rightmargin] [background=pagenumber, setups=setpagenumber] %isso aqui é o que funciona para

Re: [NTG-context] measure layer/ ruler

2022-01-01 Thread Youssef Cherem via ntg-context
rt (n/10,(f+sign*12mm,i)) ; > fi > elseif (n mod 5) == 0 : > draw (f,i) -- (f+sign*5mm,i) ; > else : > draw (f,i) -- (f+sign*3mm,i) ; > fi ; > n := n + 1 ; > endfor ; > setbounds currentpicture to Page ; &

Re: [NTG-context] measure layer/ ruler

2022-01-01 Thread Hans Hagen via ntg-context
*5mm,i) ; else : draw (f,i) -- (f+sign*3mm,i) ; fi ; n := n + 1 ; endfor ; setbounds currentpicture to Page ; \stopuniqueMPpagegraphic \defineoverlay[ruler][\uniqueMPpagegraphic{ruler}] \setupbackgrounds[page][background=ruler] \setuppagenumbering[alter

Re: [NTG-context] How to use a variable in a macro agrument

2021-12-18 Thread Wolfgang Schuster via ntg-context
not working for me. Here is my MWE: \define[]\logofile{an_image_file.png} % Here defining the variable with the filename to use. \definelayer[stillimage] \setlayer[stillimage]{\externalfigure[\logofile]} % Here trying to use the \logofile macro. \setupbackgrounds[page][background

Re: [NTG-context] How to use a variable in a macro agrument

2021-12-18 Thread Willi Egger via ntg-context
y MWE: > > > > \define[]\logofile{an_image_file.png} % Here defining the variable with the > filename to use. > > \definelayer[stillimage] > \setlayer[stillimage]{\externalfigure[\logofile]} % Here trying to use the > \logofile macro. > \setupbackground

[NTG-context] How to use a variable in a macro agrument

2021-12-18 Thread skyhorse--- via ntg-context
[]\logofile{an_image_file.png} % Here defining the variable with the filename to use. \definelayer[stillimage] \setlayer[stillimage]{\externalfigure[\logofile]} % Here trying to use the \logofile macro. \setupbackgrounds[page][background=stillimage] \starttext \input knuth \stoptext What's

[NTG-context] \startcolumnset ... \stopcolumnset fatal error: return code 11

2021-12-16 Thread Jeong Dal via ntg-context
set [exam] [n=2, background=verticalrule] \setuplayout[width=19cm, height=26cm, header=1cm, footer=.5cm,backspace=1cm] \setupheader[before=\vfil, after=\vfil] \setupbackgrounds[header][text][frame=off, background=headerBox, align=lohi]%topframe= \setupbackgrounds[footer][text][frame=

[NTG-context] using the newcolumnsets module

2021-12-09 Thread Jeong Dal via ntg-context
set [exam] [n=2, background=verticalrule] \setuplayout[width=19cm, height=26cm, header=1cm, footer=.5cm,backspace=1cm] \setupheader[before=\vfil, after=\vfil] \setupbackgrounds[header][text][frame=off, background=headerBox, align=lohi]%topframe= \setupbackgrounds[footer][text][frame=

Re: [NTG-context] Blocks inside a conditional mode.

2021-11-29 Thread Fabrice L via ntg-context
fineblock[Complement] \setupblock[Complement][ before={\page[yes]\setuppagenumber[state=stop]\setupheadertexts[]\setupbackgrounds[page][background=color,backgroundcolor=red]}, after={\page[yes]\setuppagenumber[state=start]}] \starttext % Let's process the summar

Re: [NTG-context] Blocks inside a conditional mode.

2021-11-28 Thread Fabrice L via ntg-context
\defineblock[ComplementTwo] \defineblock[ComplementThree] \setupblock[ComplementTwo,ComplementThree][ before={\page[yes]\setuppagenumber[state=stop]\setupheadertexts[]\setupbackgrounds[page][background=color,backgroundcolor=red]}, after={\page[yes]\setuppagenumber[state=start]}] \startte

[NTG-context] Blocks inside a conditional mode.

2021-11-28 Thread Fabrice L via ntg-context
ber[state=stop]\setupheadertexts[]\setupbackgrounds[page][background=color,backgroundcolor=red]}, after={\page[yes]\setuppagenumber[state=start]}] \doifallmodes{Professor} { \keepblocks[Complement] } \starttext page 1 \beginComplement A complement

Re: [NTG-context] font problems

2021-11-26 Thread jdh via ntg-context
; > \setlayer[mwe] { \switchtobodyfont[chancery,8pt] \hskip 5mm Chancery > > Font Here } > > \setupbackgrounds[page][background=mwe] > > > > \starttext > > Normal font text goes here. \blank[4*big] > > { \switchtobodyfo

Re: [NTG-context] font problems

2021-11-26 Thread Hans Hagen via ntg-context
] { \switchtobodyfont[chancery,8pt] \hskip 5mm Chancery Font Here } \setupbackgrounds[page][background=mwe] \starttext Normal font text goes here. \blank[4*big] { \switchtobodyfont[chancery] This should be Chancery here to. But isn't. } \blank[2*big]Note

[NTG-context] font problems

2021-11-26 Thread jdh via ntg-context
Font Here } \setupbackgrounds[page][background=mwe] \starttext Normal font text goes here. \blank[4*big] { \switchtobodyfont[chancery] This should be Chancery here to. But isn't. } \blank[2*big]Note that if I comment out the \type{setlayer[mwe

Re: [NTG-context] repeat layer recto pages

2021-11-09 Thread jbf via ntg-context
, this is what you want: \startsectionblockenvironment[bodypart] \setupbackgrounds [rightpage] [background=butterfly] \stopsectionblockenvironment \startbodymatter \setupbackgrounds  [rightpage]  [background=butterfly] \startchapter[title={Chapter title

Re: [NTG-context] repeat layer recto pages

2021-11-09 Thread Pablo Rodriguez via ntg-context
ully; the layer repeats for every page > at the moment. I must have omitted something). Hi Julian, this is what you want: \startsectionblockenvironment[bodypart] \setupbackgrounds [rightpage] [background=butterfly] \stopsectionblockenvironment > \startbodymatter

[NTG-context] repeat layer recto pages

2021-11-08 Thread jbf via ntg-context
something). \startbodymatter \setupbackgrounds  [rightpage]  [background=butterfly] \startchapter[title={Chapter title}] \definelayer[butterfly]     [x=0mm, y=0mm,repeat=yes,width=\paperwidth, height=\paperheight] \setlayer[butterfly]     [hoffset=.99\textwidth, voffset=1cm]     {\externalfigure

[NTG-context] flushlayer

2021-09-28 Thread Bruce Horrocks via ntg-context
Latest LMTX. I noticed the following \flushlayer behaviour and wondered if it was a bug or something I've misunderstood? \showframe \setuppapersize [A5][A5] \setuplayout[marking=on, location=middle] \definelayer[coverlayer] [width=\paperwidth, height=\paperheight] \setupbackgrounds [paper

Re: [NTG-context] Placing pagenumer with coordinates (layers)

2021-09-21 Thread Wolfgang Schuster via ntg-context
,    height=\paperheight,    location={left,top},    x=120mm,y=220mm,    doublesided=yes] \startsetups layer \setlayer[pagenumber][even]{\pagenumber} \stopsetups \setupbackgrounds[page][setups=layer,background={pagenumber}] \starttext ~\page~\page~\page \stoptext And it works, but only for the left

[NTG-context] Placing pagenumer with coordinates (layers)

2021-09-21 Thread Huseyin Özoguz via ntg-context
,    doublesided=yes] \startsetups layer \setlayer[pagenumber][even]{\pagenumber} \stopsetups \setupbackgrounds[page][setups=layer,background={pagenumber}] \starttext ~\page~\page~\page \stoptext And it works, but only for the left (even) page. On the right page I want to place the pagenumber

Re: [NTG-context] positioning of metapost figure

2021-09-12 Thread Sylvain Hubert via ntg-context
> > \startuniqueMPgraphic{concept} > > draw fullcircle scaled 1cm shifted (10cm,10cm); > > \stopuniqueMPgraphic > > \defineoverlay[concept][\uniqueMPgraphic{concept}] > > \setupbackgrounds[page][background=concept] > > \starttext > > . > > \stoptext > >

Re: [NTG-context] positioning of metapost figure

2021-09-12 Thread Hans Hagen via ntg-context
ay[concept][\uniqueMPgraphic{concept}] \setupbackgrounds[page][background=concept] \starttext . \stoptext How should the metapost background figure be positioned correctly? \startuniqueMPgraphic{concept} StartPage; draw fullcircle scaled 1cm shifted (10cm,10cm); draw Page withpen

[NTG-context] positioning of metapost figure

2021-09-12 Thread Sylvain Hubert via ntg-context
Dear List, The following code draws a circle at the center of the page, ignoring the "shifted" part. \startuniqueMPgraphic{concept} draw fullcircle scaled 1cm shifted (10cm,10cm); \stopuniqueMPgraphic \defineoverlay[concept][\uniqueMPgraphic{concept}] \setupbackgrounds[page][backgrou

Re: [NTG-context] transparency stopped working in LMTX

2021-09-07 Thread Hans Hagen via ntg-context
] \setupbackgrounds[text][background={bg},state=start] \starttext \starttransparent[light]% \externalfigure[hacker]% \stoptransparent \setlayer[bg][ hoffset=5mm, voffset=5mm, ]{ \starttransparent[light]% \externalfigure[hacker]% \stoptransparent } \stoptext ''' The layer stuff is not "minimal&qu

[NTG-context] transparency stopped working in LMTX

2021-09-07 Thread Henning Hraban Ramm via ntg-context
(Latest LMTX, yesterday’s luametatex binary) The MWE shows no transparency with LMTX, it works with MkIV: ''' \setupexternalfigures[location=default] \definetransparency[light][a=1,t=.05] \definelayer[bg][x=0mm,y=0mm] \setupbackgrounds[text][background={bg},state=start] \starttext

[NTG-context] MetaFun : textext.dflt / textext.dlft and MkIV / LMTX

2021-09-05 Thread Garulfo via ntg-context
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

Re: [NTG-context] Test for displaying a header

2021-08-27 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur schrieb am 27.08.2021 um 10:04: Hi Wolfgang, This may not be nicest but seems to work Fabrice %% \definelayout [1]   [header=10mm] \setuplayout   [header=0pt,  height=middle] \setuppagenumbering [alternative=doublesided,location=] \setupbackgrounds

Re: [NTG-context] layer disappears when showframe is set

2021-08-27 Thread juh via ntg-context
Hi Wolfgang, thanks a lot for your help. Am Thu, Aug 26, 2021 at 05:52:11PM +0200 schrieb Wolfgang Schuster: > To keep the layer setting you have to move \showframe above your own > \setupbackgrounds command because the reset of the background-key happens > then before you pass your

Re: [NTG-context] Test for displaying a header

2021-08-26 Thread Fabrice Couvreur via ntg-context
Hi, Using this (but it's not exactly what I want) it works test-1.tex %% \setuppagenumbering [alternative=doublesided,location=] \definelayout [1] [header=10mm] \setuplayout [header=0pt, height=middle] \setupbackgrounds [header] [text] [frame=off,bottomframe

Re: [NTG-context] layer disappears when showframe is set

2021-08-26 Thread Wolfgang Schuster via ntg-context
]} \setupbackgrounds[header][background=Cow] \showframe \starttext \input knuth \stoptext The \showframe command is just a wrapper for \setupbackgrounds to enable the frames on certain parts of the page. One of the settings which are passed to \setupbacgrounds when you use \showframe is "backg

[NTG-context] layer disappears when showframe is set

2021-08-26 Thread juh via ntg-context
Hi, this sample shows that the image in a layer in header disappears if showframe is set. \setupexternalfigures[location=default] \definelayer[Cow] [x=0, y=0] \setlayer[Cow] [x=10em, y=0mm] {\externalfigure[cow][height=\lineheight]} \setupbackgrounds[header][background=Cow] \showframe

Re: [NTG-context] Place a logo at the bottom of the page with a layer

2021-08-24 Thread Wolfgang Schuster via ntg-context
] \definelayer [MyLogo] [doublesided=yes, width=\paperwidth, height=\paperheight, repeat=yes] \setupbackgrounds [page] [background=MyLogo] \setuppagenumbering [alternative=doublesided] \setlayer [MyLogo] [left] [preset=leftbottom, x=\dimexpr\cutspace-\rightmargindistance

[NTG-context] Place a logo at the bottom of the page with a layer

2021-08-24 Thread Fabrice Couvreur via ntg-context
=\paperwidth, height=\paperheight, repeat=yes] \setupbackgrounds[page][background=MyLogo] \setlayer [MyLogo] [hoffset=\dimexpr\textwidth+\backspace+\rightmargindistance\relax, voffset=\dimexpr\topspace+\textheight+\footerheight\relax] {\externalfigure[dum][width=\rightmarginwidth

[NTG-context] Adjustment for header and footer

2021-08-22 Thread Fabrice Couvreur via ntg-context
, location=middle] \setupbodyfont [newcomputermodern-book,11pt] \definefont [TextStyle] [SansBold*default sa 1.2] \defineframed [headerframed] [frame=off, height=fit, width=fit, ] \setupbackgrounds [header] [text] [frame=off,bottomframe=on,width=\widthpaper, framecolor

Re: [NTG-context] paper dimensions for TEXpage

2021-08-18 Thread Hans Hagen via ntg-context
(using framed or so) and then taking those dimensions Many thanks for your reply, Hans. I’m afraid I don’t know how to make the commands work: \setupexternalfigures[location=default] \definelayer[hi] [x=.5\dimexpr\framedwidth\relax, y=.5\dimexpr\framedheight\relax] \setupbackgrounds

Re: [NTG-context] paper dimensions for TEXpage

2021-08-17 Thread Pablo Rodriguez via ntg-context
d then taking those dimensions Many thanks for your reply, Hans. I’m afraid I don’t know how to make the commands work: \setupexternalfigures[location=default] \definelayer[hi] [x=.5\dimexpr\framedwidth\relax, y=.5\dimexpr\framedheight\relax] \setupbackgrounds[page][background=

Re: [NTG-context] paper dimensions for TEXpage

2021-08-17 Thread Hans Hagen via ntg-context
On 8/17/2021 5:56 AM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample: \definelayer[hi][x=.5\paperwidth, y=.5\paperheight] \setupbackgrounds[page][background=hi] \starttext \setlayer[hi]{hi} \startTEXpage[offset=10em] \null \stopTEXpage

[NTG-context] paper dimensions for TEXpage

2021-08-16 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \definelayer[hi][x=.5\paperwidth, y=.5\paperheight] \setupbackgrounds[page][background=hi] \starttext \setlayer[hi]{hi} \startTEXpage[offset=10em] \null \stopTEXpage \stoptext I don’t get the layer in the TEXpage. How could I get

Re: [NTG-context] JavaScript in multimedia PDF

2021-08-10 Thread Michal Vlasák via ntg-context
, may cause surprising interactions when around normal typsetting content. Putting the whatsit insertion in a page background is a way to keep it away. "back-swf.mkiv" suggests: \setupbackgrounds[page][background=resources] \setlayer[resources]{\placerenderingwindow[foo][foo]}

Re: [NTG-context] multimedia PDF in ConTeXt

2021-07-31 Thread Pablo Rodriguez via ntg-context
longer supports this. > [...] > But, you can use renderings instead: > > \useexternalrendering[myaudiorendering] > [audio/mp3][audio.mp3][embed=yes] > > \definerenderingwindow[audiowindow] > [width=0sp, height=0sp] > > \definelayer[resources] >

Re: [NTG-context] multimedia PDF in ConTeXt

2021-07-30 Thread Michal Vlasák via ntg-context
th=0sp, height=0sp] \definelayer[resources] \setupbackgrounds[page][background=resources] \setlayer[resources]{\placerenderingwindow[audiowindow][myaudiorendering]} \goto{PLAY SOUND}[StartRendering{myaudiorendering}] This is basically the example from "/back-swf.mkiv". W

Re: [NTG-context] Layers – when do they repeat?

2021-07-21 Thread Henning Hraban Ramm
m, >leftmargindistance=4mm, >leftmargin=57mm, > ] > > \definelayer[leftmargin][ > x=0mm,y=3mm, >width=\leftmarginwidth, >height=\textheight > ] > > \setupbackgrounds[text][leftmargin][background=leftmargin,state=start] > > \starttext > > \

Re: [NTG-context] reusableMPgraphic

2021-07-15 Thread Jairo A. del Rio
itsquare xyscaled (1mm,1mm) withcolor blue ; > > \stopreusableMPgraphic > > > > \definelayer[foldingmarkslayer][width=\paperwidth,height=\paperheight] > > \setlayer[foldingmarkslayer][y=101mm,x=11mm]{\reuseMPgraphic{fold}} > > > > \setupbackgrounds [page][b

Re: [NTG-context] reusableMPgraphic

2021-07-12 Thread Wolfgang Schuster
; \stopreusableMPgraphic \definelayer[foldingmarkslayer][width=\paperwidth,height=\paperheight] \setlayer[foldingmarkslayer][y=101mm,x=11mm]{\reuseMPgraphic{fold}} \setupbackgrounds [page][background=foldingmarkslayer] \starttext Test \stoptext The error I get: tex error on line 6 in file ./test.tex: Use

[NTG-context] reusableMPgraphic

2021-07-12 Thread Thomas A. Schmitz
=\paperwidth,height=\paperheight] \setlayer[foldingmarkslayer][y=101mm,x=11mm]{\reuseMPgraphic{fold}} \setupbackgrounds [page][background=foldingmarkslayer] \starttext Test \stoptext The error I get: tex error on line 6 in file ./test.tex: Use of \meta_usempgraphic_nop doesn't match its

[NTG-context] Layers – when do they repeat?

2021-07-01 Thread Henning Hraban Ramm
, ] \definelayer[leftmargin][ x=0mm,y=3mm, width=\leftmarginwidth, height=\textheight ] \setupbackgrounds[text][leftmargin][background=leftmargin,state=start] \starttext \setlayerframed[leftmargin][ frame=off, offset=overlay, width=\leftmarginwidth, align={flushleft,verytolerant

Re: [NTG-context] Double-sided layer

2021-05-06 Thread Wolfgang Schuster
[directory=images_bearbeitet_png] \definelayer [backgroundimage] [width=\paperwidth, height=\paperheight, state=repeat, doublesided=yes] \setupbackgrounds [page] [background=backgroundimage] \setlayer [backgroundimage] [right] [x=\backspace, y=\dimexpr\topspace+\headerheight+\head

Re: [NTG-context] layers x 2

2021-04-27 Thread jbf
Thanks, it was particularly the braces that I had overlooked. Julian On 28/4/21 2:58 pm, Wolfgang Schuster wrote: Move both \definelayer and \setupbackgrounds to the start of the document and put braces ({...}) around the list entry. Wolfgang jbf mailto:roma83...@gmail.com>> schrieb

Re: [NTG-context] layers x 2

2021-04-27 Thread Wolfgang Schuster
Move both \definelayer and \setupbackgrounds to the start of the document and put braces ({...}) around the list entry. Wolfgang jbf schrieb am Mi., 28. Apr. 2021, 06:53: > It is not clear to me. I have two \setupbackgrounds as you can see. If I > put setupbackgrounds[page][back

Re: [NTG-context] layers x 2

2021-04-27 Thread jbf
It is not clear to me. I have two \setupbackgrounds as you can see. If I put setupbackgrounds[page][background=blessings,tree] for the first one I get the tree but not the blessing graphic. If I also have the same for the second one (\setupbackgrounds[page][background=blessings,tree]) I get

Re: [NTG-context] layers x 2

2021-04-27 Thread Wolfgang Schuster
externalfigure[bless.eps][width=3cm]} % the actual contents of > the layer > \setupbackgrounds[page][background=blessings] > > \definelayer[tree] % name of the layer > [x=0mm, y=0mm, % from upper left corner of paper > width=\paperwidth, height=\paperheight] % let the

[NTG-context] layers x 2

2021-04-27 Thread jbf
the layer cover the full paper \setlayer[blessings]    % name of the layer     [hoffset=.09\textwidth, voffset=1.7cm]  % placement (from upper left corner of the layer)     {\externalfigure[bless.eps][width=3cm]}  % the actual contents of the layer \setupbackgrounds[page][background=blessings

Re: [NTG-context] Are positional graphics still working?

2021-02-17 Thread Jairo A. del Rio
\defineoverlay[frames][\positionoverlay{frames}] > > > > \setupbackgrounds[text][background=frames] > > > > > > \startMPpositiongraphic{frame} > > > > if unknown context_apos : input mp-apos.mpiv ; fi ; > > > > \MPgetposboxes{\MPvar{self}}{\MPa

Re: [NTG-context] Are positional graphics still working?

2021-02-17 Thread Hans Hagen
On 2/17/2021 12:18 AM, Jairo A. del Rio wrote: I've copied the following example from the ConTeXt archive: \defineoverlay[frames][\positionoverlay{frames}] \setupbackgrounds[text][background=frames] \startMPpositiongraphic{frame} if unknown context_apos : input mp-apos.mpiv ; fi

[NTG-context] Are positional graphics still working?

2021-02-16 Thread Jairo A. del Rio
I've copied the following example from the ConTeXt archive: \defineoverlay[frames][\positionoverlay{frames}] \setupbackgrounds[text][background=frames] \startMPpositiongraphic{frame} if unknown context_apos : input mp-apos.mpiv ; fi ; \MPgetposboxes{\MPvar{self}}{\MPanchorid} if nofposboxes

  1   2   3   4   5   6   7   8   9   10   >