Re: [NTG-context] Strange behavior !

2018-07-16 Thread Otared Kavian
Frame, > width=\textwidth, > location=right] > > \defineoverlay >[MyFrame] >[\useMPgraphic{MyFrame}] > > \definelabel >[Définition] >[headstyle=\bf\smallcaps] > > > \startuseMPgraphic{MyFrame} > picture p ; > p := texte

Re: [NTG-context] Strange behavior !

2018-07-15 Thread Alan Braslau
ColorB][c=0.00, m=0.62, y=1.00, k=0.00] > \definecolor[MyColorA][.75(MyColorB,white)] > > \defineframedtext >[MyText] >[frame=off, > background=MyFrame, > width=\textwidth, > location=right] > > \defineoverlay >[MyFrame] >[\useMPgra

[NTG-context] Strange behavior !

2018-07-15 Thread Fabrice Couvreur
=\textwidth, location=right] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} picture p ; p := textext.rt(\MPstring{MyFrame}) ; p := p shifted (0,OverlayHeight-ypart center p

Re: [NTG-context] Shading and transparency

2018-07-12 Thread Marco Patzer
actor 1.5 > withshadecolors (.85white,white) >% withtransparency (multiplytransparent,.7) > withtransparency (normaltransparent,.7) > \stopuseMPgraphic > > \defineoverlay[test][\useMPgraphic{test}] > > \framed >[align=middle,background={fore

Re: [NTG-context] Shading and transparency

2018-07-12 Thread Hans Hagen
dedirection shadedup withshadefactor 1.5 withshadecolors (.85white,white) % withtransparency (multiplytransparent,.7) withtransparency (normaltransparent,.7) \stopuseMPgraphic \defineoverlay[test][\useMPgraphic{test}] \framed [align=middle,background={foreground,test}] {\samplefile{s

[NTG-context] Shading and transparency

2018-07-11 Thread Marco Patzer
;) doesn't work here withshadecolors (white, white) withtransparency (0, .7); \stopuseMPgraphic %% to illustrate the effect, actual background is white \setupbackgrounds [page] [background=color, backgroundcolor=lightgray] \defineoverlay [gradient-mp] [\useMPgraphic{trans}] %% requires external

Re: [NTG-context] Table generator : Issues with borders and rotated cells

2018-06-27 Thread Wolfgang Schuster
rlayBox withpen pensquare scaled \frameddimension{bottomrulethickness} withcolor \MPcolor{\framedparameter{bottomframecolor}} ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \installleftframerenderer {mp} {\useMPgraphic{mp_frame_left}} \installrightframerenderer

[NTG-context] \startplacetable in \startcolumnset

2018-04-19 Thread Jeong Dal
ure to OverlayBox enlarged 2.5mm; fi \stopuseMPgraphic \defineoverlay [verticalrule] [\useMPgraphic{verticalrule}] \definecolumnset [exam] [n=2, background=verticalrule] \starttext \startcolumnset[exam] \startcolumns[n=2, rule=on] \startitemize[n] \item Question 1. G

Re: [NTG-context] \basegrid ignores color

2018-03-22 Thread Henri Menke
color \edef\p_align{\directdummyparameter\c!align}% \ifx\p_align\v!middle \let\p_align\!!plusone \else \let\p_align\!!zerocount \fi \useMPgraphic {grid}% {nx=\directdummyparameter\c!nx,% ny=\directdummyparameter\c!ny,% dx=\directdummyparameter\c!dx\directdummypa

[NTG-context] tex error Argument of \titlecmd has an extra }

2018-03-06 Thread ????????
] % \defineoverlay[CruxOrnament][\useMPgraphic{crux}] \def\CruxFramed#1{\framed[frame=off,width=12cm,height=fit]{#1}} \startuseMPgraphic{crux} color ccc ; pair p, h[], v[] ; u := \overlaywidth ; v := \overlayheight ; hdelta := .15u ; vdelta := .03v ; drawoptions (withpen pensquare scaled 2

Re: [NTG-context] about makempy (metapost outlines)

2018-02-19 Thread Jeong Dal
number} graphictext \MPstring{string} scaled 10 withdrawcolor \MPcolor{red} withfillcolor \MPcolor{gray} withpen pencircle scaled 2pt ; \stopuseMPgraphic \def\TextCommand#1% {\setMPtext{string}{#1}% \framed [frame=off,offset=overlay,height=3cm,width=\hsize] {\useMPgraphic{text}}}

Re: [NTG-context] Presentation sections identified by color and mark

2018-02-04 Thread Hans Hagen
age] [background=color, backgroundcolor=MyBackgroundColor] Thanks. ---8< - Start example \usemodule[present-original] \usemodule[present-common] \definecolor [PageColor]   [black] \definecolor [BackgroundColor] [s=.85] \definecolor [OrnamentColor]   [r=.75] \definecolor [Po

[NTG-context] Presentation sections identified by color and mark

2018-02-03 Thread jmmora
or [PageColor] [black] \definecolor [BackgroundColor] [s=.85] \definecolor [OrnamentColor] [r=.75] \definecolor [PositionColor] [s=.55] \defineoverlay [PageShape][\useMPgraphic{PageShape}] \startuseMPgraphic{PageShape} StartPage ; path p ; pair pa, pb ; numeric len ; color contrastc

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Hans Hagen
rawoptions (withpen pencircle scaled 1pt withcolor .625red) ; b := a superellipsed .95 ; draw b ; b := (boundingbox p) superellipsed .95 ; fill b withcolor .85white ; draw b ; draw p withcolor black ; setbounds currentpicture to a ; \stopuseMPgraphic \defineoverlay[MyFrame][\u

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Jeong Dal
ndingbox p) superellipsed .95 ; fill b withcolor .85white ; draw b ; draw p withcolor black ; setbounds currentpicture to a ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext [FunnyText] [frame=off, background=FunnyFrame, before={\blank[lin

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Hans Hagen
le scaled 1pt withcolor .625red) ; b := a superellipsed .95 ; draw b ; b := (boundingbox p) superellipsed .95 ; fill b withcolor .85white ; draw b ; draw p withcolor black ; setbounds currentpicture to a ; \stopuseMPgraphic \defineoverlay[MyFrame][\useMPgraphic{MyFrame}] \

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Hans Hagen
b := a superellipsed .95 ; draw b ; b := (boundingbox p) superellipsed .95 ; fill b withcolor .85white ; draw b ; draw p withcolor black ; setbounds currentpicture to a ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext [F

[NTG-context] referencing the customized enumeration with framed title

2018-01-11 Thread Jeong Dal
; draw p withcolor black ; setbounds currentpicture to a ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext [FunnyText] [frame=off, background=FunnyFrame, before={\blank[line,halfline]}, %before={\blank[line]}, after={\

Re: [NTG-context] framed with titles

2017-12-02 Thread Pablo Rodriguez
; >     p := p shifted (2o,OverlayHeight-ypart center p) ; >     drawoptions (withpen pencircle scaled 1pt withcolor .625red) ; >     b := a superellipsed .95 ; >     draw b ; >     b := (boundingbox p) superellipsed .95 ; >     fill b withcolor .85white ; >     draw b ; >     dr

Re: [NTG-context] framed with titles

2017-12-02 Thread Jeong Dal
eMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext [FunnyText] [frame=off, background=FunnyFrame, before={\blank[line,halfline]}, after={\blank[line]}, offset=\bodyfontsize, width=\textwidth] \defineenumeration[Theorem] [title=no, text=Theorem,

Re: [NTG-context] framed with titles

2017-11-14 Thread Jeong Dal
ipsed .95 ; fill b withcolor .85white ; %.425green;%. draw b ; draw p withcolor black ; setbounds currentpicture to a ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[FunnyText][frame=off,background=FunnyFrame, offset=\bodyfontsize, width=\

Re: [NTG-context] framed with titles

2017-11-13 Thread Jeong Dal
.625red) ; b := a superellipsed .95 ; %fill b withcolor .85white ; draw b ; b := (boundingbox p) superellipsed .95 ; fill b withcolor .85white ; %.425green;%. draw b ; draw p withcolor black ; setbounds currentpicture to a ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame

Re: [NTG-context] framed with titles

2017-11-05 Thread Jean-Pierre Delange
caled 1pt withcolor darkred; draw p; setbounds currentpicture to boundingbox currentpicture enlarged 2mm; \stopuseMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] % Fin de la définition d'un texte encadré en rouge \starttext \startMyFrame[Title=Knuth Text] \knuth \stopMyFrame \stopt

Re: [NTG-context] framed with titles

2017-11-05 Thread Jean-Pierre Delange
b withcolor darkred; draw bottomboundary OverlayBox withpen pencircle scaled 1pt withcolor darkred; draw topboundary OverlayBox withpen pencircle scaled 1pt withcolor darkred; draw p; setbounds currentpicture to boundingbox currentpicture enlarged 2mm; \stopuseMPgraphic \defineoverlay [MyFram

[NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
eMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \defineframedtext [MyFrame] [frame=off, foregroundstyle={\switchtobodyfont[10pt]}, background=MyFrame, align={verytolerant}, height=fit] \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}]

[NTG-context] Problem with placing a float and a tab

2017-08-22 Thread Fabrice Couvreur
[MyFrame] [\useMPgraphic{MyFrame}] \defineframedtext [MyFrame] [frame=off, foregroundstyle={\switchtobodyfont[8pt]}, background=MyFrame, align={verytolerant}, height=fit] \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}] \showframe \starttext \p

Re: [NTG-context] About formatting the "Fonts out of ConTEXT" manual

2017-08-16 Thread Fabrice Couvreur
linecap := squared ; > > drawoptions(withcolor \MPcolor{darkred}) ; > > draw ulcorner p -- urcorner p ; > > setbounds currentpicture to p ; > > \stopuniqueMPgraphic > > > > \defineoverlay[titled][\uniqueMPgraphic{titled}] > > > > \startuseMPgrap

Re: [NTG-context] About formatting the "Fonts out of ConTEXT" manual

2017-08-15 Thread Henri
][\uniqueMPgraphic{titled}] > > \startuseMPgraphic{triangledone} > fill lltriangle scaled 4cm withcolor darkred; > \stopuseMPgraphic > > \defineoverlay[triangledone][\useMPgraphic{triangledone}] > > \def\Triangledone#1% >   {\framed >   [background=triangledone,

Re: [NTG-context] About formatting the "Fonts out of ConTEXT" manual

2017-08-15 Thread Henri
][\uniqueMPgraphic{titled}] > > \startuseMPgraphic{triangledone} > fill lltriangle scaled 4cm withcolor darkred; > \stopuseMPgraphic > > \defineoverlay[triangledone][\useMPgraphic{triangledone}] > > \def\Triangledone#1% >   {\framed >   [background=triangledone,

[NTG-context] About formatting the "Fonts out of ConTEXT" manual

2017-08-15 Thread Fabrice Couvreur
; \stopuseMPgraphic \defineoverlay[triangledone][\useMPgraphic{triangledone}] \def\Triangledone#1% {\framed [background=triangledone,frame=off,offset=overlay] {\tfb\color[white]{\bf#1}}} \startuseMPgraphic{triangledtwo} fill lrtriangle scaled 4cm withcolor darkred; \stopuseMPgraphic

[NTG-context] floatcombination boundingbox

2017-06-28 Thread Mikael P. Sundqvist
={nonumber}] \startfloatcombination[nx=2,ny=1] \startplacefigure \useMPgraphic{figa} \stopplacefigure \startplacefigure \useMPgraphic{figa} \stopplacefigure \stopfloatcombination \stopplacefigure \startuseMPgraphic{figb} draw (1cm,1cm) -- origin -- (1cm,-1cm); setbounds currentpicture to ((0,-1cm)--(1cm

Re: [NTG-context] MP & text transparency

2017-04-24 Thread Procházka Lukáš Ing .
rc := fullsquare xyscaled (50mm, 50mm); color col; col := (1.,.1,.1); drawoptions(withcolor \MPcolor{tred}) ; draw rc withpen pencircle scaled (2.5mm) ; label(textext("\setupbodyfont[sans,35mm] \color[tred]{Test}"), (80mm, 50mm)) ; \stopuseMPgraphic \defineoverlay[T][\useMPgrap

Re: [NTG-context] MP & text transparency

2017-04-24 Thread Thomas A. Schmitz
; label(textext("\setupbodyfont[sans,35mm] \color[tred]{Test}"), (80mm, 50mm)) ; \stopuseMPgraphic \defineoverlay[T][\useMPgraphic{T}] \setupbackgrounds[page][background={foreground,T}] \startTEXpage[width=200mm,height=200mm] \stopTEXpage See ch. 8.2 of the metafun

[NTG-context] MP & text transparency

2017-04-24 Thread Procházka Lukáš Ing .
); draw thelabel(btex\setupbodyfont[sans,35mm] Test etex, (80mm, 50mm)) withcolor %col transparent(1, .4, col) ; \stopuseMPgraphic \defineoverlay[T][\useMPgraphic{T}] \setupbackgrounds[page][background={foreground,T}] \startTEXpage[width=200mm,height=200mm] \stopTEXpage

Re: [NTG-context] A better \definesymbol sought

2017-01-25 Thread Hans Hagen
] [background=color,backgroundcolor=yellow] \startuseMPgraphic{CircleTest} path p,q ; p := fullcircle scaled 2cm ; q := fullcircle scaled 1cm ; fill p -- reverse q -- cycle withcolor blue; \stopuseMPgraphic \starttext \useMPgraphic{CircleTest

Re: [NTG-context] A better \definesymbol sought

2017-01-24 Thread Rik Kabel
=yellow] \startuseMPgraphic{CircleTest} path p,q ; p := fullcircle scaled 2cm ; q := fullcircle scaled 1cm ; fill p -- reverse q -- cycle withcolor blue; \stopuseMPgraphic \starttext \useMPgraphic{CircleTest} \stoptext where the background color (yellow

Re: [NTG-context] A better \definesymbol sought

2017-01-24 Thread Hans Hagen
) scaled 10 ; q := q shifted - (xpart center q, 12pt) ; draw h withcolor blue ; draw q ; draw q shifted (72pt,0) ; \stopuseMPgraphic \starttext \useMPgraphic{HeartTest 1} \useMPgraphic{HeartTest 2} \stoptext Unfortunately, the result is not what I want. The result is

Re: [NTG-context] A better \definesymbol sought

2017-01-23 Thread Rik
xpart center q, 12pt) ; draw h withcolor blue ; draw q ; draw q shifted (72pt,0) ; \stopuseMPgraphic \starttext \useMPgraphic{HeartTest 1} \useMPgraphic{HeartTest 2} \stoptext Unfortunately, the result is not what I want. The result is th

Re: [NTG-context] A better \definesymbol sought

2017-01-22 Thread Rik Kabel
% this doesn't do it \stopuseMPgraphic \starttext \useMPgraphic{HeartTest} \stoptext -- Rik ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : nt

Re: [NTG-context] Vertical space around displayed formulas

2017-01-18 Thread Otared Kavian
agenumbering[location=] > \setupfooter[style=small, color=colortwo] > \setupfootertexts[][\userpagenumber/\lastuserpage] > > % Lists > \startuseMPgraphic{itemize:main} > save p; path p; > p := fullcircle scaled 1.5ExHeight; > fill p withcolor \MPcolor{colorfive}; > \stopu

[NTG-context] Vertical space around displayed formulas

2017-01-18 Thread Nicola
definesymbol[itemize:main][\useMPgraphic{itemize:main}] \definesymbol[itemize:nested][\useMPgraphic{itemize:nested}] \setupitemize[1][symbol=itemize:main] \setupitemize[2][symbol=itemize:nested, width=1.5ex] \setupitemize[2][nowhite] \setupitemize[ headstyle=\ssa, headcolor=colorfive,

[NTG-context] columnsetspan extra line

2016-12-29 Thread Mikael P. Sundqvist
darkred; setbounds currentpicture to unitsquare xyscaled (OverlayWidth,OverlayHeight); \stopuseMPgraphic } \defineoverlay[chapnum][\useMPgraphic{chapnum}] \define[1]\mychaptext{% \startcolumnsetspan[intro] \startframedtext[align={middle,lohi},background=chapnum,frame=on,framecolor=darkyellow

Re: [NTG-context] Framedtext in a float

2016-11-01 Thread Fabrice Couvreur
raphic{MyFrame} > >> > path b; > >> > picture p; > >> > p := textext.rt("\tfx\white\framedtextparameter{Title}"); > >> > p := p shifted (2BodyFontSize,OverlayHeight-ypart center > >> > p+.25ExHeight); > >> >

Re: [NTG-context] Framedtext in a float

2016-11-01 Thread Piotr Kopszak
\tfx\white\framedtextparameter{Title}"); >> > p := p shifted (2BodyFontSize,OverlayHeight-ypart center >> > p+.25ExHeight); >> > b := boundingbox p enlarged .3EmWidth ; >> > fill OverlayBox withcolor \MPcolor{MyColorA}; >> > fill b withcolor \MPcol

Re: [NTG-context] Framedtext in a float

2016-11-01 Thread Fabrice Couvreur
oundingbox p enlarged .3EmWidth ; > > fill OverlayBox withcolor \MPcolor{MyColorA}; > > fill b withcolor \MPcolor{MyColorB} ; > > draw p ; > > setbounds currentpicture to boundingbox currentpicture enlarged 2mm ; > > \stopuseMPgraphic > > > > \defineoverl

Re: [NTG-context] Framedtext in a float

2016-11-01 Thread Piotr Kopszak
e,OverlayHeight-ypart center p+.25ExHeight); > b := boundingbox p enlarged .3EmWidth ; > fill OverlayBox withcolor \MPcolor{MyColorA}; > fill b withcolor \MPcolor{MyColorB} ; > draw p ; > setbounds currentpicture to boundingbox currentpicture enlarged 2mm ; > \stopuseMPgraphic

[NTG-context] Framedtext in a float

2016-10-31 Thread Fabrice Couvreur
t center p+.25ExHeight); b := boundingbox p enlarged .3EmWidth ; fill OverlayBox withcolor \MPcolor{MyColorA}; fill b withcolor \MPcolor{MyColorB} ; draw p ; setbounds currentpicture to boundingbox currentpicture enlarged 2mm ; \stopuseMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}]

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-29 Thread Tobias Berndt
y=0.20, k=0.00] > > > \defineframedtext > [MyDefinition] > [before={\blank[line,halfline]}, > after={\blank}, >frame=off, >background=MyFrame, >width=\textwidth, >height=fit, >location=left, >style=italic] > > \defineoverlay &

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-29 Thread Fabrice Couvreur
I make a C-c C-c, all I get is the text in italics, the macro is not >>> compiled. >>> Thanks, >>> Fabrice >>> >>> % macros=mkvi >>> >>> \setupcolors[state=start] >>> \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] >&

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-28 Thread Michael Eidenbenz
t; % macros=mkvi > > \setupcolors[state=start] > \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] > \definecolor[MyColorA][c=0.00, m=0.10, y=0.20, k=0.00] > > > \defineframedtext > [MyDefinition] > [before={\blank[line,halfline]}, >after={\blank},

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-28 Thread Mica Semrick
is the text in italics, the macro is >not >>> compiled. >>> Thanks, >>> Fabrice >>> >>> % macros=mkvi >>> >>> \setupcolors[state=start] >>> \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] >>> \definecolor[MyColorA][c=0.00,

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-28 Thread Fabrice Couvreur
color[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] >> \definecolor[MyColorA][c=0.00, m=0.10, y=0.20, k=0.00] >> >> >> \defineframedtext >> [MyDefinition] >> [before={\blank[line,halfline]}, >>after={\blank}, >>frame=off, >&g

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-28 Thread Mica Semrick
efore={\blank[line,halfline]}, > after={\blank}, > frame=off, > background=MyFrame, > width=\textwidth, > height=fit, > location=left, > style=italic] > >\defineoverlay > [MyFrame] > [\useMPgraphic{MyFrame}] > >\definelabel > [Définition] &

[NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-28 Thread Fabrice Couvreur
=\textwidth, height=fit, location=left, style=italic] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b ; picture p ; p := textext.rt("\white\Définition") ; p :=

Re: [NTG-context] Question about \startcombination \stopcombination

2016-08-18 Thread Hans Hagen
ntpicture enlarged 2mm ; \stopuseMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \starttext \startlinecorrection[blank] \startmidaligned \startcombination[2*2] {\startMyFr

Re: [NTG-context] Question about \startcombination \stopcombination

2016-08-18 Thread Mohammad Hossein Bateni
shifted (2BodyFontSize,OverlayHeight-ypart center >>> p+.25ExHeight); >>> b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ; >>> fill OverlayBox withcolor \MPcolor{MyColorA}; >>> fill b withcolor darkred ; >>> draw p; >>> se

Re: [NTG-context] Question about \startcombination \stopcombination

2016-08-18 Thread Fabrice Couvreur
itle}"); >> p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight); >> b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ; >> fill OverlayBox withcolor \MPcolor{MyColorA}; >> fill b withcolor darkred ; >> draw p; >> setbounds

Re: [NTG-context] Question about \startcombination \stopcombination

2016-08-18 Thread Hans Hagen
eMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \starttext \startlinecorrection[blank] \startmidaligned \startcombination[2*2] {\startMyFrame[Title=ALGO A] One \stopMyFrame}{} {\startMyFrame[Title=ALGO B] Two \stopMyFrame}{} {\startMyFrame[Title=ALGO C] Three \stopMyFrame}{} {\st

[NTG-context] Question about \startcombination \stopcombination

2016-08-18 Thread Fabrice Couvreur
t center p+.25ExHeight); b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ; fill OverlayBox withcolor \MPcolor{MyColorA}; fill b withcolor darkred ; draw p; setbounds currentpicture to boundingbox currentpicture enlarged 2mm ; \stopuseMPgraphic \defineoverlay [MyFrame] [\useMPgraph

Re: [NTG-context] space before/after colored framed text

2016-08-17 Thread Jean-Pierre Delange
layBox withpen pencircle scaled 1pt withcolor darkred; draw topboundary OverlayBox withpen pencircle scaled 1pt withcolor darkred; draw p; setbounds currentpicture to boundingbox currentpicture enlarged 2mm; \stopuseMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] % Fin de la définitio

Re: [NTG-context] space before/after colored framed text

2016-08-17 Thread Pablo Rodriguez
to boundingbox currentpicture enlarged 2mm; \stopuseMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] % Fin de la définition d'un texte encadré en rouge \starttext \dorecurse{4}{ \input ward \startMyFrame[Title=Avertissement] La plupart des termes et des expressions qui doivent attirer l'

Re: [NTG-context] space before/after colored framed text

2016-08-17 Thread Jean-Pierre Delange
or darkred; draw topboundary OverlayBox withpen pencircle scaled 1pt withcolor darkred; draw p; setbounds currentpicture to boundingbox currentpicture enlarged 2mm; \stopuseMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] % Fin de la définition d'un texte encadré en rouge \startte

[NTG-context] space before/after colored framed text

2016-08-17 Thread Jean-Pierre Delange
ox currentpicture enlarged 2mm; \stopuseMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] % end framed text settings ___ If your question is of interest to others as well, please add an entry to the Wiki! mailli

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-28 Thread Jeong Dal
phic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \starttext \showframe \startMyFrame[Title=Hans] \input knuth \stopMyFrame \startMyFrame[Title=Hagen] \input knuth \stopMyFrame \stoptext ….. tex error > tex error on line 52 in file /Users/graph/Documents/TeXfiles/test.tex: ! U

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Fabrice Couvreur
> fill b withcolor darkred; > draw bottomboundary OverlayBox withpen pencircle scaled 1pt withcolor > darkred; > draw topboundary OverlayBox withpen pencircle scaled 1pt withcolor > darkred; > draw p; > setbounds currentpicture to boundingbox currentpicture enlarged 2mm; >

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Wolfgang Schuster
kred; draw p; setbounds currentpicture to boundingbox currentpicture enlarged 2mm; \stopuseMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \starttext \startMyFrame \input knuth \stopMyFrame \startMyFrame \input knuth \stopMyFrame \startMyFrame[Title=Hans] \input knuth \stopMy

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Fabrice Couvreur
entpicture to boundingbox currentpicture enlarged 2mm; \stopuseMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \starttext \startMyFrame \input knuth \stopMyFrame \startMyFrame \input knuth \stopMyFrame 2016-07-26 16:15 GMT+02:00 Hans Hagen <pra...@wxs.nl>: > On 7/26/20

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Hans Hagen
picture enlarged 2mm; \stopuseMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \starttext \startSomeText{SomeText1} \input knuth \stopSomeText \startSomeText{SomeText2} \input knuth \stopSomeText \stoptext Thanks Fabrice 2016-07-26 12:34 GMT+02:00 Hans Hagen <pra...@wxs.nl <mailto:pra

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Fabrice Couvreur
mboundary OverlayBox withpen pencircle scaled 1pt withcolor darkred; draw topboundary OverlayBox withpen pencircle scaled 1pt withcolor darkred; draw p; setbounds currentpicture to boundingbox currentpicture enlarged 2mm; \stopuseMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{M

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Fabrice Couvreur
ingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth; >> fill OverlayBox withcolor \MPcolor{lightgray}; >> fill b withcolor darkred; >> draw bottomboundary OverlayBox withpen pencircle scaled 1pt withcolor >> darkred; >> draw topboundary Overl

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Hans Hagen
r darkred; draw p; setbounds currentpicture to boundingbox currentpicture enlarged 2mm; \stopuseMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \starttext \showframe \startMyDefinition \input knut

[NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-26 Thread Fabrice Couvreur
OverlayBox withpen pencircle scaled 1pt withcolor darkred; draw p; setbounds currentpicture to boundingbox currentpicture enlarged 2mm; \stopuseMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \starttext \showframe \startMyDefinition \input knuth \stopMyDefinition

Re: [NTG-context] Place a text over an arrow (Metafun)

2016-07-25 Thread Fabrice Couvreur
Formula > > # > \startuseMPgraphic{MyArrow} > path p ; > p:=(0,0){right}..(0.5cm,-0.6cm)..(0,-1.2cm){left} ; > drawarrow p withpen pencircle scaled 1.5bp withcolor 0.625white ; > \stopuseMPgraphic > > \starttext &g

Re: [NTG-context] Place a text over an arrow (Metafun)

2016-07-25 Thread Otared Kavian
useMPgraphic > > \starttext > > \showgrid > > \math{A\times X=B} > > \hfill On multiplie, à gauche, les deux membres de l'égalité par > \math{A^{-1}}. > > \hskip 5cm \relax \dontleavehmode\useMPgraphic{MyArrow} > > \math{A^{-1}\times A\times X=A^{-1}\

Re: [NTG-context] Place a text over an arrow (Metafun)

2016-07-25 Thread Hans Hagen
\relax \dontleavehmode\useMPgraphic{MyArrow} \math{A^{-1}\times A\times X=A^{-1}\times B} \hfill On utilise l'égalité \math{A^{-1}\times A=I}. \hskip 5cm \relax \dontleavehmode \useMPgraphic{MyArrow} \math{I\times X=A^{-1}\times B} \hfill On utilise l'égalité \math{X\times I=I\times X=X}. \hskip

[NTG-context] Place a text over an arrow (Metafun)

2016-07-25 Thread Fabrice Couvreur
,-0.6cm)..(0,-1.2cm){left} ; drawarrow p withpen pencircle scaled 1.5bp withcolor 0.625white ; \stopuseMPgraphic \starttext \showgrid \math{A\times X=B} \hfill On multiplie, à gauche, les deux membres de l'égalité par \math{A^{-1}}. \hskip 5cm \relax \dontleavehmode\useMPgraphic{MyArrow} \math

[NTG-context] Colors not showing inside metapost after \showcolor

2016-07-23 Thread Bou Salim
olor{myred}; \stopuseMPgraphic \midaligned{\useMPgraphic{test}} \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.

Re: [NTG-context] Remove files that are not needed (Metafun)

2016-07-12 Thread Fabrice Couvreur
r}" >> scaled 5pt >> withfillcolor \MPcolor{lightgray} >> withpen pencircle scaled 1pt ; ) ; >> draw r ; >> \stopusableMPgraphic >> >> \def\processMPheadnumber#1% >> {\useMPgraphic{NumberHead}} >> &g

Re: [NTG-context] Remove files that are not needed (Metafun)

2016-07-12 Thread Hans Hagen
quot; scaled 5pt withfillcolor \MPcolor{lightgray} withpen pencircle scaled 1pt ; ) ; draw r ; \stopusableMPgraphic \def\processMPheadnumber#1% {\useMPgraphic{NumberHead}} \setuphead [chapter] [command=\HeadTitle, headstyle=\ss, numbercommand=

Re: [NTG-context] Remove files that are not needed (Metafun)

2016-07-12 Thread Fabrice Couvreur
apter}" scaled 5pt withfillcolor \MPcolor{lightgray} withpen pencircle scaled 1pt ; ) ; draw r ; \stopusableMPgraphic \def\processMPheadnumber#1% {\useMPgraphic{NumberHead}} \setuphead [chapter] [command=\HeadTitle, headstyle=\ss, num

Re: [NTG-context] \currentheadnumber does not work

2016-07-11 Thread Fabrice Couvreur
mbering[location=footer] >> >> \startusableMPgraphic{NumberHead} >> picture r ; >> r := image ( graphictext >> \MPstring{chapter} >> scaled 4pt >> withfillcolor \MPcolor{lightgray} >> withpen pencircle scal

Re: [NTG-context] \currentheadnumber does not work

2016-07-10 Thread Fabrice Couvreur
ad} > picture r ; > r := image ( graphictext > \MPstring{chapter} > scaled 4pt > withfillcolor \MPcolor{lightgray} > withpen pencircle scaled 1pt ; ) ; > draw r ; > \stopusableMPgraphic > > \defineoverlay[NumberHead

Re: [NTG-context] \currentheadnumber does not work

2016-07-09 Thread Wolfgang Schuster
raphic{NumberHead}] \def\processMPheadnumber#1% {\setMPtext{chapter}{\bf#1} \useMPgraphic{NumberHead}} \setuphead [chapter] [command=\HeadTitle, headstyle=\ss, numbercommand=\processMPheadnumber{\currentheadnumber}] The following works here. \startusableMPgraphic{NumberHead} p

Re: [NTG-context] \currentheadnumber does not work

2016-07-09 Thread Fabrice Couvreur
\defineoverlay[NumberHead][\uniqueMPgraphic{NumberHead}] \def\processMPheadnumber#1% {\setMPtext{chapter}{\bf#1} \useMPgraphic{NumberHead}} \unexpanded\def\HeadTitle#1#2% {\framed [frame=off, bottomframe=on, width=broad, align={broad,nothyphenated,left}] {#1\blank

Re: [NTG-context] Baseline and framed

2016-07-06 Thread Fabrice Couvreur
aw r ; > \stopusableMPgraphic > > \unexpanded\def\processMPheadnumber#1% > {\setMPtext{chapter}{\bf#1} >\useMPgraphic{chapter}} > > \setuphead >[chapter] >[command=\HeadTitle, > numbercommand=\processMPheadnumber{\currentheadnumber}] > > \star

Re: [NTG-context] Baseline and framed

2016-07-06 Thread Fabrice Couvreur
% {\setMPtext{chapter}{\bf#1} \useMPgraphic{chapter}} \setuphead [chapter] [command=\HeadTitle, numbercommand=\processMPheadnumber{\currentheadnumber}] \starttext \startchapter [title={Séries statistiques à deux variables}] \stopchapter \startchapter [title={Matrice

Re: [NTG-context] Partial \framed

2016-06-06 Thread Thomas Fehige
(-EmWidth,OverlayHeight) ; z[1] = (0,OverlayHeight) ; z[2] = (0,0) ; z[3] = (-EmWidth,0) ; draw z[0]--z[1]--z[2]--z[3] withcolor \MPcolor{\overlaylinecolor} ; \stopuseMPgraphic \installleftframerenderer {bracket}{\useMPgraphic {leftbracket}} \installrightframerenderer{bracket}{\us

Re: [NTG-context] Partial \framed

2016-06-06 Thread Wolfgang Schuster
= (0,0) ; z[3] = (-EmWidth,0) ; draw z[0]--z[1]--z[2]--z[3] withcolor \MPcolor{\overlaylinecolor} ; \stopuseMPgraphic \installleftframerenderer {bracket}{\useMPgraphic {leftbracket}} \installrightframerenderer{bracket}{\useMPgraphic{rightbracket}} \defineframed [bracketframed] [fra

Re: [NTG-context] Thick border of one side of TR/TD

2016-05-22 Thread Lukáš Procházka
Hello, thanks for the answers. So my solution now is: \startuseMPgraphic{MP:ThickBtm} draw bottomboundary OverlayBox withpen pensquare scaled 1mm withcolor black; clip currentpicture to OverlayBox; \stopuseMPgraphic \installbottomframerenderer{Thick}{\useMPgraphic{MP:ThickBtm

Re: [NTG-context] Alignment/line break in a TABLE cell

2016-05-19 Thread Mari Voipio
\definesymbol[box3mm][{\useMPgraphic{box3mm_filled}}] \starttext \dontleavehmode\symbol[box3mm] 1 \stoptext Thank you for your speedy replies! Mari On Thu, May 19, 2016 at 2:08 PM, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: > Mari Voipio > 19. Mai 2016 um 12:45 > On Thu, Ma

Re: [NTG-context] Alignment/line break in a TABLE cell

2016-05-19 Thread Wolfgang Schuster
ehmode\symbol[square] 1 \stoptext 3. Use metapost to create your own box. \startuseMPgraphic{box3mm} draw unitsquare scaled 3mm ; \stopuseMPgraphic \definesymbol[box3mm][{\useMPgraphic{box3mm}}] \starttext \dontleavehmode\symbol[box3mm] 1 \stoptext Wo

Re: [NTG-context] useMPgraphic scaling

2016-04-26 Thread Wolfgang Schuster
Meer, Hans van der 26. April 2016 um 08:50 Sure, is needed. Checked it again. I define \scalesetting as \edef\scalesetting{scale=\xmlattdef{#1}{scale}{1000}} But I am not sure why this needs the expansion.. The enclosing

Re: [NTG-context] useMPgraphic scaling

2016-04-26 Thread Meer, Hans van der
\expanded{\useMPgraphic{\xmlatt{#1}{name}}{\xmlatt{#1}{parameters% And of course had to be: \expanded{\scale[\scalesetting]{% \useMPgraphic{\xmlatt{#1}{name}}{\xmlatt{#1}{parameters% is the \expanded really needed? Sure, is needed. Checked it again. I define \scalesetting as \edef\scales

Re: [NTG-context] useMPgraphic scaling

2016-04-25 Thread Hans Hagen
On 4/25/2016 3:46 PM, Meer, Hans van der wrote: Thanks, Your reply popped up here exactly the moment I saw the light! Must be something Messed up the order things: Was: \scale[\scalesetting]{% \expanded{\useMPgraphic{\xmlatt{#1}{name}}{\xmlatt{#1}{parameters% And of course had

Re: [NTG-context] useMPgraphic scaling

2016-04-25 Thread Meer, Hans van der
Thanks, Your reply popped up here exactly the moment I saw the light! Must be something Messed up the order things: Was: \scale[\scalesetting]{% \expanded{\useMPgraphic{\xmlatt{#1}{name}}{\xmlatt{#1}{parameters% And of course had to be: \expanded{\scale[\scalesetting

Re: [NTG-context] useMPgraphic scaling

2016-04-25 Thread Hans Hagen
On 4/25/2016 1:11 PM, Meer, Hans van der wrote: With images one can scale them on placement, for example \externalfigure[][scale=250,height=..] etc. Is such a scaling or separate height,width setting also possible with the placement of useMPgraphic? Or needs all scaling of thesebe done within

[NTG-context] useMPgraphic scaling

2016-04-25 Thread Meer, Hans van der
With images one can scale them on placement, for example \externalfigure[][scale=250,height=..] etc. Is such a scaling or separate height,width setting also possible with the placement of useMPgraphic? Or needs all scaling of thesebe done within the metapost/metafun code? Hans van der Meer

Re: [NTG-context] \startuseMPgraphic

2016-04-11 Thread Alan BRASLAU
> fill fullcircle scaled \MPvariable{diameter} withcolor > \MPvariable{color} ; \stopuseMPgraphic > > \startTEXpage > \useMPgraphic{mycircle}{diameter=3cm,color=red} > \stopTEXpage > %% end example > > The second argument of the \startuseMPgraphic command initializes > the varia

Re: [NTG-context] \startuseMPgraphic

2016-04-11 Thread Meer, Hans van der
unitsquare scaled 1cm >>withcolor \MPcolor{color}; > > This is looking for a color named 'color'. You need \MPcolor{\MPvar{color}}. > > >> \stopuseMPgraphic >> \startuseMPgraphic{example2}{color} >> pickup pencircle scaled 1mm; >> draw unitsquare scaled

Re: [NTG-context] \startuseMPgraphic

2016-04-11 Thread Aditya Mahajan
\MPvar{color}}. \stopuseMPgraphic \startuseMPgraphic{example2}{color} pickup pencircle scaled 1mm; draw unitsquare scaled 1cm withcolor \MPvar{color}; \stopuseMPgraphic \useMPgraphic{example1}{color=red} \useMPgraphic{example2}{color=red} \stopt

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