[NTG-context] How to pass \MPcolor{aColour} to a lua function

2025-07-25 Thread Keith McKay
r = blendColors("cyan","magenta", noise) -- Should give a blended color local mixedColor = blendColors(c5, c6, noise) -- Should give a blended color setbytemap(i, x, y, (mixedColor[1]), (mixedColor[2]), (mixedColor[3]) ) end end end \stopluacode \usecolors[crayola] \defi

[NTG-context] Re: Draw cutting line

2025-04-08 Thread Max Chernoff via ntg-context
or this: \setuppapersize[A5][A4,landscape] \setuppaper[nx=2, ny=1, offset=-1.5pt] \setuparranging[XY] \definepalet[layout][page=black] \showframe[page] \setupbackgrounds[page][topframe=off, bottomframe=off, rulethickness=2pt] \starttext \dorecurse{10}{\samp

Re: [NTG-context] Strange backgroundcolors with showgrid and luacode

2019-04-27 Thread Pablo Rodriguez
On 4/27/19 4:34 PM, Wolfgang Schuster wrote: >> [...] >> Is it intended that all nine lines are black? > > Yes, because there are no predefined palets with the names red, green or > blue. > > \definepalet >   [red] >   [ light=lightred, >    normal=middl

Re: [NTG-context] Strange backgroundcolors with showgrid and luacode

2019-04-27 Thread Wolfgang Schuster
=\textwidth]\par } } \stoptext Is it intended that all nine lines are black? Yes, because there are no predefined palets with the names red, green or blue. \definepalet   [red]   [ light=lightred,    normal=middlered, dark=darkred] Wolfgang

Re: [NTG-context] Strange backgroundcolors with showgrid and luacode

2019-04-27 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 27.04.2019 um 13:25: On 4/27/19 12:21 PM, Wolfgang Schuster wrote: Marcus Vinicius Mesquita schrieb am 27.04.2019 um 12:18: \definepalet[layout][grid=black] \setuppalet   [layout]   [grid=black] Many thanks, Marcus Vinicius and Wolfgang, for your replies. This

Re: [NTG-context] Strange backgroundcolors with showgrid and luacode

2019-04-27 Thread Pablo Rodriguez
On 4/27/19 12:21 PM, Wolfgang Schuster wrote: > Marcus Vinicius Mesquita schrieb am 27.04.2019 um 12:18: >> \definepalet[layout][grid=black] > \setuppalet >   [layout] >   [grid=black] Many thanks, Marcus Vinicius and Wolfgang, for your replies. This is the only way it works:

Re: [NTG-context] Strange backgroundcolors with showgrid and luacode

2019-04-27 Thread Wolfgang Schuster
Marcus Vinicius Mesquita schrieb am 27.04.2019 um 12:18: \definepalet[layout][grid=black] \setuppalet   [layout]   [grid=black] Wolfgang ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] Strange backgroundcolors with showgrid and luacode

2019-04-27 Thread Marcus Vinicius Mesquita
\definepalet[layout][grid=black] On Sat, Apr 27, 2019, 07:04 Pablo Rodriguez wrote: > On 4/26/19 2:28 PM, Wolfgang Schuster wrote: > > [...] > > \showgrid highlights different page elements with colors but you can > > change the output > > > > https://www.ma

Re: [NTG-context] Module simpleslides error

2013-09-14 Thread Aditya Mahajan
path=unitsquare, 74maxwidth=\textwidth, 75height=0.3cm, 76width=0.3cm] 77 78 \definepalet[visualcounter:squaremarkers] l.68 \definevisualcounter This was supposed to be in the testing branch of simpleslides. Please install the visualcounter module

[NTG-context] Module simpleslides error

2013-09-13 Thread Xan
%D We define our color scheme: 62 63 \definecolor [simpleslides:backgroundcolor][s=.95] 64 \definecolor [simpleslides:contrastcolor] [r=.7,g=.1,b=.3] 65 \definecolor [simpleslides:variantcolor] [s=.3] 66 \definecolor [simpleslides:itemize:co

Re: [NTG-context] PDF-Toc text is wrong for new \start… commands

2013-07-16 Thread Marco Patzer
. I recall this applied to \definepalet, \usepath and a few others. The issue occasionally pops up on the mailing list, since it's inconsistent and non-intuitive behaviour. http://www.ntg.nl/pipermail/ntg-context/2012/067585.html https://gist.github.com/phi-gamma/2941284#file-features-w

Re: [NTG-context] How to use module simpleslides' SideToc

2013-01-08 Thread Alan BRASLAU
> 89distance={(\the\dimexpr\visualcounterparameter{maxwidth})/m > + width}, > 90path=unitcircle, > 91maxwidth=\textwidth, > 92width=0.3cm] > 93 > 94 \definepalet[visualcounter:markers] > > I thought the above error was led by t-visualcounter,

Re: [NTG-context] Grid lines color and disable

2012-08-15 Thread Xan
: \showgrid[nonumber]{{\dorecurse{80}\page[empty]}} What command I have to run to disable grid in the next page? I use MKIV with minimals \starttext \definepalet [layout] [grid=darkred, page=darkgreen] \dorecurse{3}{\page[empty]} {\showgrid[nonumber]{{\dorecurse{3}{\page[empty] \dorecurse

Re: [NTG-context] Grid lines color and disable

2012-08-14 Thread Hans Hagen
]}} What command I have to run to disable grid in the next page? I use MKIV with minimals \starttext \definepalet [layout] [grid=darkred, page=darkgreen] \dorecurse{3}{\page[empty]} {\showgrid[nonumber]{{\dorecurse{3}{\page[empty] \dorecurse{3}{\page[empty]} \stoptext

Re: [NTG-context] Exceptions to assignment syntax [was: Re: labeltext assignment]

2012-06-18 Thread Hans Hagen
] \definepalet [colorful] [primary=green] \definepalet [bleak] [primary=darkgray,colorful] \starttext \setuppalet [colorful] \color[primary]{Ain’t I a colorful entity?} \setuppalet [bleak] \color[primary]{Ain’t I a colorful entity?} \stoptext i.e. a hidden feature of referencing

[NTG-context] Exceptions to assignment syntax [was: Re: labeltext assignment]

2012-06-11 Thread Philipp Gesang
foo=bar, %% <- comma not allowed here? > >>> % foo=bar %% <- works > >>> ] > >>> \starttext > >>> \labeltext{foo} > >>> \stoptext > >>> ··· > >>> > >>> Normally the trailin

Re: [NTG-context] labeltext assignment

2012-06-11 Thread Wolfgang Schuster
foo} >>> \stoptext >>> ··· >>> >>> Normally the trailing comma causes no trouble, but here it won’t >>> even compile. >

Re: [NTG-context] color conversion causes error with MPgraphic

2012-01-08 Thread Steffen Wolfrum
ors to gray. Not to >>> black. >>> [Log: "color : system gray is global activated"] >>> >>> >>> What is the key to set either "color is color" or "color is black" again? >>> >> i don&#

Re: [NTG-context] Stange error with \definepalet

2011-04-09 Thread Wolfgang Schuster
Am 10.04.2011 um 00:22 schrieb Aditya Mahajan: > Hi, > > \definepalet > [test] > [one=red, > two=blue, > ] > > \normalend > > gives > > ]\doprocesscommaitem ]\relax \global \advance \commalevel \minusone \ETC. > ! File ended while scan

[NTG-context] Stange error with \definepalet

2011-04-09 Thread Aditya Mahajan
Hi, \definepalet [test] [one=red, two=blue, ] \normalend gives ]\doprocesscommaitem ]\relax \global \advance \commalevel \minusone \ETC. ! File ended while scanning use of \dodododefinepalet. while \definepalet [test] [one=red, two=blue] \normalend compiles correctly

[NTG-context] \definepalet ignores transparency (mkiv)

2011-03-30 Thread Peter Rolf
Hi, the subject says it all. The question left is if this is a bug or a feature :-) Example: \starttext \definecolor[foo] [s=0,a=1,t=.5] \definepalet[bar] [foobar=foo] \blackrule[width=3cm,height=3cm,color=foo] % transparent black \blackrule[width=3cm,height=3cm,color=foobar] % pure black

[NTG-context] playing colors more

2011-03-01 Thread Hans van der Meer
Why is the second color in the palet not showing up? I foolowed the example in the manual (section 6 page 6). Strange: adding a third color in the palet (see comment) now shows the first two! Off by one error in a loop?Hans van der Meer\setuppapersize[A5][A5]\switchtobodyfont[20pt]\definepalet[dvb

[NTG-context] custom colors for verbatim in mkiv

2010-12-02 Thread Thomas A. Schmitz
, backgroundscreen=.9]}, after={\stopframedtext}] \definepalet[MYcolors] [prettyone=paleblue, prettytwo=palecyan, prettythree=palered, prettyfour=darkgreen] \definepalet[XMLcolorpretty][MYcolors] \starttext \startXML hello world \stopXML

[NTG-context] Dummy buff-ver.mkiv question

2010-11-13 Thread Renaud AUBIN
Hi folks, From http://wiki.contextgarden.net/Verbatim_text#Defining_your_own_set_of_colors and considering the following code snippet from buff-ver.mkiv \definepalet [colorpretty] [ prettyone=colorprettyone, prettytwo=colorprettytwo, prettythree=colorprettythree, prettyfour

Re: [NTG-context] MkIV gray, no MkII black ?

2010-03-01 Thread Hans Hagen
ng some color palettes then? this should work with both marks. \definepalet[coloredtext][...] \setuppalet[coloredtext] \startmode[black] \definepalet[blacktext] [red=black, blue=black,...] \setuppalet[blacktext] \stopmode as colorspace info travels indepently you can say \attribute\colorm

Re: [NTG-context] MkIV gray, no MkII black ?

2010-03-01 Thread Peter Rolf
wrong). how about defining some color palettes then? this should work with both marks. \definepalet[coloredtext][...] \setuppalet[coloredtext] \startmode[black] \definepalet[blacktext] [red=black, blue=black,...] \setuppalet[blacktext] \stopmode Best wishes, Peter > Steffen >

Re: [NTG-context] Pretty Printing Python code

2009-12-29 Thread luigi scarso
inecolor[colorprettytwo] [r=.0, g=.8, b=.0] % green \definecolor[colorprettythree][r=.0, g=.0, b=.9] % blue \definecolor[colorprettyfour] [s=0.60] % gray \definecolor[colorprettyfive] [orange] \definepalet[colorpretty] [prettyone=colorprettyone, prettytwo=colorprettyt

Re: [NTG-context] Why are pretty printer names uppercased?

2009-08-26 Thread Hans Hagen
fer to other lowercase things (filename, pretty printer name) are lowercase consistently. How's this? in order to get that working and remain compatible, we'd also need to redefine \definepalet [TEXcolorpretty] [colorpretty] \definepalet [TEXgraypretty] [graypretty] (ans use some

[NTG-context] Looks like a bug in \typefile[option=LANG]

2008-12-31 Thread Andrey Riabushenko
color palet with my own palet. \definepalet[corp-pretty][prettyone=corp-color-darkblue, prettytwo=corp-color-blue, prettythree=corp-color-lightblue, prettytwoone=corp-color-grey, prettyfour=corp-color-green, prettyfourone=corp-color-green, prettyfourtwo=corp-color-green, prettyfourthree=corp

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
[position][command][state] # \definemainfield \definemakeup[name][settings] \definemarking[name][name] # \definemeasure # \defineoutput[name][specials] \defineoverlay[names][command] # \definepagebreak \definepalet[name][name] \definepapersize[name][dimenstions] \defineparagraphs[name][op

Re: [NTG-context] Palet option in setuptyping not working

2007-01-11 Thread Taco Hoekwater
not used palets before, so I do not know if something has > broken or not. With your code, I do not get any colors. However, if I > change > > >>\setuptyping >> [TEX] >> [palet=MYcolorpretty] > > with > > \definepalet[TEXcolorpretty][MYcolorpretty] > &

Re: [NTG-context] Palet option in setuptyping not working

2007-01-11 Thread Aditya Mahajan
ith your code, I do not get any colors. However, if I change > \setuptyping > [TEX] > [palet=MYcolorpretty] with \definepalet[TEXcolorpretty][MYcolorpretty] it works. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

[NTG-context] Palet option in setuptyping not working

2007-01-10 Thread Berend de Boer
same problem as the version I used before (aug 2006). Sample file: - -- % interface=en \setupbodyfont [postscript,16pt] \setupcolors [state=start] \setupalign [hyphenated] \definepalet [MYcolorpretty] [prettyone=colorprettyone, pret

[NTG-context] palet option in typing not working

2007-01-03 Thread Berend de Boer
file: - -- % interface=en \setupbodyfont [postscript,16pt] \setupcolors [state=start] \setupalign [hyphenated] \definepalet [MYcolorpretty] [prettyone=colorprettyone, prettytwo=colorprettytwo, prettythree=colorprettythree, prettyfour=colorprettyfour] \setuptyping [TEX] [

Re: [NTG-context] Cow-font (was Context 2006.08.08 released}

2006-08-09 Thread Taco Hoekwater
,r=.6,g=.6,b=1] \definecolor [tdsky][t=.5,a=1,r=.1,g=.1,b=1] \definecolor [tlground] [t=.5,a=1,r=.3,g=.9,b=.3] \definecolor [tdground] [t=.5,a=1,r=0,g=.5,b=0] \definecolor [tcspots] [t=.5,a=1,r=.33,g=.1,b=0] \definepalet [cow] [normal=lground, contour=dground, sky=lsky] \d

Re: [NTG-context] pretty typesetting for matlab files

2006-03-16 Thread Aditya Mahajan
r ylabel zeros zlabel zoom \installprettytype [MATLAB] [MATLAB] \definetyping [MATLAB] [\c!option=MATLAB] \definepalet [MATLABcolorpretty][colorpretty] \definepalet [MATLABgraypretty] [graypretty] \protect \endinput ___ ntg-con

[NTG-context] pretty typesetting for matlab files

2006-03-14 Thread Aditya Mahajan
prettytype [MATLAB] [MATLAB] \definetyping [MATLAB] [\c!option=MATLAB] \definepalet [MATLABcolorpretty][colorpretty] \definepalet [MATLABgraypretty] [graypretty] \protect \endinput \setupcolors[state=start] \input verb-matlab \starttext \startMATLAB n = 150e5 ; p = 0.9 ; d = 300

Re: [NTG-context] How to customize the default verbatim colors

2005-08-25 Thread Taco Hoekwater
[MYcolorthree][r=.8,g=.5,b=.8] \definecolor[MYcolorfour] [r=.8,g=.2,b=.5] \definepalet[MYcolors] [ prettyone=MYcolorone, prettytwo=MYcolortwo, prettythree=MYcolorthree, prettyfour=MYcolorfour] \definepalet[XMLcolorpretty] [MYcolors] % the name is magic ! \setupcolors

Re: [NTG-context] OT: MP source docu

2003-09-19 Thread Jens-Uwe Morawski
inecolor [colorprettyfour] [r=1,b=1] > > this should come after the section with \module ... it does > >since this hasn't changed anything, i added > >%M \definepalet > >%M [MPcolorpretty] > >%M [ prettyone=colorprettyone, > >%Mprettytwo=colorprettytw

Re: [NTG-context] OT: MP source docu

2003-09-19 Thread Hans Hagen
ng, i added %M \definepalet %M [MPcolorpretty] %M [ prettyone=colorprettyone, %Mprettytwo=colorprettytwo, %Mprettythree=colorprettythree, %Mprettyfour=colorprettyfour] still results in the default gray palet. did you use --mode=color ? or add %M \setupcolors[state=start]

Re: [NTG-context] OT: MP source docu

2003-09-18 Thread Jens-Uwe Morawski
o] [g=1] %M \definecolor [colorprettythree] [b=1] %M \definecolor [colorprettyfour] [r=1,b=1] since this hasn't changed anything, i added %M \definepalet %M [MPcolorpretty] %M [ prettyone=colorprettyone, %Mprettytwo=colorprettytwo, %Mprettythree=colorprettythree, %Mprettyf