[NTG-context] Bug in mplib?

2008-07-07 Thread Aditya Mahajan
Hi, I get different results when I compile the following file using mkii and mkiv. See the attached pdf output. I am using (I know, I need to update) mpost -v = MetaPost 1.005 (Web2C 7.5.5) context --version = 2008.06.22 17:38 \setupcolors [state=start] \starttext \startMPpage z.1

Re: [NTG-context] missing btex ..etex in mp figure

2008-05-17 Thread Hans Hagen
lua code, but for now, just use textext(). why not use \starttext \startMPpage a=.7in; b=0.5in; z0=(0,0); z1=(a,0); z2=(0,b); z0=.5[z1,z3]=.5[z2,z4]; draw z1..z2..z3..z4..cycle; drawarrow z0..z1; drawarrow z0..z2; label.top(btex $a$ etex, .5[z0,z1]); label.lft(btex $b$ etex, .5[z0,z2]); endfig

[NTG-context] Standalone chart

2008-04-26 Thread David Arnold
=\textwidth] \stopMPinclusions \starttext \startMPpage \startFLOWchart[SIRS] \stopFLOWchart \FLOWchart[SIRS] \stopMPpage \stoptext But I am getting the following error. Any suggestions? systems : system commands are disabled (/usr/local/texlive/2007/../texmf-local/tex/context/base/pdfr

Re: [NTG-context] Standalone chart

2008-04-26 Thread Peter Rolf
\bodyfontsize, height=7\bodyfontsize, maxwidth=\textwidth] %%% \stopMPinclusions \starttext %%% \startMPpage \startTEXpage \startFLOWchart[SIRS] \stopFLOWchart \FLOWchart[SIRS] %%% \stopMPpage \stopTEXpage \stoptext But I am getting the following error. Any suggestions? i never

Re: [NTG-context] new version

2008-04-11 Thread Hans Hagen
[optional format][name][optional settings] which i somehow dislike 3. What about \startMPcode, \startMPpage, and \processMPbuffer? I think that the first approach will be easier to adapt. another option is: \useMPformat{metafun} (the reason for { }instead of [] is that it then can be used within

Re: [NTG-context] new version

2008-04-11 Thread Wolfgang Schuster
. \startuseMPgraphic[metafun]{...} is also an option but not consistent, unless we provide \startuseMPgraphic[optional format][name][optional settings] which i somehow dislike 3. What about \startMPcode, \startMPpage, and \processMPbuffer? I think that the first approach will be easier to adapt

Re: [NTG-context] staticMPfigure

2008-04-10 Thread Hans Hagen
\startMPpage LABEL(oeps,origin) ; \stopMPpage works ok on my machine using pdftex but luatex gives an unknown (have to look into it) Hans - Hans Hagen | PRAGMA ADE

Re: [NTG-context] new version

2008-04-10 Thread Aditya Mahajan
, then maybe something like \startuseMPgraphic{::metafun::bla} so that it does not break existing code. 3. What about \startMPcode, \startMPpage, and \processMPbuffer? I think that the first approach will be easier to adapt. Aditya

[NTG-context] Minimal size of page

2008-02-16 Thread Jean Magnan de Bornier
Hi all, I want to make a dvi output of one or more math formulas, on a page of minimal size, ie the size of the formula; I had asked the same thing for a metapost/fun graphic sometime ago, the answer had been: \startMPpage ... \stopMPpage but I guess I can't use that here! tia, -- Jean

Re: [NTG-context] Minimal size of page

2008-02-16 Thread Wolfgang Schuster
: \startMPpage ... \stopMPpage but I guess I can't use that here! \starttext \startTEXpage $$ c^2=a^2+b^2 $$ \stopTEXpage \stoptext The $$ pair give a better result in this case than the normal formula environment. Wolfgang

Re: [NTG-context] Minimal size of page

2008-02-16 Thread Jean Magnan de Bornier
the same thing for a | metapost/fun graphic sometime ago, the answer had been: | \startMPpage | ... | \stopMPpage | | but I guess I can't use that here! | \starttext | \startTEXpage | $$ | c^2=a^2+b^2 | $$ | \stopTEXpage | \stoptext | The $$ pair give a better result in this case than

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
\startmakeup[name][settings] \stopmakeup \startmarginblock \stopmarginblock \startmarginrule[number] \stopmarginrule # \startmode \stopmode # \startMPpage \stopMPpage \startnamemakeup \stopnamemakeup \startnarrower[left|middle|right] \stopnarrower # \startnointerference \stopnointerference # \startnotmode

Re: [NTG-context] need help with creating a grid with context

2007-10-11 Thread Wolfgang Schuster
? \starttext \startMPcode % or \startMPpage for i=0 upto 10: for j=0 upto 20: fill fullcircle scaled 1mm shifted ((i,j) scaled 1cm); endfor; endfor; \stopMPcode \stoptext Mojca Because TeX is faster in this situation and it takes more time to write

Re: [NTG-context] need help with creating a grid with context

2007-10-10 Thread Mojca Miklavec
On 10/10/07, MASON Peter J wrote: Hope to create a regular (1cm spacing) grid on page, of bullets. Ultimately over the whole page. Why not using MetaPost? \starttext \startMPcode % or \startMPpage for i=0 upto 10: for j=0 upto 20: fill fullcircle scaled 1mm shifted ((i,j) scaled 1cm

Re: [NTG-context] need help with creating a grid with context

2007-10-10 Thread Wolfgang Schuster
2007/10/10, Mojca Miklavec [EMAIL PROTECTED]: On 10/10/07, MASON Peter J wrote: Hope to create a regular (1cm spacing) grid on page, of bullets. Ultimately over the whole page. Why not using MetaPost? \starttext \startMPcode % or \startMPpage for i=0 upto 10: for j=0 upto 20

Re: [NTG-context] need help with creating a grid with context

2007-10-10 Thread Mojca Miklavec
On 10/10/07, Wolfgang Schuster wrote: 2007/10/10, Mojca Miklavec: On 10/10/07, MASON Peter J wrote: Hope to create a regular (1cm spacing) grid on page, of bullets. Ultimately over the whole page. Why not using MetaPost? \starttext \startMPcode % or \startMPpage for i=0

Re: [NTG-context] Howto have page size to fit with image size

2007-06-20 Thread Wolfgang Schuster
\startMPpage: \setupcolors[state=start] \starttext \startMPpage fill fullcircle scaled 5cm withcolor red ; \stopMPpage \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki

Re: [NTG-context] Howto have page size to fit with image size

2007-06-20 Thread Patrick Gundlach
we have also \startMPpage: \setupcolors[state=start] \starttext \startMPpage fill fullcircle scaled 5cm withcolor red ; \stopMPpage \stoptext Great! I keep forgetting those. Patrick ___ If your question

Re: [NTG-context] Howto have page size to fit with image size

2007-06-20 Thread Jean Magnan de Bornier
withcolor red ; | \stopuseMPgraphic | \useMPgraphic{dummy} | \stopTEXpage | \stoptext | | Patrick | we have also \startMPpage: | \setupcolors[state=start] | \starttext | \startMPpage | fill fullcircle scaled 5cm withcolor red ; | \stopMPpage | \stoptext | Wolfgang Patrick and Wolfgang, thak

Re: [NTG-context] MetaPost question

2007-05-04 Thread Aditya Mahajan
) = label.rt (textext(You passed \quotation{ t }), (x,y)) enddef; \stopMPinclusions \startMPpage myfunc (0,0) (Hello) ; myfunc (2cm,1cm) (World) ; \stopMPpage \stoptext Aditya ___ If your question

Re: [NTG-context] staticMPfigure problem with \runMP[TEX]graphicsfalse

2007-01-04 Thread Sanjoy Mahajan
\loadfontfileoncetrue \readfile {cont-en.tmp}{}{}\starttext \startMPpage beginfig(1); path p; p := fullcircle scaled 2in yscaled 0.5; label(btex hello etex, origin); draw p; endfig; \stopMPpage \stoptext Running 'texexec texexec.tex' produces the right pdf file, so I don't know what's going on. But off

Re: [NTG-context] draw fill

2006-10-19 Thread Taco Hoekwater
*everything* by u. Try this: set u back to 1, then add a second MPpage like this: \startMPpage u:= 2; fill_hline(20,5,5,red) ; fill_vline(20,5,5,red) ; draw_vline(20,5,25,blue) ; draw_hline(20,25,5,blue) ; draw_frame(50,50,0,0,black) ; \stopMPpage It should be clear from

Re: [NTG-context] draw fill

2006-10-19 Thread Peter Rolf
but that you are scaling *everything* by u. Try this: set u back to 1, then add a second MPpage like this: \startMPpage u:= 2; fill_hline(20,5,5,red) ; fill_vline(20,5,5,red) ; draw_vline(20,5,25,blue) ; draw_hline(20,25,5,blue) ; draw_frame(50,50,0,0,black

[NTG-context] draw fill

2006-10-18 Thread Peter Rolf
)--cycle withpen pensquare scaled u shifted (a*u,b*u) withcolor c enddef ; \stopMPinclusions \startMPpage fill_hline(20,5,5,red) ; fill_vline(20,5,5,red) ; draw_vline(20,5,25,blue) ; draw_hline(20,25,5,blue) ; draw_frame(50,50,0,0,black) ; \stopMPpage \stoptext

Re: [NTG-context] draw fill

2006-10-18 Thread Peter Rolf
; \stopMPinclusions \startMPpage fill_hline(20,5,5,red) ; fill_vline(20,5,5,red) ; draw_vline(20,5,25,blue) ; draw_hline(20,25,5,blue) ; draw_frame(50,50,0,0,black) ; \stopMPpage \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl

[NTG-context] ## in \def in \sometxt fails with static MP figure

2006-09-30 Thread Sanjoy Mahajan
= \setupoutput[pdftex] \setupcolors[state=start] \global \loadfontfileoncetrue \starttext \startMPpage beginfig(1); label(\sometxt{\vbox {\halign {##\hfil \cr h\cr x\cr }}}, origin); endfig; \stopMPpage \stoptext texexec.tex = The ## in the expanded argument to \sometxt

Re: [NTG-context] \sometxt bodyfontsize in staticMPfigure (2006.09.27 beta)

2006-09-29 Thread Hans Hagen
thread' is how I debug. consider a static graphic to be(have) like an external figure, it's basically mp code processes as startMPpage .. stopMPpage Hans -- - Hans Hagen | PRAGMA ADE

Re: [NTG-context] \sometxt bodyfontsize in staticMPfigure (2006.09.27 beta)

2006-09-28 Thread Hans Hagen
\n end f \\starttext\n f \\startMPpage\n f data.gsub(/end\.*\s*$/m, '') # a bit of a hack f \\stopMPpage\n f \\stoptext\n

Re: [NTG-context] \startMPenvironment : personal font weirdness

2006-08-03 Thread Hans Hagen
, but the MP section, _while at first showing the correct font_, then changes to CM before my eyes. (my pdf viewer auto-updates). hm, looks like a bronwser problem what happens if you only include the graphic, \startMPpage z40 = (2cm,0cm); z41 = (3cm,0cm) ; z42 = (3cm,1cm

Re: [NTG-context] \startMPenvironment : personal font weirdness

2006-08-03 Thread David Wooten
problem what happens if you only include the graphic, \startMPpage z40 = (2cm,0cm); z41 = (3cm,0cm) ; z42 = (3cm,1cm); z43 = (2cm,1cm) ; z46 = (2.5cm,.5cm) ; path F ; F := (z40--z41--z42--z43--cycle) ; linejoin := mitered ; drawpath F ; label(very, z46

Re: [NTG-context] \startMPenvironment : personal font weirdness

2006-08-03 Thread Hans Hagen
. hm, looks like a bronwser problem what happens if you only include the graphic, \startMPpage z40 = (2cm,0cm); z41 = (3cm,0cm) ; z42 = (3cm,1cm); z43 = (2cm,1cm) ; z46 = (2.5cm,.5cm) ; path F ; F := (z40--z41--z42--z43--cycle) ; linejoin := mitered

Re: [NTG-context] staticMPfigure fonts

2006-07-21 Thread Aditya Mahajan
\startMPpage label.top(btex $a$ first etex,origin) ; \stopMPpage \stoptext While this works. \usetypescript[palatino][ec] \setupbodyfont[palatino,10pt] \startMPenvironment \usetypescript[palatino][ec] \setupbodyfont[palatino,10pt] \stopMPenvironment \starttext \startMPpage

Re: [NTG-context] staticMPfigure fonts

2006-07-21 Thread Hans Hagen
explained, one should have a [global] with MPenvironments anyway. \starttext \startMPpage label.top(btex $a$ first etex,origin) ; \stopMPpage \stoptext While this works. \usetypescript[palatino][ec] \setupbodyfont[palatino,10pt] \startMPenvironment \usetypescript[palatino][ec

Re: [NTG-context] staticMPfigure fonts

2006-07-21 Thread Renaud AUBIN
nvironment \usetypescript[palatino][ec] \setupbodyfont[palatino,10pt] \stopMPenvironment This still does not work, but as Hans explained, one should have a [global] with MPenvironments anyway. \starttext \startMPpage label.top(btex $a$ first etex,origin) ; \

Re: [NTG-context] staticMPfigure fonts

2006-07-18 Thread Aditya Mahajan
] \stopMPenvironment \starttext \startMPpage label.top(btex $a$ first etex,origin) ; \stopMPpage \stoptext While this works. \usetypescript[palatino][ec] \setupbodyfont[palatino,10pt] \startMPenvironment \usetypescript[palatino][ec] \setupbodyfont[palatino,10pt] \stopMPenvironment

[NTG-context] # in MPinclusions

2006-06-12 Thread Aditya Mahajan
Hi, How can I make MPinclusions consider # as a normal character. \startMPinclusions input metaobj; vardef [EMAIL PROTECTED](text name) text options= [EMAIL PROTECTED](textext(name)) options; enddef; \stopMPinclusions \starttext \startMPpage block.source(Source) ; source.c = origin

[NTG-context] Using metapost figures in context

2006-06-12 Thread Aditya Mahajan
the figures from the main document). uniqueMPgraphic provides the first functionality, but the figure is converted into pdf on runtime (thereby increasing the processing time of the document). I can use a separate document with each figure inside a \startMPpage ... \stopMPpage, but (i) I need

Re: [NTG-context] Using metapost figures in context

2006-06-12 Thread Hans Hagen
be able to include the figure using a label (so that I can separate the figures from the main document). you can use the figure database mechanism (davids arnold does that) or make individual files, say 'thatfile.tex' \starttext \startMPpage fill fullcircle scaled 10cm; \stopMPpage \stoptext

Re: [NTG-context] batch mode

2006-05-19 Thread Aditya Mahajan
On Thu, 18 May 2006, Taco Hoekwater wrote: Aditya Mahajan wrote: On Tue, 9 May 2006, Aditya Mahajan wrote: --batch --interaction=batch does not always process file in batch mode, while internally running mp. \starttext \startMPpage draw path ; \stopMPpage \stoptext texmfstart

Re: [NTG-context] batch mode

2006-05-18 Thread Taco Hoekwater
Aditya Mahajan wrote: On Tue, 9 May 2006, Aditya Mahajan wrote: --batch --interaction=batch does not always process file in batch mode, while internally running mp. \starttext \startMPpage draw path ; \stopMPpage \stoptext texmfstart texexec.rb --batch --interaction=batchmode --pdf test

Re: [NTG-context] batch mode

2006-05-17 Thread Aditya Mahajan
On Tue, 9 May 2006, Aditya Mahajan wrote: --batch --interaction=batch does not always process file in batch mode, while internally running mp. \starttext \startMPpage draw path ; \stopMPpage \stoptext texmfstart texexec.rb --batch --interaction=batchmode --pdf test should not stop

Re: [NTG-context] \setuppapersize and \startMPpage

2006-05-11 Thread Johan Sandblom
=marginedge, state=stop] \starttext % Title page \startMPpage % Some metafun \stopMPpage % Some text \stoptext The resulting pdf has a smaller first page (thesis size) while the rest are A4 with the thesis pages place centrally. I would like to see the title page

Re: [NTG-context] \setuppapersize and \startMPpage

2006-05-11 Thread Hans Hagen
=on] \setuppagenumbering [alternative=doublesided, location=marginedge, state=stop] \starttext % Title page \startMPpage % Some metafun \stopMPpage % Some text \stoptext The resulting pdf has a smaller first page (thesis size) while the rest are A4 with the thesis pages place centrally. I would like

Re: [NTG-context] \setuppapersize and \startMPpage

2006-05-11 Thread Johan Sandblom
2006/5/11, Hans Hagen [EMAIL PROTECTED]: \definepapersize[thesis][width=169mm, height=239mm] \setuppapersize[thesis][A4] \definelayer[page][width=\paperwidth,height=\paperheight] \starttext \startTEXpage \setlayer [page] [preset=lefttop,x=3cm,y=4cm]

Re: [NTG-context] components and figure search paths

2006-05-10 Thread David Arnold
] \usemodule[fig-base] \usefigurebase[figures/figlibSection1] \section[section:numbers]{Number systems} The files section1figs.tex and section2figs.tex contain Metapost code in \startMPpage ... \stopMPpage pairs. The figure libraries figlibSection1.xml and figlibSection2.xml look like this: ?xml

[NTG-context] \setuppapersize and \startMPpage

2006-05-09 Thread Johan Sandblom
Dear expertise, I have the following: \definepapersize[thesis][width=169mm, height=239mm] \setuppapersize[thesis][A4] \setuplayout [location=middle, marking=on] \setuppagenumbering [alternative=doublesided, location=marginedge, state=stop] \starttext % Title page \startMPpage % Some metafun

Re: [NTG-context] \setuppapersize and \startMPpage

2006-05-09 Thread Aditya Mahajan
] \starttext % Title page \startMPpage % Some metafun \stopMPpage % Some text \stoptext The resulting pdf has a smaller first page (thesis size) while the rest are A4 with the thesis pages place centrally. I would like to see the title page placed on an A4 sheet as well. What am I doing wrong

[NTG-context] batch mode

2006-05-09 Thread Aditya Mahajan
--batch --interaction=batch does not always process file in batch mode, while internally running mp. \starttext \startMPpage draw path ; \stopMPpage \stoptext texmfstart texexec.rb --batch --interaction=batchmode --pdf test should not stop at the error. However it does. Running ConTeXt ver

Re: [NTG-context] mp file not compiling

2006-05-03 Thread Peter Rolf
Aditya Mahajan wrote: Hi, Is the mp support for btex...etex broken in the latest context (ConTeXt ver: 2006.04.27 15:59) The following does not compile, \starttext \startMPpage label(btex This is a test etex, origin) ; \stopMPpage \stoptext I get an error ! Unable to make

Re: [NTG-context] mp file not compiling

2006-05-03 Thread Mojca Miklavec
On 5/3/06, Aditya Mahajan wrote: Hi, Is the mp support for btex...etex broken in the latest context (ConTeXt ver: 2006.04.27 15:59) The following does not compile, \starttext \startMPpage label(btex This is a test etex, origin) ; \stopMPpage \stoptext I get an error ! Unable

Re: [NTG-context] mp file not compiling

2006-05-03 Thread Aditya Mahajan
On Wed, 3 May 2006, Mojca Miklavec wrote: On 5/3/06, Aditya Mahajan wrote: Hi, Is the mp support for btex...etex broken in the latest context (ConTeXt ver: 2006.04.27 15:59) The following does not compile, \starttext \startMPpage label(btex This is a test etex, origin

[NTG-context] mp file not compiling

2006-05-02 Thread Aditya Mahajan
Hi, Is the mp support for btex...etex broken in the latest context (ConTeXt ver: 2006.04.27 15:59) The following does not compile, \starttext \startMPpage label(btex This is a test etex, origin) ; \stopMPpage \stoptext I get an error ! Unable to make mpx file. l.123 label(btex

Re: [NTG-context] Strangest error -- Never seen before

2006-04-03 Thread Aditya Mahajan
: All, I have the strangest Metapost error. The attached file compiles with: texexec section1figs It compiles just fine. But if I take the last graphic in the file, copy it (everything between last \startMPpage...\stopMPpage pair, including \startMPpage ... \stopMPpage, then paste

[NTG-context] Strangest error -- Never seen before

2006-04-02 Thread David Arnold
All, I have the strangest Metapost error. The attached file compiles with: texexec section1figs It compiles just fine. But if I take the last graphic in the file, copy it (everything between last \startMPpage...\stopMPpage pair, including \startMPpage ... \stopMPpage, then paste

Re: [NTG-context] Strangest error -- Never seen before

2006-04-02 Thread David Arnold
. The attached file compiles with: texexec section1figs It compiles just fine. But if I take the last graphic in the file, copy it (everything between last \startMPpage...\stopMPpage pair, including \startMPpage ... \stopMPpage, then paste it at the end of the file, then I get this error

Re: [NTG-context] Strangest error -- Never seen before

2006-04-02 Thread David Arnold
\startMPpage...\stopMPpage pair, including \startMPpage ... \stopMPpage, then paste it at the end of the file, then I get this error: [10.1] [MP to PDF] (./section1figs-mpgraph.11) [11.1] [MP to PDF] (./section1figs-mpgraph.12 ! Dimension too large. recently read \onebasepoint

Re: [NTG-context] Changing font size

2006-03-19 Thread Mojca Miklavec
On 3/19/06, David Arnold wrote: All, I have this: \startMPpage %figure library name: sec3q1 ... %label extrema dotlabel.top(btex Local Maximum etex, (-3.2,f(-3.2)) xyscaled (ux,uy)); dotlabel.bot(btex Local Minimum etex, (3.2,f(3.2)) xyscaled (ux,uy)); \stopMPpage What I'd like to do

[NTG-context] Changing font size

2006-03-18 Thread David Arnold
All, I have this: \startMPpage %figure library name: sec3q1 %initialize window parameters numeric xmin, xmax, xscl, ymin, ymax, yscl; xmin:=-10; xmax:=10; xscl:=1; ymin:=-200; ymax:=200; yscl:=20; %initialize number of points numeric num_points; num_points:=200; %initialize dimensions

Re: [NTG-context] chinese labels

2006-03-17 Thread Hans Hagen
Lutz Haseloff wrote: Hi Hans, Hi all, I would like to typeset chinese labels with metapost. My code is: - \starttext \startMPpage verbatimtex \enableregime[utf] \usemodule[chi-00] etex; label(btex ? etex,(0,0)); \stopMPpage \stoptext try: \starttext

Re: [NTG-context] chinese labels

2006-03-17 Thread Lutz Haseloff
try: \starttext \startMPenvironment \enableregime[utf] \usemodule[chi-00] \stopMPenvironment \startMPpage label(btex ÆÇæà etex,(0,0)); \stopMPpage \stoptext instead. Hans This works fine, thanks Greetings Lutz ___ ntg

[NTG-context] chinese labels

2006-03-16 Thread Lutz Haseloff
Hi Hans, Hi all, I would like to typeset chinese labels with metapost. My code is: - \starttext \startMPpage verbatimtex \enableregime[utf] \usemodule[chi-00] etex; label(btex ? etex,(0,0)); \stopMPpage \stoptext - It results in the errormessage: ! Argument

Re: [NTG-context] metafun boxes

2006-03-02 Thread Aditya Mahajan
\startMPenvironment \setupbodyfont[8pt] \setupframed[width=3cm, align=center, frame=off] \stopMPenvironment \startMPinclusions input metaobj; setObjectDefaultOption(Ellipse)(fit)(false) setCurveDefaultOption(arcangleA,15); setCurveDefaultOption(arcangleB,15); \stopMPinclusions \startMPpage

[NTG-context] Want all my *.1 *.2 .... *.30 files

2006-02-03 Thread David Arnold
All, With the wincontext installed, I run: texexec section1figs and I wind up with only section1figs-mpgraph.1. I want all of them. What switch should I throw at texexec. My source looks like: \startMPpage ... \stopMPpage \startMPpage ... \stopMPpage etc. David Arnold College

Re: [NTG-context] Want all my *.1 *.2 .... *.30 files

2006-02-03 Thread Hans Hagen
David Arnold wrote: All, With the wincontext installed, I run: texexec section1figs and I wind up with only section1figs-mpgraph.1. I want all of them. What switch should I throw at texexec. My source looks like: \startMPpage ... \stopMPpage \startMPpage ... \stopMPpage etc

Re: [NTG-context] Want all my *.1 *.2 .... *.30 files

2006-02-03 Thread David Arnold
-mpgraph.1. I want all of them. What switch should I throw at texexec. My source looks like: \startMPpage ... \stopMPpage \startMPpage ... \stopMPpage etc. eh ... when you have run-time metapost processing, figure slots are reused when possible, so there is a good chance that you

[NTG-context] Venn diagram

2006-01-19 Thread David Arnold
All, I have: \startMPpage %figure library name: intersection %initialize scale numeric u; 10u=3in; %ellipses path A, B; A:=fullcircle xyscaled (4u,3u); B:=A shifted (2u,0); draw A withcolor red; label.ulft(btex $A$ etex, point 3 of A) withcolor red; draw B withcolor blue

Re: [NTG-context] Venn diagram

2006-01-19 Thread Aditya Mahajan
--- On Jan 19, David Arnold wrote --- All, I have: \startMPpage %figure library name: intersection %initialize scale numeric u; 10u=3in; %ellipses path A, B; A:=fullcircle xyscaled (4u,3u); B:=A shifted (2u,0); draw A withcolor red; label.ulft(btex $A$ etex, point 3

[NTG-context] Arithmetic Overflow

2006-01-05 Thread David Arnold
; p:=p cutbefore cpath; p:=p xyscaled (ux,uy); drawdblarrow p txt; enddef; \stopMPinclusions \starttext \startMPpage %figure library name: x2 %initialize window parameters numeric xmin, xmax, xscl, ymin, ymax, yscl; xmin:=-10; xmax:=10; xscl:=1; ymin:=-10; ymax:=10; yscl:=1; %initialize

Re: [NTG-context] Arithmetic Overflow

2006-01-05 Thread David Arnold
--(scantokens(ind),scantokens(dep)); endfor; hide(x:=r;) p:=p--(scantokens(ind),scantokens(dep)); p:=p cutbefore cpath; p:=reverse p; p:=p cutbefore cpath; p:=p xyscaled (ux,uy); drawdblarrow p txt; enddef; \stopMPinclusions \starttext \startMPpage %figure library name: x2 %initialize

[NTG-context] color in textext

2005-12-28 Thread Hans van der Meer
I'm trying to play with colors in textext inclusions: \setupcolors[state=start] \setupMPpage[offset=2mm] \startuseMPgraphic{test} label(textext(\color[green]{XYZ}), (0,0)); \stopuseMPgraphic \starttext \forceMPTEXgraphictrue \startMPpage \includeMPgraphic{test} \stopMPpage

Re: [NTG-context] color in textext

2005-12-28 Thread Hans Hagen
Hans van der Meer wrote: I'm trying to play with colors in textext inclusions: \setupcolors[state=start] \setupMPpage[offset=2mm] \startuseMPgraphic{test} label(textext(\color[green]{XYZ}), (0,0)); \stopuseMPgraphic \starttext \forceMPTEXgraphictrue \startMPpage \includeMPgraphic{test

Re: [NTG-context] color in textext

2005-12-28 Thread Hans van der Meer
}), (0,0)); % returns black XYZ on execute label(textext(\startcolor[red]{XYZ}\stopcolor), (0,20)); % returns unknown on execute \stopuseMPgraphic \starttext \forceMPTEXgraphictrue \startMPpage \includeMPgraphic{test} \stopMPpage \stoptext I tried to run this on context

[NTG-context] It works, passing text

2005-12-27 Thread David Arnold
; p:=reverse p; p:=p cutbefore cpath; p:=p xyscaled (uux,uuy); drawdblarrow p withcolor blue; enddef; \stopMPinclusions \starttext \startMPpage %initialize function vardef f(expr x)= x*x enddef; %initialize window parameters numeric xmin, xmax, xscl, ymin, ymax, yscl; xmin:=-5; xmax:=5

Re: [NTG-context] \setupMPvariables in \startMPpage

2005-12-27 Thread Hans Hagen
David Arnold wrote: All, Why doesn't this work? %output=pdf \startuseMPgraphic{usquare} draw unitsquare scaled 4cm; \stopuseMPgraphic \starttext \startMPpage \useMPgraphic{square} \stopMPpage \stoptext because you nest a graphic, kind of beginfig(1) beginfig(2) draw unitsquare

Re: [NTG-context] \setupMPvariables in \startMPpage

2005-12-27 Thread Hans Hagen
David Arnold wrote: Why doesn't this work? %output=pdf \startuseMPgraphic{usquare} draw unitsquare scaled \MPvar{u}; \stopuseMPgraphic \starttext \startMPpage \setupMPvariables[usquare][u=4cm] \includeMPgraphic{usquare} \stopMPpage \stoptext because (1) after startMPpage metapost code

Re: [NTG-context] \startMPpage ... \stopMPpage

2005-12-27 Thread Hans Hagen
David Arnold wrote: % \startMPpage % \includeMPgraphic{EnglishRule} % \stopMPpage you can only include a simple usable graphic, defined with \startuseMPgraphic; unique mp graphics are more tricky and involve (once we have lua in tex we can find ways around this since then we can (1

[NTG-context] function machine

2005-12-27 Thread David Arnold
the usual x and y, if needed. Finally, thanks to Hans' expertise, the drawfcn routine allows for a parametric definition of the intended curve. All you need to do to make another graphic is copy and paste everything between \startMPpage ... \stopMPpage and adjust the parameters described

Re: [NTG-context] Passing text to Metapost functions

2005-12-26 Thread David Arnold
\starttext \startMPpage %initialize window parameters numeric xmin, xmax, xscl, ymin, ymax, yscl; xmin:=-5; xmax:=5; xscl:=1; ymin:=-5; ymax:=5; yscl:=1; %initialize scale numeric ux, uy; (xmax-xmin)*ux=4in; (ymax-ymin)*uy=3in; %create the grid create_grid(xmin,xmax,xscl,ymin,ymax,yscl,ux,uy); %create

Re: [NTG-context] Passing text to Metapost functions

2005-12-26 Thread Willi Egger
,yymin,yymax,uux,uuy) (text xlbl) = drawdblarrow (1.05*xxmin*uux,0)--(1.05*xxmax*uux,0); draw textext.origin(\MPstring{xlbl}); drawdblarrow (0,1.05*yymin*uuy)--(0,1.05*yymax*uuy); enddef; \stopMPinclusions \starttext \startMPpage %initialize window parameters numeric xmin, xmax, xscl, ymin

Re: [NTG-context] Passing text to Metapost functions

2005-12-26 Thread David Arnold
create_axes (expr xxmin,xxmax,yymin,yymax,uux,uuy) (text xlbl) = drawdblarrow (1.05*xxmin*uux,0)--(1.05*xxmax*uux,0); draw textext.origin(\MPbetex{xlbl}); drawdblarrow (0,1.05*yymin*uuy)--(0,1.05*yymax*uuy); enddef; \stopMPinclusions \starttext \startMPpage %initialize window parameters numeric

[NTG-context] \setupMPvariables in \startMPpage

2005-12-26 Thread David Arnold
All, Why doesn't this work? %output=pdf \startuseMPgraphic{usquare} draw unitsquare scaled 4cm; \stopuseMPgraphic \starttext \startMPpage \useMPgraphic{square} \stopMPpage \stoptext Why doesn't this work? %output=pdf \startuseMPgraphic{usquare} draw unitsquare scaled \MPvar{u

Re: [NTG-context] \setupMPvariables in \startMPpage

2005-12-26 Thread Willi Egger
Hi David, without digging into depth, it works if you change MPpage into TEXpage Willi David Arnold wrote: All, Why doesn't this work? %output=pdf \startuseMPgraphic{usquare} draw unitsquare scaled 4cm; \stopuseMPgraphic \starttext \startMPpage \useMPgraphic{square} \stopMPpage

[NTG-context] \startMPpage ... \stopMPpage

2005-12-26 Thread David Arnold
Hans, Taco, et al, There's a quote in metafun-s.pdf (page 539) that says You can embed the graphic in a \startMPpage construct and process it with TEXEXEC. In that case you have the full MetaFun functionality available. Before processing the file, TEXEXEC will do a couple of checks

[NTG-context] Metapost -- What am I doing wrong

2005-12-25 Thread David Arnold
\starttext \startMPpage %define function vardef f(expr x)= x*x enddef; \useMPgraphic{create function path f 5-by-5} %initialize scale numeric u; 10u=2in; \useMPgraphic{draw axis 5-by-5} \useMPgraphic{scale and draw f 5-by-5} %draw plotted points for x=-2 step 1 until

Re: [NTG-context] Metapost -- What am I doing wrong

2005-12-25 Thread Mojca Miklavec
)); endfor; p:=p--(5,f(5)); %clip function path to clipping path p:=p cutbefore cpath; p:=reverse p; p:=p cutbefore cpath; p enddef; \stopMPinclusions \starttext \startMPpage %define function

Re: [NTG-context] followup metapost textext?

2005-12-23 Thread Hans Hagen
); label (textext(cornerstone), (10,5)) rotated 45 withcolor \MPcolor {yellow}; \stopuseMPgraphic \starttext %%\startMPpage \includeMPgraphic{standalone} %%\stopMPpage \stoptext When I remove the %'s it does not work. The first below is the wrong one, showing unknown

Re: [NTG-context] followup metapost textext?

2005-12-22 Thread Hans van der Meer
(cornerstone), (10,5)) rotated 45 withcolor \MPcolor {yellow}; \stopuseMPgraphic \starttext %%\startMPpage \includeMPgraphic{standalone} %%\stopMPpage \stoptext When I remove the %'s it does not work. The first below is the wrong one, showing unknown, the second one

Re: [NTG-context] Drawing oriented paths in MetaFun

2005-11-16 Thread Hans Hagen
) somespecs ; Is it available already, or should I roll my own? it's there; watch out, i just added a scaling option \starttext \setupcolors[state=start] \startMPpage vardef arrowheadonpath (expr p, s) = save autoarrows ; boolean autoarrows ; autoarrows := true ; set_ahlength(scaled

Re: [NTG-context] \setupbodyfont[10dd]

2005-09-13 Thread Hans Hagen
points are 1238 points. 1238/1157= 1.070008643 I have tried it with 10.7pt. Looks the same. Mixed up bp with pt? what dd's new or old -) \starttext \setupcolors[state=start] \startMPpage nd := \the\dimexpr50nd\relax ; dd := \the\dimexpr50dd\relax ; nc := \the\dimexpr50nc\relax ; cc

Re: [NTG-context] Clipping a path to a boundary --- Being more specific

2005-08-09 Thread David Arnold
the previous solution, in mp-tool there is a repathed macro that does most of the job so let's extend that one a bit: \starttext \setupcolors[state=start] \startMPpage def restroke suffix p = p := repathed (21,p) enddef ; % keep attributes def reprocess suffix p = p := repathed (22,p) enddef

Re: [NTG-context] Clipping a path to a boundary

2005-08-08 Thread Hans Hagen
\setupcolors[state=start] \startMPpage vardef lastpath (expr p) = save _p_ ; path _p_ ; _p_ := origin ; for i within p : if stroked i : _p_ := pathpart i ; fi ; endfor ; _p_ enddef ; vardef firstpath (expr p) = save _p_, _b_ ; path _p_ ; _p_

Re: [NTG-context] Clipping a path to a boundary --- Being more specific

2005-08-08 Thread Hans Hagen
: \starttext \setupcolors[state=start] \startMPpage def restroke suffix p = p := repathed (21,p) enddef ; % keep attributes def reprocess suffix p = p := repathed (22,p) enddef ; % no attributes vardef repathed (expr mode, p) text t = begingroup ; if mode=0 : save withcolor ; remapcolors ; fi

Re: [NTG-context] TeX + Metapost syntax highlighting in Vim

2005-07-12 Thread Mojca Miklavec
as an option. (Sorry for responding to two separate mails, I'm a bit rushed, going on a three-day holiday.) Hans Hagen wrote: Mojca Miklavec wrote: If you have something like \startMPpage draw ... \stopMPpage, it will do the syntax highligting for metapost inside the \start-\stop

[NTG-context] TeX + Metapost syntax highlighting in Vim

2005-07-08 Thread Mojca Miklavec
file to syntax\context.vim. If you have something like \startMPpage draw ... \stopMPpage, it will do the syntax highligting for metapost inside the \start-\stop pair. There are still some bugs present (see comments in file), but I don't know how yet to get rid of them. I downloaded SpellChecker

Re: [NTG-context] TeX + Metapost syntax highlighting in Vim

2005-07-08 Thread Thomas A. Schmitz
\startMPpage draw ... \stopMPpage, it will do the syntax highligting for metapost inside the \start- \stop pair. There are still some bugs present (see comments in file), but I don't know how yet to get rid of them. I downloaded SpellChecker and SuperTab (autocomplete) today from the vim website

Re: [NTG-context] TeX + Metapost syntax highlighting in Vim

2005-07-08 Thread Hans Hagen
) and move the attached file to syntax\context.vim. If you have something like \startMPpage draw ... \stopMPpage, it will do the syntax highligting for metapost inside the \start-\stop pair. There are still some bugs present (see comments in file), but I don't know how yet to get rid of them. I

Re: [NTG-context] TeX + Metapost syntax highlighting in Vim

2005-07-08 Thread Nikolai Weibull
(Sorry for responding to two separate mails, I'm a bit rushed, going on a three-day holiday.) Hans Hagen wrote: Mojca Miklavec wrote: If you have something like \startMPpage draw ... \stopMPpage, it will do the syntax highligting for metapost inside the \start-\stop pair. That's

Re: [NTG-context] Re: btex-etex

2005-04-03 Thread h h extern
to describe my problem. I have no ouptput of btex-etex in any case... a more simple version: \setupoutput[pdftex] \starttext \startMPpage draw btex TEST etex; \stopMPpage \stoptext anyhow, what does texexec --automp produce Hans

[NTG-context] Compiling questions

2004-11-06 Thread David Arnold
All, This test file: \starttext \setupcolors[state=start] \startMPpage colorcircle(10cm,red,green,blue) ; \stopMPpage \stoptext If I follow this procedure: f:/context/texutil --purgeall f:/context/texexec --pdf test Then I get a nice document when opened in Acrobat Reader. However

Re: [NTG-context] Compiling questions

2004-11-06 Thread David Arnold
from Scite as also from the cmd.box. I thought that may be you should check your cont-sys.tex file, there should exist two lines as follows: \runMPgraphicstrue \runMPTEXgraphicstrue Willi David Arnold wrote: All, This test file: \starttext \setupcolors[state=start] \startMPpage

<    3   4   5   6   7   8   9   >