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

2020-05-16 Thread Aditya Mahajan
On Sat, 16 May 2020, Nicola wrote: On 2020-05-14, Aditya Mahajan wrote: On Thu, 14 May 2020, Nicola wrote: Quick question: Is \startcolorscheme... \stopcolorscheme (still) supported by t-vim? It is supposed to work. If it doesn't, then it is a bug. Could you provide a complete MWE.

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] Custom color schemes in t-vim

2020-05-14 Thread Aditya Mahajan
On Thu, 14 May 2020, Nicola wrote: Quick question: Is \startcolorscheme... \stopcolorscheme (still) supported by t-vim? In a template I wrote long time ago to typeset code, I have: \usemodule[vim] \unprotect \startcolorscheme[oceansunset] \definesyntaxgroup[Comment][\c!color

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=

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

2020-05-14 Thread Nicola
Quick question: Is \startcolorscheme... \stopcolorscheme (still) supported by t-vim? In a template I wrote long time ago to typeset code, I have: \usemodule[vim] \unprotect \startcolorscheme[oceansunset] \definesyntaxgroup[Comment][\c!color={colortwo},\c!style=italic

[NTG-context] \goto works but links don't when passed via textext() in METAPOST

2020-05-10 Thread Gerben Wierda
I am trying to get an URL link in a textext() via METAPOST. I’ve got this before \starttext (or after, tried both): \setupinteraction [state=start, color=blue, style=bold] The intended link shows up in blue and bold, but it is not clickable. I’ve turned ConTeXt tracing on and see

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] \setupinteraction [ ...] do not work

2020-04-28 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 28.04.2020 um 15:39: Hi, It seemed to me that it was necessary to proceed in this way to create a link in a pdf file; it does not work. Thank you. Fabrice \setupinteraction[state=start,color=darkred] \starttext \goto{vecteur directeur}[https://www.youtube.com/watch

[NTG-context] \setupinteraction [ ...] do not work

2020-04-28 Thread Fabrice Couvreur
Hi, It seemed to me that it was necessary to proceed in this way to create a link in a pdf file; it does not work. Thank you. Fabrice \setupinteraction[state=start,color=darkred] \starttext \goto{vecteur directeur}[https://www.youtube.com/watch?v=6VdSz-0QT4Y] \stoptext

Re: [NTG-context] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Gerben Wierda
\par to make the change of >> linespacing work: >> \framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000, >> g=0.000, >> b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[14pt] \rm >> [My]\\Application\\(Component)\par }} >>

Re: [NTG-context] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Wolfgang Schuster
-archive.com/ntg-context@ntg.nl/msg45676.html Use style/color keys when possible. \starttext \framed [align=flushright, offset=none, width=106.400bp, foregroundcolor=black, foregroundstyle={\switchtobodyfont[11.0pt]\setupinterlinespace[line=2.4ex]}] {[My]\par Application\par (Component)\par

[NTG-context] Text size with lmt_text [ ]

2020-04-22 Thread Fabrice Couvreur
and color parameters while I did not succeed using textext (). My problem is the size of the letters which is too small. Thank you. Fabrice \usecolors[xwi] \definecolor [prune] [r=1.29,g=.20,b=.83] \starttext \startMPcode vardef card(expr s, c) = image( draw fullsquare xyscaled (2cm,4cm

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Fabrice Couvreur
; >> \usecolors[svg] > >> > >> \defineframed > >>[frameletter] > >>[width=1.25em, > >> height=1.75em, > >> foregroundstyle=\ssbfc, > >> corner=round, > >> radius=0.1\bodyfontsize, > >>

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Wolfgang Schuster
\bodyfontsize, rulethickness=1pt] \starttext \startTEXpage[offset=\linewidth] \dontleavehmode \rotate [rotation=5] {\color[darkred] {\frameletter{A}}} \rotate [rotation=-5]{\color[green] {\frameletter{L}}} \rotate [rotation=5] {\color[mediumblue]{\frameletter{E}}} \rotate [rotation=-5]{\color

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Rudolf Bahr
gt; [frameletter] > [width=1.25em, >height=1.75em, >foregroundstyle=\ssbfc, >corner=round, >radius=0.1\bodyfontsize, > rulethickness=1pt] > > \starttext > > \startTEXpage[offset=\linewidth] > \dontleavehmode > \rotate [rotation=5] {\color[darkr

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Wolfgang Schuster
[rotation=5] {\color[darkred] {\frameletter{A}}} \rotate [rotation=-5]{\color[green] {\frameletter{L}}} \rotate [rotation=5] {\color[mediumblue]{\frameletter{E}}} \rotate [rotation=-5]{\color[darkviolet]{\frameletter{A}}} \stopTEXpage \stoptext end tex example Wolfgang

Re: [NTG-context] Colors in lmt_surface and luametafun

2020-04-17 Thread Hans Hagen
in(x*x) - cos(y*y)", color = "f, f/2, 1-f", color = "f, f, 0", xstep = .02, ystep = .02, xvector = {-0.4, -0.4}, height = 10cm, lines = true, ] xsized .Text

[NTG-context] Colors in lmt_surface and luametafun

2020-04-17 Thread Otared Kavian
Hi Hans, On page 36 of luametafun.pdf there is the following example of using lmt_surface: \startMPcode{doublefun} draw lmt_surface [ preamble = "local sin, cos = math.sin, math.cos", code = "sin(x*x) - cos(y*y)",

Re: [NTG-context] Text around an image

2020-04-17 Thread Fabrice Couvreur
t; >\define\ItemCommand >{\hskip\zeropoint\relax\autoinsertnextspace} > > \setupitemgroup > [itemize] > [color=black, > style=bold, > distance=\zeropoint] > > \setupitemgroup > [itemize:1] > [option={n,packed,fit,intext}, >

[NTG-context] Text around an image

2020-04-16 Thread Fabrice Couvreur
} \setupitemgroup [itemize] [color=black, style=bold, distance=\zeropoint] \setupitemgroup [itemize:1] [option={n,packed,fit,intext}, command=\ItemCommand] \setupitemgroup [itemize:2] [lefttext=, righttext=, option={a,text}] \starttext

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-13 Thread Fabrice Couvreur
gt; >>>> axis x line =bottom, > >>>> axis y line =left, > >>>> axis on top=true, > >>>> axis line style =very thick, > >>>> tick align=outside, > >>>> tickwidth=0.12cm, > >>

Re: [NTG-context] running lua in metafun and in ConTeXt

2020-04-12 Thread Jeong Dal
]],n,r,whatever(n,r)) > end > > -- or in latest lmtx: > -- > -- function MP.lmt_WhateverShape(n,r) > -- mp.inject( > -- string.format( > -- [[\WhateverShape{%.0f}{%.0f}{%.0f}]], > -- n, > -- r, > -- whatever(n,r)

Re: [NTG-context] running lua in metafun and in ConTeXt

2020-04-12 Thread Hans Hagen
[ options = "labels", angle = 30, unit= 2cm, color = "black", ] ; def WhateverShape = applyparameters "WhateverShape" "lmt_WhateverShape" enddef ; vardef lmt_WhateverShape = image ( pushparameters "WhateverShape" ;

[NTG-context] offset for background overlay

2020-04-11 Thread mf
(0,-3mm) withcolor red ; \stopuseMPgraphic ... but it does not work, because the content of the background is centered on the cell, so "shifted (0,-3mm)" has no effect. The only solution I found is drawing something above the triangle with a neutral color, so that the whole

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-08 Thread Aditya Mahajan
ate},ylabel={Note}, xlabel={Date},ylabel={Effectif}, every axis x label/.style={ at={(ticklabel* cs:1.01)}, anchor=west, }, every axis y label/.style={ at={(ticklabel* cs:1.01)}, anchor=south, }, samples=1000, >=stealth, ] \addplot [color=green,only marks] coordinates { (1,5)

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-08 Thread Aditya Mahajan
one}}, xlabel={Date},ylabel={Note}, xlabel={Date},ylabel={Effectif}, every axis x label/.style={ at={(ticklabel* cs:1.01)}, anchor=west, }, every axis y label/.style={ at={(ticklabel* cs:1.01)}, anchor=south, }, samples=1000, >=stealth, ] \addplot [color=green,only marks] coord

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-08 Thread Fabrice Couvreur
> xlabel={Date},ylabel={Effectif}, > > every axis x label/.style={ > > at={(ticklabel* cs:1.01)}, > > anchor=west, > > }, > > every axis y label/.style={ > > at={(ticklabel* cs:1.01)}, > > anchor=south, > > }, > > samples=1000, > > &

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-08 Thread Henri Menke
t, > }, > every axis y label/.style={ > at={(ticklabel* cs:1.01)}, > anchor=south, > }, > samples=1000, > >=stealth, > ] > \addplot [color=green,only marks] coordinates { > (1,5) > (2,7) > (3,5) > (4,10) > (5,5) > (6,8) > (7,10) &

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] Lmtx + pgfplots compilation error

2020-04-08 Thread Fabrice Couvreur
={ at={(ticklabel* cs:1.01)}, anchor=west, }, every axis y label/.style={ at={(ticklabel* cs:1.01)}, anchor=south, }, samples=1000, >=stealth, ] \addplot [color=green,only marks] coordinates { (1,5) (2,7) (3,5) (4,10) (5,5) (6,8) (7,10) (8,8) (9,10) (10,14) (11,18) (12,14) (13

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
which only adds the background color (and disables the frame)? > In fact, my question is more general: if we insert an image, the > background color envelops this image: how to solve this problem? Unless you provide a sample that shows the issue you are facing, not including the image in t

[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
split}] \setupxtable[ option=stretch,split=repeat,header=repeat,align=middle] \setupxtable[head][background=color,backgroundcolor=gray,foregroundcolor=red] \starttext Some lines of text. This text must come just before the table, but only on the first page of the table \def\onerow{ \startxrow \s

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

2020-04-04 Thread Geert Dobbels
defineoverlay [Logos][{ \framed[width=\textwidth, height=3cm, align=right, strut=no, offset=none, frame=on, frameoffset=0.1cm, corner=round, radius=0.15cm, framecolor=darkgray, background=color, backgroundcolor=gray, framecorner=round, frameradius=0.15cm, rulethickness=0.05cm]{ \frame

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] \setupinteraction[style=...] supersedes manual text style for \note

2020-04-02 Thread Pablo Rodriguez
or any other style), > regardless of calling it before or after setting up “notation” or > “note”. Hi Benjamin, I’m not sure whether this would work for your: \setupinteraction[state=start, color=, style=, contrastcolor=,] \setupreferenceformat[footnote][color=, style=] BTW, "f

Re: [NTG-context] write a subtitle under the title of a chapter using outlined font

2020-03-19 Thread Hans Hagen
5blue withpen pencircle scaled .75pt); \stopuseMPgraphic \define[1]\outlineFill{\useMPgraphic{outlineT}{tt="#1"}}% \setuphead[chapter,title]  [textcommand=\outlineFill,   color=.625Blue,   numbercommand=\outlineFill,   number=yes] \setupbodyfont[rm, 12pt] \starttext \start

[NTG-context] write a subtitle under the title of a chapter using outlined font

2020-03-19 Thread Jeong Dal
pter,title] [textcommand=\outlineFill, color=.625Blue, numbercommand=\outlineFill, number=yes] \setupbodyfont[rm, 12pt] \starttext \startchapter[title={First Title\crlf{\tfa Sub Title}}] \input knuth \stopchapter

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
=color, backgroundcolor=black, foregroundcolor=white, forgroundstyle=bold] \defineprocessor[ACPROCESSOR][command=\EXFRAME] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \defineenumeration [ex] [text=, width=fit, numberconversionset=ACCONVERS

[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] Only-black emojis in LMTX

2020-03-11 Thread Hans Hagen
define it? You need something \definefont[YourFont][somefontname*default,color at 15pt] or define a featureset that sets 'color=yes' (or some specific rendering using the other keys for color fonts). Hans

Re: [NTG-context] Only-black emojis in LMTX

2020-03-10 Thread Henri Menke
On 3/11/20 11:35 AM, Alejo Barrio Blaya wrote: > I'm trying to get emojis working. The examples that do, are only printing > plain black emojis. Not colors, nor greyscales. > I'm using the latest beta of LMTX. See section 5.2.13 Color in the fonts manual. http://www.pragma-ade.nl/genera

Re: [NTG-context] color

2020-03-06 Thread Henning Hraban Ramm
> I thought h in HSV would be between 0 and 360? It is. > (I’ll gladly wikify this, even if I probably never will use HSV or HBW…) Ok, it’s now in https://wiki.contextgarden.net/Color and https://wiki.contextgarden.net/Command/definecolor

Re: [NTG-context] color

2020-03-06 Thread Henning Hraban Ramm
> Am 2020-03-06 um 16:06 schrieb Hans Hagen : > > Hi, > > As a side effect of svg color manipulations (experiments by ms and me) the > next release will have support for hbw colors: > >{\directcolored[h=.1,b=.2,w=.1]\blackrule[width=3cm,height=3cm]} >{\d

[NTG-context] color

2020-03-06 Thread Hans Hagen
Hi, As a side effect of svg color manipulations (experiments by ms and me) the next release will have support for hbw colors: {\directcolored[h=.1,b=.2,w=.1]\blackrule[width=3cm,height=3cm]} {\directcolored[h=.1,b=.2,w=.2]\blackrule[width=3cm,height=3cm]} {\directcolored[h=.1,b=.2

Re: [NTG-context] [preventing blackrule tp break line]

2020-03-06 Thread Hans Hagen
=0mm,color=yellow]\quad% \blackrule[width=15mm,height=1mm,depth=0mm,color=red]\quad% \blackrule[width=15mm,height=1mm,depth=0mm,color=green]\quad% \blackrule[width=15mm,height=1mm,depth=0mm,color=blue]\quad \dontleavehmode \blackrule[width=15mm,height=1mm,depth=0mm,color=yellow]\quad% \blackrule

[NTG-context] [preventing blackrule tp break line]

2020-03-06 Thread Floris van Manen
Using lmtx, while trying to get multiple pieces of black rule on one line, for some reason the line breaks after the first item, to continue on the second line with the remainder. \starttext \blackrule[width=15mm,height=1mm,depth=0mm,color=yellow]\quad% \blackrule[width=15mm,height=1mm,depth=0mm

Re: [NTG-context] Quick question about dual output pdf and epub

2020-03-04 Thread Hans Hagen
On 3/4/2020 10:31 AM, luigi scarso wrote: On Wed, Mar 4, 2020 at 9:51 AM Hans Hagen <mailto:j.ha...@xs4all.nl>> wrote: (in the meantime i actually gave away my ebook reader ... now i wait till color shows up in e-ink which might give me a reason to play a bit mor

Re: [NTG-context] Quick question about dual output pdf and epub

2020-03-04 Thread luigi scarso
On Wed, Mar 4, 2020 at 9:51 AM Hans Hagen wrote: > > (in the meantime i actually gave away my ebook reader ... now i wait > till color shows up in e-ink which might give me a reason to play a bit > more) > > https://news.lenovo.com/pressroom/press-releases/lenovo-unveils-pr

Re: [NTG-context] Quick question about dual output pdf and epub

2020-03-04 Thread Hans Hagen
(apart from device specific issues) so i gave up on that anyway, an export is not per se an epub .. one might for instance add additional css (in the meantime i actually gave away my ebook reader ... now i wait till color shows up in e-ink which might give me a reason to play a bit more

Re: [NTG-context] Problem with shading when using rotation (Metapost)

2020-03-03 Thread Fabrice Couvreur
Hi, No idea ? Thanks Fabrice Le sam. 29 févr. 2020 à 11:01, Fabrice Couvreur a écrit : > Hi, > Sorry to come back with my match problem. In fact, I do not understand > why a rotation of 90 influences the degraded color of the ends of the > matches. > Thank you. > Fabr

[NTG-context] Problem with shading when using rotation (Metapost)

2020-02-29 Thread Fabrice Couvreur
Hi, Sorry to come back with my match problem. In fact, I do not understand why a rotation of 90 influences the degraded color of the ends of the matches. Thank you. Fabrice \starttext \startMPcode def match (expr alpha, pos) = numeric l; l = 4.6cm; picture pic; pic = image

Re: [NTG-context] Shading

2020-02-26 Thread Fabrice Couvreur
ikzpicture \shade[ball color=red] (0,0) ellipse (0.5cm and 0.44cm); \stoptikzpicture \stoptext Le mar. 25 févr. 2020 à 17:18, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> a écrit : > On Tue, 25 Feb 2020 12:34:00 +0100 > Fabrice Couvreur wrote: > > > Hi, > >

Re: [NTG-context] Fonts not in preview of online print shop

2020-02-19 Thread Hans Hagen
On 2/19/2020 1:20 PM, Jan U. Hasecke wrote: Dear all, strange problem with my online print shop. I want to print 3 products. 1. Business Cards 2. Flyer 3. Poster All definitions for fonts, colors, color profiles and pdf version come from one an the same file (env-cd.tex). All PDFs passed

[NTG-context] Fonts not in preview of online print shop

2020-02-19 Thread Jan U. Hasecke
Dear all, strange problem with my online print shop. I want to print 3 products. 1. Business Cards 2. Flyer 3. Poster All definitions for fonts, colors, color profiles and pdf version come from one an the same file (env-cd.tex). All PDFs passed the data check without problems, but Business

Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread Hans Hagen
On 2/18/2020 12:18 PM, mf wrote: Hello list, I tried this: \starttext \startMPcode picture p ; p := lmt_svg [ filename = "sample.svg" ] ; draw p ; color black_rgb ; black_rgb := ( 0, 0, 0 ) ; color red_rgb   ; red_rgb   := ( 1, 0, 0 ) ; remapcolor( black_rgb, red_rgb ) ; recolor

[NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread mf
Hello list, I tried this: \starttext \startMPcode picture p ; p := lmt_svg [ filename = "sample.svg" ] ; draw p ; color black_rgb ; black_rgb := ( 0, 0, 0 ) ; color red_rgb ; red_rgb := ( 1, 0, 0 ) ; remapcolor( black_rgb, red_rgb ) ; recolor p ; draw p shifted ( bbwidth(p

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

2020-02-17 Thread Hans Hagen
On 2/17/2020 6:52 PM, Floris van Manen wrote: On 17-02-2020 16:10, juh wrote: At least, digital images are always RGB. In my special case we started with a RGB corporate design as we are an online cooperative. Print comes later. The thing is that in print the CMYK will result in a fixed

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

2020-02-17 Thread Henning Hraban Ramm
> Am 2020-02-17 um 17:57 schrieb Jan U. Hasecke : > > I contacted three print shops and they demand three different color > profiles, one of them prints on "100 % recycling paper" with an uncoated > profile. The other two use ISO Coated v2 300% and Coated Fogra 39. Oh

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

2020-02-17 Thread Floris van Manen
On 17-02-2020 16:10, juh wrote: > At least, digital images are always RGB. > > In my special case we started with a RGB corporate design as we are an > online cooperative. Print comes later. The thing is that in print the CMYK will result in a fixed well defined object: a physical print on

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

2020-02-17 Thread Jan U. Hasecke
Hi Henning Hraban, I contacted three print shops and they demand three different color profiles, one of them prints on "100 % recycling paper" with an uncoated profile. The other two use ISO Coated v2 300% and Coated Fogra 39. Being online shops I think they will complain if not

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

2020-02-17 Thread Henning Hraban Ramm
is the same. That means you should keep your photos in (profiled) RGB. Probably best use sRGB to stay device independend, because that’s default for monitors, even if printshops like Adobe RGB or one of the profiles that shrink the RGB color space to printable colors. For type and logos I still

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

2020-02-17 Thread juh
Floris van Manen writes: > On 17-02-2020 15:39, Hans Hagen wrote: >> On 2/17/2020 3:03 PM, Jan U. Hasecke wrote: >> >>> Are there any plans to automate these steps into ConTeXt? That would >>> enable us to work in RGB the whole time. Only when creating a print

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

2020-02-17 Thread Floris van Manen
On 17-02-2020 15:39, Hans Hagen wrote: > On 2/17/2020 3:03 PM, Jan U. Hasecke wrote: > >> Are there any plans to automate these steps into ConTeXt? That would >> enable us to work in RGB the whole time. Only when creating a print pdf >> we would specify a color prof

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

2020-02-17 Thread Hans Hagen
On 2/17/2020 3:03 PM, Jan U. Hasecke wrote: Are there any plans to automate these steps into ConTeXt? That would enable us to work in RGB the whole time. Only when creating a print pdf we would specify a color profile and ConTeXt would do the rest by converting all rgb values to cmyk values due

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

2020-02-17 Thread Jan U. Hasecke
Hi all, I would like to come back to a discussion from 2018 on this list. After printing some flyers for my cooperative I come to the conclusion that color management *is* very difficult. In my eyes, the only way of getting good results seems to be the following process. My starting point

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-15 Thread Hans Hagen
On 2/15/2020 12:25 PM, Fabrice Couvreur wrote: Hi Henri, Why does the blue path not rotate 90 with the draw command but rotate with the fill command? compare draw origin -- (0,0.2cm) -- (4cm,0.2cm) -- (4cm,0) -- (4.1cm,-0.05cm) -- (0.1cm,-0.05cm) -- cycle rotated alpha withcolor red;

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-15 Thread Floris van Manen
On 15-02-2020 12:25, Fabrice Couvreur wrote: > Hi Henri, > Why does the blue path not rotate 90 with the draw command but rotate > with the fill command? > Why not draw the match as a picture first, then rotate and shift that picture? Also, if you use a local scale unit, it will be easier to

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-15 Thread Fabrice Couvreur
e > the same effect for the red color. > Thank you. > Fabrice > \startMPcode > def match (expr pos) = > fill unitsquare xscaled 4cm yscaled 0.2cm shifted pos withcolor > yellow; > fill origin -- (4cm,0) -- (4.1cm,-0.05cm) -- (0.1cm,-0.05cm) -- cycle > withcolor(.6

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-14 Thread Fabrice Couvreur
Hi, Hi, I have corrected for the dimensions of the ellipse but I cannot achieve the same effect for the red color. Thank you. Fabrice \startMPcode def match (expr pos) = fill unitsquare xscaled 4cm yscaled 0.2cm shifted pos withcolor yellow; fill origin -- (4cm,0) -- (4.1cm,-0.05cm

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-14 Thread Fabrice L
Hi, > Le 13 févr. 2020 à 16:45, Fabrice Couvreur a > écrit : > How to have the color defined by {yellow!60!black} with Metapost ? color MyColor ; MyColor := .6[yellow,black] ; See metafun manual, section 1.13. > Thank you. > Fabrice Fabri

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-14 Thread Fabrice Couvreur
-- ++(-4,0) -- ++(-0.1,0.05); \shade[ball color=red] (#1+4,#2+0.1) ellipse (0.25cm and 0.22cm); \draw (#1+4,#2+0.1) ellipse (0.25cm and 0.22cm); } \allumette{0.1}{0.2} \filldraw[orange,scale=0.5,shift={(8.2,1.2)}] (0,0) .. controls (-1.5,1.25) and (.5,2) .. (-.2,4) .. controls (1,2.5)

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-13 Thread Henri Menke
On 2/14/20 10:45 AM, Fabrice Couvreur wrote: > Hi, > How to have the color defined by {yellow!60!black} with Metapost ? \usemodule[tikz] \starttext \startMPcode fill fullsquare scaled 1cm withcolor (.6yellow + black) ; \stopMPcode \starttikzpicture \fill[yellow!60!black] (0,0) rectangl

[NTG-context] Metapost and TikZ color code equivalent

2020-02-13 Thread Fabrice Couvreur
Hi, How to have the color defined by {yellow!60!black} with Metapost ? Thank you. Fabrice ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http

Re: [NTG-context] Color Profiles in lmtx

2020-02-13 Thread Peter Rolf
Am 12.02.2020 um 17:15 schrieb Jan U. Hasecke: > Am 12.02.20 um 11:09 schrieb Peter Rolf: > >>> I get this in my logs >>> >>> backend > profiles > profile specification 'ISO Coated v2 300% >>> (ECI)' loaded from >>>

Re: [NTG-context] Color Profiles in lmtx

2020-02-13 Thread Jan U. Hasecke
Am 12.02.20 um 19:48 schrieb Pablo Rodriguez: > On 2/12/20 5:15 PM, Jan U. Hasecke wrote: >> [...] >> I just realized that the above output is the right output. > > Hi Jan Ulrich, > > you might check profiles that with VeraPDF (or simply \nopdfcompression > as first command in the source and

Re: [NTG-context] Color Profiles in lmtx

2020-02-12 Thread Pablo Rodriguez
On 2/12/20 5:15 PM, Jan U. Hasecke wrote: > [...] > I just realized that the above output is the right output. Hi Jan Ulrich, you might check profiles that with VeraPDF (or simply \nopdfcompression as first command in the source and search for the profile ), > Ok. But now I have another

Re: [NTG-context] Color Profiles in lmtx

2020-02-12 Thread Jan U. Hasecke
Am 12.02.20 um 11:09 schrieb Peter Rolf: >> I get this in my logs >> >> backend > profiles > profile specification 'ISO Coated v2 300% >> (ECI)' loaded from >> '/home/juh/context-linux-64/tex/texmf-context/colors/icc/context/colorprofiles.xml' I just realized that the above output is

Re: [NTG-context] Color Profiles in lmtx

2020-02-12 Thread Peter Rolf
Am 12.02.2020 um 09:41 schrieb juh: > Hi all, > > again I have a question concerning color profiles. > > I have this to load the ISO Coated v2 300% profile. > > \setupbackend[ >format=PDF/X-3:2003, >intent={ISO Coated v2 300\letterpercent\space (ECI)}, >]

[NTG-context] Color Profiles in lmtx

2020-02-12 Thread juh
Hi all, again I have a question concerning color profiles. I have this to load the ISO Coated v2 300% profile. \setupbackend[ format=PDF/X-3:2003, intent={ISO Coated v2 300\letterpercent\space (ECI)}, ] \setupcolors[cmyk=yes,rgb=no,] But is this profile part of the new lmtx version

Re: [NTG-context] line numbering within frame

2020-01-25 Thread Wolfgang Schuster
mmand no longer exists. In the following example I redefine the value for the color red in a group, when the group ends the new value is forgotten and the previous one is used. When you now create a new command or environment in the group and try to use it after its end you will get a error mes

Re: [NTG-context] line numbering within frame

2020-01-24 Thread Wolfgang Schuster
On Fri, 24 Jan 2020 18:57:50 +0100 Tomas Hala wrote: > > Hi Thomas, > > I compiled (TL2019) it with as well as without \setbreakpoints[compound] and > I got the same result -- in both case I see both colours. The output with LuaTeX is correct but when you use LuaMetaTeX t

Re: [NTG-context] line numbering within frame

2020-01-24 Thread Tomas Hala
ed testing and discovered what is certainly a bug. Here’s a new example: # # \setbreakpoints [compound] # # \definelinenumbering #[original] #[style=\tx\ss,distance=-1ex,step=5,location=inleft,start=10,color=darkred] # # \definelinenumbering #[translation] #[style=\tx\ss,distance=-1e

Re: [NTG-context] line numbering within frame

2020-01-24 Thread Thomas A. Schmitz
’s bonus question. But I have continued testing and discovered what is certainly a bug. Here’s a new example: \setbreakpoints [compound] \definelinenumbering [original] [style=\tx\ss,distance=-1ex,step=5,location=inleft,start=10,color=darkred] \definelinenumbering [translation] [sty

Re: [NTG-context] line numbering within frame

2020-01-23 Thread Tomas Hala
] #[style=\ss, # distance=-2ex, # step=2, # location=inleft, # start=20, # color=darkblue] #\startlinenumbering[One] #\input knuth #\stoplinenumbering # # \blank [line] # #\definelinenumbering[Two] #\setuplinenumbering[Two

[NTG-context] line numbering within frame

2020-01-23 Thread Thomas A. Schmitz
the problem: \starttext % This works: \definelinenumbering[One] \setuplinenumbering[One] [style=\ss, distance=-2ex, step=2, location=inleft, start=20, color=darkblue] \startlinenumbering[One] \input knuth \stoplinenumbering \blank [line

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

<    3   4   5   6   7   8   9   10   11   12   >