[NTG-context] Context and metapost: using \frac

2011-04-26 Thread mat
Hi I am using context to run a metapost graph. I am however unable to insert a label with \frac, since this is not pure Tex but Latex. This seems to be a known problem for metapost: -Seems for metapost only, one should add %latex (http://ryanmlayer.wordpress.com/tag/metapost/). -I saw also

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Hans Hagen
On 25-4-2011 8:33, mat wrote: Any idea how I should do? Find below minimal example, that does not work on my computer when compiling with context... best use textext ... label.top(textext(1.4)scaled 1.00, (10, 10)); label.top(textext($\sigma_t$)

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Matthieu Stigler
=1pt] \switchtobodyfont[10pt] % Beginning MetaPost graphic \startMPpage label.top(btex 1.4 etex scaled 1.00, (10, 10)); label.top(btex $\sigma_t$ etex scaled 1.00, (0, 10)); label.top(btex $\displaystyle \frac{\sigma_t}{a}$ etex scaled 1.00, (0, 10)); \stopMPpage \stoptext Error

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Hans Hagen
On 26-4-2011 12:02, Matthieu Stigler wrote: Dear Hans Thanks for your quick answer! I was however not able to produce the graph with the textext code... Should I actually then use another compiler? I tried with context and texexec (I thought texexec is the compiler for mkiv, right? I'm on linux

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Matthieu Stigler
Le 26/04/2011 12:36, Hans Hagen a écrit : On 26-4-2011 12:02, Matthieu Stigler wrote: Dear Hans Thanks for your quick answer! I was however not able to produce the graph with the textext code... Should I actually then use another compiler? I tried with context and texexec (I thought texexec

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Andreas Harder
Am 26.04.2011 um 13:36 schrieb Matthieu Stigler: Le 26/04/2011 12:36, Hans Hagen a écrit : On 26-4-2011 12:02, Matthieu Stigler wrote: Dear Hans Thanks for your quick answer! I was however not able to produce the graph with the textext code... Should I actually then use another

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Matthieu Stigler
Le 26/04/2011 16:33, Andreas Harder a écrit : Am 26.04.2011 um 13:36 schrieb Matthieu Stigler: Le 26/04/2011 12:36, Hans Hagen a écrit : On 26-4-2011 12:02, Matthieu Stigler wrote: Dear Hans Thanks for your quick answer! I was however not able to produce the graph with the textext code...

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Hans Hagen
On 26-4-2011 5:17, Matthieu Stigler wrote: MTXrun | current version: 2009.11.26 16:2 that's rather old for a luatex/context combination on the wiki you can find how to install minimals (takes a few minutes only, no compilation needed) Hans

Re: [NTG-context] How to add metapost 3rd party modules??

2011-04-20 Thread Reviczky, Adam
But it run into compiling error. For you convenience, append the sources for mpost and context. As for metauml, have a look at this example: http://www.ntg.nl/pipermail/ntg-context/2010/049511.html This works for me with the latest beta. For quick testing purposes just put the metauml (mp)

Re: [NTG-context] How to add metapost 3rd party modules????

2011-04-20 Thread Joshua Lee
-, the MetaPost UML library); drawObject(A); \stopMPpage \stoptext I don't know the internal details of metaUML, but it could be the same problem as with MetaObj. See: http://wiki.contextgarden.net/MetaObj_and_Labels Aditya

[NTG-context] How to add metapost 3rd party modules

2011-04-19 Thread Joshua Lee
Hi All, I would like to use metauml modules with context, but context can not find it from ~/texmf/metapost/metauml directory. What the context search path for the 3rd party metapost modules? Thanks in advance. Br/JL -- Joshua Lee

Re: [NTG-context] How to add metapost 3rd party modules

2011-04-19 Thread Mojca Miklavec
On Tue, Apr 19, 2011 at 15:12, Joshua Lee wrote: Hi All, I would like to use metauml modules with context, but context can not find it from ~/texmf/metapost/metauml directory. What the context search path for the 3rd party metapost modules? The search path is defined inside texmf/web2c

Re: [NTG-context] How to add metapost 3rd party modules??

2011-04-19 Thread Aditya Mahajan
activity.tex \startMPinclusions input metauml; \stopMPinclusions \startMPpage Activity.A(Learn MetaUML -, the MetaPost UML library); drawObject(A); \stopMPpage \stoptext I don't know the internal details

Re: [NTG-context] Position of MetaPost graphics

2011-04-06 Thread Tim Steenvoorden
Thanks for your tips Wolfgang! I switched to a solution as on the wiki, using overlays and frames in place of layers. After setting the boudingboxes right it works! I have to increase the \objectoffset though, because otherwise the graphic is chopped of: \setuppapersize[A5][A5]

Re: [NTG-context] Position of MetaPost graphics

2011-04-04 Thread Tim Steenvoorden
Thanks Peter! You are right it is easier to draw both the wave and the line in Metapost. And the dx=-\cutspace is just what I needed for left pages! I striped the frames out of the code and placed just the graphics in the layer with a reuseMPgraphic. Also, I pulled out the definition of the wave

Re: [NTG-context] Position of MetaPost graphics

2011-04-04 Thread Wolfgang Schuster
Am 04.04.2011 um 01:22 schrieb Tim Steenvoorden: Thanks Peter! You are right it is easier to draw both the wave and the line in Metapost. And the dx=-\cutspace is just what I needed for left pages! I striped the frames out of the code and placed just the graphics in the layer

Re: [NTG-context] simpleslides/metapost bug ?

2011-04-04 Thread Henning Hraban Ramm
Am 2011-03-13 um 22:31 schrieb Thomas Schmitz: what fails is the shadow for the highlight. Aditya wrote this code, so please curse him :-) I must admit I don't really understand what he did there. As a workaround (or solution?): line 835 of simpleslides-s-default.tex: withcolor

Re: [NTG-context] Position of MetaPost graphics

2011-04-03 Thread Peter Rolf
Am 01.04.2011 11:39, schrieb Tim Steenvoorden: Dear list, I'm trying to make some fancy chapter headers. With MetaPost I drew a wave, which I'd like to place in the margin. I've read details.pdf and metafun.pdf, but I don't manage to get the positioning right. The wave should begin where

Re: [NTG-context] Position of MetaPost graphics

2011-04-03 Thread Aditya Mahajan
On Fri, 1 Apr 2011, Tim Steenvoorden wrote: (Untested). \startuniqueMPgraphic{wave} numeric periods, width; path wave; periods := 3 + 1/4; width := periods * 2*pi; wave:= origin for x=0 step 0.1 until width: -- (x,x*sin(x)) endfor; pickup pencircle scaled 1pt; draw

Re: [NTG-context] simpleslides/metapost bug ?

2011-03-13 Thread Thomas Schmitz
On Fri, 11 Mar 2011 16:02:32 +0100 zs zstry...@physics.ujep.cz wrote: Hello everybody. Can you please confirm that following code fails: \usemodule[simpleslides] \starttext \IncludePicture[horizontal][cow][highlight=yes, alternative=circle, x=1, y=1, xscale=1, yscale=1,

[NTG-context] simpleslides/metapost bug ?

2011-03-11 Thread zs
Hello everybody. Can you please confirm that following code fails: \usemodule[simpleslides] \starttext \IncludePicture[horizontal][cow][highlight=yes, alternative=circle, x=1, y=1, xscale=1, yscale=1, shadow=bottomleft]{hello} \stoptext And this does not: \usemodule[simpleslides] \starttext

[NTG-context] breaking up long input into metapost pages

2011-03-02 Thread Hans van der Meer
for one page, I tried a Metapost run in luatex but after taking some 12 GB of memory it gave up. The idea is thus to have one contiguous input which at certain points produces a new startTEXpage. That will flush the internal memory I guess and makes long documents possible. I'd rather not split

Re: [NTG-context] metapost fill between outlines

2011-02-21 Thread Reviczky, Adam
The only letter (g) I have left in the logo has two spaces that I want to cut out. I can't make a single path out of it so that it doesn't go through the entire letter, so what to do in this case? Here's the example: %%% \starttext

Re: [NTG-context] metapost fill between outlines

2011-02-21 Thread Hongwen Qiu
On 02/21/2011 05:09 PM, Reviczky, Adam wrote: The only letter (g) I have left in the logo has two spaces that I want to cut out. I can't make a single path out of it so that it doesn't go through the entire letter, so what to do in this case? Can't you construct four outlines instead of three,

Re: [NTG-context] metapost fill between outlines

2011-02-21 Thread Mojca Miklavec
... what you currently do with metapost at the moment is a bit of cheating to overcome lack of a feature in metapost - there is still an infinitely thin line between segments and a dumb renderer might display artifacts. If I wanted to draw a logo (very important graphic that will be used more

Re: [NTG-context] metapost fill between outlines

2011-02-21 Thread Reviczky, Adam
Just as a thought ... what you currently do with metapost at the moment is a bit of cheating to overcome lack of a feature in metapost - there is still an infinitely thin line between segments and a dumb renderer might display artifacts. Yes, I am aware of this, just wanted to hear something

[NTG-context] metapost fill between outlines

2011-02-20 Thread Reviczky, Adam
that regions are simply connected), (...) (http://en.wikipedia.org/wiki/MetaPost). I thought I ask here before I put this aside. As a workaround I fill out the bigger one with color black and the smaller one with color white, but I need to put this on different background colors, so the use

Re: [NTG-context] metapost fill between outlines

2011-02-20 Thread Hongwen Qiu
On 02/20/2011 04:25 PM, Reviczky, Adam wrote: As a workaround I fill out the bigger one with color black and the smaller one with color white, but I need to put this on different background colors, so the use of this is very limited. You can fill out the bigger one, than clips the smaller

Re: [NTG-context] metapost fill between outlines

2011-02-20 Thread Reviczky, Adam
You can fill out the bigger one, than clips the smaller one. Can you give me an example with the clip? I can't get it work in a way I want to have it. I've found another thread here: http://www.tug.org/pipermail/metapost/2006-September/000650.html But I fail to see the conclusion there too

Re: [NTG-context] metapost fill between outlines

2011-02-20 Thread Hongwen Qiu
On 02/21/2011 03:52 AM, Reviczky, Adam wrote: As for the path of the difference, how do you mean that? Example? \startMPpage path p ; p := fullcircle scaled 1cm ; path q ; q := fullcircle scaled .5cm ; path r ; r := p -- reverse q -- cycle ; drawarrow r withcolor green ; fill r withcolor red ;

Re: [NTG-context] metapost fill between outlines

2011-02-20 Thread Reviczky, Adam
\startMPpage path p ; p := fullcircle scaled 1cm ; path q ; q := fullcircle scaled .5cm ; path r ; r := p -- reverse q -- cycle ; drawarrow r withcolor green ; fill r withcolor red ; \stopMPpage This works here. Based on this I can now cut out the smaller one from a fullcircle, but it

Re: [NTG-context] metapost fill between outlines

2011-02-20 Thread Hongwen Qiu
On 02/21/2011 01:12 PM, Reviczky, Adam wrote: \starttext \framed[background=color,backgroundcolor=red,height=fit,width=fit]{ \startMPcode path p[]; p1 := (6.949220,13.046900)..controls (9.539060,13.046900) and (10.023400,10.781200)..(10.023400,8.679690)..controls (10.023400,5.335940) and

Re: [NTG-context] metapost fill between outlines

2011-02-20 Thread Reviczky, Adam
Maybe you can know why now, from the above code. The direction of the path is important. I get it now, thanks for your help! ___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] metapost fill between outlines

2011-02-20 Thread Reviczky, Adam
So with this method, I can cut out some fillings of letters in a logo, but for this example it draws a small line through the letter: %%% \starttext \framed[background=color,backgroundcolor=red,height=fit,width=fit]{ \startMPcode path db[],df[],dc[]; drawoptions (withcolor

Re: [NTG-context] metapost fill between outlines

2011-02-20 Thread Hongwen Qiu
On 02/21/2011 02:41 PM, Reviczky, Adam wrote: but for this example it draws a small line through the letter: \starttext \framed[background=color,backgroundcolor=red,height=fit,width=fit]{ \startMPcode path db[],df[],dc[]; drawoptions (withcolor (0.00,0.329412,0.560784)); db1 :=

Re: [NTG-context] Labels in MetaPost (MetaObj)

2011-01-24 Thread Stefan Müller
Wikified: http://wiki.contextgarden.net/MetaObj_and_Labels Please update/change as appropriate. Best regards, Stefan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

Re: [NTG-context] Labels in MetaPost (MetaObj)

2011-01-23 Thread Stefan Müller
On 22.01.2011 17:30, Aditya Mahajan wrote: On Sat, 22 Jan 2011, Stefan Müller wrote: So its either using text or using metaobj? Too bad, metaobj is quite fun... I still hope you guys can fix this, but it's not urgent (to me). Anyway, what does the [+] after \startMPinclusions? I did not find

Re: [NTG-context] Labels in MetaPost (MetaObj)

2011-01-23 Thread Stefan Müller
On 23.01.2011 12:40, Stefan Müller wrote: On 22.01.2011 17:30, Aditya Mahajan wrote: On Sat, 22 Jan 2011, Stefan Müller wrote: So its either using text or using metaobj? Too bad, metaobj is quite fun... I still hope you guys can fix this, but it's not urgent (to me). Anyway, what does the

Re: [NTG-context] Labels in MetaPost (MetaObj)

2011-01-23 Thread Aditya Mahajan
On Sun, 23 Jan 2011, Stefan Müller wrote: Sorry for double posting... The method with if not flag is a bit arkward, because assignObj isn't the only problem. rotateObj(s, 90) would rotate the object 180 degrees instead of 90; when defining the relation between several objects some equations

Re: [NTG-context] Labels in MetaPost (MetaObj)

2011-01-23 Thread Stefan Müller
On 23.01.2011 18:22, Aditya Mahajan wrote: On Sun, 23 Jan 2011, Stefan Müller wrote: Sorry for double posting... The method with if not flag is a bit arkward, because assignObj isn't the only problem. rotateObj(s, 90) would rotate the object 180 degrees instead of 90; when defining the

Re: [NTG-context] Labels in MetaPost (MetaObj)

2011-01-22 Thread Stefan Müller
\stoptext On 22.01.2011 02:38, Aditya Mahajan wrote: On Sat, 22 Jan 2011, Hans Hagen wrote: On 20-1-2011 9:59, Taco Hoekwater wrote: On 01/18/2011 01:17 PM, Stefan Müller wrote: Hi list, I'm having some trouble with MetaPost in general and MetaObj in particular. The core problem

Re: [NTG-context] Labels in MetaPost (MetaObj)

2011-01-22 Thread Aditya Mahajan
On Sat, 22 Jan 2011, Stefan Müller wrote: So its either using text or using metaobj? Too bad, metaobj is quite fun... I still hope you guys can fix this, but it's not urgent (to me). Anyway, what does the [+] after \startMPinclusions? I did not find documentation for that on the wiki.

Re: [NTG-context] Labels in MetaPost (MetaObj)

2011-01-21 Thread Hans Hagen
On 20-1-2011 9:59, Taco Hoekwater wrote: On 01/18/2011 01:17 PM, Stefan Müller wrote: Hi list, I'm having some trouble with MetaPost in general and MetaObj in particular. The core problem is that context mkiv loads the metapost code twice when you are typesetting labels, and that causes

Re: [NTG-context] Labels in MetaPost (MetaObj)

2011-01-21 Thread Aditya Mahajan
On Sat, 22 Jan 2011, Hans Hagen wrote: On 20-1-2011 9:59, Taco Hoekwater wrote: On 01/18/2011 01:17 PM, Stefan Müller wrote: Hi list, I'm having some trouble with MetaPost in general and MetaObj in particular. The core problem is that context mkiv loads the metapost code twice when you

Re: [NTG-context] Labels in MetaPost (MetaObj)

2011-01-20 Thread Taco Hoekwater
On 01/18/2011 01:17 PM, Stefan Müller wrote: Hi list, I'm having some trouble with MetaPost in general and MetaObj in particular. The core problem is that context mkiv loads the metapost code twice when you are typesetting labels, and that causes trouble for metaobj which does not expect

Re: [NTG-context] How to run Typesetting in MetaPost example (MetaFun)?

2011-01-20 Thread Verhaag, G.C.H.M.
Aditya Mahajan wrote: On Tue, 18 Jan 2011, Verhaag, G.C.H.M. wrote: Hi, I wanted to try (using ConTeXt minimals MkIV) the example on page 228 of the MetaFun manual, dealing with typesetting in MetaPost. I haven't look at the metapost manual ... but The code is given

Re: [NTG-context] How to run Typesetting in MetaPost example (MetaFun)?

2011-01-20 Thread luigi scarso
=\hbox{\bfd\the\MPtoks}% \startMPdrawing n := n + 1 ; len[n] := \the\wd\MPbox ; \stopMPdrawing \startMPdrawing[-] pic[n] := textext(\bfd\setstrut\strut#1) ; pic[n] := pic[n] shifted - llcorner pic[n] ; \stopMPdrawing} \handletokens MetaPost is Fun!\with\whatever \startMPdrawing pair len

Re: [NTG-context] How to run Typesetting in MetaPost example (MetaFun)?

2011-01-19 Thread Verhaag, G.C.H.M.
Verhaag, G.C.H.M. wrote: Hi, I wanted to try (using ConTeXt minimals MkIV) the example on page 228 of the MetaFun manual, dealing with typesetting in MetaPost. The code is given as: \resetMPdrawing \startMPdrawing picture pic[] ; numeric wid[], len[], pos[], n ; wid[0] := len[0] := pos[0

Re: [NTG-context] How to run Typesetting in MetaPost example (MetaFun)?

2011-01-19 Thread Peter Rolf
Am 19.01.2011 14:35, schrieb Verhaag, G.C.H.M.: Verhaag, G.C.H.M. wrote: Hi, I wanted to try (using ConTeXt minimals MkIV) the example on page 228 of the MetaFun manual, dealing with typesetting in MetaPost. The code is given as: \resetMPdrawing \startMPdrawing picture pic

Re: [NTG-context] How to run Typesetting in MetaPost example (MetaFun)?

2011-01-19 Thread Aditya Mahajan
On Tue, 18 Jan 2011, Verhaag, G.C.H.M. wrote: Hi, I wanted to try (using ConTeXt minimals MkIV) the example on page 228 of the MetaFun manual, dealing with typesetting in MetaPost. I haven't look at the metapost manual ... but The code is given as: \resetMPdrawing \startMPdrawing picture

[NTG-context] Labels in MetaPost (MetaObj)

2011-01-18 Thread Stefan Müller
Hi list, I'm having some trouble with MetaPost in general and MetaObj in particular. I hope someone on this list can assist me here. I'm trying to run the appended ConTeXt file with a quite simple object Segment (from the manual [1], section 2.1). This script works fine as it is. I wanted

[NTG-context] How to run Typesetting in MetaPost example (MetaFun)?

2011-01-18 Thread Verhaag, G.C.H.M.
Hi, I wanted to try (using ConTeXt minimals MkIV) the example on page 228 of the MetaFun manual, dealing with typesetting in MetaPost. The code is given as: \resetMPdrawing \startMPdrawing picture pic[] ; numeric wid[], len[], pos[], n ; wid[0] := len[0] := pos[0] := n := 0 ; \stopMPdrawing

Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-14 Thread Jonas Stein
In that case one should better run mtxrun instead of luatools (they are equivalent at the moment, but luatools is becomming obsolete). Ahhh ... I guess that needs some divine inspiration to know ... And yes, texmfcnf.lua should be carefully designed to match the structure of texmf trees in

Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-14 Thread Khaled Hosny
On Fri, Jan 14, 2011 at 09:57:32PM +0100, Jonas Stein wrote: In that case one should better run mtxrun instead of luatools (they are equivalent at the moment, but luatools is becomming obsolete). Ahhh ... I guess that needs some divine inspiration to know ... And yes, texmfcnf.lua

Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-14 Thread Arthur Reutenauer
Is there any hope that context will become a replacement of latex? I don't think this have been a goal. Maybe Jonas means that for *some* particular users, ConTeXt could be a replacement for LaTeX, and that we could, for example, use it to introduce newcomers to TeX-based typesetting

Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-14 Thread Peter Münster
Arthur Reutenauer arthur.reutena...@normalesup.org writes: Is there any hope that context will become a replacement of latex? I don't think this have been a goal. Maybe Jonas means that for *some* particular users, ConTeXt could be a replacement for LaTeX, For *some* particular users,

Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-14 Thread Hans Hagen
On 14-1-2011 9:57, Jonas Stein wrote: Its so sad to read this but no other reply on this thread till now. As far i have looked into the .deb packages the bug should be in the current stable versions too. The ideas behind context are so nice and could save us from so much latex-pain. If there

Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-14 Thread Arthur Reutenauer
For *some* particular users, ConTeXt *is* already a replacement for LaTeX Yes, for me too. But you're missing the point. Arthur ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-11 Thread Mojca Miklavec
On Tue, Jan 11, 2011 at 06:00, Norbert Preining wrote: Hi Aditya, hi all, On Mo, 10 Jan 2011, Aditya Mahajan wrote: Assuming that Norbert packaged ConTeXt package in debian testing, I am CCing this message to him. So it seems that current Context has changed something, anyone can help me

Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-11 Thread Vedran Miletić
2011/1/11 Mojca Miklavec mojca.miklavec.li...@gmail.com It should probably be called texmfcnf.lua instead of contextcnf.lua. And there's also a high chance that the settings in that file are wrong if you just took the file from distribution. The settings should somehow match the contents in

Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-11 Thread Mojca Miklavec
2011/1/11 Vedran Miletić riva...@gmail.com: 2011/1/11 Mojca Miklavec mojca.miklavec.li...@gmail.com It should probably be called texmfcnf.lua instead of contextcnf.lua. And there's also a high chance that the settings in that file are wrong if you just took the file from distribution. The

Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-11 Thread Aditya Mahajan
On Tue, 11 Jan 2011, Mojca Miklavec wrote: 2011/1/11 Vedran Miletić riva...@gmail.com: 2011/1/11 Mojca Miklavec mojca.miklavec.li...@gmail.com It should probably be called texmfcnf.lua instead of contextcnf.lua. And there's also a high chance that the settings in that file are wrong if you

Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-11 Thread Mojca Miklavec
On Tue, Jan 11, 2011 at 17:45, Aditya Mahajan wrote: On Tue, 11 Jan 2011, Mojca Miklavec wrote: And yes, texmfcnf.lua should be carefully designed to match the structure of texmf trees in debian. Wouldn't just copying the texmfcnf.lua from texlive work? Mine

Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-11 Thread Norbert Preining
Hi Mojca, On Di, 11 Jan 2011, Mojca Miklavec wrote: 2010.07.30, according to http://packages.debian.org/search?keywords=context In that case one should better run mtxrun instead of luatools (they are equivalent at the moment, but luatools is becomming obsolete). Ahhh ... I guess that needs

[NTG-context] ConTeXt does not execute MetaPost here

2011-01-10 Thread Jonas Stein
Hi, MetaPost embedded in ConTeXt does not work here, but plain MetaPost works fine: This [1] test works fine if i call mpost test.1 I can see a circle. But this [2] fails. Does ConTeXt expect MetaPost to have the executable named mp? On my debian system its called mpost [1] http

Re: [NTG-context] ConTeXt does not execute MetaPost here

2011-01-10 Thread Taco Hoekwater
On 01/10/2011 03:29 PM, Jonas Stein wrote: [2] http://wiki.contextgarden.net/MetaPost#Troubleshooting_MetaPost_embedded_in_ConTeXt Are you using mkii or mkiv? And what versions of what? (terminal output would be helpful). To answer the immediate question: no, context does not expect

Re: [NTG-context] ConTeXt does not execute MetaPost here

2011-01-10 Thread Jonas Stein
here is my typescript: $ cat test.tex \starttext \systemcommandmode \startMPcode draw fullcircle scaled 3cm ; \stopMPcode $ context test.tex MTXrun | forcing cache reload MTXrun | resolvers: warning: no lua configuration files found MTXrun | resolvers MTXrun | resolvers MTXrun | the

Re: [NTG-context] ConTeXt does not execute MetaPost here

2011-01-10 Thread Taco Hoekwater
On 01/10/2011 03:50 PM, Jonas Stein wrote: $ context test.tex MTXrun | forcing cache reload MTXrun | resolvers: warning: no lua configuration files found Something is wrong with your installation. Mkiv should have found a texmfcnf.lua at this spot. What distribution are you running?

Re: [NTG-context] ConTeXt does not execute MetaPost here

2011-01-10 Thread Jonas Stein
On 2011-01-10, Taco Hoekwater t...@elvenkind.com wrote: On 01/10/2011 03:50 PM, Jonas Stein wrote: $ context test.tex MTXrun | forcing cache reload MTXrun | resolvers: warning: no lua configuration files found Something is wrong with your installation. Mkiv should have found a texmfcnf.lua

Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-10 Thread Taco Hoekwater
Hi, My linux is not Debian-based so I cannot help much further (but I have changed the title of this reply in the hope that more debian people will read it) Best wishes, Taco On 01/10/2011 04:42 PM, Jonas Stein wrote: On 2011-01-10, Taco Hoekwatert...@elvenkind.com wrote: On 01/10/2011

Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-10 Thread Renaud AUBIN
Hi, \starttext % \systemcommandmode % (doesn't work here, i.e. strange ^ char with texexec and not defined by mkiv) \startMPcode draw fullcircle scaled 3cm; \stopMPcode \stoptext % (missing in your code snippet) Tested on the following ConTeXt minimals version on an up-to-date debian (amd64

Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-10 Thread Aditya Mahajan
On Mon, 10 Jan 2011, Renaud AUBIN wrote: \stoptext % (missing in your code snippet) Tested on the following ConTeXt minimals version on an up-to-date debian (amd64 unstable/experimental hybrid). MTXrun | main context file:

Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-10 Thread Renaud AUBIN
Hi Aditya, Hum… OK, my english is not so good but Tested on the following **ConTeXt minimals** version on an up-to-date debian seems clear to me. And, you are right: /usr/local is one of the place to install stuff **not** installed by the debian package manager. ;) Now, I have installed the

Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-10 Thread Aditya Mahajan
Hi Renaud, On Mon, 10 Jan 2011, Renaud AUBIN wrote: Hum… OK, my english is not so good but Tested on the following **ConTeXt minimals** version on an up-to-date debian seems clear to me. I am sorry. I misread it. And, you are right: /usr/local is one of the place to install stuff **not**

Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-10 Thread Renaud AUBIN
I assume from minimals install script that you need to generate the format with mtxrun --generate --tree=xxx --some --options but failed at this point… Maybe Mojca or Arthur (as authors of bin/mtx-update.lua) could complete? Anyway, the post-install script packaged with that .deb doesn't seem to

Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-10 Thread Jonas Stein
Now, I have installed the pointed package for testing and I confirm the result: Thank you for testing. I made a bugreport for Norbert. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=609600 -- Jonas Stein n...@jonasstein.de

Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-10 Thread Hilmar Preuße
Renaud AUBIN aubin at nibua-r.org writes: Hi all, I assume from minimals install script that you need to generate the format with mtxrun --generate --tree=xxx --some --options but failed at this point… Maybe Mojca or Arthur (as authors of bin/mtx-update.lua) could complete? Anyway, the

Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-10 Thread Jonas Stein
I assume from minimals install script that you need to generate the format with mtxrun --generate --tree=xxx --some --options but failed at this point… Maybe Mojca or Arthur (as authors of bin/mtx-update.lua) could complete? Anyway, the post-install script packaged with that .deb doesn't

Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-10 Thread Aditya Mahajan
On Mon, 10 Jan 2011, Hilmar Preuße wrote: Renaud AUBIN aubin at nibua-r.org writes: Hi all, I assume from minimals install script that you need to generate the format with mtxrun --generate --tree=xxx --some --options but failed at this point… Maybe Mojca or Arthur (as authors of

Re: [NTG-context] ConTeXt does not execute MetaPost (in debian experimental)

2011-01-10 Thread Norbert Preining
Hi Aditya, hi all, On Mo, 10 Jan 2011, Aditya Mahajan wrote: Assuming that Norbert packaged ConTeXt package in debian testing, I am CCing this message to him. So it seems that current Context has changed something, anyone can help me here? Up to now I did: export

Re: [NTG-context] How to get graph module (metapost) to work with ConTeXt minimals?

2011-01-03 Thread Verhaag, G.C.H.M.
Wolfgang Schuster wrote: Am 31.12.2010 um 10:36 schrieb Verhaag, G.C.H.M.: So I understand that both statements: \loadmarkfile{m-graph} \usemodule[graph] are actually the same thing! Both work but they are not the same thing. \loadmarkfile loads only the given file with the

[NTG-context] How to use boxit MetaPost macros with ConTeXt minimals?

2011-01-03 Thread Verhaag, G.C.H.M.
Hi, I'd like to use the boxit MetaPost macros with ConTeXt minimals. Is there a way to tackle this or do I need the chart module for that. Am I right in saying that the boxit macros give more flexibility compared to the chart module? Or is it just a matter of taste? Regards, Gerard Verhaag

Re: [NTG-context] How to get graph module (metapost) to work with ConTeXt minimals?

2011-01-01 Thread Wolfgang Schuster
Am 31.12.2010 um 10:36 schrieb Verhaag, G.C.H.M.: So I understand that both statements: \loadmarkfile{m-graph} \usemodule[graph] are actually the same thing! Both work but they are not the same thing. \loadmarkfile loads only the given file with the extension “mkii” MkII and “mkiv”

Re: [NTG-context] How to get graph module (metapost) to work with ConTeXt minimals?

2010-12-31 Thread Verhaag, G.C.H.M.
Wolfgang Schuster wrote: Am 30.12.2010 um 11:07 schrieb Verhaag, G.C.H.M.: By the way, if I use MetaPost within ConTeXt using: \loadmarkfile{m-graph} The module is loaded with \usemodule[graph]. Wolfgang

Re: [NTG-context] How to get graph module (metapost) to work with ConTeXt minimals?

2010-12-31 Thread Alan BRASLAU
mkiv, metapost is processed under one continuous run, so definitions are retained. This is to be kept in mind, as some metapost code can then yield errors, in particular, inconsistent equations and the like. Alan On Thursday 30 December 2010 15:18:08 Verhaag, G.C.H.M. wrote: Martin 'golodhrim

[NTG-context] How to get graph module (metapost) to work with ConTeXt minimals?

2010-12-30 Thread Verhaag, G.C.H.M.
to generate a few plots using the graph-module (by John D. Hobby) of MetaPost, which I used in the past to make high-quality plots. But when I add the following statement: input graph ; to the preamble of my MetaPost file and run the command: mpost plot.mp The run aborts with the following

Re: [NTG-context] How to get graph module (metapost) to work with ConTeXt minimals?

2010-12-30 Thread Martin 'golodhrim' Scholz
output: ... MTXrun | current version: 2010.07.30 11:35 Now I want to generate a few plots using the graph-module (by John D. Hobby) of MetaPost, which I used in the past to make high-quality plots. But when I add the following statement: input graph ; to the preamble of my MetaPost

Re: [NTG-context] How to get graph module (metapost) to work with ConTeXt minimals?

2010-12-30 Thread Verhaag, G.C.H.M.
--version yields the following output: ... MTXrun | current version: 2010.07.30 11:35 Now I want to generate a few plots using the graph-module (by John D. Hobby) of MetaPost, which I used in the past to make high-quality plots. But when I add the following statement: input graph

Re: [NTG-context] How to get graph module (metapost) to work with ConTeXt minimals?

2010-12-30 Thread Wolfgang Schuster
Am 30.12.2010 um 11:07 schrieb Verhaag, G.C.H.M.: By the way, if I use MetaPost within ConTeXt using: \loadmarkfile{m-graph} The module is loaded with \usemodule[graph]. Wolfgang ___ If your question

Re: [NTG-context] Redundant equation is a MetaPost bug in MkIV?

2010-12-05 Thread Taco Hoekwater
On 12/05/2010 04:14 AM, Li Yanrui (李延瑞) wrote: Is this a bug or it always need to use 'save' macro to hold these local variable in metafun? It is a side-effect of MkIV running your code through metapost multiple times. But why it does that, I am not sure. Best wishes, Taco

Re: [NTG-context] Redundant equation is a MetaPost bug in MkIV?

2010-12-05 Thread Yury G. Kudryashov
Li Yanrui (李延瑞) wrote: Hi, Now it can not be compiled and luatex outputs: mplib : loading 'metafun.mp' (experimental metapost version two) mplibmp terminal: ! Redundant equation. to be read again ; * u = 1cm; xmin = -2.6u; xmax

Re: [NTG-context] Redundant equation is a MetaPost bug in MkIV?

2010-12-05 Thread Alan BRASLAU
Hello, You should change all of the = to :=, as in u := 1cm; This instructs metapost to assign a value to the variable; the standard form u = 1cm is a formula for metapost to solve. It tries then to resolve u = 1cm; xmin = -2.6u; and xmax = 4u; as a coupled set of equations. Sometimes you can

Re: [NTG-context] Redundant equation is a MetaPost bug in MkIV?

2010-12-05 Thread 李延瑞
2010/12/5 Alan BRASLAU alan.bras...@cea.fr: Hello, You should change all of the = to :=, as in u := 1cm; This instructs metapost to assign a value to the variable; the standard form u = 1cm is a formula for metapost to solve. It tries then to resolve u = 1cm; xmin = -2.6u; and xmax = 4u

Re: [NTG-context] Redundant equation is a MetaPost bug in MkIV?

2010-12-05 Thread 李延瑞
2010/12/5 Aditya Mahajan adit...@umich.edu: On Sun, 5 Dec 2010, Li Yanrui (李延瑞) wrote: When a label (or btex ... etex) is present, ConTeXt processes the MP code twice: once to typeset the labels and then to place to labels. You get a redundant equation in the second pass. The easiest way to

[NTG-context] Redundant equation is a MetaPost bug in MkIV?

2010-12-04 Thread 李延瑞
)--(xmax,0); label.lft(hello,(0, 0)); \stopMPcode \stoptext Now it can not be compiled and luatex outputs: mplib : loading 'metafun.mp' (experimental metapost version two) mplibmp terminal: ! Redundant equation. to be read again ; * u = 1cm; xmin

Re: [NTG-context] MetaPost version of the Gantt chart module

2010-11-18 Thread Florian Wobbe
On Nov 12, 2010, at 19:38 , Reviczky, Adam wrote: Hi, I've made a MetaPost version for creating Gantt charts. Florian: The label alignments are fixed in this module. Further, it should be trivial to place the names into the ganttbars, for both versions. Thanks! Yes you are right

[NTG-context] MetaPost version of the Gantt chart module

2010-11-12 Thread Reviczky, Adam
Hi, I've made a MetaPost version for creating Gantt charts. Florian: The label alignments are fixed in this module. Further, it should be trivial to place the names into the ganttbars, for both versions. For more information see the wiki entry: http://wiki.contextgarden.net/Gantt_charts Adam

[NTG-context] metapost -- mplib

2010-10-23 Thread Herbert Voss
-- [...] systems : begin file latex5 at line 1 mplib : initializing instance 'metafun' using format 'metafun' mplib : loading 'metafun.mp' (experimental metapost version two) mplibmp terminal: ! Redundant equation. to be read again

Re: [NTG-context] metapost -- mplib

2010-10-23 Thread Taco Hoekwater
On 10/23/2010 10:00 AM, Herbert Voss wrote: When I run this example with mpost amd mptopdf, everything is fine. But running it with context mkiv, using its mplib I get an error. Yes, you would. This is the text from http://wiki.contextgarden.net/MkIV_Differences about metapost in context

[NTG-context] metapost: unable to make mpx file error

2010-09-28 Thread Alan BRASLAU
\startOT Wow! experimental metapost version two (does this mean that we get to play with precision?) \stopOT \startQUESTION The following minimal example yields an error: \starttext \startMPcode input circle ; \stopMPcode \stoptext where circle.mp

<    4   5   6   7   8   9   10   11   12   13   >