[NTG-context] build_parshape and \getshapetext - need for a deeper understanding

2024-05-19 Thread garulfo
mmand{\leftaligned{#2}} %-- \define[2]\MyPageBuilder{% \page \setupbackgrounds[page][background=testA] \definelayer[testA] [x=0mm, y=0mm,width=\paperwidth, height=\paperheight] ~ \startshapetext[mymetafunpath, mymetafu

[NTG-context] compatibility between \startshapetext and \startsection ?

2024-05-14 Thread garulfo
} \reference[myref2]{MyRef2} Here is the second reference.\par See reference \in[myref1] on \at{page}[myref1]\par \stopshapetext \definelayer[testA] \setlayer[testA][x=-1cm,y=3cm]{\framed[background=ol1]{\strut\getshapetext}} \setlayer[testA][x=9cm,y=3cm] {\framed[background=ol1]{\strut

[NTG-context] Hbox error with itemized list on second page

2024-04-30 Thread Ross Schulman
contacts] [ align=center, page=no, after={\thinrule\blank[big]}] \definehead[topic][subject] \setuphead [topic] [ after={\hairline}] \defineitemgroup [timeline] [before=, inbetween=, width=6em] \setuplines[before=,after=,command=\strut] \definelayer[myb

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

2023-03-17 Thread Keith McKay via ntg-context
header=0cm, 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[offs

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

2023-03-17 Thread Keith McKay via ntg-context
.75cm, ] \setuppagenumbering[state=start,alternative=doublesided,location=margin] \useMPlibrary [dum] \starttext %%% Me %%% \showframe [text] [text] \definelayer[test3] \setlayer[test3][] \centerbox{ {\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle] {\externalfigure[

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

2023-03-16 Thread Keith McKay via ntg-context
.contextgarden.net/Combinations#Image_Width > > > > > > Thanks > > > > > > Keith McKay > > > > > > %%% example %%% > > > > > > \setuppapersize[A4,portrait]%[A4,portrait] > > > > > > \setuplayout > &

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

2023-03-16 Thread Alan Braslau via ntg-context
> > [backspace=2.5cm, > > > > topspace=1cm, > > > > height=28cm, > > > > width=17cm, > > > > header=0cm, > > > > footer=0.75cm, > > > > ] > > > > \useMPlibrary [dum] > > > > \start

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

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

2023-03-16 Thread Wolfgang Schuster via ntg-context
, height=28cm, width=17cm, header=0cm, footer=0.75cm, ] \useMPlibrary [dum] \starttext \definelayer[test3] \setlayer[test3][x=2cm,y=15cm] {\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle] {\externalfigure[dummy]}{} \rotate[rotation=90]{\externalfigure[dummy

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

2023-03-16 Thread Keith McKay via ntg-context
, ] \useMPlibrary [dum] \starttext \definelayer[test3] \setlayer[test3][x=2cm,y=15cm] {\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle] {\externalfigure[dummy]}{} \rotate[rotation=90]{\externalfigure[dummy]}{} {\externalfigure[dummy][]}{} \stopcombination} \flushlayer[test3

Re: [NTG-context] How do I turn off indentation inside a \framed with align=?

2022-06-02 Thread Gerben Wierda via ntg-context
relations are shown. Abstract elements are expanded so only real meta­model elements are shown. Uses the Mastering ArchiMate 9-colour scheme to assist learning and quick reading.}] \starttext \setupindenting[none] \setupindenting[no] \definelayer[coremodel][width=\textwidth,height=\textheight]

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

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

Re: [NTG-context] Crediting copyright on photographs

2022-05-04 Thread Adam Reviczky via ntg-context
Hi Bruce, The Layers page has some examples ( https://wiki.contextgarden.net/Layers#Place_labels_on_pictures) and the Collectors page as well (https://wiki.contextgarden.net/Collectors). Some MWE: \starttext \definelayer [figure][width=\overlaywidth,height=\overlayheight] \defineoverlay[figure

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

2022-04-16 Thread Pablo Rodriguez via ntg-context
ere. The layer is relative to the page, not to the paper in this case. And the state is an option for the layer (in \definelayer), not for the background, being "start" its default value. Just in case it might help, Pablo \setupexternalfigures [location={default,global}] \

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

2022-04-16 Thread Henning Hraban Ramm via ntg-context
): \useMPlibrary[dum] \setuppapersize[A5][A4] \setuplayout[ marking=on, location=middle, ] \definemeasure[Bleed][3mm] \definemeasure[MaxHeight][{\dimexpr\paperheight + 2\measure{Bleed}\relax}] \definemeasure[MaxWidth][{\dimexpr\paperwidth + 2\measure{Bleed}\relax}] \definelayer[papier][ preset

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

2022-04-16 Thread Willi Egger via ntg-context
irst line): > > > \useMPlibrary[dum] > > \setuppapersize[A5][A4] > \setuplayout[ > marking=on, > location=middle, > ] > \definemeasure[Bleed][3mm] > \definemeasure[MaxHeight][{\dimexpr\paperheight + 2\measure{Bleed}\relax}] > \definemeasure[MaxWidth][{\d

[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
in {\it Italic} and {\bf bold} letters: \bgroup \it This is what Italic letters look like here. \egroup \bgroup \bf This is what Bold letters look like here. \egroup \stopblockquote \stoptext \definelayer [testlayer] \setupbackgrounds [text] [text] [background=testlayer] %\setupbackground

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

2022-03-07 Thread jbf via ntg-context
oint ConTeXt to the right directory for figures of course): % kate: hl ctx %%% SOF \setuppagenumbering[alternative=doublesided] \definelayer [chapCover] [x=0mm, y=0mm, width=\paperwidth, height=\paperheight,repeat=yes] \startsetups chapter:b

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

2022-03-07 Thread jbf via ntg-context
ges {chap-cover-1.jpg, chap-cover-2.jpg, ... chap-cover-10.jpg} each of which appear at the ends of their respective chapters, then the following achieves what you want (once you point ConTeXt to the right directory for figures of course): % kate: hl ctx %%% SOF \setuppagenumbering[alterna

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

2022-03-06 Thread śrīrāma via ntg-context
g achieves what you want (once you point ConTeXt to the right directory for figures of course): % kate: hl ctx %%% SOF \setuppagenumbering[alternative=doublesided] \definelayer [chapCover] [x=0mm, y=0mm, width=\paperwidth, height=\paperheight,repeat=yes]

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

2022-03-06 Thread jbf via ntg-context
e to appear where it should! From what I understood from your explanation, I have this: %%% SOF % for 'mill' \setupexternalfigures[location={default}] \setuppagenumbering[alternative=doublesided] \definelayer[mill][x=0mm,y=0mm,width=\paperwidth,height=\paperheight

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

2022-03-06 Thread śrīrāma via ntg-context
On Monday, March 7, 2022 11:08 AM śrīrāma wrote: > > From what I understood from your explanation, I have this: > A formatted version below – %%% SOF % for 'mill' \setupexternalfigures[location={default}] \setuppagenumbering[alternative=doublesided] \definelayer

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

2022-03-06 Thread śrīrāma via ntg-context
I can't seem to get my facing page image to appear where it > should! From what I understood from your explanation, I have this: %%% SOF % for 'mill' \setupexternalfigures[location={default}] \setuppagenumbering[alternative=doublesided] \definelayer[mill][x=0mm,

[NTG-context] help with facing page image

2022-03-06 Thread jbf via ntg-context
1 in bodymatter: \startbodymatter \definelayer[mylayer] % name of the layer [x=0mm, y=0mm, % from upper left corner of paper width=\paperwidth,height=\paperheight] % let the layer cover the full paper \setlayer[mylayer] [hoffset=2.5cm, voffset=3cm] {\externalfigure[Chapter1.jpg][wid

[NTG-context] doublesided margin page number

2022-01-23 Thread Youssef Cherem via ntg-context
I've managed to put double-sided page numbers -- but numbers are restarting after two, though. What's going on? \setuppagenumbering[location=,alternative=doublesided] % https://tex.stackexchange.com/questions/128854/context-eliminate-topspace-and-bottomspace?rq=1 \d

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

2021-12-18 Thread Wolfgang Schuster via ntg-context
it's 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][

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

2021-12-18 Thread Willi Egger via ntg-context
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. > \setup

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

2021-12-18 Thread skyhorse--- via ntg-context
% \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=stillimage] \starttext \input knuth \stoptext

Re: [NTG-context] font problems

2021-11-26 Thread jdh via ntg-context
both to print out as > > Chancery. Only one or the > > other, but not both. > > > > %%%% > > \definefontfamily [mwetest] [sans] [Liberation Sans] > > \setupbodyfont [mwe,ss,12pt] > > \definelayer[mwe][repeat=yes, preset=lefttop,

Re: [NTG-context] font problems

2021-11-26 Thread Hans Hagen via ntg-context
son I can't get both to print out as Chancery. Only one or the other, but not both. \definefontfamily [mwetest] [sans] [Liberation Sans] \setupbodyfont [mwe,ss,12pt] \definelayer[mwe][repeat=yes, preset=lefttop, hoffset=.125in, voffset=.125in] \se

[NTG-context] font problems

2021-11-26 Thread jdh via ntg-context
one or the other, but not both. \definefontfamily [mwetest] [sans] [Liberation Sans] \setupbodyfont [mwe,ss,12pt] \definelayer[mwe][repeat=yes, preset=lefttop, hoffset=.125in, voffset=.125in] \setlayer[mwe] { \switchtobodyfont[chancery,8pt] \hskip 5m

Re: [NTG-context] repeat layer recto pages

2021-11-10 Thread Pablo Rodriguez via ntg-context
you. I didn’t realize that there was a "repeat" option in \definelayer. I use "state", since it contains more values to be chosen from. I guess "state=repeat" and "repeat=yes" get the same result. Pablo ___

Re: [NTG-context] repeat layer recto pages

2021-11-09 Thread jbf via ntg-context
title}] \definelayer[butterfly]     [x=0mm, y=0mm,repeat=yes,width=\paperwidth, height=\paperheight] \setlayer[butterfly]     [hoffset=.99\textwidth, voffset=1cm]     {\externalfigure[bfly.jpg][width=1.5cm]} \setupbackgrounds[page][background=butterfly] The last line adds backgrounds to every page. And wi

Re: [NTG-context] repeat layer recto pages

2021-11-09 Thread Pablo Rodriguez via ntg-context
tter > > \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, vo

[NTG-context] repeat layer recto pages

2021-11-08 Thread jbf via ntg-context
itted 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]     {\externalf

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

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

2021-09-21 Thread Wolfgang Schuster via ntg-context
Huseyin Özoguz via ntg-context schrieb am 21.09.2021 um 12:24: Hello dear context-enthusiasts, I want to place the pagenumber on a double-sided project with coordinates. I tried the layer-mechanism: \setuppagenumbering[location=] \definelayer   [pagenumber]   [width=\paperwidth

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

2021-09-21 Thread Huseyin Özoguz via ntg-context
Hello dear context-enthusiasts, I want to place the pagenumber on a double-sided project with coordinates. I tried the layer-mechanism: \setuppagenumbering[location=] \definelayer   [pagenumber]   [width=\paperwidth,    height=\paperheight,    location={left,top},    x=120mm,y=220mm

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

2021-09-07 Thread Hans Hagen via ntg-context
On 9/7/2021 11:02 AM, Henning Hraban Ramm via ntg-context wrote: (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[

[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=sta

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

2021-08-26 Thread Wolfgang Schuster via ntg-context
juh via ntg-context schrieb am 26.08.2021 um 14:46: 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

[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
Hi, I want to insert a logo at the bottom of the page on the right on the first page, on the left on the second, on the right on the third ... With the key repeat=yes, the logo is always at the bottom right Thanks Fabrice \useMPlibrary[dum] \definelayer [MyLogo] [x=0mm, y=0mm, width

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 it with

Re: [NTG-context] multimedia PDF in ConTeXt

2021-07-31 Thread Pablo Rodriguez via ntg-context
r 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
ated on every page. Same behavior > in current LMTX and MkIV. > > What did I wrong? Or is it a bug? (The same setup didn’t cause repeats in > 2019.) > > Hraban > > > > \usemodule[visual] > > \setuplayout[ >backspace=82mm, > width=118m

Re: [NTG-context] reusableMPgraphic

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

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 of

[NTG-context] reusableMPgraphic

2021-07-12 Thread Thomas A. Schmitz
Hi all, I don’t know if I’m overlooking something really basic or if this is a bug. The following MWE compiles with mkiv, but not with lmtx: \startreusableMPgraphic{fold} fill unitsquare xyscaled (1mm,1mm) withcolor blue ; \stopreusableMPgraphic \definelayer[foldingmarkslayer][width

[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
As you can see, the 1st is towards the top left of the page, while the second is bottom right. \definelayer[blessings]  % name of the layer [x=0mm, y=0mm,  % from upper left corner of paper   width=\paperwidth, height=.5\paperheight] % let the layer cover the full

Re: [NTG-context] layers x 2

2021-04-27 Thread Wolfgang Schuster
though located at the bottom of the page, eliminates the first layer. I > have simply set them up one after the other. As you can see, the 1st is > towards the top left of the page, while the second is bottom right. > > \definelayer[blessings] % name of the layer > [x=0mm, y=

[NTG-context] layers x 2

2021-04-27 Thread jbf
have simply set them up one after the other. As you can see, the 1st is towards the top left of the page, while the second is bottom right. \definelayer[blessings]  % name of the layer     [x=0mm, y=0mm,  % from upper left corner of paper width=\paperwidth, height=.5\paperheight] % let the

Re: [NTG-context] issue with doublesided layer

2021-01-19 Thread Pablo Rodriguez
On 1/19/21 6:43 PM, Hans Hagen wrote: > On 1/19/2021 5:46 PM, Pablo Rodriguez wrote: >> Dear list, >> >> I have the following sample: >> >>\definelayer[layer] >> [doublesided=yes] >> [...] >> Simply defining a doublesided layer breaks c

Re: [NTG-context] issue with doublesided layer

2021-01-19 Thread Hans Hagen
On 1/19/2021 5:46 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \definelayer[layer] [doublesided=yes] \setlayer[layer] {layer} \setupbackgrounds[text] [background={layer}] \starttext \null \stoptext Simply defining a doublesided layer

[NTG-context] issue with doublesided layer

2021-01-19 Thread Pablo Rodriguez
Dear list, I have the following sample: \definelayer[layer] [doublesided=yes] \setlayer[layer] {layer} \setupbackgrounds[text] [background={layer}] \starttext \null \stoptext Simply defining a doublesided layer breaks compilation in LMTX. It works fine with MkIV. I’m

Re: [NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-23 Thread Hans Hagen
background :=  unitsquare xscaled dimA yscaled dimB ;   fill pathbackground    withshademethod "linear"    withshadedirection(0,1)    withshadecolors (red,blue); \stopuseMPgraphic %-- \definelayer[MyBackgroundLayer] \setlayer[MyBackgroundLayer]{\

Re: [NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-23 Thread Otared Kavian
ind] scaled scaling) > shifted ( (pos[n],0) + shiftB) > withpostscript "collect"; >fi; > endfor; > fi; > \stopMPdrawing}} > > > %======

Re: [NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-23 Thread Garulfo
mA yscaled dimB ; fill pathbackground withshademethod "linear" withshadedirection(0,1) withshadecolors (red,blue); \stopuseMPgraphic %-- \definelayer[MyBackgroundLayer] \setlayer[MyBackgroundLayer]{\useMPgraphic{MyBackgroundGraphic}} \s

Re: [NTG-context] Bug (?) using \externalfigure with layers and backgrounds

2020-12-03 Thread Jairo A. del Rio
Oh, I see. Nice, thank you a lot. Jairo :) El jue, 3 de dic. de 2020 a la(s) 12:19, Wolfgang Schuster ( wolfgang.schuster.li...@gmail.com) escribió: > Jairo A. del Rio schrieb am 03.12.2020 um 18:14: > > Hi everyone. The following > > > > \setuppagenumbering[state=stop]

Re: [NTG-context] Bug (?) using \externalfigure with layers and backgrounds

2020-12-03 Thread Wolfgang Schuster
Jairo A. del Rio schrieb am 03.12.2020 um 18:14: Hi everyone. The following \setuppagenumbering[state=stop] \definelayer[mybg] [ repeat=yes, x=0mm, y=0mm, width=\paperwidth, height=\paperheight, ] \setlayer[mybg]{\externalfigure[cow][width=\paperwidth,height=\paperheight]} \setupbackgrounds

[NTG-context] Bug (?) using \externalfigure with layers and backgrounds

2020-12-03 Thread Jairo A. del Rio
Hi everyone. The following \setuppagenumbering[state=stop] \definelayer[mybg] [ repeat=yes, x=0mm, y=0mm, width=\paperwidth, height=\paperheight, ] \setlayer[mybg]{\externalfigure[cow][width=\paperwidth,height=\paperheight]} \setupbackgrounds[page][background=mybg,state=repeat] \setupindenting

Re: [NTG-context] framedtext is (still) broken in LMTX

2020-11-30 Thread Rik Kabel
erent default width than *\framed*. Perhaps I missed it.) New overwrought example: \definelayer  [HRule] [x=0mm,y=0pt,width=\textwidth,height=\textheight] \setlayer [HRule]   [hoffset=0pt,voffset=10em] {\blackrule[color=green,height=1pt,width

Re: [NTG-context] error running wiki example with labels

2020-06-26 Thread Jan-Erik Hägglöf
uage[sv] %\usetypescriptfile [plex] \setupbodyfont [palatino,ss,11pt] \setupinterlinespace[16pt] \useMPlibrary[dum] \useexternalfigure[logo][cow][size=art] \definepapersize[Label][width=\LWidth,height=\LHeight] \setuppapersize[Label][A4] \setuppaper[ nx=2, ny=9, topspace=1cm, backsp

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-16 Thread Wolfgang Schuster
re it should be placed on the second page. This sample shows thie problem in a simpler way: \definelayer[whatever] [x=3em, y=3em] \setupbackgrounds[page][background=whatever] \setuphead [section] [before={\testpage[2]\blank[2*big]}] \starttext \dorecurse{18}{\section{Se

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-16 Thread Pablo Rodriguez
e second page. This sample shows thie problem in a simpler way: \definelayer[whatever] [x=3em, y=3em] \setupbackgrounds[page][background=whatever] \starttext \dorecurse{18}{\section{Section}} just a line \setlayerframed[whatever][foregroundstyle=\bf\ss] {layer on the last pag

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-15 Thread Rudolf Bahr
On Mon, Jun 15, 2020 at 02:52:49PM +0200, Pablo Rodriguez wrote: > Dear list, > > I have the following number with wrong annotation placement and wrong > page number, which would be both on the second page: > > \setupinteraction[state=start] > \definelayer[pgnumber]

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-15 Thread Pablo Rodriguez
was caused by the deployment of "\placelist[section][alternative=d]". But my new sample shows clearly that this isn’t the cause. My question is now is how to get the right page for the layer in this sample: \definelayer[whatever] [x=3em, y=3em] \setupbackgrounds[page][background=whatev

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-15 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 15.06.2020 um 14:52: Dear list, I have the following number with wrong annotation placement and wrong page number, which would be both on the second page: \setupinteraction[state=start] \definelayer[pgnumber] \setupbackgrounds[page][background=pgnumber

[NTG-context] wrong page for annotation and \pagenumber

2020-06-15 Thread Pablo Rodriguez
Dear list, I have the following number with wrong annotation placement and wrong page number, which would be both on the second page: \setupinteraction[state=start] \definelayer[pgnumber] \setupbackgrounds[page][background=pgnumber] \starttext \placelist[section][alternative=d

Re: [NTG-context] image across 2 page spread

2020-04-30 Thread Henning Hraban Ramm
terheight + \Bleed\relax \definelayer[bgpicleft][x=-\Bleed,y=-\Bleed,width=\maxWidth,height=\maxHeight] % inkl. Beschnitt \definelayer[bgpicright][x=0mm,y=-\Bleed,width=\maxWidth,height=\maxHeight] % inkl. Beschnitt \definemakeup[fullpage][ page=no, doublesided=no, headerstate=empty, footerstate=

Re: [NTG-context] image across 2 page spread

2020-04-29 Thread Thangalin
Would something like this work? \setupbackgrounds[page][ background={BookIllustrationLayer}, ] \definelayer[BookIllustrationLayer][ width=\paperwidth, height=.5\paperheight, y=.5\paperheight, position=no, repeat=no, ] \setlayer[BookIllustrationLayer]{% \clip[x=\doifelseoddpage

[NTG-context] Unexpected result when using PaperHeight and MetaFUun

2020-04-19 Thread Keith McKay
? I'm using LuaMetaTex Version 2.05.01 ConTeXt ver: 2020.04.03 10:31 MKIV beta fmt: 2020.4.6 int: english/english Thanks and stay safe. Best Wishes Keith McKay %%% MWE %%% \setuppapersize[A4,landscape] \definelayer[mybg] [x=0mm, y=0mm, width=\paperwidth, h

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-25 Thread Rudolf Bahr
On Tue, Mar 24, 2020 at 07:29:26PM +0100, Wolfgang Schuster wrote: > > When you need the height for the layer offset you can use \dowithnextbox > because it hides \setbox etc. > > \definelayer[TextBox] > > \showframe[text][text] > > \starttext > > \dowithnextb

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-24 Thread Rudolf Bahr
On Tue, Mar 24, 2020 at 11:36:30AM -0400, Aditya Mahajan wrote: > > You can do: > > > \definelayer[LAY] > > \starttext > > \setbox\scratchbox=\vbox{\framed[width=300pt, align=flushleft]{\input > ward\relax}} > The height of the box is \the\ht\scratchbox;

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-24 Thread Wolfgang Schuster
layer offset you can use \dowithnextbox because it hides \setbox etc. \definelayer[TextBox] \showframe[text][text] \starttext \dowithnextbox {\setlayer [TextBox] [x=\the\dimexpr(\textwidth -\nextboxwd)/3\relax, y=\the\dimexpr(\textheight-\nextboxht)/3\relax] {\flushnextbox}}

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-24 Thread Wolfgang Schuster
Rudolf Bahr schrieb am 24.03.2020 um 16:29: On Tue, Mar 24, 2020 at 03:56:18PM +0100, Wolfgang Schuster wrote: Rudolf Bahr schrieb am 24.03.2020 um 12:19: Hello dear All, the following MWE works best: \definelayer[LAY] \starttext \setlayerframed[LAY] [x=0pt,y=20pt] [frame=on

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-24 Thread Aditya Mahajan
On Tue, 24 Mar 2020, Rudolf Bahr wrote: On Tue, Mar 24, 2020 at 03:56:18PM +0100, Wolfgang Schuster wrote: Rudolf Bahr schrieb am 24.03.2020 um 12:19: > Hello dear All, > > the following MWE works best: > > > \definelayer[LAY] > \starttext > > \setlayerfram

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-24 Thread Rudolf Bahr
On Tue, Mar 24, 2020 at 03:56:18PM +0100, Wolfgang Schuster wrote: > Rudolf Bahr schrieb am 24.03.2020 um 12:19: > > Hello dear All, > > > > the following MWE works best: > > > > > > \definelayer[LAY] > > \starttext > > > > \s

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-24 Thread Wolfgang Schuster
Rudolf Bahr schrieb am 24.03.2020 um 12:19: Hello dear All, the following MWE works best: \definelayer[LAY] \starttext \setlayerframed[LAY] [x=0pt,y=20pt] [frame=on, width=300pt, align={right,}] % tolerant}] {\input ward } \flushlayer[LAY] \stoptext Now, it could

[NTG-context] How to calculate the height of text of a certain width?

2020-03-24 Thread Rudolf Bahr
Hello dear All, the following MWE works best: \definelayer[LAY] \starttext \setlayerframed[LAY] [x=0pt,y=20pt] [frame=on, width=300pt, align={right,}] % tolerant}] {\input ward } \flushlayer[LAY] \stoptext Now, it could have a favourable effect on designing a page if the

Re: [NTG-context] Repeat backgrounds on slides

2020-02-14 Thread Wolfgang Schuster
On Fri, 14 Feb 2020 09:10:22 +0100 "Jan U. Hasecke" wrote: > Am 13.02.20 um 20:39 schrieb Wolfgang Schuster: > > > > > This is normal behaviour for layers but you can repeat it on every page with > > > > \definelayer [bg:...] [state=repeat] >

Re: [NTG-context] Repeat backgrounds on slides

2020-02-14 Thread Jan U. Hasecke
Am 13.02.20 um 20:39 schrieb Wolfgang Schuster: > > This is normal behaviour for layers but you can repeat it on every page with > > \definelayer [bg:...] [state=repeat] Thanks. There was a dark idea of this in the back of my brain. > > In your case a simple over

Re: [NTG-context] Repeat backgrounds on slides

2020-02-13 Thread Wolfgang Schuster
On Thu, 13 Feb 2020 09:19:10 +0100 juh wrote: > Hi all, > > I am a little bit confused as I never had this problem, although I often use > backgrounds and layers. > > \definelayer[bg:hs2020-mond] > [x=0, y=0, width=\paperwidth, height=\paperheight] > > \setlayer[

[NTG-context] Repeat backgrounds on slides

2020-02-13 Thread juh
Hi all, I am a little bit confused as I never had this problem, although I often use backgrounds and layers. \definelayer[bg:hs2020-mond] [x=0, y=0, width=\paperwidth, height=\paperheight] \setlayer[bg:hs2020-mond] [x=0mm, y=0mm] {\externalfigure[background.jpg][height=\paperwidth]} Ususally I

[NTG-context] placing layers

2020-01-24 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupexternalfigures[location=default] \starttext \definelayer[abc][hoffset=1cm, voffset=5cm] \setlayer[abc]{\externalfigure[cow.pdf][frame=on]} \definelayer[xyz][hoffset=12cm, voffset=5cm] \setlayer[xyz]{\externalfigure

Re: [NTG-context] Tent style cards

2019-12-22 Thread Pavneet Arora
ne-third of the card, as well as using \startuseMPgraphic for direct compilation from ConTeXt. Many thanks for all the help. >>> SNIPPET <<< \startbuffer[tblcard] \strut \definelayer[tblplacecard] \setlayer[tblplacecard][x=-1em,y=1em]{% \externalfigure[fi

Re: [NTG-context] Layer presets / size of type area

2019-12-20 Thread Wolfgang Schuster
; > > \setuplayout[ > width=120mm, > backspace=16mm, > height=192mm, > topspace=6mm, > header=8mm, > footer=6mm, > ] > \showframe > > \definelayer[TA] > [x=16mm, y=14mm, > width=

[NTG-context] Layer presets / size of type area

2019-12-19 Thread Henning Hraban Ramm
, topspace=6mm, header=8mm, footer=6mm, ] \showframe \definelayer[TA] [x=16mm, y=14mm, width=\makeupwidth, height=\makeupheight] \setupbackgrounds[page][background=TA] \def\Square{\framed[width=1cm,height=1cm]{S}} \starttext \strut \setlayer[TA

Re: [NTG-context] Moving horizontally a whole ensemble of layers in the same run?

2019-12-18 Thread Rudolf Bahr
the amount > > to move > > the whole layer ensemble. > > > > My question is now: Does in context exist a possibility to move all layers > > jointly > > without correcting all their x-values subsequently? > > 1. You can use hoffset and voffset to shift all

Re: [NTG-context] Moving horizontally a whole ensemble of layers in the same run?

2019-12-18 Thread Wolfgang Schuster
raphs in a layer. \setuppapersize[A4,landscape] \setupexternalfigures[location=default] \definelayer[LAY] \starttext \startbuffer \setlayerframed   [LAY]   [x=0pt,    y=-8pt]   [frame=off,    width=.35\textwidth,    align={normal,tolerant}]   {\externalfigure[cow][width=\hsize]    \blank

  1   2   3   4   5   6   7   >