Re: [NTG-context] MetaPost broken mkiv latest minimals

2009-11-24 Thread Taco Hoekwater
luigi scarso wrote: On Tue, Nov 24, 2009 at 10:51 PM, Alan BRASLAU alan.bras...@cea.fr wrote: I rebuilt luatex from svn on Debian x86_64 and MP is fixed. hm. Can you also try with beta source http://foundry.supelec.fr/gf/download/frsrelease/359/1390/luatex-beta-0.45.0.tar.bz2 That one is

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

2009-11-24 Thread Curiouslearn
The code below shows a cyclic path that I am interested in creating (it is in red if you run the code). The example works fine as long as I have, u:=1cm, as in the code below. But if I replace it by , u:=0.6cm, there is no output. There is an error saying that paths 4 and 3 do not intersect. Is

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

2009-11-24 Thread luigi scarso
On Wed, Nov 25, 2009 at 5:45 AM, Curiouslearn curiousle...@gmail.com wrote: The code below shows a cyclic path that I am interested in creating (it is in red if you run the code). The example works fine as long as I have, u:=1cm, as in the code below. But if I replace it by , u:=0.6cm, there

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

2009-11-24 Thread Taco Hoekwater
: (170.07976,0.00014). Notice how the y coordinate is not actually on the xaxis? That is because the actual intersection between stLine and xaxis does not fit nicely into a scaled pair, so metapost takes the 'closest approximation', which in this case is slightly off both lines. The solution is to add

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

2009-11-24 Thread Taco Hoekwater
Taco Hoekwater wrote: The solution is to add an explicit fix to Lint[4] just after its current assignment: Lint[4]:=(xpart Lint[4], 0); Even better is to not use intersectionpoint at all: use intersectiontimes instead. With that, you can select a point that is guaranteed to be on one of

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

2009-11-23 Thread Mojca Miklavec
On Sun, Nov 22, 2009 at 20:16, Oliver Buerschaper wrote: I know there used to be a TeX - PS - pstoedit - MetaPost workflow. Does this still work with MkIV? If you manage to extend dvips to handle OpenType fonts then maybe ... So does this mean that outline fonts in MetaPost are currently

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

2009-11-23 Thread Hans Hagen
Mojca Miklavec wrote: On Sun, Nov 22, 2009 at 20:16, Oliver Buerschaper wrote: I know there used to be a TeX - PS - pstoedit - MetaPost workflow. Does this still work with MkIV? If you manage to extend dvips to handle OpenType fonts then maybe ... So does this mean that outline fonts

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

2009-11-23 Thread luigi scarso
On Mon, Nov 23, 2009 at 10:47 AM, Hans Hagen pra...@wxs.nl wrote: why not? it uses gs for converting the shapes to outlines ... works ok Hans I will check it with Symbola http://users.teilar.gr/~g1951d/Symbola.zip -- luigi

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

2009-11-22 Thread Oliver Buerschaper
Hi Mojca, Also, is there a way to directly get the glyph outlines of, say, $\bigotimes$ in MetaPost code and use it to derive some length unit from it? Yes, but this only works for Type1 fonts, not for OpenType. The example below is a literal copy from metapost manual (created by Taco

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

2009-11-22 Thread Mojca Miklavec
On Sun, Nov 22, 2009 at 16:53, Oliver Buerschaper wrote: I know there used to be a TeX - PS - pstoedit - MetaPost workflow. Does this still work with MkIV? If you manage to extend dvips to handle OpenType fonts then maybe ... Mojca

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

2009-11-22 Thread Oliver Buerschaper
I know there used to be a TeX - PS - pstoedit - MetaPost workflow. Does this still work with MkIV? If you manage to extend dvips to handle OpenType fonts then maybe ... So does this mean that outline fonts in MetaPost are currently dead with MkIV? Oliver

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

2009-11-22 Thread luigi scarso
On Sun, Nov 22, 2009 at 8:16 PM, Oliver Buerschaper oliver.buerscha...@mpq.mpg.de wrote: I know there used to be a TeX - PS - pstoedit - MetaPost workflow. Does this still work with MkIV? If you manage to extend dvips to handle OpenType fonts then maybe ... So does this mean that outline

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 \stopuseMPgraphic \useMPgraphic{a} \stopTEXpage

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

2009-11-22 Thread Hans Hagen
Oliver Buerschaper wrote: I know there used to be a TeX - PS - pstoedit - MetaPost workflow. Does this still work with MkIV? If you manage to extend dvips to handle OpenType fonts then maybe ... So does this mean that outline fonts in MetaPost are currently dead with MkIV? it's unrelated

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

2009-11-22 Thread Taco Hoekwater
Oliver Buerschaper wrote: Hi Mojca, Also, is there a way to directly get the glyph outlines of, say, $\bigotimes$ in MetaPost code and use it to derive some length unit from it? Yes, but this only works for Type1 fonts, not for OpenType. The example below is a literal copy from

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

2009-11-18 Thread Curiouslearn
Hi, I am back to trying Metapost. I spent sometime yesterday and today learning about clipping, buildcycles etc. to fill areas with patterns. I think I will try to write a simple tutorial with it. Meanwhile, I just updated my installation of Context minimals. The following simple Metapost code

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

2009-11-18 Thread Aditya Mahajan
On Wed, 18 Nov 2009, Curiouslearn wrote: Hi, I am back to trying Metapost. I spent sometime yesterday and today learning about clipping, buildcycles etc. to fill areas with patterns. I think I will try to write a simple tutorial with it. Meanwhile, I just updated my installation of Context

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

2009-11-18 Thread luigi scarso
On Thu, Nov 19, 2009 at 2:31 AM, Curiouslearn curiousle...@gmail.com wrote: Hi, I am back to trying Metapost. I spent sometime yesterday and today learning about clipping, buildcycles etc. to fill areas with patterns. I think I will try to write a simple tutorial with it. Meanwhile, I just

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

2009-11-18 Thread Curiouslearn
Thanks. That was a stupid mistake. It works fine now. On Wed, Nov 18, 2009 at 8:43 PM, luigi scarso luigi.sca...@gmail.com wrote: On Thu, Nov 19, 2009 at 2:31 AM, Curiouslearn curiousle...@gmail.com wrote: Hi, I am back to trying Metapost. I spent sometime yesterday and today learning about

[NTG-context] MetaPost integration: default parameters

2009-11-13 Thread Oliver Buerschaper
Hi, ConTeXt already passes quite a few length parameters on to embedded MetaPost code ... BodyFontSize, CurrentWidth etc. Would it be possible to add some more font/math related parameters to the default definitions? I'm thinking of exposing math OpenType parameters like AxisHeight

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

2009-11-13 Thread Mojca Miklavec
On Fri, Nov 13, 2009 at 17:53, Oliver Buerschaper wrote: Also, is there a way to directly get the glyph outlines of, say, $\bigotimes$ in MetaPost code and use it to derive some length unit from it? Yes, but this only works for Type1 fonts, not for OpenType. The example below is a literal

[NTG-context] Metapost+mpgraph and mkiv

2009-11-07 Thread Alan BRASLAU
\useMPgraphic{test} \stopTEXpage \stoptext % Works correctly under mkii (texexec) but not under mkiv (context). Error message: mplib | mp terminal: (/home/local/context/tex/texmf/metapost/base/graph.mp ! Redundant equation. to be read again ; l.143 Gmargin.low=-.07

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

2009-11-07 Thread Alan BRASLAU
On Saturday 07 November 2009 17:21:04 Taco Hoekwater wrote: 1. You should load the MP packages you need in \startMPinclusions (this is where the code really belongs, even in mkii) instead of inside each separate graphic. 2. You have to make sure that you do not re-state equations that were

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

2009-11-07 Thread Wolfgang Schuster
Am 07.11.2009 um 18:58 schrieb Alan BRASLAU: So, for the mailing list, here is a working solution (mkii mkiv): %% minimal example %% \starttext \startMPinclusions input graph \stopMPinclusions \usemodule[graph] Wolfgang

Re: [NTG-context] Metapost and MPlib

2009-11-04 Thread batela
Another incompatibility between metapost and mkiv. I try to run this code but i found a error with some garbage. Please try to run the file in attach. The error coming from the curvelabel function. teste2.tex Description: TeX document

Re: [NTG-context] Metapost and MPlib

2009-11-04 Thread Aditya Mahajan
On Wed, 4 Nov 2009, batela wrote: Another incompatibility between metapost and mkiv. I try to run this code but i found a error with some garbage. Please try to run the file in attach. The error coming from the curvelabel function. * Change # to \#. * Don't redefine pt! See the attached

Re: [NTG-context] Metapost and MPlib

2009-11-03 Thread Taco Hoekwater
batela wrote: Dear Sirs I would like to include some macros from http://melusine.eu.org/syracuse/poulecl/macros in my luatex documents. Every time i try to include a new example (from papier.mp, par example) i found this old error message:; texnum.mp Unable to make mpx file.

Re: [NTG-context] Metapost and MPlib

2009-11-03 Thread Hans Hagen
batela wrote: Em 03/11/2009, às 8:43, Taco Hoekwater escreveu: batela wrote: Dear Sirs I would like to include some macros from http://melusine.eu.org/syracuse/poulecl/macros in my luatex documents. Every time i try to include a new example (from papier.mp, par example) i found this old

Re: [NTG-context] Metapost and MPlib

2009-11-03 Thread batela
Em 03/11/2009, às 8:43, Taco Hoekwater escreveu: batela wrote: Dear Sirs I would like to include some macros from http://melusine.eu.org/syracuse/poulecl/macros in my luatex documents. Every time i try to include a new example (from papier.mp, par example) i found this old error

Re: [NTG-context] Metapost and MPlib

2009-11-03 Thread batela
Em 03/11/2009, às 6:24, Hans Hagen escreveu: batela wrote: Em 03/11/2009, às 8:43, Taco Hoekwater escreveu: batela wrote: Dear Sirs I would like to include some macros from http://melusine.eu.org/syracuse/poulecl/macros in my luatex documents. Every time i try to include a new example

[NTG-context] Some math symbols fail in MetaPost in MKIV

2009-11-02 Thread Andreas Schneider
Hi, as it seems, some symbols in math mode seem to fail when put inside MetaPost. In the example I tried, both ~ and | were causing processing errors when used inside MetaPost (I tried both btex...etex as well as \sometxt). It works fine in MKII however. The minimal example is attached

Re: [NTG-context] Some math symbols fail in MetaPost in MKIV

2009-11-02 Thread Aditya Mahajan
On Mon, 2 Nov 2009, Andreas Schneider wrote: Hi, as it seems, some symbols in math mode seem to fail when put inside MetaPost. In the example I tried, both ~ and | were causing processing errors when used inside MetaPost (I tried both btex...etex as well as \sometxt). It works fine in MKII

[NTG-context] Metapost and MPlib

2009-11-02 Thread batela
, btex$$etex, btex ${\times}$10etex in the google i found a old solution for this kind of error, but for LaTeX not for mplib or LuaTeX. Is there a fresh solution for that? Syracuse provide to us a nice solutions for writing maths and physics with metapost. Thanks a lot. Jorge

Re: [NTG-context] \overrightarrow not working in mathmode in Metapost?

2009-10-30 Thread Taco Hoekwater
Matthijs Kooijman wrote: Hi all, I've been trying to use the \overrightarrow command within a metapost graphic, but it doesn't work. Math mode does work, for example \vec works like expected. Outside of metapost, \overrightarrow works as expected. This seems to broken for extensible math

Re: [NTG-context] \overrightarrow not working in mathmode in Metapost?

2009-10-30 Thread Matthijs Kooijman
Hi Taco, Have you tried the new current yet? There was a whole bunch of extra \unexpanded-s in it already. You're right, thanks! I had built the new context but forgot to install it on this particular machine :-) Sorry for the noise, Matthijs signature.asc Description: Digital signature

[NTG-context] missing metapost graphics

2009-10-27 Thread Matěj Týč
Hello, when I try to use MP code in my file, I follow the instructions, but when I compile the file, there is no 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

Re: [NTG-context] missing metapost graphics

2009-10-27 Thread luigi scarso
On Tue, Oct 27, 2009 at 1:02 PM, Matěj Týč matej@gmail.com wrote: Hello, when I try to use MP code in my file, I follow the instructions, but when I compile the file, there is no result whatsoever. Text parts of the document are OK, but there is no trace of the image that should be

Re: [NTG-context] missing metapost graphics

2009-10-27 Thread Matěj Týč
2009/10/27 luigi scarso luigi.sca...@gmail.com: On Tue, Oct 27, 2009 at 1:02 PM, Matěj  Týč matej@gmail.com wrote: Hello, when I try to use MP code in my file, I follow the instructions, but when I compile the file, there is no result whatsoever. Text parts of the document are OK, but

Re: [NTG-context] missing metapost graphics

2009-10-27 Thread luigi scarso
On Tue, Oct 27, 2009 at 3:28 PM, Matěj Týč matej@gmail.com wrote: 2009/10/27 luigi scarso luigi.sca...@gmail.com: On Tue, Oct 27, 2009 at 1:02 PM, Matěj  Týč matej@gmail.com wrote: Hello, when I try to use MP code in my file, I follow the instructions, but when I compile the file,

Re: [NTG-context] missing metapost graphics

2009-10-27 Thread Aditya Mahajan
On Tue, 27 Oct 2009, Matěj Týč wrote: Hello, when I try to use MP code in my file, I follow the instructions, but when I compile the file, there is no 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

Re: [NTG-context] luatex-plain metapost

2009-10-26 Thread Taco Hoekwater
luigi scarso wrote: On Sun, Oct 25, 2009 at 6:30 PM, Hans Hagen pra...@wxs.nl wrote: forget about metafun in plain ... it cooperates with mkiv and it's very unlikely that i'll ever make it generic ok , but this also doesn't work \pdfoutput=1 \setmplibformat{plain} \mplibcode

Re: [NTG-context] luatex-plain metapost

2009-10-26 Thread luigi scarso
On Mon, Oct 26, 2009 at 9:08 AM, Taco Hoekwater t...@elvenkind.com wrote: luigi scarso wrote: On Sun, Oct 25, 2009 at 6:30 PM, Hans Hagen pra...@wxs.nl wrote: forget about metafun in plain ... it cooperates with mkiv and it's very unlikely that i'll ever make it generic ok , but this also

Re: [NTG-context] luatex-plain metapost

2009-10-26 Thread Taco Hoekwater
luigi scarso wrote: On Mon, Oct 26, 2009 at 9:08 AM, Taco Hoekwater t...@elvenkind.com wrote: luigi scarso wrote: On Sun, Oct 25, 2009 at 6:30 PM, Hans Hagen pra...@wxs.nl wrote: forget about metafun in plain ... it cooperates with mkiv and it's very unlikely that i'll ever make it generic

Re: [NTG-context] luatex-plain metapost

2009-10-26 Thread luigi scarso
On Mon, Oct 26, 2009 at 10:47 AM, Taco Hoekwater t...@elvenkind.com wrote: luigi scarso wrote: On Mon, Oct 26, 2009 at 9:08 AM, Taco Hoekwater t...@elvenkind.com wrote: luigi scarso wrote: On Sun, Oct 25, 2009 at 6:30 PM, Hans Hagen pra...@wxs.nl wrote: forget about metafun in plain ... it

Re: [NTG-context] luatex-plain metapost

2009-10-26 Thread Hans Hagen
luigi scarso wrote: On Mon, Oct 26, 2009 at 9:08 AM, Taco Hoekwater t...@elvenkind.com wrote: luigi scarso wrote: On Sun, Oct 25, 2009 at 6:30 PM, Hans Hagen pra...@wxs.nl wrote: forget about metafun in plain ... it cooperates with mkiv and it's very unlikely that i'll ever make it generic

Re: [NTG-context] luatex-plain metapost

2009-10-26 Thread Taco Hoekwater
luigi scarso wrote: OK -- I understand this. Any plan to implement btex...etex in mplib ? Not btex ... etex, no. Maybe something new will appear in the long run, maybe not. Best wishes, Taco ___ If your question

Re: [NTG-context] luatex-plain metapost

2009-10-26 Thread luigi scarso
luigi scarso wrote: OK -- I understand this. Any plan to implement btex...etex in mplib ? Not btex ... etex, no. Maybe something new will appear in the long run, maybe not. Best wishes, Taco well, you can set up some kind of mechanism that eventually produces a picture that mp can

Re: [NTG-context] luatex-plain metapost

2009-10-26 Thread Dohyun Kim
2009/10/26 luigi scarso luigi.sca...@gmail.com: luigi scarso wrote: OK -- I understand this. Any plan to implement btex...etex in mplib ? Not btex ... etex, no. Maybe something new will appear in the long run, maybe not. Best wishes, Taco well, you can set up some kind of mechanism that

Re: [NTG-context] luatex-plain metapost

2009-10-25 Thread Hans Hagen
luigi scarso wrote: I'm experimenting with luatex-plain in minimals, cfr. label(textext(Foo),(0bp,0bp)); textext is a mkiv feature Hans - Hans Hagen | PRAGMA ADE

Re: [NTG-context] luatex-plain metapost

2009-10-25 Thread luigi scarso
On Sun, Oct 25, 2009 at 4:54 PM, Hans Hagen pra...@wxs.nl wrote: luigi scarso wrote: I'm experimenting with luatex-plain in minimals, cfr.        label(textext(Foo),(0bp,0bp)); textext is a mkiv feature not a metafun macro ? Anyway, this also doesn't work %luatex-test-wrong.tex

Re: [NTG-context] luatex-plain metapost

2009-10-25 Thread Hans Hagen
luigi scarso wrote: On Sun, Oct 25, 2009 at 4:54 PM, Hans Hagen pra...@wxs.nl wrote: luigi scarso wrote: I'm experimenting with luatex-plain in minimals, cfr. label(textext(Foo),(0bp,0bp)); textext is a mkiv feature not a metafun macro ? Anyway, this also doesn't work

[NTG-context] Using MetaPost to create fonts

2009-09-24 Thread Alain Delmotte
Hi! I have the impression that I did see that MetaPost can be used to create full fonts and not only pictures. (In fact to keep the potential of METAFONT, but extending it to OpenType /PostScript/TrueType (??) fonts.) I even think there was mention about Perl in this respect. Did I dream

Re: [NTG-context] Using MetaPost to create fonts

2009-09-24 Thread luigi scarso
On Thu, Sep 24, 2009 at 11:41 AM, Alain Delmotte espera...@swing.be wrote: Hi! I have the impression that I did see that MetaPost can be used to create full fonts and not only pictures. (In fact to keep the potential of METAFONT, but extending it to OpenType /PostScript/TrueType

Re: [NTG-context] Using MetaPost to create fonts

2009-09-24 Thread Hans Hagen
Alain Delmotte wrote: Hi! I have the impression that I did see that MetaPost can be used to create full fonts and not only pictures. (In fact to keep the potential of METAFONT, but extending it to OpenType /PostScript/TrueType (??) fonts.) I even think there was mention about Perl

Re: [NTG-context] Using MetaPost to create fonts

2009-09-24 Thread Alain Delmotte
Thanks to both of you Luigi and Hans. Alain Hans Hagen a écrit : Alain Delmotte wrote: Hi! I have the impression that I did see that MetaPost can be used to create full fonts and not only pictures. (In fact to keep the potential of METAFONT, but extending it to OpenType /PostScript

[NTG-context] Metapost and mkiv

2009-09-22 Thread Otared Kavian
\startbuffer[axes-1] numeric u ; u := .5cm ; path xox ; xox := (-u,0)--(8u,0) ; path yoy ; yoy := (0,-u)--(0,7u) ; draw xox withcolor blue ; draw yoy withcolor blue ; \stopbuffer This MetaPost graphic is \doifmodeelse{mkiv}{not shown with mkiv} {shown with mkii}: \placefigure[middle

Re: [NTG-context] Metapost and mkiv

2009-09-22 Thread Hans Hagen
Otared Kavian wrote: Hi all, The following minimal example used to work with mkiv (until last May, I would guess…) but now it doesn't work with the latest ConTeXt version 2009.09.21 17:39 Can any one tell me please what am I doing wrong? shows ok here

Re: [NTG-context] Metapost and mkiv

2009-09-22 Thread Aditya Mahajan
On Tue, 22 Sep 2009, Hans Hagen wrote: Otared Kavian wrote: Hi all, The following minimal example used to work with mkiv (until last May, I would guess…) but now it doesn't work with the latest ConTeXt version 2009.09.21 17:39 Can any one tell me please what am I doing wrong? shows ok

[NTG-context] \overrightarrow not working in mathmode in Metapost?

2009-09-18 Thread Matthijs Kooijman
Hi, I've been trying to use the \overrightarrow command within a metapost graphic, but it doesn't work. Math mode does work, for example \vec works like expected. Outside of metapost, \overrightarrow works as expected. To illustrate the problem, I've created the following simple testcase

Re: [NTG-context] \overrightarrow not working in mathmode in Metapost?

2009-09-18 Thread Hans Hagen
Aditya Mahajan wrote: \let\normaloverrightarrow\overrightarrow \unexpanded\def\overrightarrow{\normaloverrightarrow} ok, i made them all unexpandable - Hans Hagen | PRAGMA ADE

[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 ? Regards

Re: [NTG-context] A Metapost question

2009-09-11 Thread Hans Hagen
'unique' but it uses some heuristics to determine uniqueness b) Does anyone mind if I add Using in ConTeXt section to http://wiki.contextgarden.net/MetaPost ? go ahead .. maybe also cleanup that page a bit Hans

Re: [NTG-context] A Metapost question

2009-09-11 Thread Arthur Reutenauer
b) Does anyone mind if I add Using in ConTeXt section to http://wiki.contextgarden.net/MetaPost ? Of course not, that's what the wiki is here for. Arthur ___ If your question is of interest to others

Re: [NTG-context] A Metapost question

2009-09-11 Thread Vyatcheslav Yatskovsky
Sorry, already have found the answer to my question in MetaFun Manual (metafun-s). [blush] Vyatcheslav ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

Re: [NTG-context] metapost-pdf problem

2009-09-09 Thread Hans Hagen
Jean Magnan de Bornier wrote: ** mkiv output: ERROR: Leaders not followed by proper glue. probably fixed in latest beta - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH

Re: [NTG-context] metapost-pdf problem

2009-09-01 Thread Peter Rolf
what this does and no time at all). Best wishes, Peter Jean Magnan de Bornier schrieb: Hi all, I have had trouble with metapost lately; mptopdf seems broken. Here are two small test files: rent.mp: input metafun; numeric u; u=15mm; beginfig(1); drawarrow (0,0)..(8u

Re: [NTG-context] metapost-pdf problem

2009-09-01 Thread Jean Magnan de Bornier
Le 01 septembre à 11:41:56 Peter Rolf indi...@gmx.net écrit notamment: | same trouble here. The problem is the current definition of | \forcecolorhack (colo-ini.mkiv). | But we are lucky, as Hans has kept the old version as comment. For the | moment just add a comment sign in front of the new

Re: [NTG-context] metapost-pdf problem

2009-09-01 Thread Peter Rolf
Jean Magnan de Bornier schrieb: Le 01 septembre à 11:41:56 Peter Rolf indi...@gmx.net écrit notamment: | same trouble here. The problem is the current definition of | \forcecolorhack (colo-ini.mkiv). | But we are lucky, as Hans has kept the old version as comment. For the | moment just

Re: [NTG-context] metapost-pdf problem

2009-09-01 Thread Jean Magnan de Bornier
Le 01 septembre à 17:33:46 Peter Rolf indi...@gmx.net écrit notamment: | Have you remade the formats? Sorry, I have forgotten to add this to | the prior post. | context --make Sorry me! I should obviously have done that. Yes it works now with mkiv, but I don't see how to do the same thing in

Re: [NTG-context] metapost-pdf problem

2009-09-01 Thread Jean Magnan de Bornier
Le 01 septembre à 18:12:29 Jean Magnan de Bornier jm.born...@free.fr écrit notamment: | Sorry me! I should obviously have done that. | Yes it works now with mkiv, but I don't see how to do the same thing in | mkii... Well, texexec does the job all right, but texexec --xtx doesn't find the

Re: [NTG-context] metapost-pdf problem

2009-09-01 Thread Peter Rolf
Jean Magnan de Bornier schrieb: Le 01 septembre à 18:12:29 Jean Magnan de Bornier jm.born...@free.fr écrit notamment: | Sorry me! I should obviously have done that. | Yes it works now with mkiv, but I don't see how to do the same thing in | mkii... Well, texexec does the job all right, but

Re: [NTG-context] metapost-pdf problem

2009-09-01 Thread Jean Magnan de Bornier
Le 01 septembre à 20:22:21 Peter Rolf indi...@gmx.net écrit notamment: | I never used xetex, but there is a good chance that this is also a | format update problem Well, no; I remade all formats and still xetex doesn't put the image in place; by the way, mkiv does it only with full path.

[NTG-context] metapost-pdf problem

2009-08-30 Thread Jean Magnan de Bornier
Hi all, I have had trouble with metapost lately; mptopdf seems broken. Here are two small test files: rent.mp: input metafun; numeric u; u=15mm; beginfig(1); drawarrow (0,0)..(8u,0); draw (3u,-.2u)..(3u,.5u); label.bot(btex 0 etex, (3.2u,0)); endfig; end

Re: [NTG-context] Overlays with metapost

2009-08-25 Thread Hans Hagen
Erik Margraf wrote: Hello, is it possible to achieve an overlay effect with metapost like in the attached picture (a photo and a pin in the upper left corner)? I could load both images but I can't control the position where the pin is inserted. Is this possible by other means? thank you

[NTG-context] Overlays with metapost

2009-08-24 Thread Erik Margraf
Hello, is it possible to achieve an overlay effect with metapost like in the attached picture (a photo and a pin in the upper left corner)? I could load both images but I can't control the position where the pin is inserted. Is this possible by other means? thank you! Regards Erik attachment

Re: [NTG-context] Overlays with metapost

2009-08-24 Thread Wolfgang Schuster
Am 24.08.2009 um 11:35 schrieb Erik Margraf: Hello, is it possible to achieve an overlay effect with metapost like in the attached picture (a photo and a pin in the upper left corner)? I could load both images but I can't control the position where the pin is inserted. Is this possible

Re: [NTG-context] Multi-line labels in MetaPost

2009-08-22 Thread Michail Vidiassov
Dear All, I have fixed this by using: label.rt(textext(\framed[frame=off,align=right]{One\\Two}),origin); And what about proper tables there? Replacing One\\Two in the above code with $ \startmathmatrix \NC 1 \NC 1 \NR \NC 1 \NC 1 \NR \stopmathmatrix $ or \starttable{|cm|cm|} \NC 1 \NC 1

Re: [NTG-context] Multi-line labels in MetaPost

2009-08-22 Thread Aditya Mahajan
\stopmathmatrix $ All metapost environments expand their arguments, so anything looking for an optional argument fails. There are workarounds, though \unexpanded\def\MYMATRIX% {$\startmathmatrix \NC 1 \NC 1 \NR \NC 1 \NC 1 \NR \stopmathmatrix$} \starttext \startMPcode label.rt(\sometxt{\MYMATRIX

Re: [NTG-context] Multi-line labels in MetaPost

2009-08-22 Thread Hans Hagen
Aditya Mahajan wrote: Hans, should we add this to strc-ali? sure, i'll also do the same with getbuffer, as often using buffere is convenient in such cases: \unexpanded\def\getbuffer {\dodoubleempty\dogetbuffer} \starttext \startbuffer[a] $\startmathmatrix \NC 1 \NC 1 \NR \NC 1 \NC

Re: [NTG-context] Problem with metapost textbackgrounds on Windows

2009-08-17 Thread Thomas Floeren
] Problem with metapost textbackgrounds on Windows Thanks, Mojca. Also, a further bit of investigation on Windows shows that building the example (saved in foo.tex) with context foo.tex or texexec --lua foo.tex produces the results I reported. But, building without lua using texexec foo.tex gives

Re: [NTG-context] Problem with metapost textbackgrounds on Windows

2009-08-17 Thread Hans Hagen
Thomas Floeren wrote: There seems to be a typo in anch-pgr.mkII which prevents textbackgrounds from working: line 654 '\enableparposition' should probably read '\enableparpositions'. If you copy the following lines into your environment it should work: \def\initializeparbackgrounds

Re: [NTG-context] Multi-line labels in MetaPost

2009-08-14 Thread richard . stephens
Hello, Is it possible to generate multi-line labels in MetaPost? I have naively tried the following hoping to get a line feed between the two words, but it doesn't work! label.rt( btex One \crlf Two etex, (0,0)); \defineframed[mplabel][frame=off,align=right

Re: [NTG-context] Multi-line labels in MetaPost

2009-08-14 Thread Thomas A. Schmitz
On Aug 14, 2009, at 10:54 AM, richard.steph...@converteam.com wrote: For the record, after reading Mojca's MyWay, and noting that textext is deprecated except in certain circumstances, Well, it's a bit more complicated: in mkii, sometxt was the easiest solution because it was flexible

Re: [NTG-context] Multi-line labels in MetaPost

2009-08-13 Thread richard . stephens
Hello, Is it possible to generate multi-line labels in MetaPost? I have naively tried the following hoping to get a line feed between the two words, but it doesn't work! label.rt( btex One \crlf Two etex, (0,0)); \defineframed[mplabel][frame=off,align=right,width=fit

Re: [NTG-context] Multi-line labels in MetaPost

2009-08-13 Thread Aditya Mahajan
On Thu, 13 Aug 2009, richard.steph...@converteam.com wrote: Hello, Is it possible to generate multi-line labels in MetaPost?  I have   naively tried the following hoping to get a line feed between the   two words, but it doesn't work! label.rt( btex One \crlf Two etex, (0,0

[NTG-context] Multi-line labels in MetaPost

2009-08-12 Thread richard . stephens
Hello, Is it possible to generate multi-line labels in MetaPost? I have naively tried the following hoping to get a line feed between the two words, but it doesn't work! label.rt( btex One \crlf Two etex, (0,0)); Thanks, Richard Converteam UK Ltd. Registration Number: 5571739

Re: [NTG-context] Multi-line labels in MetaPost

2009-08-12 Thread Wolfgang Schuster
Am 12.08.2009 um 18:09 schrieb richard.steph...@converteam.com: Hello, Is it possible to generate multi-line labels in MetaPost? I have naively tried the following hoping to get a line feed between the two words, but it doesn't work! label.rt( btex One \crlf Two etex, (0,0

[NTG-context] Problem with metapost textbackgrounds on Windows

2009-08-04 Thread Kevin D. Robbins
Hello all, In the example below, I mean for a gray box with rounded corners to be placed behind \startC ... \stopC blocks. This example compiles properly on Linux with the latest ConTeXt beta and LuaTeX synced from the minimals just minutes ago. On Windows, also updated from minimals this

Re: [NTG-context] Problem with metapost textbackgrounds on Windows

2009-08-04 Thread Mojca Miklavec
On Tue, Aug 4, 2009 at 19:18, Kevin D. Robbins wrote: Hello all, In the example below, I mean for a gray box with rounded corners to be placed behind \startC ... \stopC blocks. This example compiles properly on Linux with the latest ConTeXt beta and LuaTeX synced from the minimals just

Re: [NTG-context] Metapost question

2009-05-13 Thread Taco Hoekwater
Jean Magnan de Bornier wrote: Le 12 mai à 17:53:48 Taco Hoekwater t...@elvenkind.com écrit notamment: | I cannot reproduce this problem. To make sure it is not a mem file | version differencne, can you delete and regenerate mpost.mem ? I followed this, nothing better! Then I tried to delete

Re: [NTG-context] Metapost question

2009-05-13 Thread Jean Magnan de Bornier
Le 13 mai à 08:45:36 Taco Hoekwater t...@elvenkind.com écrit notamment: | That doesn't seem to make any sense, but I am glad the problem has | gone away. Well, after my original post, one of the advices was: | you have to give mpost a mem(ory dump) file. something like | mpost -mem=metafun.mem

Re: [NTG-context] Metapost question

2009-05-12 Thread Taco Hoekwater
Jean Magnan de Bornier wrote: Le 11 mai à 20:02:36 Mojca Miklavec mojca.miklavec.li...@gmail.com écrit notamment: | | Which command does that evil? They both seem to work here ... | | mpost, texexec --mpgraphic, mpost -mem=metafun.mem, all three of them! | I don't understand. Can you

Re: [NTG-context] XeConTeXt bug report II: MetaPost Graphics

2009-05-12 Thread Hans Hagen
Yue Wang wrote: 736 on current version but that line already looks that way ... so what needs to be patched - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt |

Re: [NTG-context] XeConTeXt bug report II: MetaPost Graphics

2009-05-12 Thread Yue Wang
Hi, Hans Prof. Cho asked you to comment the line after the { i.e.: - {\scratchdimen\wd#2\scratchdimen.5\scratchdimen\hskip-\the\scratchdimen +{% Yue Wang On Tue, May 12, 2009 at 7:05 PM, Hans Hagen pra...@wxs.nl wrote: Yue Wang wrote: 736 on current version but that line already looks

Re: [NTG-context] XeConTeXt bug report II: MetaPost Graphics

2009-05-12 Thread Jin-Hwan Cho
, and convert the dvi using dvipdfmx 2) using xetex to produce the pdf using xdvipdfmx the figure is placed at the wrong place. there will be a displacement for all the metapost figures when xetex is used to produce the graphics. I attach the wrong result in the mail. So my question is : - is this a bug

Re: [NTG-context] Metapost question

2009-05-12 Thread Jean Magnan de Bornier
Le 12 mai à 09:42:29 Taco Hoekwater t...@elvenkind.com écrit notamment: | Jean Magnan de Bornier wrote: | Le 11 mai à 20:02:36 Mojca Miklavec mojca.miklavec.li...@gmail.com écrit notamment: | | | | Which command does that evil? They both seem to work here ... | | | | mpost, texexec

Re: [NTG-context] Metapost question

2009-05-12 Thread Aditya Mahajan
On Tue, 12 May 2009, Jean Magnan de Bornier wrote: Le 12 mai à 09:42:29 Taco Hoekwater t...@elvenkind.com écrit notamment: | Jean Magnan de Bornier wrote: | Le 11 mai à 20:02:36 Mojca Miklavec mojca.miklavec.li...@gmail.com écrit notamment: | | | | Which command does that evil? They both

Re: [NTG-context] Metapost question

2009-05-12 Thread Jean Magnan de Bornier
Le 12 mai à 16:32:26 Aditya Mahajan adit...@umich.edu écrit notamment: | Can you post a file that fails at your end? here, but it doesn't *fail*, it produces ecindf.1 ok but then shows infinitely this message. ... input metafun; numeric u; u=.5cm; path AX; AX = drawdblarrow

Re: [NTG-context] Metapost question

2009-05-12 Thread Taco Hoekwater
Jean Magnan de Bornier wrote: Le 12 mai à 16:32:26 Aditya Mahajan adit...@umich.edu écrit notamment: | Can you post a file that fails at your end? here, but it doesn't *fail*, it produces ecindf.1 ok but then shows infinitely this message. I cannot reproduce this problem. To make sure

Re: [NTG-context] Metapost question

2009-05-12 Thread Jean Magnan de Bornier
Le 12 mai à 17:53:48 Taco Hoekwater t...@elvenkind.com écrit notamment: | I cannot reproduce this problem. To make sure it is not a mem file | version differencne, can you delete and regenerate mpost.mem ? I followed this, nothing better! Then I tried to delete also metafun.mem and that worked!

<    7   8   9   10   11   12   13   14   15   16   >