Re: [NTG-context] Bar within math (amended)

2020-06-09 Thread Wolfgang Schuster
Lukas/ConTeXt schrieb am 09.06.2020 um 20:28: Hello, it seems that bar (even with option 'continue=yes') is not rendered in place of '~' within math. See the sample: \definebar[MyBar][color=green,rulethickness=2.8,order=background,offset=1.5,continue=yes] \starttext 1 + 2 = \startbar

[NTG-context] Bar within math (amended)

2020-06-09 Thread Lukas/ConTeXt
Hello, it seems that bar (even with option 'continue=yes') is not rendered in place of '~' within math. See the sample: \definebar[MyBar][color=green,rulethickness=2.8,order=background,offset=1.5,continue=yes] \starttext 1 + 2 = \startbar[MyBar]3~kN\stopbar % OK $1 + 2 = \startbar

Re: [NTG-context] start/stop executed conditionally on mode ?

2020-06-09 Thread Fabrice L
om} { >\keepblocks[Question] > } > > \starttext > >Text A > >\beginQuestion >Question A…. >\endQuestion > >Text B > >\beginQuestion >Question B…. >\endQuestion > >\page > >\doifnotmod

Re: [NTG-context] background of \typing fills column

2020-06-01 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 01.06.2020 um 20:22: Hi, I finally wanted to attack CG journal 2019 again and stumble upon this error: If an article contains several \starttyping ... \stoptyping examples with a textbackground, it sometimes fills the whole column (pagecolumns). It doesn’t occur

[NTG-context] background of \typing fills column

2020-06-01 Thread Henning Hraban Ramm
Hi, I finally wanted to attack CG journal 2019 again and stumble upon this error: If an article contains several \starttyping ... \stoptyping examples with a textbackground, it sometimes fills the whole column (pagecolumns). It doesn’t occur if the "typing" is at top or bottom of the column or

[NTG-context] Bar within math

2020-05-30 Thread context
Hello, it seems that bar (even with option 'continue=yes') is not rendered in place of '~' within math. See the sample: \definebar[MyBar][color=green,rulethickness=2.8,order=background,offset=1.5,continue=yes] \starttext 1 + 2 = \startbar[MyBar]3~kN\stopbar $1 + 2 = \startbar[MyBar

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
suppose you wanted to use the image defined as part of > `\startchapter` as the background image of the _current_ page, then you > could access the value of the \structureuservariable. For example, > > \startchapter[title=whatever][image=filename] > > \structureuservariable{image}

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

2020-05-29 Thread Aditya Mahajan
ave to worry about it. See https://wiki.contextgarden.net/System_Macros/Key_Value_Assignments#Multi-pass_data for more details. Now, suppose you wanted to use the image defined as part of `\startchapter` as the background image of the _current_ page, then you could access the value of the \struct

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

[NTG-context] \goto not working from within \textext()

2020-05-16 Thread Gerben Wierda
/on-the-use-of-colours-in-archimate/)] \setupMPpage [background=color, backgroundcolor=gray] \startMPpage[instance=doublefun] draw textext("\goto{doesn’t work}[url(https://ea.rna.nl/2011/06/05/on-the-use-of-colours-in-archimate/)]"); \stopMPpage

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] Using transparency in METAPOST within textext()

2020-05-14 Thread Gerben Wierda
Thank you. That works. > On 14 May 2020, at 17:13, Wolfgang Schuster > wrote: > > Gerben Wierda schrieb am 14.05.2020 um 11:47: >> Is it possible to get a transparent background in a textext()? The following >> minimal example doesn’t work. >> \starttext >>

Re: [NTG-context] Using transparency in METAPOST within textext()

2020-05-14 Thread Wolfgang Schuster
Gerben Wierda schrieb am 14.05.2020 um 11:47: Is it possible to get a transparent background in a textext()? The following minimal example doesn’t work. \starttext \setupMPpage   [background=color,    backgroundcolor=gray] \startMPpage draw textext("\definecolor[labelbackground][a=0.2,

[NTG-context] Using transparency in METAPOST within textext()

2020-05-14 Thread Gerben Wierda
Is it possible to get a transparent background in a textext()? The following minimal example doesn’t work. \starttext \setupMPpage [background=color, backgroundcolor=gray] \startMPpage draw textext("\definecolor[labelbackground][a=0.2,r=1,g=1,b=1]\framed[height=1.2em,background=

Re: [NTG-context] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-04-30 Thread Gerben Wierda
rs. How do I get it >> back? >> Minimal example: >> \starttext >> TestingTesting >> \page >> \framed[align=flushleft]{TestingTesting} >> \stoptext > > Use \blank Too happy too soon. And I recall I ran into this earlier a while ago in another

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

2020-04-30 Thread Henning Hraban Ramm
}{% \inframed[ frame=off,background=shadow, foregroundcolor=captioncolor,]{% \bfx{#3}%\vbox{#3}% }% }% }% }} % debugging information \setlayer[bgpicleft][x=0mm,y=-\Bleed]{% \color[debugcolo

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] animation using \startuseMPgraphic

2020-04-19 Thread Hans Hagen
- xpart C)**2 + (ypart Q - ypart C)**2); ang := angle(Q - C); Y := C + dir(ang)*dist; Y enddef; \stopMPextensions Is there a way to draw the base figure once, and draw the points only at each frame? I guess you could stack them on top of a base background image but I wonder if it's worth

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

2020-04-19 Thread Keith McKay
understanding what is happening in the MWE below which is different from what I expected. I have created a shaded background using MetaFun with dimensions PaperWidth by PaperHeight which mimics \setuppapersize[A4,landscape} as expected.  I then within \starttext \startMPpage... \stopMPpage

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

2020-04-19 Thread Wolfgang Schuster
Keith McKay schrieb am 19.04.2020 um 13:15: Dear All I have problem understanding what is happening in the MWE below which is different from what I expected. I have created a shaded background using MetaFun with dimensions PaperWidth by PaperHeight which mimics \setuppapersize[A4,landscape

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

2020-04-19 Thread Keith McKay
Dear All I have problem understanding what is happening in the MWE below which is different from what I expected. I have created a shaded background using MetaFun with dimensions PaperWidth by PaperHeight which mimics \setuppapersize[A4,landscape} as expected.  I then within \starttext

Re: [NTG-context] Fwd: Adding optional enumeration text to framed enumeration header

2020-04-19 Thread Aditya Mahajan
icture to OverlayBox ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext [FunnyFramedText] [ frame=off, background=FunnyFrame, offset=\bodyfontsize, width=\textwidth, ] \defineenumeration[Counter] [ title=yes, alternati

Re: [NTG-context] offset for background overlay

2020-04-13 Thread Wolfgang Schuster
mf schrieb am 13.04.2020 um 17:21: Thanks also for the explanation of backgroundoffset: it's an offset relative only to the background, and it moves in the opposite direction of the content offset of \framed. Looks like \framed[...,offset=VALUE,backgroundoffset=frame,...] is equivalent

Re: [NTG-context] offset for background overlay

2020-04-13 Thread mf
OverlayWidth yscaled 2.5 OverlayHeight ; draw p withcolor red ; setbounds currentpicture to p topenlarged 6mm ; \stopuseMPgraphic \defineoverlay[triangle][{\uniqueMPgraphic{cell:triangle}}] \starttext \bTABLE[frame=off] \bTR \bTD[nx=2,align=middle,background=triangle] \dontleavehmode a\crlf

Re: [NTG-context] offset for background overlay

2020-04-11 Thread Wolfgang Schuster
[background=triangle], but it doesn't work. How about nested tables: \starttext \bTABLE[width=1cm,height=1cm] \bTR \bTD A \eTD \bTD B \eTD \bTD C \eTD \bTD E \eTD \eTR \bTR \bTD E \eTD \bTD[nc=2,nr=2,strut=no,align={middle,lohi}] {\bTABLE

Re: [NTG-context] offset for background overlay

2020-04-11 Thread mf
Thanks Hans and Wolfgang. @Wolfgang: your solution is clearer, but unfortunately it works only for this MWE. In the real case the triangle extends over 2 rows, but the table has more than 2 rows. I tried grouping the first two rows in a \bTABLEbody[background=triangle], but it doesn't work

Re: [NTG-context] offset for background overlay

2020-04-11 Thread Wolfgang Schuster
; \stopuseMPgraphic \defineoverlay[triangle][{\uniqueMPgraphic{cell:triangle}}] \starttext \bTABLE[frame=off]    \bTR \bTD[nx=2,background=triangle,align=middle] \dontleavehmode a\crlf text \eTD    \eTR    \bTR[toffset=1mm] \bTD left \eTD \bTD right \eTD    \eTR \eTABLE \stoptext

Re: [NTG-context] offset for background overlay

2020-04-11 Thread Hans Hagen
][{\uniqueMPgraphic{cell:triangle}}] \starttext \bTABLE[frame=off]   \bTR     \bTD[nx=2,background=triangle,align=middle] \dontleavehmode a\crlf text \eTD   \eTR   \bTR[toffset=1mm]     \bTD left \eTD     \bTD right \eTD   \eTR \eTABLE \stoptext here's a very ugly solution \startuseMPgraphic

[NTG-context] offset for background overlay

2020-04-11 Thread mf
}}] \starttext \bTABLE[frame=off] \bTR \bTD[nx=2,background=triangle,align=middle] \dontleavehmode a\crlf text \eTD \eTR \bTR[toffset=1mm] \bTD left \eTD \bTD right \eTD \eTR \eTABLE \stoptext The triangle is used as background of the 2-column wide cell of the first row. I want

Re: [NTG-context] Background color of a framedtext that covers floats

2020-04-08 Thread Pablo Rodriguez
On 4/8/20 11:32 AM, Fabrice Couvreur wrote: > [...] > \startframedtext[width=max,background=color,backgroundcolor=fondpaille] >      \starthanging[location=right] >          {\startMPcode >           draw unitsquare scaled 2cm ; >           \stopMPcode} >      \input tuft

Re: [NTG-context] Background color of a framedtext that covers floats

2020-04-08 Thread Fabrice Couvreur
Hi Pablo, Here a sample. Fabrice \useMPlibrary[dum] \definecolor[fondpaille][c=0,m=0,y=0.2,k=0] \starttext \startframedtext[width=max,background=color,backgroundcolor=fondpaille] \starthanging[location=right] {\startMPcode draw unitsquare scaled 2cm

Re: [NTG-context] Background color of a framedtext that covers floats

2020-04-08 Thread Pablo Rodriguez
On 4/8/20 10:19 AM, Fabrice Couvreur wrote: > Hi, > Is there a more elegant way to have a white background for the table? Hi Fabrice, I think not including the table in the framed text is the easiest way to avoid the colored background. Or why do you need the table inside the framed text,

[NTG-context] Background color of a framedtext that covers floats

2020-04-08 Thread Fabrice Couvreur
Hi, Is there a more elegant way to have a white background for the table ? In fact, my question is more general : if we insert an image, the background color envelops this image : how to solve this problem ? Thank you. Fabrice \definecolor[fondpaille][c=0,m=0,y=0.2,k=0] \starttext

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

2020-04-05 Thread Wolfgang Schuster
ablehead \startxtablebody \dorecurse{40}{\getbuffer[tablerow]} \stopxtablebody \stopxtable \stopbuffer \setupxtable [option=stretch, split=repeat, header=repeat, align=middle] \setupxtable [head] [background=color, backgroundcolor=gray] \starttext \title{Tabl

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] xtable headers and handlecsv loop

2020-04-03 Thread Geert Dobbels
ll[left] \cC \stopxcell >> \startxcell[left] \cD \stopxcell >> \startxcell \cE \stopxcell >> \startxcell[left] \cF \stopxcell >> \startxcell \cG \stopxcell >> \startxcell \cH \stopxcell >> \doifdefined{cI}{\startxcell \cI \stopxcell} >> \doifdefined{cJ}

Re: [NTG-context] xtable headers and handlecsv loop

2020-04-03 Thread Wolfgang Schuster
, option=stretch, align=middle] \setupxtable[head][background=color, backgroundcolor=gray, topframe=on, bottomframe=on, framecolor=black, foregroundcolor=blue] \setupxtable[left][align=right] \startxtable[header=repeat] Add "split=repeat" to \startxtable. \startxtablehead[h

[NTG-context] xtable headers and handlecsv loop

2020-04-03 Thread Geert Dobbels
cH \stopxcell \doifdefined{cI}{\startxcell \cI \stopxcell} \doifdefined{cJ}{\startxcell \cJ \stopxcell} \doifdefined{cK}{\startxcell [left] \cK \stopxcell} \stopxrow \stopbuffer \setupxtable[offset=0cm, frame=off, bottomframe=on, framecolor=gray, option=stretch, align=middle] \setu

Re: [NTG-context] Bug (Lua) ?

2020-03-19 Thread Hans van der Meer
quot;, "2002", >>> "2003", "2004", "2005","2006" } >>> context.startxtable({"align={middle,lohi}, >>> width=1.2cm,offset=0.8ex,bodyfont=9pt"}) >> >> context.startxtable( { align = "middle,lohi&quo

Re: [NTG-context] Bug (Lua) ?

2020-03-19 Thread Aditya Mahajan
le({"align={middle,lohi}, width=1.2cm,offset=0.8ex,bodyfont=9pt"}) context.startxtable( { align = "middle,lohi", width = "1.2cm", offset = "0.8ex", bodyfont = "9pt" } ) The argument is a lua table. Values are usually strings. context.startxrow({"

Re: [NTG-context] Bug (Lua) ?

2020-03-19 Thread Fabrice Couvreur
;2001", "2002", > > "2003", "2004", "2005","2006" } > > context.startxtable({"align={middle,lohi}, > > width=1.2cm,offset=0.8ex,bodyfont=9pt"}) > > > > context.startxtable( { align = "middle,lo

Re: [NTG-context] Bug (Lua) ?

2020-03-19 Thread mf
m,offset=0.8ex,bodyfont=9pt"}) context.startxtable( { align = "middle,lohi", width = "1.2cm", offset = "0.8ex", bodyfont = "9pt" } ) The argument is a lua table. Values are usually strings. context.startxrow({"background=color,backgroundcolor=

[NTG-context] Bug (Lua) ?

2020-03-19 Thread Fabrice Couvreur
;1", "Année", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005","2006" } context.startxtable({"align={middle,lohi}, width=1.2cm,offset=0.8ex,bodyfont=9pt"}) context

Re: [NTG-context] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
brice > > https://mailman.ntg.nl/pipermail/ntg-context/2016/087487.html > > \defineframed > [EXFRAME] > [frame=off, > offset=0pt, > location=low, > width=\struttotal, > background=color, > backgroundcolor=black, > foregroundcolor=white,

Re: [NTG-context] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
ttps://mailman.ntg.nl/pipermail/ntg-context/2016/087487.html > > \defineframed > [EXFRAME] > [frame=off, > offset=0pt, > location=low, > width=\struttotal, > background=color, > backgroundcolor=black, > foregroundcolor=white, > f

Re: [NTG-context] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
Hi Wolfgang, Is it possible to adapt your code with the environment that you proposed to me ? Thank you. Fabrice https://mailman.ntg.nl/pipermail/ntg-context/2016/087487.html \defineframed [EXFRAME] [frame=off, offset=0pt, location=low, width=\struttotal, background

Re: [NTG-context] METAPOST vardef returning multiple and non-numeric types as a single answer?

2020-03-16 Thread Gerben Wierda
th all of this (ConTeXt, METAPOST, etc.) remains the learning curve and the lack of good and up-to-date educational materials. I.e. the METAPOST manual is terse, probably because it relies on people understanding the background that is in the METAFONT book. And, if one is used to thinking in terms of f

[NTG-context] Hatch color in a table cell

2020-03-12 Thread Fabrice Couvreur
] [\metahashoverlay{ -45}] \defineoverlay[meta:hash:horizontal][\metahashoverlay{+180}] \defineoverlay[meta:hash:vertical] [\metahashoverlay{ -90}] \starttext \startmidaligned \startxtable [align={lohi,middle}, width=1.5cm, background=color

Re: [NTG-context] Any plans for an active color management?

2020-02-17 Thread Henning Hraban Ramm
ial. > > 2. Download and install the color profile for this print shop in ConTeXt. > > 3. Specify CMYK values by using transicc with the given profile > > 4. Define named corporate colors with these CMYK values for typography, > colored background in ConTeXt. > > 5. Convert all

[NTG-context] Any plans for an active color management?

2020-02-17 Thread Jan U. Hasecke
named corporate colors with these CMYK values for typography, colored background in ConTeXt. 5. Convert all RGB images to CMYK using the given color profile especially if they contain corporate colors. Now if we decide to use another print shop, the whole process has to start again. The result

Re: [NTG-context] Repeat backgrounds on slides

2020-02-15 Thread Jan U. Hasecke
\structureuservariable – this is really cool. Thanks a lot Wolfgang. juh Am 14.02.20 um 19:53 schrieb Wolfgang Schuster: > \setupexternalfigures[location=default] > > \defineoverlay > [SlideBackground] > [\doifsomething > {\structureuservariable{background}} >

Re: [NTG-context] Repeat backgrounds on slides

2020-02-14 Thread Wolfgang Schuster
und.jpg][height=\paperheight]}] > > > > or > > > > \defineoverlay [bg:hs2020-mond] [\overlayfigure{background.jpg}] > > Is this defining and setting in one command? You can also pass a variable as argument in the second argument, e.g. in the following example I

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

Re: [NTG-context] Label in externalfigures

2020-02-12 Thread Jan-Erik Hägglöf
t; What is the expected output of this command? > >> I know there is a similar function in the simple slides module but I need it >> in my documents, often exams to my students, so caption is mainly not >> necessary. >> >> The background to this is that I often c

Re: [NTG-context] Label in externalfigures

2020-02-12 Thread Wolfgang Schuster
a similar function in the simple slides module but I need it > in my documents, often exams to my students, so caption is mainly not > necessary. > > The background to this is that I often creating pictures in Inkscape and > export it to pdf but sometimes I do screenshots and save it in

[NTG-context] Label in externalfigures

2020-02-12 Thread Jan-Erik Hägglöf
. The background to this is that I often creating pictures in Inkscape and export it to pdf but sometimes I do screenshots and save it in .png or .pdf format. So I just want to put labels in it like a layer in same size as the included picture. Or is this something that’s already solved so

[NTG-context] New to metapost, could use some help with first steps

2020-02-02 Thread Gerben Wierda
e or sized according to the box size (choice text/box) The bounding box following the actual complex outline The upper of the two small boxes in line with the upper text line (in case the size is coupled to the text size) The colour of the background a default colour or given as parameter Thi

[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] line numbering within frame

2020-01-24 Thread Tomas Hala
x,step=5,location=inleft,start=50,color=darkblue] # # \starttext # # \framed # [background=color, #backgroundcolor=gray, #align={normal}, #frame=off, #loffset=6ex, #width=\textwidth, #foregroundstyle=\ss] # {\startlinenumbering[original] # \input knuth # \stop

Re: [NTG-context] line numbering within frame

2020-01-24 Thread Thomas A. Schmitz
le=\tx\ss,distance=-1ex,step=5,location=inleft,start=50,color=darkblue] \starttext \framed [background=color, backgroundcolor=gray, align={normal}, frame=off, loffset=6ex, width=\textwidth, foregroundstyle=\ss] {\startlinenumbering[original] \input knuth \st

Re: [NTG-context] line numbering within frame

2020-01-23 Thread Tomas Hala
] #[style=\bf, # distance=-2ex, # step=3, # location=inleft, # start=4, # color=darkred] #\startlinenumbering[Two] #\input klein #\stoplinenumbering # # % This fails: # \framed #[background=color, # backgroundcolor=gray, # align

[NTG-context] line numbering within frame

2020-01-23 Thread Thomas A. Schmitz
] \definelinenumbering[Two] \setuplinenumbering[Two] [style=\bf, distance=-2ex, step=3, location=inleft, start=4, color=darkred] \startlinenumbering[Two] \input klein \stoplinenumbering % This fails: \framed [background=color

Re: [NTG-context] multipage typing

2020-01-19 Thread Hans Hagen
it? Best wishes, Tomáš \setupstartstop[DefaultSnippet][before=,after=,style=] \defineframedtext[MPtyping][background=color,backgroundcolor=gray,width=\makeupwidth,offset=2dd,loffset=6dd,roffset=6dd,frame=on,] \setuptyping[MP][before=\startMPtyping,after=\stopMPtyping,indentnext=auto,] search

[NTG-context] multipage typing

2020-01-19 Thread Tomas Hala
[DefaultSnippet][before=,after=,style=] \defineframedtext[MPtyping][background=color,backgroundcolor=gray,width=\makeupwidth,offset=2dd,loffset=6dd,roffset=6dd,frame=on,] \setuptyping[MP][before=\startMPtyping,after=\stopMPtyping,indentnext=auto

[NTG-context] column(sets) questions

2020-01-18 Thread Henning Hraban Ramm
Background: I’m typesetting the annual report of my home town’s "friends of the earth" chapter. The corporate design has pages with one, two and three columns (yes, that makes sense). Chapter titles run over the whole page width or sometimes only over two columns on three column pag

Re: [NTG-context] typing+framedtext: different behaviour between TL2017 and 2019

2020-01-17 Thread Tomas Hala
: # >Hi all, # > # >if I compile the following (minimised) code with ConTeXt from TL2017, # >I receive expected result -- one framed gray box with correct width. # > # >\starttext\showframe # >\defineframedtext[MPT][background=color,backgroundcolor=gray,width=\makeupwidt

Re: [NTG-context] typing+framedtext: different behaviour between TL2017 and 2019

2020-01-17 Thread Otared Kavian
wframe\defineframedtext[MPT][background="" class="">\setuptyping[MP][before={\startMPT},after={\stopMPT},]\startMP bla \stopMP\stoptextNow I tried it with ConTeXt from TL2019 (TL2018 produces the same result as TL2019)and I have got _two_ boxes -- the outer one is correct and fr

Re: [NTG-context] typing+framedtext: different behaviour between TL2017 and 2019

2020-01-17 Thread Wolfgang Schuster
Tomas Hala schrieb am 17.01.2020 um 15:18: Hi all, if I compile the following (minimised) code with ConTeXt from TL2017, I receive expected result -- one framed gray box with correct width. \starttext\showframe \defineframedtext[MPT][background=color,backgroundcolor=gray,width=\makeupwidth

[NTG-context] typing+framedtext: different behaviour between TL2017 and 2019

2020-01-17 Thread Tomas Hala
Hi all, if I compile the following (minimised) code with ConTeXt from TL2017, I receive expected result -- one framed gray box with correct width. \starttext\showframe \defineframedtext[MPT][background=color,backgroundcolor=gray,width=\makeupwidth,frame=on,offset=1cc,] \setuptyping[MP][before

[NTG-context] Impacts Project: Two-Page Spread

2020-01-14 Thread Thangalin
indicator line based on section heading numeric text value * Lua converts annotated Markdown to an inline image ConTeXt macro * Clipped background images for pixel-perfect two-page spread * Custom global counter to enumerate illustrations in TeX Annotations will be explained in Part 8 of the Typeset

Re: [NTG-context] extreme table and right frames with vertically spanned cells

2020-01-05 Thread Pablo Rodriguez
\startxtable \startxrow \startxcell A \stopxcell \startxcell[ny=2, background=color, backgroundcolor=blue, rightframe=off, align=lohi, foregroundcolor=yellow] B \stopxcell \stopxrow \startxrow \

Re: [NTG-context] overlay problem (beta 31.12.2019)

2020-01-02 Thread Hans Hagen
On 1/2/2020 5:00 PM, Peter Rolf wrote: Hi Hans There is a small problem with overlays. %- \starttext \defineoverlay[foo][{\blackrule[color=black,width=20mm,height=20mm]}]% \framed[background=foo,strut=no,offset=overlay]%{\blackrule[color=white,width=16mm,height=16mm]} \stoptext

Re: [NTG-context] Indentation problem inside enumeration

2020-01-02 Thread Mikael P. Sundqvist
On Tue, Dec 17, 2019 at 8:39 AM Mikael P. Sundqvist wrote: > Hi! > > I've met a strange problem with indentation in consecutive enumerations. > It seems to me that if > > 1) the first enumeration uses indentnext=no > AND > 2) the next enumeration uses a backgr

[NTG-context] overlay problem (beta 31.12.2019)

2020-01-02 Thread Peter Rolf
Hi Hans There is a small problem with overlays. %- \starttext \defineoverlay[foo][{\blackrule[color=black,width=20mm,height=20mm]}]% \framed[background=foo,strut=no,offset=overlay]%{\blackrule[color=white,width=16mm,height=16mm]} \stoptext %- The inner square should be centered. Peter

Re: [NTG-context] background color of text in contour(former: ntg-context Digest, Vol 186, Issue 61)

2019-12-29 Thread Jeong Dal
Dear Wolfgang, Now, I understand why the error messages “\texfont0 is undefined”, “ you used the started character from an undefined font family.” are appeared. Thank you for your clear explanation. Best regards, Dalyoung >> 3. removing \starttext, \stoptext, and functionstyle=“math”, it

Re: [NTG-context] background color of text in contour(former: ntg-context Digest, Vol 186, Issue 61)

2019-12-29 Thread Wolfgang Schuster
Jeong Dal schrieb am 29.12.2019 um 14:33: Dear Hans, I run the following code which is in page 24,25 luametafun.pdf. 1. adding \starttext and \stoptext, it works fine. No overlapping. Also, functionstyle = “math” is working nicely. 2. removing \starttext and \stoptext, then functionstyle

Re: [NTG-context] background color of text in contour(former: ntg-context Digest, Vol 186, Issue 61)

2019-12-29 Thread Jeong Dal
, cos = math.sin, math.cos", function = "cos(x)+sin(y)", %functionstyle = "math", background = "bitmap", foreground = "edge", linewidth = 1/2, cache = true, ]; \stopMPcode %\stop

Re: [NTG-context] background color of text in contour(former: ntg-context Digest, Vol 186, Issue 61)

2019-12-29 Thread Hans Hagen
On 12/28/2019 9:27 PM, Jeong Dal wrote: Dear Hans, Thank you for the fix. Background color is OK now. A new problem in the caption: Since width of the figure is narrower than the width of the line "x = [0,12.555]; y = [-6,6];”, “y =“ is written over 12.555. Is there any option to sup

Re: [NTG-context] background color of text in contour(former: ntg-context Digest, Vol 186, Issue 61)

2019-12-29 Thread Hans Hagen
On 12/28/2019 9:27 PM, Jeong Dal wrote: Dear Hans, Thank you for the fix. Background color is OK now. A new problem in the caption: Since width of the figure is narrower than the width of the line "x = [0,12.555]; y = [-6,6];”, “y =“ is written over 12.555. Is there any option to sup

Re: [NTG-context] background color of text in contour(former: ntg-context Digest, Vol 186, Issue 61)

2019-12-28 Thread Jeong Dal
Dear Hans, Thank you for the fix. Background color is OK now. A new problem in the caption: Since width of the figure is narrower than the width of the line "x = [0,12.555]; y = [-6,6];”, “y =“ is written over 12.555. Is there any option to suppress the caption x, y since there are nu

[NTG-context] new beta

2019-12-27 Thread Hans Hagen
topplacefigure \stoptext --- 3 background fix in contour labels --- % gray background was left over from testing --- 4 some stuff for offlist dev / discussion -

Re: [NTG-context] ntg-context Digest, Vol 186, Issue 61

2019-12-27 Thread Hans Hagen
code at page 24-25 in “luametafun.pdf”. \startMPcode{doublefun} draw lmt_contour [ xmin = 0, xmax = 4*pi, xstep = .05, ymin = -6, ymax = 6, ystep = .05, levels =7, height = 5cm, preamble = "local sin, cos = math.sin, math.cos", function = "cos(x) + cos(y)" background = "bi

Re: [NTG-context] Watermark is behind \externalfigure

2019-12-27 Thread Wolfgang Schuster
}{\overlaywidth}{\overlayheight}{\color[Watermark]{\CONTEXT}}}] \defineoverlay   [watermark]   [{\scale[factor=fit]{\color[Watermark]{\CONTEXT}}}] \setupexternalfigure[location=default] \starttext \externalfigure[mill][background={foreground,watermark}] \stoptext Wolfgang

Re: [NTG-context] ntg-context Digest, Vol 186, Issue 61

2019-12-26 Thread Jeong Dal
”. \startMPcode{doublefun} draw lmt_contour [ xmin = 0, xmax = 4*pi, xstep = .05, ymin = -6, ymax = 6, ystep = .05, levels =7, height = 5cm, preamble = "local sin, cos = math.sin, math.cos", function = "cos(x) + cos(y)" background = "bitmap", foreground = "edg

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

2019-12-20 Thread Wolfgang Schuster
\makeupwidth, height=\makeupheight] > \setupbackgrounds[page][background=TA] > Place the layer in the text area or use \paperwidth and \paperheight for width and height. Wolfgang > ___ If your questi

[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] setting the color of cropmarks

2019-12-19 Thread Henning Hraban Ramm
ping it only to the K channel. I’d regard that a misconfiguration on their side. Maybe it helps to define the output intent: https://wiki.contextgarden.net/Command/setupbackend https://wiki.contextgarden.net/PDFX >> If you need more control you can create your own marks and add them as >> backgr

Re: [NTG-context] setting the color of cropmarks

2019-12-19 Thread mf
of PDF software (verification? imposition? I've not asked), that complains about that, because it treats grayscale as RGB, splitting it on C, M and Y channels, instead of mapping it only to the K channel. If you need more control you can create your own marks and add them as background

Re: [NTG-context] setting the color of cropmarks

2019-12-19 Thread Wolfgang Schuster
to change the color for the rules and the only option you have is to use color conversion. \setupcolors[cmyk=yes,rgb=no] If you need more control you can create your own marks and add them as background for the page. Wolfgang

[NTG-context] Indentation problem inside enumeration

2019-12-16 Thread Mikael P. Sundqvist
Hi! I've met a strange problem with indentation in consecutive enumerations. It seems to me that if 1) the first enumeration uses indentnext=no AND 2) the next enumeration uses a background then the second(?) paragraph of the second enumeration is not indented. Here is a small example (see

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

Re: [NTG-context] Ebooks with ConTeXt?

2019-12-10 Thread Jan U. Hasecke
sense to use > Markdown :) > > Perhaps this is a silly question (excuse my ignorance about the topic): > what if you want to add some stylistic touches to your ebooks, such as > initials? Or Non-breaking spaces? How about adding, say, a text box with > a different background and a smal

[NTG-context] LMTXL Tagging and overlay

2019-12-10 Thread Rik Kabel
] [background=WatermarkOverlay] %setuptagging    [state=stop] \setuptagging    [state=start] \setuplanguage   [en] [spacing=packed] \setupinterlinespace [2.2ex] \definenarrower  [MidOneEm] [middle=1em

<    1   2   3   4   5   6   7   8   9   10   >