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

2015-08-08 Thread Fabrice Couvreur
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, > >location=right] > > > > \defineov

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

2015-08-07 Thread Otared Kavian
efinecolor[MyColorA][.75(MyColorB,white)] > > \defineframedtext > [MyText] > [frame=off, >background=MyFrame, >width=\textwidth, >location=right] > > \defineoverlay > [MyFrame] > [\useMPgraphic{MyFrame}] > > \definelabel >

[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+.

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

2015-08-07 Thread Fabrice Couvreur
... \stopMyText, \startMyText ... >> \stopMyText... this return Définition 1, Définition 2 ... >> >> Thank you, >> Fabrice >> >> >> \setupbodyfont [palatino,11pt] >> >> \setupcolors[state=start,cmyk=yes] >> >> \definecolor[MyC

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

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

2015-08-06 Thread Fabrice Couvreur
, \startMyText ... \ stopMyText ... this return 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

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

2015-08-04 Thread Fabrice Couvreur
or} ; > draw p withcolor white ; > setbounds currentpicture to OverlayBox ; > \stopuseMPgraphic > > > > Thank you, >> Fabrice >> >> \showframe >> >> \setupcolors[state=start,cmyk=yes] >> >> \definecolor[MyColor][c=0.00, m=0.10, y=0.

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

2015-08-04 Thread Hans Hagen
\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] \setupbodyfont[11pt] \defineoverlay[MyFrame][\useMPgraphic{MyFrame}] \defineframedtext [MyText] [frame=off, background=MyFrame, width=0.9

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

2015-08-04 Thread Fabrice Couvreur
=0.62, y=1.00, k=0.00] \setupbodyfont[11pt] \defineoverlay[MyFrame][\useMPgraphic{MyFrame}] \defineframedtext [MyText] [frame=off, background=MyFrame, width=0.9\textwidth, location=right] \defineoverlay[MyFrame][\useMPgraphic{MyFrame}] \def\StartFrame{\startMyText} \def

[NTG-context] Calculating a value in metapost, and using it in ConTeXt

2015-05-26 Thread Kate F
path p, q; h := \overlayheight; w := \overlaywidth; % imagine this is more complex p = (0, 0) -- (w, .5h); q = (0, h) -- (w, 0); draw p; draw q; z0 = p intersectionpoint q; % btex \def\Z{ ypart z0 } etex; \stopuniqueMPgraphic \defineoverlay[canon][\uniqueMPgr

Re: [NTG-context] overlay or layer for chapter head.

2015-04-02 Thread Wolfgang Schuster
text] [x=3cm, y=8cm] [frame=off] {#1 – #2}} \definemakeup[chapterpage][page] \setupmakeup [chapterpage] [pagestate=start, before={\setupbackgrounds[page][background=chapterimage]}, bottom={\placelayer[chaptertext]}] \defineoverlay[chapterimage][\overlayfigure{\str

Re: [NTG-context] Frame and rulethickness

2015-03-28 Thread Wolfgang Schuster
withcolor \MPcolor{green} ; clip currentpicture to OverlayBox leftenlarged 1pt rightenlarged 1.5pt bottomenlarged 0.5pt ; \stopuseMPgraphic \defineoverlay[ACFRAME][\useMPgraphic{ACFRAME}] \defineframed [ACFRAME] [frame=off, background=ACFRAME] \starttext \ACFRAME{ Example } \sto

Re: [NTG-context] Problem with MkIV and TikZ picture remembering

2015-03-03 Thread Hans Hagen
d not bother to set the style of the boxes and arrows. So it looks a bit dry. \startMPdefinitions % I don't know why this does not get loaded automatically. input mp-abck.mpiv; \stopMPdefinitions \defineoverlay[highlight] [\positionoverlay{highlightoverlay}] \startpositionoverlay{highli

Re: [NTG-context] Problem with MkIV and TikZ picture remembering

2015-03-03 Thread Aditya Mahajan
s and arrows. So it looks a bit dry. \startMPdefinitions % I don't know why this does not get loaded automatically. input mp-abck.mpiv; \stopMPdefinitions \defineoverlay[highlight] [\positionoverlay{highlightoverlay}] \startpositionoverlay{highlightoverlay} \setMPposition

[NTG-context] How to place text to the right of a brace

2015-02-01 Thread Fabrice Couvreur
= (-71,-1125) ; z22 = (-97,-1106) ; z23 = (-143,-1031) ; z24 = (-199,-673) ; z25 = (-155,-211) ; z26 = (-220,-22) ; fill z1 for i=2 upto 14: .. z[i] endfor & z14 for j=15 upto 26: .. z[j] endfor .. z1 & cycle withcolor red ; \stopuseMPgraphic \defineoverlay[leftbrace] [\leftaligned {\scal

Re: [NTG-context] Define a new command from the command \periods[n]

2015-01-19 Thread Hans Hagen
=lightgray] \definecolor[Border][c=0.00, m=0.00, y=0.00, k=0.25] \startuniqueMPgraphic{borderline} path p ; p := unitsquare xscaled \overlaywidth yscaled \overlayheight ; draw p withcolor \MPcolor{Border} dashed evenly withpen pencircle scaled 1.2pt ; \stopuniqueMPgraphic \defineoverlay[borderline

Re: [NTG-context] Define a new command from the command \periods[n]

2015-01-18 Thread Fabrice
=0.00, y=0.00, k=0.25] \startuniqueMPgraphic{borderline} path p ; p := unitsquare xscaled \overlaywidth yscaled \overlayheight ; draw p withcolor \MPcolor{Border} dashed evenly withpen pencircle scaled 1.2pt ; \stopuniqueMPgraphic \defineoverlay[borderline][\uniqueMPgraphic{borderline

Re: [NTG-context] Center two frames

2015-01-14 Thread Pablo Rodriguez
erlaywidth yscaled \overlayheight ; draw p withcolor \MPcolor{Border} dashed evenly withpen pencircle scaled 1.2pt ; \stopuniqueMPgraphic \defineoverlay[borderline][\uniqueMPgraphic{borderline}] \startxtable[frame=off] \startxrow \startxcell[align=normal] Compléter chacun des algorithm

[NTG-context] Center two frames

2015-01-13 Thread Fabrice Couvreur
; draw p withcolor \MPcolor{Border} dashed evenly withpen pencircle scaled 1.2pt ; \stopuniqueMPgraphic \defineoverlay[borderline][\uniqueMPgraphic{borderline}] \placefigure[right,none]{}{ \start \switchtobodyfont[7pt] \startMPcode numeric u; u=0.7cm; z0=(0,0) ; z1=(2.5u,0) ; z2=(2.5u,2.5u) ; z3

Re: [NTG-context] Define a new type section with metafun

2014-12-28 Thread Fabrice
currentpicture to p ; draw p withcolor \MPcolor{\overlaylinecolor} ; \stopuniqueMPgraphic \defineoverlay[funny][\uniqueMPgraphic{funny}] \define[2]\MySectionCommand {\framed [background=funny, frame=off, width=fit, align={right}, framecolor

Re: [NTG-context] Define a new type section with metafun

2014-12-27 Thread Hans Hagen
\MPcolor{\overlaylinecolor} ; \stopuniqueMPgraphic \defineoverlay[funny][\uniqueMPgraphic{funny}] \define[2]\MySectionCommand {\framed [background=funny, frame=off, width=0.5\textwidth, align={right}, framecolor=mycolor

[NTG-context] Define a new type section with metafun

2014-12-27 Thread Akira Kakuto
} ; \stopuniqueMPgraphic \defineoverlay[funny][\uniqueMPgraphic{funny}] \define[2]\MySectionCommand {\framed [background=funny, frame=off, width=0.5\textwidth, align={right}, framecolor=mycolor, rulethickness=1.5pt, backgroundcolor=white

[NTG-context] Define a new type section with metafun

2014-12-26 Thread Fabrice Couvreur
withcolor \MPcolor{\overlaycolor} ; draw p withcolor \MPcolor{\overlaylinecolor} ; draw (20,0)--(20,h) withcolor red ; \stopuniqueMPgraphic \defineoverlay[funny][\uniqueMPgraphic{funny}] \define[2]\MySectionCommand {\framed [background=funny, frame=off, width=0.5

Re: [NTG-context] overlay

2014-11-24 Thread Wolfgang Schuster
quare scaled 1cm xshifted i*cm; > endfor; > \stopMPcode > \stoptext > > How can a line be drawn connecting the right edges of the rectangles? I have > played with: > > \startuniqueMPgraphic{line} > path a; > a:=(0,0)--(0,3cm); > draw a withpen pencircle

Re: [NTG-context] overlay

2014-11-24 Thread John Kitzmiller
yed with: >> >> \startuniqueMPgraphic{line} >> path a; >> a:=(0,0)--(0,3cm); >> draw a withpen pencircle scaled 3pt withcolor green; >> \stopuniqueMPgraphic >> >> \defineoverlay[line][{\uniqueMPgraphic{line}}] >>

Re: [NTG-context] overlay

2014-11-24 Thread Peter Rolf
a:=(0,0)--(0,3cm); > draw a withpen pencircle scaled 3pt withcolor green; > \stopuniqueMPgraphic > > \defineoverlay[line][{\uniqueMPgraphic{line}}] > > > and using it in \framed, but placing the line correctly is elusive. > > Just a quick and dirty so

[NTG-context] overlay

2014-11-22 Thread John Kitzmiller
the rectangles? I have played with: \startuniqueMPgraphic{line} path a; a:=(0,0)--(0,3cm); draw a withpen pencircle scaled 3pt withcolor green; \stopuniqueMPgraphic \defineoverlay[line][{\uniqueMPgraphic{line}}] and using it in \framed, but placing the line correctly is elusive

[NTG-context] Strange behavior of a macro with ConTeXt ver : 2014.11.12 9:46 p.m. MKIV beta

2014-11-15 Thread Fabrice Couvreur
Hi, Macro written by Hans does not work. Best regards, Fabrice % macros=mkvi \starttext \starttexdefinition MyOtherHeader #where #day #month #year #title \defineoverlay[whatever][\useMPgraphic{whatever}] \startuseMPgraphic{whatever} path p; p:=fullsquare xyscaled (\overlaywidth

Re: [NTG-context] Support for Optional Content Groups

2014-07-03 Thread Wolfgang Schuster
t I want to > have my cake and eat it too ;) You can test if the layers are hidden when you print the following example, I tried the Adobe Reader on my Mac and they where still visible. \setupinteraction[state=start] \defineoverlay[PageBackground] [\startMPcode fill fullsquare xysca

[NTG-context] Thumbnail sample.

2014-06-02 Thread john Culleton
humbs] \defineoverlay [thumbs] [\setups{thumbs}] \def\NOfChapters{4} % i need to make this one available \startsetups thumbs \definemeasure[thumbheight][\dimexpr\paperheight/\NOfChapters\relax] \vbox to \paperheight \bgroup \vskip \rawsectionnumber{section-2} \measure{thumbh

Re: [NTG-context] Text background that spans the width of the page

2014-05-07 Thread Darksair
setbounds currentpicture to OverlayBox > enlarged max(BackSpace,CutSpace) ; > \stopuniqueMPgraphic > > \defineoverlay[whatever][\uniqueMPgraphic{whatever}] > > \framed > [background=whatever, >backgroundcolor=green, >frame=off,

Re: [NTG-context] Text background that spans the width of the page

2014-05-06 Thread Hans Hagen
OverlayBox leftenlarged BackSpace rightenlarged CutSpace withcolor OverlayColor ; setbounds currentpicture to OverlayBox enlarged max(BackSpace,CutSpace) ; \stopuniqueMPgraphic \defineoverlay[whatever][\uniqueMPgraphic{whatever}]

[NTG-context] module not found?

2014-05-06 Thread Roger Mason
Pcolor{background:light}; 50 StopPage; 51 \stopreusableMPgraphic 52 53 \defineoverlay [page:background][\reuseMPgraphic{page:background}] 54 55 \setupbackgrounds[page][background={page:background}] 56 57 %\usemodule[visualcounter] 58 59 >> \definevisualcounter 60

Re: [NTG-context] Stepper code fails

2014-03-28 Thread Hans Hagen
On 3/28/2014 11:30 AM, Michael Guravage wrote: The Stepper example on the wiki, <http://wiki.contextgarden.net/Stepper> from which the following snippet comes, \usemodule[pre-60] % use the stepper \setuppapersize[S6][S6] \defineoverlay[invoke] [\overlaybutton{InvokeS

[NTG-context] Stepper code fails

2014-03-28 Thread Michael Guravage
The Stepper example on the wiki, <http://wiki.contextgarden.net/Stepper>from which the following snippet comes, \usemodule[pre-60] % use the stepper \setuppapersize[S6][S6] \defineoverlay[invoke] [\overlaybutton{InvokeStepper}] \setupbackgrounds[text] [background=invoke] \setupinteraction

Re: [NTG-context] quick and shallow question about layers

2014-03-26 Thread Hans Hagen
enter currentpicture withcolor red withtransparency (1,0.4) ; \stopMPcode \stoptext or \starttext \defineoverlay [page] [\overlayfigure{mill.png}] \setupbackgrounds [page] [background=page] \definecolor[myred][a=1,t=.4,r=.4] {\color[myred]{\definedfont[Bold*

[NTG-context] Problem with an environment

2014-03-06 Thread Fabrice Couvreur
title #number \defineoverlay[whatever][\useMPgraphic{whatever}] \startuseMPgraphic{whatever} path p; p:=fullsquare xyscaled (\overlaywidth,\overlayheight) squeezed 1pt; fill p withcolor white ; draw p withpen pencircle scaled 2pt withcolor 0.625white ; picture d ; d := textext("\quad#w

Re: [NTG-context] narrowered columns on background image?

2014-02-14 Thread Wolfgang Schuster
es[location={local,global,default}] >> >> \starttext >> >> \defineoverlay[muh][{\externalfigure[cow][width=\overlaywidth, >> height=\overlayheight]}] >> >> \startframed[width=max,height=0.4\textheight,background=muh,align=right,foregroundcolor=darkred]% >>

Re: [NTG-context] narrowered columns on background image?

2014-02-13 Thread Rudolf Bahr
On Thu, Feb 13, 2014 at 10:52:44AM +0100, Wolfgang Schuster wrote: > > You have to use boxedcolumns environment because the normal columns > environment doesn’t work in a frame. > > \setupexternalfigures[location={local,global,default}] > > \starttext > > \defineov

Re: [NTG-context] narrowered columns on background image?

2014-02-13 Thread Wolfgang Schuster
You have to use boxedcolumns environment because the normal columns environment doesn’t work in a frame. \setupexternalfigures[location={local,global,default}] \starttext \defineoverlay[muh][{\externalfigure[cow][width=\overlaywidth, height=\overlayheight]}] \startframed[width=max,height=0.4\t

[NTG-context] narrowered columns on background image?

2014-02-12 Thread Rudolf Bahr
\stopcolumns \stopnarrower } \starttext \vbox to .4\textheight{\externalfigure[moe]} \vskip-.35\textheight \txt %---2. example- \vskip.3\vsize \useexternalfigure[muh][cow.pdf][width=\overlaywidth, height=\overlayheight] \setupframed[height=.4\vsize, width=\hsize] \defineoverlay

Re: [NTG-context] MPpositiongraphic: I don't know when it's going to work and when it's not.

2014-01-27 Thread Hans Hagen
obably an obvious and silly mistake but I can't find it: for me it's quite similar to the examples in metafun-p.pdf, p. 127: "\framed[background=demo circle]{This text is overlayed.}", but mine refuses to work. you need to anchor the graphic: \starttext \defineoverlay[my f

Re: [NTG-context] New header

2014-01-20 Thread Hans Hagen
x file with this line: % macros=mkvi \starttext \starttexdefinition MyOtherHeader #where #day #month #year #title #number \defineoverlay[whatever][\useMPgraphic{whatever}] \startuseMPgraphic{whatever} draw OverlayBox withpen pencircle scaled .5pt da

[NTG-context] MPpositiongraphic: I don't know when it's going to work and when it's not.

2014-01-18 Thread Elspeth McGullicuddy
x27;t work anymore if I comment the %% indicated line below. \defineoverlay[my first overlay][\uniqueMPgraphic{first demo}] \defineoverlay[my fourth overlay][\positionoverlay{my backgraphics}] \startpositionoverlay{my backgraphics} \setMPpositiongraphic{three}{mypos:circle}{mypos:circle

Re: [NTG-context] \startmathcases ... \stopmathcases

2013-10-31 Thread Rudolf Bahr
x to .5\wd\scratchbox{\hss\raise\dp\scratchbox\box\scratchbox}}} \defineoverlay[linkeklammer] [\linkeklammer] \defineoverlay[rechteklammer][\rechteklammer] \starttext \bTABLE \bTR[align={middle,middle},frame=off,offset=1ex] \bTD[background=linkeklammer] text \eTD \bTD text\\text\\tex

[NTG-context] Need help defining command.

2013-10-22 Thread Keith J. Schultz
dth ; draw (0,0) -- (0, OverlayHeight) -- (OverlayWidth, OverlayHeight) -- (OverlayWidth, 0) -- cycle withcolor OverlayLineColor; \stopuniqueMPgraphic %% Define Overlay for NassiSimpleFrameBox %% \defineoverlay[NassiSimpleFrameBox][\uniqueMPgraphic

[NTG-context] nested mp

2013-10-07 Thread Hans Hagen
hcolor red ; \stopuniqueMPgraphic \defineoverlay[mytest][\uniqueMPgraphic{mytest}] \startMPpage[offset=1pt] fill fullcircle scaled 10cm withcolor red ; draw textext("\framed[background=mytest]{bla}") ; draw textext("test 1.1") xsized 8cm

Re: [NTG-context] flowchart: \comment does not work with background

2013-10-05 Thread Hans Hagen
height ; fill p withcolor green ; \stopuniqueMPgraphic \defineoverlay[mytest][\uniqueMPgraphic{mytest}] \starttext \framed[background=mytest]{this works} \startFLOWchart[test] \startFLOWcell \name{test} \text{test} \connection[lr]{test} % \comment[t:0.5]{\framed{this works}} \c

[NTG-context] flowchart: \comment does not work with background

2013-10-04 Thread Peter Münster
raphic \defineoverlay[mytest][\uniqueMPgraphic{mytest}] \starttext \framed[background=mytest]{this works} \startFLOWchart[test] \startFLOWcell \name{test} \text{test} \connection[lr]{test} % \comment[t:0.5]{\framed{this works}} \comment[t:0.5]{\framed[background=mytes

Re: [NTG-context] Overlays as background in textbackground

2013-07-15 Thread Hans Hagen
) \defineoverlay [myoverlay] [\ssd Foo] \definetextbackground [mybackgroundColour] [background=color, backgroundcolor=gray] \definetextbackground [mybackgroundOverlay] [background=myoverlay] \starttext %% overlay works \framed [background=myoverlay, align=normal] {\input knuth\par} %% background

[NTG-context] [***SPAM***] Shifting table header when using overlay

2013-07-14 Thread Dmitriy Tokarev
aphic \defineoverlay[OL:thickBtm][\useMPgraphic{MP:thickBtm}] \starttext \bTABLE \setupTABLE[align=middle] \setupTABLE[header][background={foreground,OL:thickBtm}] % \bTABLEhead\bTR\dorecurse{3}{\bTH#1\eTH}\eTR\eTABLEhead \bTABLEbody\dorecurse{6}{\bTR\dorecurse{3}{\bTD#1-##1\eTD

[NTG-context] Overlays as background in textbackground

2013-07-14 Thread Marco Patzer
Hi, overlays are not displayed when used as a background for textbackground. Is this a bug or are overlays not supported? \defineoverlay [myoverlay] [\ssd Foo] \definetextbackground [mybackgroundColour] [background=color, backgroundcolor=gray] \definetextbackground [mybackgroundOverlay

Re: [NTG-context] Vertically Aligning inmargin Text to Figure

2013-06-18 Thread Hans Hagen
:\rightorleftpageaction rl] [] [width=\marginwidth, align={lohi,middle}, foregroundstyle=\tx] {\floatuserdataparameter{text}} \flushlayer [extrafiguretextlayer:\rightorleftpageaction rl] \stopsetups \defineoverlay

[NTG-context] Adjust font size to cell height in natural table

2013-05-27 Thread H. Özoguz
the cell? For testing: %*** \defineoverlay[eslami][{\externalfigure[eslamivorlage.pdf]}] \def\esl[#1][#2][#3][#4][#5][#6][#7]{% \page \startframed[frame=off,width=fit,offset=overlay,align=middle]% \bTABLE[width=4.55cm,align={middle,lohi

Re: [NTG-context] Tesselating the sheet with a image

2013-05-22 Thread Wolfgang Schuster
Am 21.05.2013 um 07:38 schrieb H. Özoguz : > Hi there, > > for a card game I have this macro: > > \defineoverlay[eslami][{\externalfigure[somepicture.pdf]}] > \def\esl[#1][#2][#3]{% > \startframed[frame=on,width=4.75cm,offset=overlay,align=middle,background=eslami]%

[NTG-context] Tesselating the sheet with a image

2013-05-20 Thread H. Özoguz
Hi there, for a card game I have this macro: \defineoverlay[eslami][{\externalfigure[somepicture.pdf]}] \def\esl[#1][#2][#3]{% \startframed[frame=on,width=4.75cm,offset=overlay,align=middle,background=eslami]% \offinterlineskip \framed[width=4.75cm,frame=off,height=2cm]{\blank[-3mm]#1

[NTG-context] Help understanding framed!

2013-05-20 Thread Keith J. Schultz
ackgroundcolor=white,% strut=no,% heigth=fit,% offset=0pt, frameoffset=0pt, depth=0pt, top=, backgroundoffset=0pt% ] \defineoverlay[MyBoxit][MyBoxit] \starttext Here is the First Problem\par \MyBoxit[width=10cm] { \Statement{First Statement} \Statement{Second Statement} } \crlf With a

[NTG-context] MPLibrabray "txt" broken!?

2013-05-14 Thread Keith J. Schultz
, % height of a line \strutdepth, % depth of a line \strutheight % height of the first line ) ; % For visualization purposes only draw p ; \stopuseMPgraphic % For visualization purposes only \defineoverlay[shape][\useMPgraphic{shape}] \setupshapetexts

Re: [NTG-context] Layer for all pages and for specific pages

2013-05-06 Thread Wolfgang Schuster
ceRULE \definelayer[rule][state=repeat] \setlayer[rule][x=.5\textwidth]{\blackrule[width=1pt,height=\textheight]} \defineoverlay[rule][{\ifconditional\placeRULE\placelayer[rule]\fi}] \setupbackgrounds[text][background=rule] \starttext \input knuth \page \settrue\placeRULE \input tufte \page

[NTG-context] METAFUN+CONTEXT+CUSTOMIZE

2013-05-02 Thread MANUEL GONZALEZ SUAREZ
ture > sectioning > chapter @ level 2 : 0.1 -> This is a chapter ! Undefined control sequence. system > tex > error on line 19 in file custo.tex: Undefined control sequence ... 9 \stopuseMPgraphic 10 11 \defineoverlay[pagenumber][\useMPgraphic{pagenumber

Re: [NTG-context] METAFUN+CONTEXT+CUSTOMIZE

2013-05-02 Thread Wolfgang Schuster
startuseMPgraphic{pagenumber} draw fullcircle xyscaled(OverlayWidth,OverlayHeight) withcolor \MPcolor{blue} ; \stopuseMPgraphic \defineoverlay[pagenumber][\useMPgraphic{pagenumber}] \define[1]\PagenumberCommand {\framed[frame=off,background=pagenumber]{#1}} \setuppagenumbering[command=\P

Re: [NTG-context] [***SPAM***] Background color with dotted frame formula

2013-04-11 Thread Hans Hagen
color OverlayLineColor ; \stopuniqueMPgraphic \defineoverlay[LabelA][\uniqueMPgraphic{LabelA}] \defineoverlay[LabelB][\uniqueMPgraphic{LabelB}] \def\VariantA{\mframed[foregroundstyle=\tfc,frame=off,background=LabelA,backgroundoffset=3pt,backgroundcolor=red]} \def\VariantB{\mframed[foregroundstyle=\tfc,

[NTG-context] [***SPAM***] Background color with dotted frame formula

2013-04-11 Thread hwitloc
thpen pencircle scaled 1pt dashed withdots; setbounds currentpicture to boundingbox OverlayBox; \stopuniqueMPgraphic \defineoverlay[Label][\useMPgraphic{Label}] \def\dottext#1% { \mframed[frame=off, background=Label, location=low] { #1 } } \setupcolors[state=start] \def\rndgraymath{\mframed[

Re: [NTG-context] Framed: Individual background offsets

2013-03-23 Thread Wolfgang Schuster
> \startfoo [backgroundoffset=0cm, loffset=1cm] >\input ward > \stopfoo > \stopnarrower > > \stoptext \startuseMPgraphic{framed:background} fill unitsquare xyscaled(OverlayWidth,OverlayHeight) leftenlarged 1cm withcolor \MPcolor{lightgray}; setbounds currentpicture to Ov

Re: [NTG-context] different page background for chapter title page

2013-03-23 Thread Hans Hagen
(topboundary Page --cycle) enlarged(0,5mm) shifted (0,-5mm) withcolor \MPcolor{color:background:\namedstructureuservariable{chapter}{mycolor}} ; StopPage ; \stopuseMPgraphic \defineoverlay [background:normal] [\useMPgraphic{background:normal}] \startuseMPgraphic

[NTG-context] different page background for chapter title page

2013-03-23 Thread Thomas A. Schmitz
topuseMPgraphic \defineoverlay [background:normal] [\useMPgraphic{background:normal}] \startuseMPgraphic{background:title} StartPage ; numeric h ; h = 10mm ; z[1] = ulcorner Page shifted (0, -1.5*h) ; z[2] = urcorner Page shifted (0, -1.5*h); z[3] = z[2] shifted (0, -h) ; z[4] = z[1] shifted (0, -h) ; path p

Re: [NTG-context] problem with initialize_box in mkIV

2013-03-06 Thread Hans Hagen
On 3/5/2013 11:21 AM, Alexandre Gerussi wrote: Hi there, i'm having problems with metapost and positional graphics in mkIV. Here is a small test file that compiles OK with texexec but fails to compile with context: % the beginning \defineoverlay[frames][\positionoverlay{f

[NTG-context] problem with initialize_box in mkIV

2013-03-05 Thread Alexandre Gerussi
Hi there, i'm having problems with metapost and positional graphics in mkIV. Here is a small test file that compiles OK with texexec but fails to compile with context: % the beginning \defineoverlay[frames][\positionoverlay{frames}] \setupbackgrounds[page][background=f

Re: [NTG-context] text overlayed

2013-03-04 Thread Roland Thiers
0.3white); draw p; draw p'; draw q; draw q'; pair A; A:=q'intersectionpoint p'; pair B; B:=q intersectionpoint p'; pair C; C:=p intersectionpoint q; pair D; D:=q'intersectionpoint p; path s; s:= A--B--C--D--cycle; fill s withcolor .8white; \stopuniqueMPgraph

Re: [NTG-context] text overlayed

2013-03-04 Thread Marco Patzer
3white); draw p; draw p'; draw q; draw q'; pair A; A:=q'intersectionpoint p'; pair B; B:=q intersectionpoint p'; pair C; C:=p intersectionpoint q; pair D; D:=q'intersectionpoint p; path s; s:= A--B--C--D--cycle; fill s withcolor .8white; \stopuniqueMPgraphic \defineove

[NTG-context] text overlayed

2013-03-04 Thread Roland Thiers
q'intersectionpoint p; path s; s:= A--B--C--D--cycle; fill s withcolor .8white; \stopuniqueMPgraphic \starttext \defineoverlay[encadrement][\uniqueMPgraphic{essai}] \framed[frame=off,background=encadrement]{\it\tfb\color[darkred]{Devoir de mathématiques}} \stoptext ___

[NTG-context] recalculate background on every page with \uniqueMPgraphic?

2013-02-15 Thread Mikael P. Sundqvist
.7white; StopPage; \stopuniqueMPgraphic \defineoverlay[figram][\uniqueMPgraphic{figram}] \setupbackgrounds[page][background=figram] \starttext \dorecurse{10}{\input knuth} \stoptext ___ If your question is of interest to

[NTG-context] Layers, overlays

2013-01-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
overlay setups (beforetext: preset=righttop)? - Related code given before: \starttext \definelayer [beforetext][width=\overlaywidth,height=\overlayheight] \defineoverlay[beforetext][{\setups[beforetext]\tightlayer[beforetext]}] \startsetups[beforetext] \setlayer[beforetext][

Re: [NTG-context] [***Spam/VIR***] Re: Layer vs. overlay

2013-01-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
we can simplify to: \setupbodyfont[30pt] \starttext A \definelayer [beforetext][width=\overlaywidth,height=\overlayheight] \defineoverlay[beforetext][{\setups[beforetext]\tightlayer[beforetext]}] \startsetups[beforetext] \setlayer[beforetext][preset=righttop] {\framed

Re: [NTG-context] [***Spam/VIR***] Re: Layer vs. overlay

2013-01-16 Thread Philipp Gesang
· > Now, I have a code which does much expected, but I'm not able to pass the > desired content to setups/layer: > > > \setupbodyfont[30pt] > > \starttext > A > > \definelayer [beforetext][width=\overlaywidth,height=\overlayheight] >

Re: [NTG-context] [***Spam/VIR***] Re: Layer vs. overlay

2013-01-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
ttext A \definelayer [beforetext][width=\overlaywidth,height=\overlayheight] \defineoverlay[beforetext][{\setups[beforetext]\tightlayer[beforetext]}] \startsetups[beforetext] \setlayer[beforetext][preset=righttop]{\framed[width=2in]{\directlua{context(userdata.LPr.text)}}} \stops

Re: [NTG-context] [***Spam/VIR***] Re: Layer vs. overlay

2013-01-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks again. On Tue, 15 Jan 2013 11:09:48 +0100, Wolfgang Schuster wrote: \setupbodyfont[30pt] \starttext A \definelayer [beforetext][width=\overlaywidth,height=\overlayheight] \defineoverlay[beforetext][{\setups[beforetext]\tightlayer[beforetext]}] \startsetups[beforetext

Re: [NTG-context] Layer vs. overlay

2013-01-15 Thread Wolfgang Schuster
(given by > \pagewidth which was 21 cm at the moment of definition). > > I would probably need a way to alter the layer size to the current content... > > Or any other way to place something to the top right corner of the page from > within \start/stop-TEXpage, where page

Re: [NTG-context] [***Spam/VIR***] Re: Layer vs. overlay

2013-01-12 Thread Procházka Lukáš
horizontal and vertical centered. \setupbodyfont[40pt] \starttext \startoverlay {\strut\red m} {\strut\green a} {\strut\blue l} \stopoverlay \stoptext After you do know now what overlays are I come to the real overlay mechanism. Overlays are created with the \defineoverlay command which t

Re: [NTG-context] Layer vs. overlay

2013-01-12 Thread Procházka Lukáš
\starttext \startoverlay {\strut\red m} {\strut\green a} {\strut\blue l} \stopoverlay \stoptext After you do know now what overlays are I come to the real overlay mechanism. Overlays are created with the \defineoverlay command which takes a name for the overlay and its content. The

Re: [NTG-context] Layer vs. overlay

2013-01-11 Thread Wolfgang Schuster
u remove the \strut in the argument you would also notice that each argument is placed horizontal and vertical centered. \setupbodyfont[40pt] \starttext \startoverlay {\strut\red m} {\strut\green a} {\strut\blue l} \stopoverlay \stoptext After you do know now what overlays are I c

Re: [NTG-context] how to implement buttons, navigator in context's presentation

2013-01-07 Thread Wolfgang Schuster
ncircle scaled 3pt ; path p ; p := unitsquare xscaled OverlayWidth yscaled OverlayHeight ; fill p withcolor .8white ; draw p withcolor .625red ; \stopuseMPgraphic \defineoverlay[button][\useMPgraphic{wrong or right}] \setupbuttons[background=button,frame=off] \se

Re: [NTG-context] drops module (draft)

2012-12-06 Thread Hans Hagen
= r, xresolution = nx, yresolution = ny, } end \stopluacode \defineoverlay [BitMess] [{\scale [width=\dimexpr\overlaywidth+2ex,height=\dimexpr\overlayheight+2ex] {\ctxlua{document.TestBitmap(\number\dimexpr\overlaywidth,\number\dimexpr\overlayheight)}}

Re: [NTG-context] MetaPost instance mechanism broken

2012-11-26 Thread Marco Patzer
square xyscaled (\overlaywidth, \overlayheight) withcolor (uniformdeviate 1, uniformdeviate 1, uniformdeviate 1); \stopuseMPgraphic \defineoverlay [alpha] [\useMPgraphic{alpha}] \startreusableMPgraphic{beta} fill unitsquare xyscaled (\overlaywidth, \overlayheight) withcolor (unif

[NTG-context] Tikz backgrounds (was Re: Highlight current chapter in list)

2012-11-08 Thread Aditya Mahajan
laywidth,0) -- (\overlaywidth,\overlayheight) -- (0,\overlayheight) -- cycle;} \stoptikzpicture} \defineoverlay[decoration][\TIKZdecorationoverlay] \setupframed [decoration=snake] \starttext \framed[frame=off, rulethickness=3bp, background=decoration, backgroundoffset=3mm, framecolor=

Re: [NTG-context] Highlight current chapter in list

2012-11-08 Thread Hans Hagen
this wiki page: http://wiki.contextgarden.net/Layers#Use_dynamic_content here is another variant: \defineoverlay[pagenumber:preset][\texsetup{pagenumber:preset}] \startsetups pagenumber:preset PRESET \stopsetups \defineoverlay[pagenumber:action][\texsetup{pagenumber:action}] \startsetups

Re: [NTG-context] ntg-context Digest, Vol 100, Issue 63

2012-10-23 Thread Shane Peelar
quot;Rogers, Michael K" > To: mailing list for ConTeXt users > Subject: Re: [NTG-context] TABLE: header with a thick bottom line > Message-ID: > < > 1e5a50c784a8ad44b420ef5a1e9b2806afc33...@e14mbx20n.enterprise.emory.net> > > Content-Type: text/plain; charset="iso-

Re: [NTG-context] TABLE: header with a thick bottom line

2012-10-23 Thread Rogers, Michael K
, but it's kludgy. Perhaps there is a better way... Michael \startuseMPgraphic{MP:thickBtm} draw bottomboundary OverlayBox withpen pensquare scaled \frameddimension{bottomrulethickness}; clip currentpicture to OverlayBox; setbounds currentpicture to OverlayBox; \stopuseMPgraphic

Re: [NTG-context] TABLE: header with a thick bottom line

2012-10-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
OverlayBox; \stopuseMPgraphic \defineoverlay[OL:thickBtm][\useMPgraphic{MP:thickBtm}] \starttext \bTABLE \setupTABLE[align=middle] \setupTABLE[header][background={OL:thickBtm},bottomrulethickness=3mm] \setupTABLE[row][4][background={OL:thickBtm},bottomrulethickness=1.5mm] % \bTABLEhead\bTR

[NTG-context] making horizontal space in luacode.

2012-10-21 Thread Jeong Dal
fill b withcolor .425green;%.85white ; draw b ; draw p withcolor black ; setbounds currentpicture to a ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[FunnyText][frame=off,background=FunnyFrame, offset=\bodyfontsize, width=\overlaywidth]%.8\tex

Re: [NTG-context] Divided cells and bullet points in tables

2012-08-31 Thread Wolfgang Schuster
{offset}) ; draw textext.urt ("\strut\getvariable{table:diagonal}{second}") shifted (\frameddimension{offset},\frameddimension{offset}) ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[table:line:diagonal][\useMPgraphic{table:line:diagonal}] \st

Re: [NTG-context] Diagonal rule in table (was: Divided cells and bullet points in tables)

2012-08-31 Thread Marco Patzer
\overlaywidth-rulethickness, rulethickness); draw leftcorner -- rightcorner; \stopuseMPgraphic \defineoverlay [DiagonalRule] [\useMPgraphic{DiagonalRule}] \define[2]\DiagonalLabel{% \setuptabulate [after={\blank[\frameddimension{offset}]}] \starttabulate [|p|r|] \NC\NC #2 \NC\

Re: [NTG-context] Struggling with ConTeXt

2012-08-22 Thread Olivier Binda
OverlayBox withpen pencircle scaled 1pt withcolor green; draw (currentpicture enlarged 2cm) withcolor red withpen pencircle scaled 2pt; \stopusableMPgraphic \defineoverlay[myOverlay][\useMPgraphic{myFrame}] \defineframedtext[myStatement][frame=off] \setupframedtexts[myStatement][background=myOverlay

Re: [NTG-context] Struggling with ConTeXt

2012-08-22 Thread Aditya Mahajan
green; draw (currentpicture enlarged 2cm) withcolor red withpen pencircle scaled 2pt; \stopusableMPgraphic \defineoverlay[myOverlay][\useMPgraphic{myFrame}] \defineframedtext[myStatement][frame=off] \setupframedtexts[myStatement][background=myOverlay,offset=overlay,autowidth=force] \starttext

Re: [NTG-context] Struggling with ConTeXt

2012-08-22 Thread Olivier Binda
) withcolor red withpen pencircle scaled 2pt; \stopusableMPgraphic \defineoverlay[myOverlay][\useMPgraphic{myFrame}] \defineframedtext[myStatement][frame=off] \setupframedtexts[myStatement][background=myOverlay,offset=overlay,autowidth=force] \starttext \framed[strut=no]{\startmyStatement FIRST

Re: [NTG-context] Struggling with ConTeXt

2012-08-21 Thread Aditya Mahajan
scaled 1pt withcolor green; You could also use draw OverlayBox withpen ... draw (d enlarged 2cm) withcolor red withpen pencircle scaled 2pt; draw boundingbox currentpicture withpen pencircle scaled .1mm dashed evenly withcolor blue ; \stopusableMPgraphic \defineoverlay[myOverlay][\

Re: [NTG-context] Struggling with ConTeXt

2012-08-20 Thread Olivier Binda
OverlayWidth,OverlayHeight) shifted (-OverlayWidth/2,-OverlayHeight/2)) withpen pencircle scaled 1pt withcolor green; draw (d enlarged 2cm) withcolor red withpen pencircle scaled 2pt; draw boundingbox currentpicture withpen pencircle scaled .1mm dashed evenly withcolor blue ; \stopusable

Re: [NTG-context] Bug with rule between columns in columnset

2012-07-24 Thread Hans Hagen
OverlayBox ; \stopuseMPgraphic that (experimental) mechanism has been removed (maybe something else get in place, like regions we have already elsewhere) \defineoverlay [verticalline] [\useMPgraphic{verticalline}] \setupbackgrounds [text] [background=verticalline] \definecolumnset [example] [n=2]

[NTG-context] Bug with rule between columns in columnset

2012-07-24 Thread Marco
oesn't make sense any longer. Older betas work perfectly. \startuseMPgraphic{verticalline} for i=1 upto NOfTextColumns-1 : draw (rightboundary TextColumns[i]) shifted (2.5mm,0) shifted -\MPxy\textanchor; endfor ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \de

Re: [NTG-context] making my own simpleslides module

2012-07-19 Thread Marco
ra braces: \defineoverlay [simpleslides:background:horizontal] [{\externalfigure[/Users/graph/Documents/figures/background/ssuwave1][]}] And I would advice to have a look at the directory key of \setupexternalfigures. It is almost always a mistake to have a hard coded path in the cod

<    1   2   3   4   5   6   7   8   9   >