Re: [NTG-context] meta post query (MK2) re underlining

2010-07-16 Thread Hans Hagen
On 16-7-2010 5:00, Bowen Alan C. wrote: I have been using \definetextbackground[underline] [location=text,alternative=1,background=,frame=off] for underlining in my documents and \startuseMPgraphic{mpos:par:columnset} \iftracepositions show_multi_pars \else draw_multi_pars \fi

[NTG-context] meta post query (MK2) re underlining

2010-07-16 Thread Bowen Alan C.
I have been using \definetextbackground[underline] [location=text,alternative=1,background=,frame=off] for underlining in my documents and \startuseMPgraphic{mpos:par:columnset} \iftracepositions show_multi_pars \else draw_multi_pars \fi ; path p ; p := boundingbox currentpicture

Re: [NTG-context] Custom metaobj object in context

2010-07-14 Thread Aditya Mahajan
ure out it does not work. I tried the example from the metaobj >>> manual in a tex document (it works in a metapost file): >>> >>> \startuseMPgraphic{objecttest} >>> vardef newsegm...@#= >>> assignObj(@#,"Segment"); >>> ObjPoint a,b;

Re: [NTG-context] Custom metaobj object in context

2010-07-14 Thread Stefan Müller
): \startuseMPgraphic{objecttest} vardef newsegm...@#= assignObj(@#,"Segment"); ObjPoint a,b; ObjCode "@#...@#a=(1cm,2cm)"; enddef; \stopuseMPgraphic When processing this with context (MkIV) I get ! Illegal parameter number in definition of \...@mpg@objecttest. = vardef newsegm...@##= as

[NTG-context] change numeral to string in Metafun

2010-07-13 Thread dalyoung
a received numeral. But it is not working. If I change h to "letter" in label command, it is working. So, I'd like to know how to put received numeral(the height of the box) as a label. Or, how to change the value of a variable to a string. Here is a working sample code. \startuseMPgra

Re: [NTG-context] Custom metaobj object in context

2010-07-13 Thread Hans Hagen
On 13-7-2010 6:01, Stefan Müller wrote: Hi, I just tried to build my own object in metaobj but for some reason I cannot figure out it does not work. I tried the example from the metaobj manual in a tex document (it works in a metapost file): \startuseMPgraphic{objecttest} vardef newsegm

[NTG-context] Custom metaobj object in context

2010-07-13 Thread Stefan Müller
Hi, I just tried to build my own object in metaobj but for some reason I cannot figure out it does not work. I tried the example from the metaobj manual in a tex document (it works in a metapost file): \startuseMPgraphic{objecttest} vardef newsegm...@#= assignObj(@#,"Se

Re: [NTG-context] Problems with TeX Live 2010

2010-06-17 Thread Matija Šuklje
ors[state=start] %Plussy — the FSFE Fellowship logo \startuseMPgraphic{plussy} unit := 0.2cm; dx := 1.2; color maincolor; maincolor = (0,0.9,0); % fixme path p; p := unitsquare scaled unit; fill p withcolor maincolor; fill p shifted ( dx*unit,0) withcolor mainco

Re: [NTG-context] How to place a (right) brace in a TABLE?

2010-05-20 Thread Vladimir Lomov
,frame=off,offset=1ex] > \bTD[background=linkeklammer] text \eTD > \bTD text\\text\\text \eTD > \bTD[background=rechteklammer] text \eTD > \eTR > \eTABLE > \stoptext > and this: > \startuseMPgraphic{accolade} > z1 = (-233,0) ; > z2 = (-220,22) ; > z

Re: [NTG-context] How to place a (right) brace in a TABLE?

2010-05-20 Thread Wolfgang Schuster
\bTR[align={middle,middle},frame=off,offset=1ex] \bTD[background=linkeklammer] text \eTD \bTD text\\text\\text \eTD \bTD[background=rechteklammer] text \eTD \eTR \eTABLE \stoptext and this: \startuseMPgraphic{accolade} z1 = (-233,0) ; z2 = (-220,22) ; z3 = (-155,211) ; z4 = (-20

Re: [NTG-context] installing metauml in context

2010-05-14 Thread Taco Hoekwater
code from mailing list itself. \chapter{Diameter Finite State Machine} The state machine of the diameter base protocol implementation will observer following state machine. \startMPinclusions input metauml; \stopMPinclusions \startuseMPgraphic{xx} save A; save B; Class.A("Point")

[NTG-context] installing metauml in context

2010-05-14 Thread luigi scarso
mplementation will observer > following state machine. > \startMPinclusions > input metauml; > \stopMPinclusions > \startuseMPgraphic{xx} > > save A; > save B; > Class.A("Point") >       ("+x: int", >        "+y: int") ();

Re: [NTG-context] installing metauml in context

2010-05-14 Thread Shiv Shankar Dayal
owing is from a file for which I took the code from mailing list itself. \chapter{Diameter Finite State Machine} The state machine of the diameter base protocol implementation will observer following state machine. \startMPinclusions input metauml; \stopMPinclusions \startuseMPgraphic{xx}

[NTG-context] MKIV numbering

2010-05-14 Thread richard . stephens
the differences. \setupcolors[state=start] \setupinteraction[state=start,color=darkgreen,style=normal] \setupnumbering[way=bysection] \startuseMPgraphic{Circle}         draw fullcircle scaled 2cm; \stopuseMPgraphic \starttext \section{First section} See \in{Figure}[fig:Circle]. \placefigure[here

Re: [NTG-context] processaction inside MP graphic

2010-05-13 Thread luigi scarso
2010/5/13 Vianney le Clément : >> \getparameters[Shape][square={unitsquare }, >>                     circle={unitcircle }] >> \starttext >> >> \startuseMPgraphic{test} >> fill \Shapesquare  scaled 1cm; >> \stopuseMPgraphic >> \useMPgraphic{tes

Re: [NTG-context] processaction inside MP graphic

2010-05-13 Thread Vianney le Clément
> \getparameters[Shape][square={unitsquare }, >                     circle={unitcircle }] > \starttext > > \startuseMPgraphic{test} > fill \Shapesquare  scaled 1cm; > \stopuseMPgraphic > \useMPgraphic{test} > \stoptext This one&#x

Re: [NTG-context] processaction inside MP graphic

2010-05-13 Thread Hans Hagen
On 13-5-2010 11:13, luigi scarso wrote: \setevalue{square}{unitsquare} \setevalue{circle}{unitcircle} \starttext \startuseMPgraphic{test} fill \getvalue{square} scaled 1cm; \stopuseMPgraphic \useMPgraphic{test} \stoptext or > \setevalue{mynamespace:square}{unitsquare} > \set

Re: [NTG-context] processaction inside MP graphic

2010-05-13 Thread luigi scarso
ive  : http://foundry.supelec.fr/projects/contextrev/ > wiki     : http://contextgarden.net > ___ > Also \getparameters[Shape][square={unitsquare }, circle={unitcircle }] \starttext \

Re: [NTG-context] processaction inside MP graphic

2010-05-13 Thread Taco Hoekwater
Vianney le Clément wrote: Hello, I'm having some trouble with a macro using \processaction inside a metapost graphic. Here is a minimal example. \def\Shape#1% {\processaction[#1] [square=>unitsquare, circle=>unitcircle]} \starttext \startuseMPgraphic{test} fill \S

[NTG-context] processaction inside MP graphic

2010-05-12 Thread Vianney le Clément
Hello, I'm having some trouble with a macro using \processaction inside a metapost graphic. Here is a minimal example. \def\Shape#1% {\processaction[#1] [square=>unitsquare, circle=>unitcircle]} \starttext \startuseMPgraphic{test} fill \Shape{square} scaled 1cm; \stopu

Re: [NTG-context] How to get randomly coloured text in metapost?

2010-05-11 Thread luigi scarso
___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage  : http://www.pragma-ade.nl / http://

Re: [NTG-context] How to get randomly coloured text in metapost?

2010-05-11 Thread Marco
promising, but I get the following compile error: !mplib : mp terminal: >> "\colored [r=" >> 0.74464 ! Not implemented: (string)&(known numeric). I used the following code: \starttext \startuseMPgraphic {1} numeric r, g, b ; r := uniformdevia

Re: [NTG-context] How to get randomly coloured text in metapost?

2010-05-11 Thread Marco
h variation in color :-( \def\r{\ctxlua{commands.getrandomcounta(0,1)}} % Defining the colour at this point makes it kind of static again \definecolor[my][r=\r,g=\r,b=\r] \starttext \startuseMPgraphic {1} % The colour is all the same, but different in each run for i=0 upto 5: label(textext("\color[my]{Test

Re: [NTG-context] How to get randomly coloured text in metapost?

2010-05-11 Thread Alan BRASLAU
On Tuesday 11 May 2010 17:48:09 Marco wrote: > Hi, > > how to get random colours for text inside textext? Take a look at the > following example (MKIV). > > \definecolor [static] [r=.9, g=.7, b=.8] > \starttext > \startuseMPgraphic {1} > > def col= > (u

[NTG-context] How to get randomly coloured text in metapost?

2010-05-11 Thread Marco
Hi, how to get random colours for text inside textext? Take a look at the following example (MKIV). \definecolor [static] [r=.9, g=.7, b=.8] \starttext \startuseMPgraphic {1} def col= (uniformdeviate(1),uniformdeviate(1),uniformdeviate(1)) enddef; % These dots have a random color for i=0

[NTG-context] Running standalone metapost file omits spaces between btex and etex

2010-05-07 Thread Hongwen Qiu
I found that the following example \starttext \startuseMPgraphic{test} draw btex some text with space etex; \stopuseMPgraphic \useMPgraphic{test} \stoptext can generate the text between "btex" and "etex" correct no matter I use MKII or MKIV. But, when I running the followi

Re: [NTG-context] MetaPost Animation

2010-04-16 Thread Boštjan Vesnicer
running MetaPost, and using \externalfigure. The following > MetaPost sample code generate 21 graphics images (numbered .0 to > .20), but I have no idea how to have ConTeXt generate these graphics > without a manual external MetaPost run and have them included in a way > that is consi

[NTG-context] MetaPost Animation

2010-04-15 Thread Troy Henderson
ncluded in a way that is consistent with \startuseMPgraphic or similar. Thanks in advance, Troy Henderson path p,q; p:=fullcircle scaled 72; L:=length p; N:=20; for n=0 upto N: beginfig(n); q:=subpath (0,n/N*L) of p; draw q withcolor red;

Re: [NTG-context] Building a guitar chord using MP

2010-04-12 Thread Vyatcheslav Yatskovsky
Hurray! I've got first draft version of guitar chord building macro. (With the help of this excellent manual http://www.tug.org/docs/metapost/mpman.pdf ) % -- working version --- \startuseMPgraphic{chordgrid}{e,B,G,D,A,E} def fretmark(expr a,b) = % a = string number % b =

[NTG-context] Where to put MP macro?

2010-04-11 Thread Vyatcheslav Yatskovsky
Hello, Thanks to Taco, I have some progress in developing "guitar chord" command. My current trouble is how to develop the "mark" MP macro and where to put it? Inside startuseMPgraphic? \startuseMPgraphic{chordgrid}{e,B,G,D,A,E} drawoptions(withpen pencircle scaled 0

Re: [NTG-context] Building a guitar chord using MP

2010-04-10 Thread Taco Hoekwater
overlay circles on it using TeX? Please, an example. First, create a metapost macro to draw a dot on a bar using two arguments. Let's assume this is "mark(a,b)". I won't write that metapost macro for you, you have to do that yourself. \startuseMPgraphic{chordgrid}{e,B,G,D,A,E}

Re: [NTG-context] Metafun in MacTeX 209 distribution

2010-04-06 Thread jindrich Ruzicka
exec I receive what I > expect. > > Is it a feature of Mac distribution or there is a mismatch in some > file/directory permissions? (mptopfd, ...) > Are there another installation steps needed after fresh MacTeX installation? > > > the test file is: > > \startu

[NTG-context] Metafun in MacTeX 209 distribution

2010-04-04 Thread jindrich Ruzicka
? (mptopfd, ...) Are there another installation steps needed after fresh MacTeX installation? the test file is: \startuseMPgraphic{def} ... \stopuseMPgraphic \startuseMPgraphic{obr30} \includeMPgraphic{def} ... \stopuseMPgraphic \starttext test \placefigure[here][fig1]{yyy

Re: [NTG-context] Metapost inclusion does not work

2010-03-31 Thread Willi Egger
On 31 Mar 2010, at 03:00, luigi scarso wrote: On Wed, Mar 31, 2010 at 2:33 AM, Marco wrote: Hi, the following example just prints »Hello World!«, without the square. What's wrong? \startuseMPgraphic{test} fill fullsquare scaled 5cm; \stopuseMPgraphic \starttext Hello World! \useMPgr

Re: [NTG-context] Metapost inclusion does not work

2010-03-30 Thread luigi scarso
On Wed, Mar 31, 2010 at 2:33 AM, Marco wrote: > Hi, > > the following example just prints »Hello World!«, without the square. > What's wrong? > > \startuseMPgraphic{test} > fill fullsquare scaled 5cm; > \stopuseMPgraphic > > \starttext > Hello World! > \u

[NTG-context] Metapost inclusion does not work

2010-03-30 Thread Marco
Hi, the following example just prints »Hello World!«, without the square. What's wrong? \startuseMPgraphic{test} fill fullsquare scaled 5cm; \stopuseMPgraphic \starttext Hello World! \useMPgraphic{test} \stoptext ConTeXt ver: 2010.03.20 22:59 MKIV this is luatex, version beta-0

Re: [NTG-context] Setting expansion depth limit for metapost

2010-03-19 Thread Michal Suszko
isolated it in the process. There were 3 MP graphics each one used once on each page. After change them from \startuseMPgraphic ... \stopuseMPgraphic and \useMPgraphic to \startreusableMPgraphic ... \stopreusableMPgraphic and \useMPgraphic error messages disappe

Re: [NTG-context] Something is wrong with backgrounds

2010-03-04 Thread Andreas Harder
Am 04.03.2010 um 15:31 schrieb Wolfgang Schuster: > Am 04.03.10 15:17, schrieb Andreas Harder: >> Hi all, >> >> if I compile the following example with the actual beta, the circle is set >> in foreground … even if the background is not set. >> >> \start

Re: [NTG-context] Something is wrong with backgrounds

2010-03-04 Thread Wolfgang Schuster
Am 04.03.10 15:17, schrieb Andreas Harder: Hi all, if I compile the following example with the actual beta, the circle is set in foreground … even if the background is not set. \startuseMPgraphic{test} fill fullcircle scaled 5cm withcolor red; \stopuseMPgraphic \defineoverlay[test

[NTG-context] Something is wrong with backgrounds

2010-03-04 Thread Andreas Harder
Hi all, if I compile the following example with the actual beta, the circle is set in foreground … even if the background is not set. \startuseMPgraphic{test} fill fullcircle scaled 5cm withcolor red; \stopuseMPgraphic \defineoverlay[test]{\useMPgraphic{test}} % \setupbackgrounds[page

Re: [NTG-context] MetaPost bug? in MKIV

2010-03-02 Thread Peter Rolf
2010 17:34, schrieb Troy Henderson: >> The following example produces expected output with MKII (texexec) but >> fails the compilation process with MKIV (context). >> >> \startuseMPgraphic{foo} >>input graph; >>path p; >>gdata("data.d",

Re: [NTG-context] MetaPost bug? in MKIV

2010-03-02 Thread Peter Rolf
this is only an incompatibility and not a bug. Best wishes, Peter Am 02.03.2010 17:34, schrieb Troy Henderson: > The following example produces expected output with MKII (texexec) but > fails the compilation process with MKIV (context). > > \startuseMPgraphic{foo} >input graph; &

[NTG-context] MetaPost bug? in MKIV

2010-03-02 Thread Troy Henderson
The following example produces expected output with MKII (texexec) but fails the compilation process with MKIV (context). \startuseMPgraphic{foo} input graph; path p; gdata("data.d", $, augment.p($1,$2);); draw begingraph(4in,2.5in); gdraw p; endgraph; \stopus

[NTG-context] Metafun does not change color

2010-02-18 Thread Xan
efineframedtext[FunnyText][frame=off,background=FunnyFrame] \def\StartFrame{\startFunnyText} \def\StopFrame {\stopFunnyText } \def\FrameTitle#1% {\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut#1\hss}}} \setMPtext{FunnyFrame}{} % initialize the text variable \startuseMPgraphic{FunnyFrame} pict

[NTG-context] Flowchart module--> height proportional to text

2010-02-18 Thread Xan
}] \defineframedtext[FunnyText][frame=off,background=FunnyFrame] \def\StartFrame{\startFunnyText} \def\StopFrame {\stopFunnyText } \def\FrameTitle#1% {\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut#1\hss}}} \setMPtext{FunnyFrame}{} % initialize the text variable \startuseMPgraphic{FunnyFrame} pic

Re: [NTG-context] last chapter number in Metapost

2010-01-18 Thread Hans Hagen
On 18-1-2010 16:47, Andreas Harder wrote: \startuseMPgraphic{test} current := \somestructureheadnumber[chapter][current] ; last:= \somestructureheadnumber[chapter][last]; % current := 2 ; % last:= 6 ; skip:= TextHeight * (current-1)/last ; StartPage

Re: [NTG-context] last chapter number in Metapost

2010-01-18 Thread Andreas Harder
t One more question appeared: How to access them in a Metapost environment? I tried some methods but none of them seems to work. % \setupMPvariables % [test] % [current={\somestructureheadnumber[chapter][current]}, %last={\somestructureheadnumber[chapter][last]}] \startuseMPgraphi

Re: [NTG-context] Using frames with metapost background in metapost

2010-01-11 Thread Hans Hagen
On 11-1-2010 3:07, Aditya Mahajan wrote: \startmode[error] \defineoverlay[MP:background] [\useMPgraphic{MP:backgound}] \startuseMPgraphic{MP:backgound} draw OverlayBox randomized 9pt withcolor blue; \stopuseMPgraphic \stopmode \defineframed[boxframed][frame=on,background

[NTG-context] Using frames with metapost background in metapost

2010-01-10 Thread Aditya Mahajan
] [\useMPgraphic{MP:backgound}] \startuseMPgraphic{MP:backgound} draw OverlayBox randomized 9pt withcolor blue; \stopuseMPgraphic \stopmode \defineframed[boxframed][frame=on,background=MP:background] % A frame defined with \defineframe does not work % inside Metapost, so I prevent

Re: [NTG-context] Natural Tables Cell Borders

2010-01-06 Thread Curiouslearn
ed solution won't be possible without Hans but you can set > the values in TeX (\framed, \setupTABLE) and use them in MetaPost. > > The following example show you what can be done. > > \unprotect > > \startuseMPgraphic{tableborder} > > %linecap := b

Re: [NTG-context] Natural Tables Cell Borders

2010-01-06 Thread Wolfgang Schuster
an be done. \unprotect \startuseMPgraphic{tableborder} %linecap := butt ; numeric FrameOffset, LeftRuleThickness, RightRuleThickness, TopRuleThickness, BottomRuleThickness ; FrameOffset := \frameddimension{frameoffset} ; LeftRuleThickness := \frameddimension{leftrulethickness}

[NTG-context] \framedparameter

2010-01-04 Thread Wolfgang Schuster
Hi Hans, in MkII the following is possible without problems: \setupcolors[state=start] \startuseMPgraphic{frameborder} drawoptions(withcolor \MPcolor{\framedparameter{framecolor}}) ; draw topboundaryOverlayBox withpen pencircle scaled \the\dimexpr\framedparameter{toprulethickness}\relax

Re: [NTG-context] Metapost label - Truncating digits after decimal point

2009-12-15 Thread Curiouslearn
te#1{\ctxlua{context("\%.1f", #1)}} > > \startMPdefinitions >  def truncatedtext(expr s) = >    textext("\truncate{" & s & "}") >  enddef ; > \stopMPdefinitions > > \starttext > \startuseMPgraphic{Figure} >  u := 1cm; >  pickup

Re: [NTG-context] Metapost label - Truncating digits after decimal point

2009-12-15 Thread Aditya Mahajan
can use lua to truncate a number. \unexpanded\def\truncate#1{\ctxlua{context("\%.1f", #1)}} \startMPdefinitions def truncatedtext(expr s) = textext("\truncate{" & s & "}") enddef ; \stopMPdefinitions \starttext \startuseMPgraphic{Figure} u

Re: [NTG-context] Metapost code does not work - Can you find the problem?

2009-12-01 Thread Curiouslearn
Sorry for the question. I figured it out. I have square brackets instead of braces in the \startuseMPgraphic line. On Tue, Dec 1, 2009 at 3:52 PM, Curiouslearn wrote: > Can someone please tell me why the code below does not work? > > Thanks a ton. > > \starttext > >

[NTG-context] Metapost code does not work - Can you find the problem?

2009-12-01 Thread Curiouslearn
Can someone please tell me why the code below does not work? Thanks a ton. \starttext \startuseMPgraphic[CS] u:=1cm; pickup pencircle scaled 2pt; %Paths path demandCS; demandCS := (0,5u) -- (10u,0

[NTG-context] Metapost label - Truncating digits after decimal point

2009-11-28 Thread Curiouslearn
\startuseMPgraphic{Figure} u := 1cm; pickup pencircle scaled 2pt; % default pen thickness %TheFunction vardef f(expr x) = (10/x)-x*((0.5)**x) enddef; %Labels label.lft(textext(decimal f(5)),(0,f

Re: [NTG-context] Metapost - Seems like weird behavior. Is it a bug?

2009-11-24 Thread luigi scarso
ance=0in,rightedgedistance=0in,topspace=0.5in,width=6.5in,height=10in] > > \setupcolors[state=start] > > > \starttext > > \startuseMPgraphic{buildS22} >        numeric u; >        u := 1cm; >        w:= 2pt; >        path xaxis; path yaxis; >        xaxis :

[NTG-context] Metapost - Seems like weird behavior. Is it a bug?

2009-11-24 Thread Curiouslearn
] \starttext \startuseMPgraphic{buildS22} numeric u; u := 1cm; w:= 2pt; path xaxis; path yaxis; xaxis := (0,0)--(12,0) scaled u; yaxis := (0,0)--(0,12) scaled u; path stLine; path Curve; stLine := function (1

Re: [NTG-context] Adjusting the size of a figure when using placefigure

2009-11-24 Thread Curiouslearn
>> \setuppapersize[letter][letter] >> \setuplayout[leftedge=0in,leftmargin=1in,leftmargindistance=0in,rightmargin=1in,rightmargindistance=0in,rightedge=0in,leftedgedistance=0in,rightedgedistance=0in,topspace=0.5in,width=6.5in,height=10in] >> >> \setupcolors[state=start] >>

Re: [NTG-context] Adjusting the size of a figure when using placefigure

2009-11-24 Thread luigi scarso
tance=0in,topspace=0.5in,width=6.5in,height=10in] > > \setupcolors[state=start] > > > \starttext >        \startuseMPgraphic{firstFig} >                numeric u; >                u:=1in; >                draw (0,0)--(4u,0) withpen pencircle scaled 2pt withcolor red;

[NTG-context] Adjusting the size of a figure when using placefigure

2009-11-24 Thread Curiouslearn
\startuseMPgraphic{firstFig} numeric u; u:=1in; draw (0,0)--(4u,0) withpen pencircle scaled 2pt withcolor red; \stopuseMPgraphic \startuseMPgraphic{secondFig} numeric u; u:=1in; draw

Re: [NTG-context] MetaPost integration: default parameters

2009-11-22 Thread luigi scarso
On Sun, Nov 22, 2009 at 9:33 PM, Wolfgang Schuster wrote: > > Am 22.11.2009 um 21:15 schrieb luigi scarso: > >> %%test-outlined.tex >> \starttext >> \startTEXpage >> \startuseMPgraphic{a} >> graphictext "\bf Fun" scaled 4 zscaled (1,1.5)

Re: [NTG-context] MetaPost integration: default parameters

2009-11-22 Thread Wolfgang Schuster
Am 22.11.2009 um 21:15 schrieb luigi scarso: > %%test-outlined.tex > \starttext > \startTEXpage > \startuseMPgraphic{a} > graphictext "\bf Fun" scaled 4 zscaled (1,1.5) > withdrawcolor blue > withfillcolor .5white > withpen pencircle scaled 5pt >

Re: [NTG-context] MetaPost integration: default parameters

2009-11-22 Thread luigi scarso
> So does this mean that outline fonts in MetaPost are currently dead with MkIV? %%test-outlined.tex \starttext \startTEXpage \startuseMPgraphic{a} graphictext "\bf Fun" scaled 4 zscaled (1,1.5) withdrawcolor blue withfillcolor .5white withpen pencircle scaled 5pt \stopuseMPgraphic

Re: [NTG-context] Metapost Code works with MKII not with MKIV

2009-11-18 Thread Curiouslearn
II. >> >  \setuppapersize[letter][letter] >  \setupcolors[state=start] >  \setuppagenumbering[state=stop] > >  \starttext > >  \startuseMPgraphic{Filling} >         u := 1cm; >         w:= 2pt; >         %Axes >         path xaxis; path yaxis; >         xaxi

Re: [NTG-context] Metapost Code works with MKII not with MKIV

2009-11-18 Thread luigi scarso
le, I just updated my installation of Context minimals. The > following simple Metapost code does not compile with MKIV, but > compiles okay with MKII. > \setuppapersize[letter][letter] \setupcolors[state=start] \setuppagenumbering[state=stop] \starttext \startuseMPgraphic{Filling}  

Re: [NTG-context] Metapost Code works with MKII not with MKIV

2009-11-18 Thread Aditya Mahajan
minimals. The following simple Metapost code does not compile with MKIV, but compiles okay with MKII. \setuppapersize[letter][letter] \setupcolors[state=start] \setuppagenumbering[state=stop] \starttext \startuseMPgraphic{Filling} u := 1cm; w:= 2pt; %Axes path xaxis

[NTG-context] Metapost Code works with MKII not with MKIV

2009-11-18 Thread Curiouslearn
does not compile with MKIV, but compiles okay with MKII. \setuppapersize[letter][letter] \setupcolors[state=start] \setuppagenumbering[state=stop] \starttext \startuseMPgraphic{Filling} u := 1cm; w:= 2pt; %Axes path xaxis; path yaxis; xaxis := (0,0)--(12,0

Re: [NTG-context] Pstricks and Asymptote

2009-11-17 Thread Hans Hagen
} input metaobj; \stopMPdefinitions \startuseMPgraphic{whatevere1::mygraphic} Is there something for luatex too ? eh .. this is for mkiv Hans - Hans Hagen | PRAGMA ADE

Re: [NTG-context] Pstricks and Asymptote

2009-11-17 Thread luigi scarso
tions{whatever1} > input metaobj; > \stopMPdefinitions > > \startuseMPgraphic{whatevere1::mygraphic} Is there something for luatex too ? -- luigi ___ If your question is of interest to others as well, please

Re: [NTG-context] Pstricks and Asymptote

2009-11-17 Thread Hans Hagen
=yes,initializations=yes] \defineMPinstance[whatever2][format=mpost] \startMPdefinitions{whatever1} input metaobj; \stopMPdefinitions \startuseMPgraphic{whatevere1::mygraphic} . should work

[NTG-context] Metapost+mpgraph withcolor

2009-11-08 Thread Alan BRASLAU
glabel withcolor is broken (mkiv and mkii). The label at the first point is black (the 2nd comes out red). %% minimal example %% \setupcolors[state=start] \usemodule[graph] \startuseMPgraphic{test} draw begingraph(16cm,12cm); gdraw (0,0) -- (1,1) withcolor red ; glabel.urt(btex

Re: [NTG-context] Metapost+mpgraph and mkiv

2009-11-07 Thread Alan BRASLAU
xt \startMPinclusions input graph \stopMPinclusions \startuseMPgraphic{test} draw begingraph(16cm,12cm); setrange(whatever,whatever,whatever,whatever); gdraw (0,0) -- (1,1) ; endgraph; \stopuseMPgraphic \startTEXpage \useMPgra

[NTG-context] Metapost+mpgraph and mkiv

2009-11-07 Thread Alan BRASLAU
mpgraph does not appear to work properly under mkiv. %% minimal example %% \starttext \startuseMPgraphic{test} input graph draw begingraph(16cm,12cm); setrange(whatever,whatever,whatever,whatever); gdraw (0,0) -- (1,1) ; endgraph; \stopuseMPgraphic \startTEXpage

Re: [NTG-context] missing metapost graphics

2009-10-27 Thread Matěj Týč
> > \starttext > > \startuseMPgraphic{dummy} > > fill fullcircle scaled 5cm withcolor red ; > > \stopuseMPgraphic > > \useMPgraphic{dummy} > > \stoptext > > > > Well, I get nothing on my setup as well as if I use the online compiler. > > Ther

Re: [NTG-context] missing metapost graphics

2009-10-27 Thread Aditya Mahajan
from metafun manual (page 9) as the minimal ConTeXt example: \starttext \startuseMPgraphic{dummy} fill fullcircle scaled 5cm withcolor red ; \stopuseMPgraphic \useMPgraphic{dummy} \stoptext Well, I get nothing on my setup as well as if I use the online compiler. Therefore I assume that something

Re: [NTG-context] missing metapost graphics

2009-10-27 Thread luigi scarso
result whatsoever. >>> Text parts of the document are OK, but there is no trace of the image >>> that should be there. >>> >>> The following is taken directly from metafun manual (page 9) as the >>> minimal ConTeXt example: >>>

Re: [NTG-context] missing metapost graphics

2009-10-27 Thread Matěj Týč
re is no trace of the image >> that should be there. >> >> The following is taken directly from metafun manual (page 9) as the >> minimal ConTeXt example: >> >> \starttext >> \startuseMPgraphic{dummy} >>  fill fullcircle scaled 5cm withcolor red ; >>

Re: [NTG-context] missing metapost graphics

2009-10-27 Thread luigi scarso
there. > > The following is taken directly from metafun manual (page 9) as the > minimal ConTeXt example: > > \starttext > \startuseMPgraphic{dummy} >  fill fullcircle scaled 5cm withcolor red ; > \stopuseMPgraphic > \useMPgraphic{dummy} > \stoptext > > Well, I get

[NTG-context] missing metapost graphics

2009-10-27 Thread Matěj Týč
minimal ConTeXt example: \starttext \startuseMPgraphic{dummy} fill fullcircle scaled 5cm withcolor red ; \stopuseMPgraphic \useMPgraphic{dummy} \stoptext Well, I get nothing on my setup as well as if I use the online compiler. Therefore I assume that something must be wrong. Could you comment on that

Re: [NTG-context] How do you position/move a MPgraphic?

2009-10-25 Thread Peter Rolf
ed] \definecolor[Orange][r=1.,g=.47,b=.0] % dark orange \setupinteractionscreen[option=max] \startbuffer[sometext] \switchtobodyfont[sansserif,1.0cm] \midaligned{\white \bf This is the text} \stopbuffer \starttext \startuseMPgraphic{somebackground} fill fullsquare scaled 10cm withcolor

[NTG-context] How do you position/move a MPgraphic?

2009-10-25 Thread Daniel Bundzik
\switchtobodyfont[sansserif,1.0cm] \midaligned{\white \bf This is the text} \stopbuffer \starttext \startuseMPgraphic{somebackground} fill fullsquare scaled 10cm withcolor .625red ; fill fullsquare scaled 10cm shifted (10cm,0) withcolor black ; fill fullsqu

Re: [NTG-context] Simplest slides

2009-10-19 Thread Aditya Mahajan
anted. Normally, you can just say \setupbackgrounds[page][background=color,backgroundcolor=black] But simpleslides resets the page background on each page so you need to play nice with simpleslides \usemodule[simpleslides] \setupcolors[textcolor=white] \startuseMPgraphic{simpleslides:MP:ho

Re: [NTG-context] Figure referencing problems

2009-10-13 Thread Hans Hagen
. %= \setupinteraction [state=start, color=green, style=] \starttext \startuseMPgraphic{circle} draw fullcircle scaled 1cm; \stopuseMPgraphic \placefigure [] [fig:ref] {Text} {\useMPgraphic{circle}} \in{figure}[fig:ref] \at{figure}[fig:ref] \stoptext %= This is a bug in mkiv. It

Re: [NTG-context] Figure referencing problems

2009-10-11 Thread Aditya Mahajan
, color=green, style=] \starttext \startuseMPgraphic{circle} draw fullcircle scaled 1cm; \stopuseMPgraphic \placefigure [] [fig:ref] {Text} {\useMPgraphic{circle}} \in{figure}[fig:ref] \at{figure}[fig:ref] \stoptext %= This is a bug in mkiv. It works correctly in mkii

Re: [NTG-context] Figure referencing problems

2009-10-11 Thread Wolfgang Miurth
green, style=] \starttext \startuseMPgraphic{circle} draw fullcircle scaled 1cm; \stopuseMPgraphic \placefigure [] [fig:ref] {Text} {\useMPgraphic{circle}} \in{figure}[fig:ref] \at{figure}[fig:ref] \stoptext %= Best wishes Wo

Re: [NTG-context] Figure referencing problems

2009-10-11 Thread Aditya Mahajan
there is no figure number visible in my document. %== \starttext \startuseMPgraphic{circle} draw fullcircle scaled 1cm; \stopuseMPgraphic \placefigure [] [fig:ref] {Text} {\useMPgraphic{circle}} \in{figure}[fig:ref] \stoptext %== How can I

[NTG-context] Figure referencing problems

2009-10-11 Thread Wolfgang Miurth
document. %== \starttext \startuseMPgraphic{circle} draw fullcircle scaled 1cm; \stopuseMPgraphic \placefigure [] [fig:ref] {Text} {\useMPgraphic{circle}} \in{figure}[fig:ref] \stoptext %== How can I fix that? Further \about{figure}[fig:ref

Re: [NTG-context] Letter Module: backaddress

2009-10-08 Thread Andreas Harder
: \startuseMPgraphic{underline} \iftracepositions show_multi_pars \else draw_multi_pars \fi ; path p ; p := boundingbox currentpicture ; currentpicture := currentpicture shifted (0,-StrutDepth/3) ; setbounds currentpicture to p ; \stopuseMPgraphic \definetextbackground

Re: [NTG-context] Placing MP graphic without line breaks

2009-09-11 Thread Hans Hagen
Vyatcheslav Yatskovsky wrote: Another question arises. The following produces grids in a column (i.e. with line breaks). How to place MP graphics like words, in a row? \starttext \startuseMPgraphic{cg} drawoptions(withpen pencircle scaled 0.1pt withcolor black) ; draw hlingrid(0, 6, 1, 0.8cm

[NTG-context] Placing MP graphic without line breaks

2009-09-11 Thread Vyatcheslav Yatskovsky
Another question arises. The following produces grids in a column (i.e. with line breaks). How to place MP graphics like words, in a row? \starttext \startuseMPgraphic{cg} drawoptions(withpen pencircle scaled 0.1pt withcolor black) ; draw hlingrid(0, 6, 1, 0.8cm, 1cm) ; draw vlingrid(0, 4, 1

Re: [NTG-context] A Metapost question

2009-09-11 Thread Hans Hagen
Vyatcheslav Yatskovsky wrote: Hello, a) Can anyone explain me the practical difference between \startuseMPgraphic and \startreusableMPgraphic ? Both the former and the latter allow to place a picture few times. 'reuse' makes smaller pdf files as graphics are only included once

[NTG-context] A Metapost question

2009-09-11 Thread Vyatcheslav Yatskovsky
Hello, a) Can anyone explain me the practical difference between \startuseMPgraphic and \startreusableMPgraphic ? Both the former and the latter allow to place a picture few times. b) Does anyone mind if I add "Using in ConTeXt" section to http://wiki.contextgarden.net/MetaPost ?

[NTG-context] Problem with metapost textbackgrounds on Windows

2009-08-04 Thread Kevin D. Robbins
MPpositiongraphicrange ...raphic {#3}{#4} \fi \fi ... l.59 \stoptext ! ==> Fatal error occurred, no output PDF file produced!MTXrun | fatal error, r eturn code: 1 Here is the example: % \unprotect \startuseMPgraphic{mpos:par:myexample} path p; for i = 1 upto nofmu

Re: [NTG-context] Simpleslides question

2009-06-26 Thread Aditya Mahajan
zontal and ornamanet backgrounds are placed on all pages other than \IncludePicture[vertical] where the vertical and ornamenet backgrounds are placed. If you to place a logo at a specific position, use \startuseMPgraphic{simpleslides:MP:ornament} StartPage ; metapost code to draw/place

Re: [NTG-context] Applying effects to figures

2009-05-25 Thread Wolfgang Schuster
screenshots changed in next document version. Is think there is a lot of circumstances when some automatic effect can be needed. \startuseMPgraphic{shadow} fill OverlayBox shifted (5pt,-5pt) withcolor .7white ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[shadow

Re: [NTG-context] Fw: MPgraphic

2009-05-05 Thread R. Bastian
On Tue, 5 May 2009 13:57:52 +0200 Mojca Miklavec scribit: > On Tue, May 5, 2009 at 13:20, R. Bastian wrote: > > It works with > > > > \startuseMPgraphic{fig1} > > draw (0.0cm, 0.0cm) -- (1.1cm, 1.1cm) ; > > \stopuseMPgraphic > > > > \useMPgraphi

Re: [NTG-context] Fw: MPgraphic

2009-05-05 Thread Mojca Miklavec
On Tue, May 5, 2009 at 13:20, R. Bastian wrote: > It works with > > \startuseMPgraphic{fig1} > draw (0.0cm, 0.0cm) -- (1.1cm, 1.1cm) ; > \stopuseMPgraphic > > \useMPgraphic{fig1} > > Is the "excursion" deprecated ? I don't know the details. In

[NTG-context] Fw: MPgraphic

2009-05-05 Thread R. Bastian
It works with \startuseMPgraphic{fig1} draw (0.0cm, 0.0cm) -- (1.1cm, 1.1cm) ; \stopuseMPgraphic \useMPgraphic{fig1} Is the "excursion" deprecated ? Begin forwarded message: Date: Tue, 5 May 2009 10:47:25 +0200 From: "R. Bastian" To: ntg-context@ntg.nl Subject: MPgra

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