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

2017-08-15 Thread Henri
caled \overlaywidth yscaled \overlayheight ; >   pickup pencircle scaled 1mm ; >   linecap := squared ; >   drawoptions(withcolor \MPcolor{darkred}) ; >   draw ulcorner p -- urcorner p ; >   setbounds currentpicture to p ; > \stopuniqueMPgraphic > > \defineoverlay[titled

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

2017-08-15 Thread Henri
caled \overlaywidth yscaled \overlayheight ; >   pickup pencircle scaled 1mm ; >   linecap := squared ; >   drawoptions(withcolor \MPcolor{darkred}) ; >   draw ulcorner p -- urcorner p ; >   setbounds currentpicture to p ; > \stopuniqueMPgraphic > > \defineoverlay[titled

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

2017-08-15 Thread Fabrice Couvreur
scaled 1mm ; linecap := squared ; drawoptions(withcolor \MPcolor{darkred}) ; draw ulcorner p -- urcorner p ; setbounds currentpicture to p ; \stopuniqueMPgraphic \defineoverlay[titled][\uniqueMPgraphic{titled}] \startuseMPgraphic{triangledone} fill lltriangle scaled 4cm withcolor darkred

Re: [NTG-context] beta

2017-08-06 Thread Mikael P. Sundqvist
On Sun, Aug 6, 2017 at 4:11 PM, Hans Hagen <pra...@wxs.nl> wrote: > in next beta > > % \setuphead[chapter][after={\markpage[chapter][+1]}] > \setuphead[chapter][after={\markpage[chapter]\blank[2*big]}] > > \defineoverlay > [whatever] > [\doife

[NTG-context] beta

2017-08-06 Thread Hans Hagen
in next beta % \setuphead[chapter][after={\markpage[chapter][+1]}] \setuphead[chapter][after={\markpage[chapter]\blank[2*big]}] \defineoverlay [whatever] [\doifelsemarkedpage{chapter}{CHAPTER}{}] \setupbackgrounds [page] [background=whatever] \starttext test \page test \page test

Re: [NTG-context] Disable overlay on chapter pages

2017-08-04 Thread Mikael P. Sundqvist
> on chapter pages? > > one of the many ways ... > > \definelayer > [chapter] > [width=\paperwidth, >height=\paperheight] > > \defineoverlay > [pagebackground] > [\directsetup{pagebackground}] > > \setupbackgrounds > [page] > [background=pageb

Re: [NTG-context] Disable overlay on chapter pages

2017-08-04 Thread Hans Hagen
=\paperheight] \defineoverlay [pagebackground] [\directsetup{pagebackground}] \setupbackgrounds [page] [background=pagebackground] \startsetups pagebackground \doifelsemode {chapterpage} { \setlayer [chapter] [preset=middle] {\scale[width=\textwidth

[NTG-context] Disable overlay on chapter pages

2017-08-02 Thread Mikael P. Sundqvist
... \setuppagenumbering[alternative=doublesided] \defineoverlay[mymargin][{\framed[frame=off,width=0.8in,height=0.8\textheight,offset=overlay,align={top}]{\doifrightpageelse{{\startalignment[flushleft]\getmarking[chapter]\stopalignment}}{{\startalignment[flushright]\getmarking[section]\stopalignment

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] Customize a table with Metafun

2017-02-15 Thread Fabrice Couvreur
encircle withcolor \MPcolor{red}) ; >> draw .5[llcorner p, lrcorner p]--.5[ulcorner p, urcorner p] ; >> setbounds currentpicture to p ; >> >> \stopuniqueMPgraphic >> >> \defineoverlay[Vertical][\uniqueMPgraphic{Vertical}] >> >> \startsetups[table:initi

Re: [NTG-context] Customize a table with Metafun

2017-02-14 Thread Lutz Haseloff
t; linecap:=squared ; > path p ; p := unitsquare xyscaled (OverlayWidth,OverlayHeight) ; > drawoptions (withpen pencircle withcolor \MPcolor{red}) ; > draw .5[llcorner p, lrcorner p]--.5[ulcorner p, urcorner p] ; > setbounds currentpicture to p ; > >\stopuniqueMPgraphic

[NTG-context] Customize a table with Metafun

2017-02-14 Thread Fabrice Couvreur
[llcorner p, lrcorner p]--.5[ulcorner p, urcorner p] ; setbounds currentpicture to p ; \stopuniqueMPgraphic \defineoverlay[Vertical][\uniqueMPgraphic{Vertical}] \startsetups[table:initialize] \setupTABLE[start] [align={middle,lohi},offset=0.5ex,width=1.5cm, foregroundstyle

Re: [NTG-context] Title without the parentheses

2017-01-31 Thread Fabrice Couvreur
Pcolor{\overlaycolor} ; > draw p withcolor \MPcolor{\overlaylinecolor} ; > \stopuniqueMPgraphic > \setuplayout[grid=yes] > \defineoverlay[MyBackgroundLayer][\uniqueMPgraphic{MyShape}] > > \define[1]\MyExoCommand{% > \lower\strutdepth\hbox{\startframed > [backgroun

Re: [NTG-context] Title without the parentheses

2017-01-30 Thread Otared Kavian
pencircle scaled \overlaylinewidth ; fill p withcolor \MPcolor{\overlaycolor} ; draw p withcolor \MPcolor{\overlaylinecolor} ; \stopuniqueMPgraphic \setuplayout[grid=yes] \defineoverlay[MyBackgroundLayer][\uniqueMPgraphic{MyShape}] \define[1]\MyExoCommand{% \lower\strutdepth

Re: [NTG-context] Title without the parentheses

2017-01-30 Thread Otared Kavian
} path p ; p := unitsquare xscaled \overlaywidth yscaled \overlayheight ; pickup pencircle scaled \overlaylinewidth ; fill p withcolor \MPcolor{\overlaycolor} ; draw p withcolor \MPcolor{\overlaylinecolor} ; \stopuniqueMPgraphic \defineoverlay[MyBackgroundLayer

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

2017-01-18 Thread Otared Kavian
\startreusableMPgraphic{header:background} > fill OverlayBox >leftenlarged BackSpace >rightenlarged CutSpace >topenlarged TopSpace >withcolor OverlayColor ; > setbounds currentpicture to OverlayBox >enlarged max(BackSpace,CutSpace) ; > \stopreusab

[NTG-context] Vertical space around displayed formulas

2017-01-18 Thread Nicola
r \startreusableMPgraphic{header:background} fill OverlayBox leftenlarged BackSpace rightenlarged CutSpace topenlarged TopSpace withcolor OverlayColor ; setbounds currentpicture to OverlayBox enlarged max(BackSpace,CutSpace) ; \stopreusableMPgraphic \defineoverlay[header:ba

[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
text > >> > [MyFrame] > >> > [before={\blank}, > >> >after={\blank}, > >> >frame=off, > >> >background=MyFrame, > >> >width=6cm, > >> >height=fit] > >> > > >> > \startuseMPg

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
lightgray; %\MPcolor{ 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; \stopuseMPgra

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] Ka-Pow comic book effect?

2016-07-18 Thread Alan BRASLAU
4 withcolor \MPcolor{\overlaycolor} ; \stopreusableMPgraphic \defineoverlay [star] [\reuseMPgraphic{star}] \starttext \startframed [frame=off,background=star,backgroundcolor=lightgray,align=text] Wow\\ a star! \stopframed \stoptext You get the idea... (but keep in mind Edward Tufte

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
footer] \startusableMPgraphic{NumberHead} picture r ; r := image ( graphictext \MPstring{chapter} scaled 4pt withfillcolor \MPcolor{lightgray} withpen pencircle scaled 1pt ; ) ; draw r ; \stopusableMPgraphic \defineoverlay[NumberHead][\uniqueMPg

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

[NTG-context] \currentheadnumber does not work

2016-07-09 Thread Fabrice Couvreur
1cm smoothed 1.2 ; \stopuseMPgraphic \defineoverlay[head][\uniqueMPgraphic{head}] \def\Headed#1% {\framed [background=head,frame=off,offset=overlay] {\color[white]{#1}}} \unexpanded\def\HeadTitle#1#2% {\framed [frame=off, bottomframe=on, width=broad, align={broad

Re: [NTG-context] metafun

2016-03-24 Thread Hans Hagen
] withpen pencircle scaled 2bp ; \stopMPpositiongraphic \startpositionoverlay{arrow} \setMPpositiongraphic{X-1}{mypos:arrow}{to=X-2} \setMPpositiongraphic{X-2}{mypos:arrow}{to=X-3} \stoppositionoverlay \defineoverlay[arrow][\positionoverlay{arrow}] \setupbackgrounds[page][background=arrow] \starttext

Re: [NTG-context] metafun

2016-03-24 Thread luigi scarso
box(\MPpos{\MPvar{to}}); >c[2] := cxy ; >drawarrow c[1] -- c[2] withpen pencircle scaled 2bp ; > \stopMPpositiongraphic > \startpositionoverlay{arrow} > \setMPpositiongraphic{X-1}{mypos:arrow}{to=X-2} > \setMPpositiongraphic{X-2}{mypos:arrow}{to=X-3} > \stopposition

Re: [NTG-context] metafun

2016-03-24 Thread Piotr Kopszak
\startpositionoverlay{arrow} \setMPpositiongraphic{X-1}{mypos:arrow}{to=X-2} \setMPpositiongraphic{X-2}{mypos:arrow}{to=X-3} \stoppositionoverlay \defineoverlay[arrow][\positionoverlay{arrow}] \setupbackgrounds[page][background=arrow] \starttext \section {Anchors and layers} In a previous section

Re: [NTG-context] metafun

2016-03-24 Thread Piotr Kopszak
; anchors. > > \startpositionoverlay{arrow} > \setMPpositiongraphic{X-1}{mypos:arrow}{to=X-2} > \setMPpositiongraphic{X-2}{mypos:arrow}{to=X-3} > \stoppositionoverlay > > > 3. Define an overlay that is mapped to MP position overlay. > > \defineoverlay[arrow][\positionoverl

Re: [NTG-context] Is there “toffset” option for \setupbackgrounds in context

2016-02-26 Thread Wolfgang Schuster
but you can do a lot when you use Metapost to draw the background. \startuniqueMPgraphic{TextBackground} path p ; p := unitsquare xscaled OverlayWidth yscaled OverlayHeight ; draw p topenlarged 5mm ; setbounds currentpicture to OverlayBox ; \stopuniqueMPgraphic \defineoverlay[Te

[NTG-context] Vertically centered text in each page

2016-02-19 Thread Nicola
htenlarged CutSpace topenlarged TopSpace withcolor OverlayColor ; setbounds currentpicture to OverlayBox enlarged max(BackSpace,CutSpace) ; \stopreusableMPgraphic \defineoverlay[header:background][\reuseMPgraphic{header:background}] \define[2]\MySlide{\framed[ frame=off,

Re: [NTG-context] Absolute position in table cell

2016-02-17 Thread Volker Mische
nnotationcontent` way, but there I get the >>>> same error. Here's the full example: >>>> >>>> \starttext >>>> >>>> \definelayer [pagenumber][width=\overlaywidth,height=\overlayheight] >>>> \defineoverlay[pagenumber][{\dire

Re: [NTG-context] Absolute position in table cell

2016-02-16 Thread Hans Hagen
tried it the `\placeannotationcontent` way, but there I get the same error. Here's the full example: \starttext \definelayer [pagenumber][width=\overlaywidth,height=\overlayheight] \defineoverlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenumber]}] \startsetups pagenumber \setlayerframed [pagenumber] [

Re: [NTG-context] Absolute position in table cell

2016-02-16 Thread Volker Mische
contents of the annotation. I've >> also tried it the `\placeannotationcontent` way, but there I get the >> same error. Here's the full example: >> >> \starttext >> >> \definelayer [pagenumber][width=\overlaywidth,height=\overlayheight] >> \defineoverlay[pagenu

Re: [NTG-context] Absolute position in table cell

2016-02-16 Thread Wolfgang Schuster
rttext \definelayer [pagenumber][width=\overlaywidth,height=\overlayheight] \defineoverlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenumber]}] \startsetups pagenumber \setlayerframed [pagenumber] [preset=rightbottom] {\getvariable{table}{p}} \stopsetups \define[2]\PageWrapper{\setgvariable{table}

Re: [NTG-context] Absolute position in table cell

2016-02-16 Thread Volker Mische
gt; Best for me would be if I could define the text directly within the >>>> cell. I'm surely open to a completely different solution that has the >>>> same outcome. >>>> >>>> Here's the minimal example of what I currently have. >>

Re: [NTG-context] Absolute position in table cell

2016-02-15 Thread Hans Hagen
ently have. \starttext \definelayer [pagenumber][width=\overlaywidth,height=\overlayheight] \defineoverlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenumber]}] \startsetups pagenumber \setlayerframed [pagenumber] [preset=rightbottom] {p} \stopsetups \bTABLE \

Re: [NTG-context] Absolute position in table cell

2016-02-15 Thread Volker Mische
t;> >> Here's the minimal example of what I currently have. >> >> \starttext >> >> \definelayer [pagenumber][width=\overlaywidth,height=\overlayheight] >> \defineoverlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenumber]}] >> >>

Re: [NTG-context] Absolute position in table cell

2016-02-15 Thread Hans Hagen
rlayheight] \defineoverlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenumber]}] \startsetups pagenumber \setlayerframed [pagenumber] [preset=rightbottom] {p} \stopsetups \bTABLE \setupTABLE[each][each][background=pagenumber] \bTR \bTD multiline \par text \eTD \bTD

[NTG-context] Absolute position in table cell

2016-02-15 Thread Volker Mische
uld define the text directly within the cell. I'm surely open to a completely different solution that has the same outcome. Here's the minimal example of what I currently have. \starttext \definelayer [pagenumber][width=\overlaywidth,height=\overlayheight] \defineoverlay[pagenumber][{\directsetup{

Re: [NTG-context] How to put title and counter of the enumeration env. in the FrameTitle?

2015-12-08 Thread Jeong Dal
black ; setbounds currentpicture to a ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[Thm] [frame=off, background=FunnyFrame, offset=\bodyfontsize, %increment=yes, width=\textwidth, before={\blank[big]}, after={\incrementnumber[ThmNumber]\blank

Re: [NTG-context] How to put title and counter of the enumeration env. in the FrameTitle?

2015-12-04 Thread Jeong Dal
) ; 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[Thm] [frame=off

[NTG-context] How to put title and counter of the enumeration env. in the FrameTitle?

2015-12-03 Thread Jeong Dal
to a ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[FunnyText][frame=off,background=FunnyFrame, offset=\bodyfontsize, width=\textwidth]%\overlaywidth]% \def\StTheorem{\startFunnyText\startTheorem} \def\SpTheorem {\stopTheorem\stopFunnyText } \def

Re: [NTG-context] Loop and graphictext (Metafun)

2015-10-05 Thread Hans Hagen
currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[Title][\useMPgraphic{Title}] \defineframedtext [MyTitle] [before={\blank[line,halfline]}, after={\blank}, frame=off, background=Title, width=\textwidth, height=fit, ] \starttext \startMyTitle \startMPcode

Re: [NTG-context] Loop and graphictext (Metafun)

2015-10-05 Thread Fabrice Couvreur
seMPgraphic{Title} >> >>path p ; p := OverlayBox ; >>fill OverlayBox withcolor pagecolor ; >>setbounds currentpicture to OverlayBox ; >> >> \stopuseMPgraphic >> >> \defineoverlay[Title][\useMPgraphic{Title}] >> >> \defineframedtext >&g

Re: [NTG-context] Loop and graphictext (Metafun)

2015-10-05 Thread Fabrice Couvreur
gecolor} ; >>>>color textcolor ; textcolor := \MPcolor{textcolor} ; >>>> \stopMPinclusions >>>> >>>> \setMPtext{title}{Serie statistiques à deux variables} >>>> >>>> \startuseMPgraphic{Title} >>>> >>>&

Re: [NTG-context] Loop and graphictext (Metafun)

2015-10-05 Thread Fabrice Couvreur
olor := \MPcolor{pagecolor} ; >>>color textcolor ; textcolor := \MPcolor{textcolor} ; >>> \stopMPinclusions >>> >>> \setMPtext{title}{Serie statistiques à deux variables} >>> >>> \startuseMPgraphic{Title} >>> >>>path

[NTG-context] Loop and graphictext (Metafun)

2015-10-05 Thread Fabrice Couvreur
\defineoverlay[Title][\useMPgraphic{Title}] \defineframedtext [MyTitle] [before={\blank[line,halfline]}, after={\blank}, frame=off, background=Title, width=\textwidth, height=fit, ] \starttext \startMyTitle \startMPcode numeric k ; k :=0 ; string s ; s := \MPstring{title} ; picture r

Re: [NTG-context] Space between both environments

2015-09-08 Thread Fabrice Couvreur
0.3, m=0.00, y=0.00, k=0.05] > > \definecolor[MyColorD][c=0.6, m=0.00, y=0.00, k=0.10] > > > \defineframedtext > [MyDefinition] > [before={\blank}, >after={\blank}, >frame=off, >background=MyFrame, >width=\textwidth, >height=fit, >loca

[NTG-context] Space between both environments

2015-09-07 Thread Fabrice Couvreur
] \definecolor[MyColorD][c=0.6, m=0.00, y=0.00, k=0.10] \defineframedtext [MyDefinition] [before={\blank}, after={\blank}, frame=off, background=MyFrame, width=\textwidth, height=fit, location=left, style=italic] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel

Re: [NTG-context] Space between both environments

2015-09-07 Thread Otared Kavian
on] > [before={\blank}, >after={\blank}, >frame=off, >background=MyFrame, >width=\textwidth, >height=fit, >location=left, >style=italic] > > \defineoverlay > [MyFrame] > [\useMPgraphic{MyFrame}] > > \definelabel > [Défini

Re: [NTG-context] Space between both environments

2015-09-07 Thread Wolfgang Schuster
defineframedtext [MyDefinition] [before={\blank}, after={\blank}, frame=off, background=MyFrame, width=\textwidth, height=fit, location=left, style=italic] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseM

[NTG-context] Bug with the command \blank ?

2015-08-30 Thread Fabrice Couvreur
] \definecolor[MyColorA][.75(MyColorB,white)] \definecolor[MyColorC][c=0.3, m=0.00, y=0.00, k=0.05] \defineframedtext [MyDefinition] [before={\blank}, after={\blank}, frame=off, background=MyFrame, width=\textwidth, height=fit, location=left, style=italic] \defineoverlay

[NTG-context] Left border of a rectangle (Metafun)

2015-08-29 Thread Fabrice Couvreur
Hi, I want to draw the left border of the rectangle, but it is drawn in the middle. Why ? Thank you, Fabrice \setupcolors[state=start] \definecolor[MyColorA][c=0.3, m=0.00, y=0.00, k=0.05] \defineoverlay [Funny] [\useMPgraphic{Funny}] \startuseMPgraphic{Funny} interim linecap

Re: [NTG-context] Left border of a rectangle (Metafun)

2015-08-29 Thread Otared Kavian
in the middle. Why ? Thank you, Fabrice \setupcolors[state=start] \definecolor[MyColorA][c=0.3, m=0.00, y=0.00, k=0.05] \defineoverlay [Funny] [\useMPgraphic{Funny}] \startuseMPgraphic{Funny} interim linecap := butt ; path p ; p := unitsquare xyscaled

Re: [NTG-context] Left border of a rectangle (Metafun)

2015-08-29 Thread Otared Kavian
2015, at 10:56, Fabrice Couvreur fabrice1.couvr...@gmail.com wrote: Hi, I want to draw the left border of the rectangle, but it is drawn in the middle. Why ? Thank you, Fabrice \setupcolors[state=start] \definecolor[MyColorA][c=0.3, m=0.00, y=0.00, k=0.05] \defineoverlay

Re: [NTG-context] Text around a figure in a framedtext

2015-08-14 Thread Fabrice Couvreur
[state=start] \definecolor[MyColorB][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, height=fit, location=left, style=italic] \defineoverlay [MyFrame

[NTG-context] Cover page (Metafun)

2015-08-14 Thread Fabrice Couvreur
scaled 8pt withcolor darkcolor ; endfor ; endfor ; \stopuseMPgraphic \defineoverlay[CoverPage][\useMPgraphic{CoverPage}] \setupbackgrounds [rightpage] [background=CoverPage] \starttext \stoptext

Re: [NTG-context] Text around a figure in a framedtext

2015-08-13 Thread Fabrice Couvreur
[MyText] [frame=off, background=MyFrame, width=\textwidth, height=fit, location=left, style=italic] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b ; picture p ; p

Re: [NTG-context] Text around a figure in a framedtext

2015-08-13 Thread Fabrice Couvreur
] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b ; picture p ; p := textext.rt(\white\Définition) ; p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight

Re: [NTG-context] Text around a figure in a framedtext

2015-08-13 Thread Rik Kabel
[MyColorA][.75(MyColorB,white)] \defineframedtext [MyText] [frame=off, background=MyFrame, width=\textwidth, height=fit, location=left, style=italic] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic

[NTG-context] Strange behavior (TikZ)

2015-08-11 Thread Fabrice Couvreur
currentpicture to p ; \stopuniqueMPgraphic \defineoverlay[titled][\uniqueMPgraphic{titled}] \define[2]\ChapterCommand {\setbox\scratchbox\hbox to \leftmarginwidth{#1\hss}% \hskip-\dimexpr\leftmarginwidth+\leftmargindistance\relax \framed [background=titled,frame=off,offset=0pt] {\box

Re: [NTG-context] Command that does not give the expected result (Metafun)

2015-08-10 Thread Fabrice Couvreur
:= unitsquare xscaled OverlayWidth yscaled OverlayHeight ; pickup pencircle scaled 1mm ; drawoptions(withcolor .625yellow) ; draw llcorner p--lrcorner p ; setbounds currentpicture to p ; \stopuniqueMPgraphic \defineoverlay[titled][\uniqueMPgraphic{titled}] \def\ChapterCommand#1#2

[NTG-context] Command that does not give the expected result (Metafun)

2015-08-09 Thread Fabrice Couvreur
\defineoverlay[titled][\uniqueMPgraphic{titled}] \def\ChapterCommand#1#2% {\setbox0=\hbox to \leftmarginwidth{#1\hss}% \hskip-\leftmarginwidth \hskip-\leftmargindistance \framed [background=titled,frame=off,offset=0pt] {\box0 \hskip\leftmargindistance #2}} \setuphead

Re: [NTG-context] Command that does not give the expected result (Metafun)

2015-08-09 Thread Hans Hagen
currentpicture to p ; \stopuniqueMPgraphic \defineoverlay[titled][\uniqueMPgraphic{titled}] \def\ChapterCommand#1#2% {\setbox0=\hbox to \leftmarginwidth{#1\hss}% \hskip-\leftmarginwidth \hskip-\leftmargindistance \framed [background=titled,frame=off,offset=0pt] {\box0

Re: [NTG-context] Text around a figure in a framedtext

2015-08-08 Thread Fabrice Couvreur
)] \defineframedtext [MyText] [frame=off, background=MyFrame, width=\textwidth, location=right] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b ; picture p

[NTG-context] Text around a figure in a framedtext

2015-08-07 Thread Fabrice Couvreur
, location=right] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b ; picture p ; p := textext.rt(\white\Définition) ; p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight

Re: [NTG-context] Some questions about an environment (Metafun)

2015-08-07 Thread Fabrice Couvreur
Définition 1, Définition 2 ... Thank you, Fabrice \setupbodyfont [palatino,11pt] \setupcolors[state=start,cmyk=yes] \definecolor[MyColor][c=0.00, m=0.10, y=0.20, k=0.00] \definecolor[myColor][c=0.00, m=0.62, y=1.00, k=0.00] \defineoverlay[MyFrame][\useMPgraphic{MyFrame

Re: [NTG-context] Some questions about an environment (Metafun)

2015-08-07 Thread Hans Hagen
, k=0.00] \defineoverlay[MyFrame][\useMPgraphic{MyFrame}] \defineframedtext [MyText] [frame=off, background=MyFrame, width=\textwidth, location=right] \defineoverlay[MyFrame][\useMPgraphic{MyFrame}] \def\StartFrame{\startMyText} \def\StopFrame{\startMyText} \def\FrameTitle

<    1   2   3   4   5   6   7   8   >