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

2015-08-07 Thread Otared Kavian
][.75(MyColorB,white)] \defineframedtext [MyText] [frame=off, background=MyFrame, width=\textwidth, location=right] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path

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

[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

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

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

2015-08-04 Thread Fabrice Couvreur
you, Fabrice \showframe \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

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

2015-05-26 Thread Kate F
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][\uniqueMPgraphic

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

2015-04-02 Thread Wolfgang Schuster
]}] \defineoverlay[chapterimage][\overlayfigure{\structureuservariable{image}}] \setuphead [chapter] [ before={\startmakeup[chapterpage]}, %command=\ChapterCommand, placehead=empty, after={\stopmakeup}] \setuphead [title] [ before={\blank[big]}, after={\blank[2*big

Re: [NTG-context] Frame and rulethickness

2015-03-28 Thread Wolfgang Schuster
bottomenlarged 0.5pt ; \stopuseMPgraphic \defineoverlay[ACFRAME][\useMPgraphic{ACFRAME}] \defineframed [ACFRAME] [frame=off, background=ACFRAME] \starttext \ACFRAME{ Example } \stoptext Wolfgang ___ If your question

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

2015-03-03 Thread Aditya Mahajan
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} \setMPpositiongraphic{n1

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

2015-03-03 Thread Hans Hagen
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{highlightoverlay

[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 {\scale[height

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
\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 algorithmes ci-dessous afin qu'ils

[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

[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 Peter Rolf
; \stopuniqueMPgraphic \defineoverlay[line][{\uniqueMPgraphic{line}}] and using it in \framed, but placing the line correctly is elusive. Just a quick and dirty solution. The trick is to draw the extra line as part of the graphic and then fake the boundingbox. This is also limited to a few

Re: [NTG-context] overlay

2014-11-24 Thread John Kitzmiller
; \stopuniqueMPgraphic \defineoverlay[line][{\uniqueMPgraphic{line}}] and using it in \framed, but placing the line correctly is elusive. Just a quick and dirty solution. The trick is to draw the extra line as part of the graphic and then fake the boundingbox. This is also limited to a few

Re: [NTG-context] overlay

2014-11-24 Thread Wolfgang Schuster
; 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 scaled 3pt withcolor green; \stopuniqueMPgraphic \defineoverlay[line

[NTG-context] overlay

2014-11-22 Thread John Kitzmiller
of 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
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 xyscaled(OverlayWidth

[NTG-context] Thumbnail sample.

2014-06-02 Thread john Culleton
] \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{thumbheight

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

2014-05-07 Thread Darksair
\defineoverlay[whatever][\uniqueMPgraphic{whatever}] \framed [background=whatever, backgroundcolor=green, frame=off, width=\textwidth] {test}% Thank you for this interesting solution! I didn’t know one could do that with Metapost. This does

[NTG-context] module not found?

2014-05-06 Thread Roger Mason
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 [userpage] Any help will be most appreciated

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

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

[NTG-context] Stepper code fails

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

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{InvokeStepper

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

2014-03-26 Thread Hans Hagen
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*default at 60pt]LOOK THROUGH

[NTG-context] Problem with an environment

2014-03-06 Thread Fabrice Couvreur
#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#where\space

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

2014-02-14 Thread Wolfgang Schuster
}] \starttext \defineoverlay[muh][{\externalfigure[cow][width=\overlaywidth, height=\overlayheight]}] \startframed[width=max,height=0.4\textheight,background=muh,align=right,foregroundcolor=darkred]% \startboxedcolumns[n=3] It was a dark and stormy night. The rain came down in tons

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

2014-02-13 Thread Wolfgang Schuster
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\textheight,background=muh,align=right,foregroundcolor

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 \defineoverlay[muh][{\externalfigure[cow

[NTG-context] narrowered columns on background image?

2014-02-12 Thread Rudolf Bahr
\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 [muh

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
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 fourth overlay][\positionoverlay{my backgraphics}] \startpositionoverlay{my backgraphics

Re: [NTG-context] New header

2014-01-20 Thread Hans Hagen
to start your tex 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

[NTG-context] Need help defining command.

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

[NTG-context] nested mp

2013-10-07 Thread Hans Hagen
; \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 rotated 45 withcolor white/2 ; draw

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

2013-10-05 Thread Hans Hagen
; 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}} \comment[t

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

2013-10-04 Thread Peter Münster
\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=mytest]{bla

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

2013-07-15 Thread Hans Hagen
for it) \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] 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

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

2013-07-14 Thread Dmitriy Tokarev
\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}\eTR

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
in 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 h.oezo...@mmnetz.de: 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] Help understanding framed!

2013-05-20 Thread Keith J. Schultz
,% 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 \% after the opening

[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] 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
]{\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 \input zapf \page \setfalse\placeRULE \input ward \stoptext Wolfgang

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

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

[NTG-context] METAFUN+CONTEXT+CUSTOMIZE

2013-05-02 Thread MANUEL GONZALEZ SUAREZ
sequence. system tex error on line 19 in file custo.tex: Undefined control sequence ... 9 \stopuseMPgraphic 10 11 \defineoverlay[pagenumber][\useMPgraphic{pagenumber}] 12 13 \define[1]\PagenumberCommand 14 {\framed[frame=off,background=""&g

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

2013-04-11 Thread hwitloc
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[frame

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

2013-04-11 Thread Hans Hagen
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,frame

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

2013-03-23 Thread Thomas A. Schmitz
\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 ; p = z[1] -- z

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

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

2013-03-23 Thread Wolfgang Schuster
\stoptext \startuseMPgraphic{framed:background} fill unitsquare xyscaled(OverlayWidth,OverlayHeight) leftenlarged 1cm withcolor \MPcolor{lightgray}; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[framed:background][\useMPgraphic{framed:background

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{frames

[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=frames

[NTG-context] text overlayed

2013-03-04 Thread Roland Thiers
.8white; \stopuniqueMPgraphic \starttext \defineoverlay[encadrement][\uniqueMPgraphic{essai}] \framed[frame=off,background=encadrement]{\it\tfb\color[darkred]{Devoir de mathématiques}} \stoptext ___ If your question

Re: [NTG-context] text overlayed

2013-03-04 Thread Marco Patzer
'; 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 \defineoverlay [encadrement] [\uniqueMPgraphic{essai}] \defineframed [boxframed] [frame=off

Re: [NTG-context] text overlayed

2013-03-04 Thread Roland Thiers
'; 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 \defineoverlay [encadrement] [\uniqueMPgraphic{essai}] \defineframed

[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

[NTG-context] Layers, overlays

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

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

2013-01-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
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)}}} \stopsetups

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

2013-01-16 Thread Philipp Gesang
,height=\overlayheight] \defineoverlay[beforetext][{\setups[beforetext]\tightlayer[beforetext]}] \startsetups[beforetext] \setlayer[beforetext][preset=righttop]{\framed[width=2in]{\directlua{context(userdata.LPr.text)}}} \stopsetups \startluacode userdata = userdata

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

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

Re: [NTG-context] Layer vs. overlay

2013-01-15 Thread Wolfgang Schuster
to the top right corner of the page from within \start/stop-TEXpage, where page size is not known in advance? \setupbodyfont[30pt] \starttext A \definelayer [beforetext][width=\overlaywidth,height=\overlayheight] \defineoverlay[beforetext][{\setups[beforetext]\tightlayer[beforetext

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 wolfgang.schus...@gmail.com wrote: \setupbodyfont[30pt] \starttext A \definelayer [beforetext][width=\overlaywidth,height=\overlayheight] \defineoverlay[beforetext][{\setups[beforetext]\tightlayer[beforetext

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

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

2013-01-12 Thread Procházka Lukáš
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 takes a name

Re: [NTG-context] Layer vs. overlay

2013-01-11 Thread Wolfgang Schuster
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

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

2013-01-07 Thread Wolfgang Schuster
:= 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] \setupinteraction[state=start

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

2012-12-06 Thread Hans Hagen
\stopluacode \defineoverlay [BitMess] [{\scale [width=\dimexpr\overlaywidth+2ex,height=\dimexpr\overlayheight+2ex] {\ctxlua{document.TestBitmap(\number\dimexpr\overlaywidth,\number\dimexpr\overlayheight)}}}] \framed [width=10cm, height=10cm, frame=off, background={BitMess,color

Re: [NTG-context] MetaPost instance mechanism broken

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

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

2012-11-08 Thread Hans Hagen
layer take a look at 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

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

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

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

2012-10-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
to 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

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

2012-10-23 Thread Rogers, Michael K
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 \defineoverlay

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

2012-10-23 Thread Shane Peelar
to OverlayBox; setbounds currentpicture to OverlayBox; \stopuseMPgraphic \defineoverlay[OL:thickBtm][\useMPgraphic{MP:thickBtm}] \starttext \bTABLE % Overlay method \setupTABLE[align=middle] % By eye, by trial: boffset = bottomrulethickness/2 - 0.2mm \setupTABLE[header

[NTG-context] making horizontal space in luacode.

2012-10-21 Thread Jeong Dal
black ; setbounds currentpicture to a ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[FunnyText][frame=off,background=FunnyFrame, offset=\bodyfontsize, width=\overlaywidth]%.8\textwidth] \def\StartFrame{\startFunnyText} \def\StopFrame {\stopFunnyText

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

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

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

2012-08-31 Thread Wolfgang Schuster
}) shifted (\frameddimension{offset},\frameddimension{offset}) ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[table:line:diagonal][\useMPgraphic{table:line:diagonal}] \starttext \bTABLE[width=4cm,height=4cm] \bTR \bTD[background=table:line:diagonal

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-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
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-21 Thread Aditya Mahajan
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][\useMPgraphic{myFrame

Re: [NTG-context] Struggling with ConTeXt

2012-08-20 Thread Olivier Binda
(-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 ; \stopusableMPgraphic \defineoverlay[myOverlay

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

2012-07-24 Thread Marco
\defineoverlay [verticalline] [\useMPgraphic{verticalline}] \setupbackgrounds [text] [background=verticalline] \definecolumnset [example] [n=2] \starttext \startcolumnset [example] \input knuth \stopcolumnset \stoptext Marco

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

2012-07-24 Thread Hans Hagen
to 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] making my own simpleslides module

2012-07-19 Thread dalyoung
Dear Thomas, I tested making my simpleslides module SsuWave by modifying simpleslides-s-Rounded.tex (1) I just replaced MP figures for horizontal and title with some figures as follows for test : \defineoverlay [simpleslides:background:horizontal] % [\useMPgraphic{simpleslides:MP:horizontal

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

2012-07-19 Thread Wolfgang Schuster
Am 19.07.2012 um 16:27 schrieb dalyoung: Dear Thomas, I tested making my simpleslides module SsuWave by modifying simpleslides-s-Rounded.tex (1) I just replaced MP figures for horizontal and title with some figures as follows for test : \defineoverlay

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

2012-07-19 Thread Marco
: \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 code. Marco

[NTG-context] write my own text in the header

2012-07-17 Thread dalyoung
page. Is there a way to do such a job? 2. Is it possible to use my own figure as a background under the simpleslide module? -- Example-- \usemodule[simpleslides][style=HorizontalStripes,font=] \defineoverlay[yellow-spring][{\externalfigure[./background/yellowspring][width=\paperwidth

Re: [NTG-context] write my own text in the header

2012-07-17 Thread Hans Hagen
at last appeared at the header of every page. Is there a way to do such a job? 2. Is it possible to use my own figure as a background under the simpleslide module? -- Example-- . \usemodule[simpleslides][style=HorizontalStripes,font=] . \defineoverlay[yellow-spring][{\externalfigure

Re: [NTG-context] Page Backgrounds

2012-07-09 Thread Hans Hagen
{\externalfigure [Makeup/Images/Background.png] [align=center, \paperwidth, \paperheight]} % the actual contents of the layer less code: \defineoverlay [BackgroundImage] [\overlayfigure{Makeup/Images/Background.png}] , the following

Re: [NTG-context] Page Backgrounds

2012-07-09 Thread Wolfgang Schuster
on second page, \setupbackgrounds[page][background=BackgroundImage] . But this does not work properly. What ends up happening is the cover image is displayed correctly, but every page after that just has a blank white background. \setupexternalfigures[directory=Makeup/Images] \defineoverlay

Re: [NTG-context] Page Backgrounds

2012-07-09 Thread Kip Warner
On Mon, 2012-07-09 at 10:06 +0200, Wolfgang Schuster wrote: \setupexternalfigures[directory=Makeup/Images] \defineoverlay [backgroundimage] [{\ifnum\rawcountervalue[userpage]=1\relax \overlayfigure{Cover}% \else \overlayfigure{Background}% \fi

<    1   2   3   4   5   6   7   8   >