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

2020-11-30 Thread Rik Kabel
]} %setupframedtext  [offset=0pt] \definelayer  [VRule] [x=0mm,y=0pt,width=\textwidth,height=\textheight] \setlayer [VRule]   [hoffset=0.75\textwidth,voffset=0pt]   {\blackrule[color=red,height=10em,width=1pt]} \setupbackgrounds [text

[NTG-context] columns yet again

2020-09-13 Thread Thomas A. Schmitz
.; equal width. In addition, for reasons that are completely unclear to me, the example from the columnsets manual (p. 32) does not compile: \setuppapersize[A4,landscape][A4,landscape] \setuplayout[grid=yes] \showframe \definecolumnset[example][n=3,page=left] \setupbackgrounds[text][text

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-06 Thread Jan Willem Flamma
end product  begin environment\startenvironment env-WA \setuppagenumbering   [alternative=doublesided, location=right]   \defineconversionset   [frontpart:pagenumber] [] [romannumerals] \setupexternalfigures   [directory={External PDF}] \startsectionblockenvironment [frontpart]    \setu

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-04 Thread Wolfgang Schuster
[alternative=doublesided, location=right] \defineconversionset [frontpart:pagenumber] [] [romannumerals] \setupexternalfigures [directory={External PDF}] \startsectionblockenvironment [frontpart] \setupbackgrounds [leftpage] [setups=pagenumber:left] \setupbackgrounds

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-04 Thread Jan Willem Flamma
matter    \component fm-frontpage    \component fm-titlepage    \component fm-tableofcontents\stopfrontmatter % Load bodymatter file\startbodymatter\setupbackgrounds    [leftpage]    [setups=pagenumber:left]\setupbackgrounds    [rightpage]    [setups=pagenumber:right]\setuppagenumber[number=1]    \com

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-03 Thread jbf
\MySubtitleTwo{Subtitle 2} \define\MyRevnumber{Revision number} % Load frontmatter files \startfrontmatter \component fm-frontpage \component fm-titlepage \component fm-tableofcontents \stopfrontmatter % Load bodymatter file \startbodymatter \setupbackgrounds [leftpage] [setups=pagenumber:left

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-03 Thread Jan Willem Flamma
bodymatter file\startbodymatter\setupbackgrounds    [leftpage]    [setups=pagenumber:left]\setupbackgrounds    [rightpage]    [setups=pagenumber:right]\setuppagenumber[number=1]    \component co-01    \component co-02\stopbodymatter % Load backmatter files\startbackmatter\setupbackgrounds

Re: [NTG-context] Header bottom line vanishing after 87 pages

2020-08-06 Thread Taco Hoekwater
> On 6 Aug 2020, at 09:09, Willi Egger wrote: > > Hello good morning, > > I encounter a strange problem when compiling my project. The book has 252 > pages, compilation runs without errors. But after 87 pages the bottom frame > of the header is turned off. The \set

[NTG-context] Header bottom line vanishing after 87 pages

2020-08-06 Thread Willi Egger
Hello good morning, I encounter a strange problem when compiling my project. The book has 252 pages, compilation runs without errors. But after 87 pages the bottom frame of the header is turned off. The \setupbackgrounds command is given only once in the preamble. — So I am curious what

Re: [NTG-context] \hideframe to cancel \showframe

2020-06-30 Thread Mikael Sundqvist
not find anything that worked > > (what I tried with was to use \setupbackgrounds[state=stop], but that > > was merely a guess, and it did not work). > > There is no command to disable \showframe but you don't even need the > command to have frames. What \showframe does is to set a f

Re: [NTG-context] \hideframe to cancel \showframe

2020-06-30 Thread Wolfgang Schuster
parameter that is set inside is cancelled after the \endgroup. I tried to look in the source, but could not find anything that worked (what I tried with was to use \setupbackgrounds[state=stop], but that was merely a guess, and it did not work). There is no command to disable \showframe but you

[NTG-context] \hideframe to cancel \showframe

2020-06-30 Thread Mikael Sundqvist
the \endgroup. I tried to look in the source, but could not find anything that worked (what I tried with was to use \setupbackgrounds[state=stop], but that was merely a guess, and it did not work). /Mikael ___ If your question

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

2020-06-26 Thread Jan-Erik Hägglöf
state=stop] \definelayer[BG][ x=0mm,y=0mm, width=\LWidth,height=\LHeight, state=repeat] \setupbackgrounds[page][background=BG,] \setlayerframed[BG][ frame=on, framecolor=yellow, width=\LWidth,height=\LHeight, align=flushleft, ]{\strut} \setlayer[BG][ preset=rightbottom, hoffse

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

2020-06-16 Thread Wolfgang Schuster
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{Section

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

2020-06-16 Thread Pablo Rodriguez
the 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 page?}

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=what

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] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Wolfgang Schuster
]   \setupbackgrounds[page][background=color,backgroundcolor=blue,]   \page[empty,right]   \popbackground} \stopsetups As you see the image is not in the right place and of course the pagenumbering is wrong. Use \startTEXpage[pagestate=start] to increase the page number with TEX pages. Thanks

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Jan U. Hasecke
on the even page before a chapter. >> >> \startsetups [chapter:before] >>    \doifoddpageelse >> {} >> {\pushbackground[page] >>   \setupbackgrounds[page][background=color,backgroundcolor=blue,] >>   \page[empty,right] >>   \po

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Wolfgang Schuster
this setups at some point in the text to insert eg. a picture on the even page before a chapter. \startsetups [chapter:before] \doifoddpageelse {} {\pushbackground[page] \setupbackgrounds[page][background=color,backgroundcolor=blue,] \page[empty,right] \popbackground

[NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread juh
to insert eg. a picture on the even page before a chapter. \startsetups [chapter:before] \doifoddpageelse {} {\pushbackground[page] \setupbackgrounds[page][background=color,backgroundcolor=blue,] \page[empty,right] \popbackground} \stopsetups Here comes the not so mwe

Re: [NTG-context] Custom color schemes in t-vim

2020-05-17 Thread Aditya Mahajan
\setupinteraction[state=start] \setupcolors[textcolor=colorone] \setupbackgrounds[page][background=color,backgroundcolor=nearlywhite] \usemodule[vim] \startvimrc[name=minor-groups] hi Function cterm=NONE hi Stringcterm=NONE hi Delimiter cterm=NONE \stopvimrc \startcolorscheme[oceansunset] \def

Re: [NTG-context] Custom color schemes in t-vim

2020-05-16 Thread Nicola
or[nearlywhite] [r=0.988, g=0.988, b=0.988] \setupinteraction[state=start] \setupcolors[textcolor=colorone] \setupbackgrounds[page][background=color,backgroundcolor=nearlywhite] \usemodule[vim] \unprotect \startcolorscheme[oceansunset] \definesyntaxgroup[Comment][\c!color={co

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

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

2020-04-19 Thread Keith McKay
{blueShade} draw lmt_shade [     path    = fullsquare xyscaled (OverlayWidth,OverlayHeight) ,     direction   = "up",     alternative = "linear",     colors  = { "red", "blue" }, ] ; \stopuniqueMPgraphic \defineoverlay [mybg] [\uniqueMPgraphic{blueShade

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

2020-04-19 Thread Wolfgang Schuster
] ; \stopuniqueMPgraphic \defineoverlay [mybg] [\uniqueMPgraphic{blueShade}] \setupbackgrounds [page] [background=mybg] \starttext \startMPpage StartPage ; % Result Left draw lmt_shade [ path= unitsquare xscaled 2cm yscaled PaperHeight, direction

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

2020-04-19 Thread Keith McKay
etlayer[mybg]{\uniqueMPgraphic{blueShade}} \setupbackgrounds[page][background={mybg}] \starttext \startMPpage StartPage ; %Result Left draw lmt_shade [ path = fullsquare xscaled 2cm yscaled PaperHeight, direction = "down", alternative = "linear", colors = { "red",

Re: [NTG-context] splitted xtable with repeating headers and placetable

2020-04-04 Thread Geert Dobbels
t[location=middle, width=27.5cm, height=18cm, backspace=1cm,header=4cm] \setupcaptions[location=none] \setupbackgrounds[header][text][background={Logos}, state=repeat] \defineoverlay [Logos][{ \framed[width=\textwidth, height=3cm, align=right, strut=no, offset=none]{ \framed[width=0.280\textwidth,

[NTG-context] splitted xtable with repeating headers and placetable

2020-04-04 Thread Geert Dobbels
tuppapersize[A4, landscape] \setuplayout[location=middle, width=27.5cm, height=18cm, backspace=1cm,header=4cm] \setuppagenumbering[state=stop] \setupcaptions[location=none] \setupbackgrounds[header][text][background={Logos}, state=repeat] \setupnumbering [location=] \setupframed[offset=none] \

Re: [NTG-context] Changing default rule thickness (globally)

2020-03-28 Thread Wolfgang Schuster
documentation (http://www.pragma-ade.nl/general/qrcs/setup-en.pdf), I see that I would need to basically change this for [...] (And for \setupbackgrounds for [top header text footer bottom].) I’m sure there is a more elegant way to do this. But how? You can use \setuplinewidth[] to change the default

Re: [NTG-context] Changing default rule thickness (globally)

2020-03-25 Thread Wolfgang Schuster
this for [...] (And for \setupbackgrounds for [top header text footer bottom].) I’m sure there is a more elegant way to do this. But how? You can use \setuplinewidth[] to change the default value for all (there can be lines which have a fixed value) lines. Wolfgang

[NTG-context] Changing default rule thickness (globally)

2020-03-25 Thread Benjamin Buchmuller
=...] (And for \setupbackgrounds for [top header text footer bottom].) I’m sure there is a more elegant way to do this. But how? Cheers Benjamin ___ If your question is of interest to others as well, please add an entry to the Wiki

Re: [NTG-context] Repeat backgrounds on slides

2020-02-15 Thread Jan U. Hasecke
{\externalfigure[\structureuservariable{background}][factor=max]}] > > \setuppapersize[S6] > \setupbackgrounds[page][background=SlideBackground] > > %\setuppapersize[S6][S6,oversized] > %\setupbackgrounds[paper][background=SlideBackground] > %\setuplayout[locati

Re: [NTG-context] Repeat backgrounds on slides

2020-02-14 Thread Wolfgang Schuster
set the background image with the start of each new slide. \setupexternalfigures[location=default] \defineoverlay [SlideBackground] [\doifsomething {\structureuservariable{background}} {\externalfigure[\structureuservariable{background}][factor=max]}] \setuppapersize[S6] \setupbac

Re: [NTG-context] Repeat backgrounds on slides

2020-02-13 Thread Wolfgang Schuster
bg:hs2020-mond] > [x=0mm, y=0mm] > {\externalfigure[background.jpg][height=\paperwidth]} > > Ususally I call the background after a head command like \starttitle or when I > create slides like this > > \startslide[title={foobar}] > \setupbackgrounds[page][background=

[NTG-context] Repeat backgrounds on slides

2020-02-13 Thread juh
call the background after a head command like \starttitle or when I create slides like this \startslide[title={foobar}] \setupbackgrounds[page][background=bg:hs2020-mond] ... \stopslide The problem is that I cannot call the background on another slide. It seems as if the layer is gone after

[NTG-context] placing layers

2020-01-24 Thread Pablo Rodriguez
[spider.eps]} \setupbackgrounds[page][background={abc, xyz}] \null \stoptext Is therea way to set the voffset value of the xyz layer to the value of voffset of the abc layer plus the half of the height of that layer? I mean, something like: voffset = ( abc.voffset() + (abc.height()/2) ) Many

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] LMTX Tagging and overlay

2019-12-15 Thread Otared Kavian
ay [WatermarkOverlay] >> [{\framed[frame=off, >> foregroundcolor=red] >> {\scale[factor=max] >>{\rotate[rotation=60.0] >> {~Oops!~

Re: [NTG-context] LMTX Tagging and overlay

2019-12-15 Thread Rik Kabel
]   {\scale[factor=max]    {\rotate[rotation=60.0]     {~Oops!~] \setupbackgrounds    [page] [background=WatermarkOverlay] %setuptagging    [state=stop] \setuptagging    [state=start] \setuplanguage

[NTG-context] LMTXL Tagging and overlay

2019-12-10 Thread Rik Kabel
   [WatermarkOverlay] [{\framed[frame=off,    foregroundcolor=red]   {\scale[factor=max]    {\rotate[rotation=60.0]     {~Oops!~] \setupbackgrounds    [page

Re: [NTG-context] Problem with the bottom line of a header

2019-10-22 Thread Wolfgang Schuster
of text. 3. Use \offset to change the vertical position of the frame in the middle. \setuplayout   [header=1cm,    headerdistance=1cm] \setupbackgrounds [header] [text] [frame=on] \defineframed [headerframed] [align=normal] \setupheadertexts   [{\offset[y=-\strutdp]{\headerframed{Middle

[NTG-context] Problem with the bottom line of a header

2019-10-22 Thread Fabrice Couvreur
, rightmargin=1.25cm, rightmargindistance=1cm, header=\zeropoint, headerdistance=1cm, footer=1cm, footerdistance=1cm, width=middle, height=middle, location=middle] \definelayout [last] [first] \setupbackgrounds [header] [text] [frame=off

Re: [NTG-context] Problem inserting image within MP

2019-10-10 Thread Aditya Mahajan
On Thu, 10 Oct 2019, cont...@vivaldi.net wrote: Hello, this is a probably basic question, but the following code doesn't compile: \setupbackgrounds[page][background={Bkg}] \defineoverlay[Bkg][\useMPgraphic{Bkg}] \startuseMPgraphic{Bkg} externalfigure "hacker.png"; \stopus

Re: [NTG-context] Problem inserting image within MP

2019-10-10 Thread Taco Hoekwater
> On 10 Oct 2019, at 13:23, cont...@vivaldi.net wrote: > > Hello, > > this is a probably basic question, but the following code doesn't compile: > > ---- > \setupbackgrounds[page][background={Bkg}] > > \defineoverlay[Bkg][\useMPgraphic{Bkg}] > > \star

[NTG-context] Problem inserting image within MP

2019-10-10 Thread context
Hello, this is a probably basic question, but the following code doesn't compile: \setupbackgrounds[page][background={Bkg}] \defineoverlay[Bkg][\useMPgraphic{Bkg}] \startuseMPgraphic{Bkg} externalfigure "hacker.png"; \stopuseMPgraphic \starttext Ahoj

[NTG-context] colors in MetaPost

2019-09-11 Thread Henning Hraban Ramm
n shadedup withshadecolors ("VerlaufVon", "VerlaufNach") ; \stopuniqueMPgraphic \defineoverlay[verlaufen][\useMPgraphic{Verlauf}] \setupbackgrounds[paper][background={verlaufen}] \starttext \strut \stoptext The background consists of a blue and a green area instead of a shade. While test

Re: [NTG-context] Frame with shadow for header

2019-08-27 Thread Mikael P. Sundqvist
> like to use your code instead. > Thank you. > Fabrice > > > \setupbackgrounds > [header] > [text] > [frame=off, > topframe=off, > bottomframe=off, > framecolor=, > rulethickness=2pt] > > \defineframed > [h

Re: [NTG-context] Frame with shadow for header

2019-08-27 Thread Fabrice Couvreur
Hi Mikael, I did not think about using Metapost, I tried with the keys of the command \framed without success. I use the following code for my headings (thank you Aditya) and I would like to use your code instead. Thank you. Fabrice \setupbackgrounds [header] [text] [frame=off

Re: [NTG-context] Captions with background

2019-08-04 Thread Hans Hagen
] \setuppagenumbering [alternative=doublesided] \starttext \definelayer [page] [width=\paperwidth, height=\paperheight] \definelayer [footer] [width=\textwidth, height=\footerheight] \setupbackgrounds [page] [background=page, state=start] \setupbackgrounds [footer][text] [background

[NTG-context] background problem with layers

2019-07-22 Thread Peter Rolf
}} \setupbackgrounds[paper][background={foo}] \starttext \framedclass{works fine} \setlayer[foo][x=40mm, y=70mm] {\framedclass{no background here}} \stoptext ___ If your question is of interest to others as well

Re: [NTG-context] Strange behavior in somewhat complex layout (again)

2019-06-27 Thread Andres Conrado Montoya
works as expected (no color-filled page, no header > in the start-chapter page). > > MWE: > > %% START MWE > > [...] > > \startsetups [chapter:before] >\doifoddpageelse > {} > {\pushbackground[page] > \setupb

Re: [NTG-context] Strange behavior in somewhat complex layout (again)

2019-06-27 Thread Wolfgang Schuster
] \setupbackgrounds[page][background=color,backgroundcolor=rojo] \page[yes,right]       \popbackground} \stopsetups \startsetups [chapter:before]   \page   \doifoddpageelse     {}     {\pushbackground[page]    \setupbackgrounds[page][background=color,backgroundcolor=rojo]    \page[yes,header

[NTG-context] Strange behavior in somewhat complex layout (again)

2019-06-27 Thread Andres Conrado Montoya
cycle) enlarged(0,0.25u) shifted (0,6i) withcolor \MPcolor{rojo} ; fi; StopPage; \stopuseMPgraphic \defineoverlay [chapter:background] [\useMPgraphic{page:background}] \setupbackgrounds[page][background=chapter:background] \definepagebreak[first

[NTG-context] Strange behavior in somewhat complex layout

2019-06-23 Thread Andres Conrado Montoya
fi; StopPage; \stopuseMPgraphic \defineoverlay [chapter:background] [\useMPgraphic{page:background}] \setupbackgrounds[page][background=chapter:background] \definepagebreak[firstpagebreak][yes,header] \startsetups [chapter:before] \doifoddpageelse {} {\pushbackground[page]

Re: [NTG-context] background color, was: CMYK Color profile

2019-06-02 Thread Benjamin Koppe
When stupidity strikes, no one's safe. Turns out \setupbackgrounds has an option called backgroundoffset, and this is the solution. The not colorized part was the bleed part of the document, so the background command would be: \setupbackgrounds [paper] [ background=color

Re: [NTG-context] background color, was: CMYK Color profile

2019-05-31 Thread Benjamin Koppe
Here's the example. It's basically the code from DIN Lang Folder in the Wiki plus a setupbackgrounds command. It works with `page` but fails to work with `paper`: %% This is a template for a Din lang Folder. %% The folded page of such a flyer is shorter (97mm) than the other pages (100mm

Re: [NTG-context] background color, was: CMYK Color profile

2019-05-31 Thread Wolfgang Schuster
the background color by \setupbackgrounds[page][backgroundcolor=blue] \setupbackgrounds [paper] [background=color,backgroundcolor=blue] Wolfgang ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] background color, was: CMYK Color profile

2019-05-31 Thread Benjamin Koppe
Hi Jan, yes, I've read these texts once and they played a role in thinking about getting into ConTEXt. Thank you for your answer, now I have something to investigate. Another follow up question on background colors: I try to setup the background color by \setupbackgrounds[page

Re: [NTG-context] Questions on columnsetspan (and grids and backgrounds)

2019-05-18 Thread Mikael P. Sundqvist
gt; 2) What is the current correct way to get back on grid after > formulas? > >>> The only key that had lead me to something that seems to work in > >>> \setupformulas is "option=depth". Is that the way to go? > >>> > >>>

Re: [NTG-context] Questions on columnsetspan (and grids and backgrounds)

2019-05-15 Thread Hans Hagen
me to something that seems to work in \setupformulas is "option=depth". Is that the way to go? 3) This is a bit unrelated, but is it possible to set page backgrounds on specific page. Something like \setupbackgrounds[page][page=3, ...] (I cannot find any keys for this in

Re: [NTG-context] Questions on columnsetspan (and grids and backgrounds)

2019-05-14 Thread Mikael P. Sundqvist
; > > 2) What is the current correct way to get back on grid after formulas? > > The only key that had lead me to something that seems to work in > > \setupformulas is "option=depth". Is that the way to go? > > > > 3) This is a bit unrelated, but is it po

Re: [NTG-context] Questions on columnsetspan (and grids and backgrounds)

2019-05-14 Thread Hans Hagen
3) This is a bit unrelated, but is it possible to set page backgrounds on specific page. Something like \setupbackgrounds[page][page=3, ...] (I cannot find any keys for this in setup-en.pdf). Right now I can set it for an odd and an even page, but then if I want a background on the p

Re: [NTG-context] Questions on columnsetspan (and grids and backgrounds)

2019-05-13 Thread Mikael P. Sundqvist
> well. > > 2) What is the current correct way to get back on grid after formulas? > The only key that had lead me to something that seems to work in > \setupformulas is "option=depth". Is that the way to go? > > 3) This is a bit unrelated, but is it possible to set

[NTG-context] Questions on columnsetspan (and grids and backgrounds)

2019-05-11 Thread Mikael P. Sundqvist
ad lead me to something that seems to work in \setupformulas is "option=depth". Is that the way to go? 3) This is a bit unrelated, but is it possible to set page backgrounds on specific page. Something like \setupbackgrounds[page][page=3, ...] (I cannot find any keys for this in setup-en.pdf).

Re: [NTG-context] Layer failure with LMTX

2019-04-08 Thread Hans Hagen
}} \stopsetups \setupbackgrounds[page] [setups=setupPage, background=pageNumber] \starttext \page[empty] \stoptext use the official interface variables \paperwidth and \paperheight ... \pagewidth and \pageheight were never user variables (so you

[NTG-context] Layer failure with LMTX

2019-04-07 Thread Rik Kabel
=\pagewidth, height=\pageheight, ] \startsetups [setupPage] \setlayer[pageNumber] {\hskip\leftmargindistance \inframed[frame=off,leftframe=on,loffset=1em]{\userpage}} \stopsetups \setupbackgrounds[page

[NTG-context] Fwd: Meptapost Drawing not showing-up in Context Letter Style

2019-03-12 Thread Jeroen
Eventually, these two options worked. Firstly changing \setupbackgrounds % BEGIN MP LOGO SETUP \startuseMPgraphic{mpglogo} path p; p := (0,0)--(100,0)--(100,100)--(0,100)--cycle; path q; q := p cornered 30pt; draw q withcolor black withpen pencircle scaled 7pt; \stopuseMPgraphic

[NTG-context] Meptapost Drawing not showing-up in Context Letter Style

2019-03-10 Thread Context NTG
{mpglogo}}} \setupbackgrounds[page][background=logo] % END MP LOGO SETUP, BEGIN LETTER SETUP \usemodule[letter][style=dinb] \setupletterlayer [reference] [list={name,phone,email,date}] \setupletterlayer [address] [y=55mm] \setupletterdescription [enclosure] [location=top, leftmargin=0.5em

Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Otared Kavian
a offered me this macro some time ago for my header. I updated context > > standalone, and the display of the date I want to do the evaluation > > (different from the current date) is no longer the same. > > Thank you. > > Fabrice > > > > \setupbackgrounds &g

Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Fabrice Couvreur
my header. I updated > context standalone, and the display of the date I want to do the evaluation > (different from the current date) is no longer the same. > > Thank you. > > Fabrice > > > > \setupbackgrounds > >[header] > >[text]

Re: [NTG-context] Macro for a header does not work as well

2019-02-18 Thread Otared Kavian
macro some time ago for my header. I updated context > standalone, and the display of the date I want to do the evaluation > (different from the current date) is no longer the same. > Thank you. > Fabrice > > \setupbackgrounds >[header] >[text] >[frame=

[NTG-context] Macro for a header does not work as well

2019-02-18 Thread Fabrice Couvreur
Hi, Aditya offered me this macro some time ago for my header. I updated context standalone, and the display of the date I want to do the evaluation (different from the current date) is no longer the same. Thank you. Fabrice \setupbackgrounds [header] [text] [frame=off, topframe=off

Re: [NTG-context] Metapost graphic in setupbackground

2019-02-08 Thread Marco Patzer
layer prints on all pages next : layer appears on the following page continue : layer appears on all pages except the first > \setupbackgrounds[paper][background=kreisbackground, state=start] \setupbackgrounds[paper][background=kreisba

[NTG-context] Metapost graphic in setupbackground

2019-02-08 Thread Jan U. Hasecke
70mm withcolor red withpen pencircle scaled 6mm; \stopreusableMPgraphic \definelayer[kreisbackground][width=70mm,height=70mm] \setlayer[kreisbackground] [x=-3mm,y=-3mm] {\reuseMPgraphic{kreis}} \setupbackgrounds[paper][background=kreisbackground, state=start] \starttext \input lorem

Re: [NTG-context] Issue with the latest beta of context standalone

2019-02-04 Thread Fabrice Couvreur
Hi, I added the patch but the output is not that expected because I get d = 4m = 02 y = 2019 instead of "4 février 2019" Thank you Fabrice \mainlanguage[fr] \setupbackgrounds [header] [text] [frame=off, topframe=off, bottomframe=on, framecolor=, rul

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Hans Hagen
  \mainlanguage[fr]   \setupbackgrounds     [header]     [text]     [frame=off, topframe=off, bottomframe=on, framecolor=, rulethickness=1pt]   \defineframed    [headerframed]    [frame=off,     height=fit,     width=fit]    \startsetups [headertext

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Otared Kavian
Hi, > I just updated context standalone and if I compile the following file, the > date does not appear anymore. > Thank you > Fabrice > > \mainlanguage[fr] > > \setupbackgrounds > [header] > [text] > [frame=off, > topframe=off, > botto

[NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Fabrice Couvreur
Hi, I just updated context standalone and if I compile the following file, the date does not appear anymore. Thank you Fabrice \mainlanguage[fr] \setupbackgrounds [header] [text] [frame=off, topframe=off, bottomframe=on, framecolor=, rulethickness=1pt

Re: [NTG-context] Changes \setuphead

2019-01-21 Thread Ursula Hermann
Ursula, If you replace the \startsetups[chapter:before] with the following, you obtain a page without the page number: \startsetups [chapter:before] \doifoddpageelse {} {\pushbackground[page] \setuppagenumbering[state=stop] \setupbackgrounds[page][background=color

Re: [NTG-context] Changes \setuphead

2019-01-21 Thread Otared Kavian
Hi Ursula, If you replace the \startsetups[chapter:before] with the following, you obtain a page without the page number: \startsetups [chapter:before] \doifoddpageelse {} {\pushbackground[page] \setuppagenumbering[state=stop] \setupbackgrounds[page][background=color

[NTG-context] Changes \setuphead

2019-01-21 Thread Ursula Hermann
] \doifoddpageelse {} {\pushbackground[page] \setupbackgrounds[page][background=color,backgroundcolor=gray] \page[right] \popbackground} \stopsetups \setuphead [chapter] [page=yes, before=\directsetup{chapter:before}] \starttext \startchapter[title={Knuth}] \dorecurse{2

Re: [NTG-context] MetaFun: how to check the number of arguments

2019-01-16 Thread Hans Hagen
by hand. Here is a example which shows how you can change the background color of a empty page before the chapter title. \setuppagenumbering   [alternative=doublesided] \startsetups [chapter:before]   \doifoddpageelse {} {\pushbackground[page]  \setupbackgrounds[page][b

Re: [NTG-context] MetaFun: how to check the number of arguments

2019-01-15 Thread Jeong Dal
gt;> new chapter. >>>>>> >>>>>> I would like to manipulate this blank even page. >>>>>> >>>>>> There are several things I would like to do, eg. having no headers and >>>>>> footers, setting the background

Re: [NTG-context] MetaFun: how to check the number of arguments

2019-01-15 Thread Hans Hagen
ng [alternative=doublesided] \startsetups [chapter:before] \doifoddpageelse {} {\pushbackground[page] \setupbackgrounds[page][background=color,backgroundcolor=black] \page[empty,right] \popbackground} \stopsetups \setuphead [chapter] [page=yes, befo

[NTG-context] MetaFun: how to check the number of arguments

2019-01-14 Thread Jeong Dal
o just delete page numbers >> but to style the empty page in arbitrary ways. >> >> Maybe it is better to do this manually. >> >> I would let chapter open on even pages too and just insert a styled page >> by hand. > > Here is a example which shows how you c

Re: [NTG-context] Manipulating the left blank page when chapter starts on the right page

2019-01-14 Thread Wolfgang Schuster
]   \doifoddpageelse     {}     {\pushbackground[page] \setupbackgrounds[page][background=color,backgroundcolor=black] \page[empty,right] \popbackground} \stopsetups \setuphead   [chapter]   [page=yes,    before=\directsetup{chapter:before}] \starttext \startchapter[title={Knuth

Re: [NTG-context] Manipulating the left blank page when chapter starts on the right page

2019-01-13 Thread Jan U. Hasecke
>   \doifoddpageelse >     {} >     {\pushbackground[page] > \setupbackgrounds[page][background=color,backgroundcolor=black] > \page[empty,right] > \popbackground} > \stopsetups > > \setuphead >   [chapter] >   [page=yes, >    before=\directsetup{chapter:before}] >

Re: [NTG-context] Manipulating the left blank page when chapter starts on the right page

2019-01-13 Thread Wolfgang Schuster
] \setupbackgrounds[page][background=color,backgroundcolor=black] \page[empty,right] \popbackground} \stopsetups \setuphead   [chapter]   [page=yes,    before=\directsetup{chapter:before}] \starttext \startchapter[title={Knuth}] \dorecurse{10}{\samplefile{knuth}} \stopchapter

[NTG-context] placing an MPGraphic/Lines over multiple table cells

2019-01-05 Thread Martin Althoff
yer[ZStrike][hoffset=0mm, voffset=0mm]{\framed[frame=on,width=60mm,height=24mm]{\useMPgraphic{ZRule}}} % arrange the "background" layers \setupbackgrounds[text][background={datatable,foreground,ZStrike}] \blank[force, 28mm] further content \stoptext ___

[NTG-context] \noheaderandfooterlines to suppress header frame, too

2018-10-10 Thread Procházka Lukáš Ing .
Hello, this may have been posted here some time before, but - would it be possible to extend \noheaderandfooterlines command to temporarily suppress bottom frame, too? Suppose having the following code: \setupheadertexts[left][right] \setupbackgrounds[header][bottomframe=on] \starttext

Re: [NTG-context] embedded sounds

2018-10-09 Thread Hans Hagen
] \setupbackgrounds[page][background=resources] \setupbodyfont[100pt] \starttext\bf\ss \setlayer[resources]{\placerenderingwindow[example][mysound]} \startTEXpage \button{start}[StartSoundTrack] \button{stop}[StopSoundTrack

[NTG-context] embedded sounds

2018-10-09 Thread Pablo Rodriguez
] %~ [embed] \definereference [StartSoundTrack] [StartRendering{mysound}] \definereference [StopSoundTrack] [StopRendering{mysound}] \definelayer[resources][width=\paperwidth,height=\paperheight] \setupbackgrounds[page][background=resources] \setupbodyfont[100pt

Re: [NTG-context] Creating flyers with ConTeXt

2018-09-24 Thread Jan U. Hasecke
frame=off,background=color, backgroundcolor=hs-dunkelblau,width=102mm, height=303mm]{}} \showframe \starttext \setupbackgrounds[page][background=blau] \startstandardmakeup \externalfigure [../bilder/example.png] [width=\textwidth] \blank[5*big] \externalfigure [../bilder/logo.svg] [width=\textwidth] \stops

Re: [NTG-context] Creating flyers with ConTeXt

2018-09-21 Thread Marco Patzer
\defineoverlay [pagedecoration] [\useMPgraphic{pagedecoration}] \setupbackgrounds [page] [background=pagedecoration, backgroundcolor=lightblue] \startuseMPgraphic{pagedecoration} distanceSmall := 3mm; distanceBig := distanceSmall; bleed := 3mm; if PageNumber==1: path pageOne; pageOn

Re: [NTG-context] The dimensions of the first page are not taken into account

2018-08-17 Thread Pablo Rodriguez
  >   \setuplayout >    [topspace=10mm, >     header=\zeropoint, >     footer=10mm, >     height=middle, >     backspace=20mm, >     width=middle] > >   \setupbackgrounds >    [header] >    [text] >    [frame=off, >     topframe=on, >     bottomframe=o

[NTG-context] The dimensions of the first page are not taken into account

2018-08-17 Thread Fabrice Couvreur
=middle, backspace=20mm, width=middle] \setupbackgrounds [header] [text] [frame=off, topframe=on, bottomframe=on, framecolor=red, rulethickness=1pt] \setupheadertexts [First page] \starttext \dorecurse{8}{\input knuth} % ok % \dorecurse{8}{\input

  1   2   3   4   5   6   7   8   9   10   >