Re: [NTG-context] MetaPost Question

2015-12-07 Thread Context NTG
I guess the code I am looking for is the below to hatch the cut-out section. How can I load the MetaPost hatching package in Context minimals so it understands the hatchfill command? Thanks Jeroen \startMPinclusions input hatching; \stopMPinclusions \starttext

[NTG-context] MetaPost Question

2015-12-06 Thread Context NTG
I am trying to graph a cylinder. Is there a way to draw a more elliptic top/bottom. This one seems some flattened at the top and bottom. I would like to hatch the mid elliptic that is collored grey now. Is there a way to do this. Thanks Jeroen \placefigure [here,force] [fig:tubing] {Tubular

Re: [NTG-context] MetaPost Question

2015-12-06 Thread Alan BRASLAU
Please change your mailing name and address. In order to draw 3D perspective diagrams in MetaPost, you will need to transform 3D paths to a 2D projection. There are many methods to accomplish this, and there are several MP modules that have been written to address this issue. One fairly simple

[NTG-context] metapost question

2011-12-01 Thread Hans van der Meer
In MetaPost: After putting something in a picture, one can draw its boundaries with draw boundingbox thepicture. Is it possible to obtain at that point the dimensions of this boudingbox in order to do some calculations with them? Hans van der Meer

Re: [NTG-context] metapost question

2011-12-01 Thread Peter Rolf
Am 01.12.2011 23:25, schrieb Hans van der Meer: In MetaPost: After putting something in a picture, one can draw its boundaries with draw boundingbox thepicture. Is it possible to obtain at that point the dimensions of this boudingbox in order to do some calculations with them? urcorner

[NTG-context] metapost question

2011-10-21 Thread Hans van der Meer
I cannot find the answer to the following question in Knuth's Metafont book. The following definition with a trailing text argument: def mydef (expr a, b, c) text modifier = if modifier = empty: else: fi enddef; How can I do the switch on an empty or nonempty modifier

Re: [NTG-context] metapost question

2011-10-21 Thread Peter Rolf
Am 21.10.2011 15:05, schrieb Hans van der Meer: I cannot find the answer to the following question in Knuth's Metafont book. The following definition with a trailing text argument: def mydef (expr a, b, c) text modifier = if modifier = empty: Have you already tried if

Re: [NTG-context] metapost question

2011-10-21 Thread Meer, H. van der
On 21 okt. 2011, at 17:13, Peter Rolf wrote: Am 21.10.2011 15:05, schrieb Hans van der Meer: I cannot find the answer to the following question in Knuth's Metafont book. The following definition with a trailing text argument: def mydef (expr a, b, c) text modifier = if modifier =

Re: [NTG-context] metapost question

2011-10-21 Thread Nicola
In article 0e2e620e-1148-41ad-9966-54a594fcc...@xs4all.nl, Hans van der Meer havdm...@xs4all.nl wrote: I cannot find the answer to the following question in Knuth's Metafont book. The following definition with a trailing text argument: def mydef (expr a, b, c) text modifier = if

Re: [NTG-context] metapost question

2011-10-21 Thread Meer, H. van der
Peter, Thanks for trying to help. Because I solved the problem in another way you might be interested or even benefit from it. The underlying problem was drawing a border around a picture of given dimensions. The border being either colored or left uncolored. The border color should come from

Re: [NTG-context] metapost question (bug?)

2011-07-22 Thread Peter Rolf
Am 21.07.2011 23:21, schrieb Alan Braslau: On Thu, Jul 21, 2011 at 05:39:48PM +0200, Peter Rolf wrote: use p2 := p0 p1; the reason for the 'unexpected' output is, that point 1 and 2 of the path p2 are equal. keep in mind that drawing with an asymmetrical pen has its own (complex) rules.

[NTG-context] metapost question (bug?)

2011-07-21 Thread Alan Braslau
Hello, I have a question for metapost specialists: I am looking for some sort of effect, built upon a zig-zag line. The first graphic in the minimal example below is as I would expect. The second graphic seems to be drawn without the point at (0,0). (Ignore the asymmetry at the end of the path

Re: [NTG-context] metapost question (bug?)

2011-07-21 Thread luigi scarso
On Thu, Jul 21, 2011 at 4:39 PM, Alan Braslau alan.bras...@cea.fr wrote: Hello, I have a question for metapost specialists: I am looking for some sort of effect, built upon a zig-zag line. The first graphic in the minimal example below is as I would expect. The second graphic seems to be

Re: [NTG-context] metapost question (bug?)

2011-07-21 Thread Peter Rolf
Am 21.07.2011 16:53, schrieb luigi scarso: On Thu, Jul 21, 2011 at 4:39 PM, Alan Braslau alan.bras...@cea.fr wrote: Hello, I have a question for metapost specialists: I am looking for some sort of effect, built upon a zig-zag line. The first graphic in the minimal example below is as I

Re: [NTG-context] metapost question (bug?)

2011-07-21 Thread Alan Braslau
On Thu, Jul 21, 2011 at 05:39:48PM +0200, Peter Rolf wrote: use p2 := p0 p1; the reason for the 'unexpected' output is, that point 1 and 2 of the path p2 are equal. keep in mind that drawing with an asymmetrical pen has its own (complex) rules. Thank you -- I forgot about the path

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] 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!

[NTG-context] Metapost question

2009-05-11 Thread Jean Magnan de Bornier
Hi all, Trying to use mpost with (today's) minimals, I get this answer: ... 16:55 j...@boldair /home/jean/graph % mpost ecindf Sorry, I can't find that mem file; will try PLAIN. I can't find the PLAIN mem file! ... Do I have to make

Re: [NTG-context] Metapost question

2009-05-11 Thread Peter Rolf
Jean Magnan de Bornier schrieb: Hi all, Trying to use mpost with (today's) minimals, I get this answer: ... 16:55 j...@boldair /home/jean/graph % mpost ecindf Sorry, I can't find that mem file; will try PLAIN. I can't find the PLAIN mem file!

Re: [NTG-context] Metapost question

2009-05-11 Thread Mojca Miklavec
On Mon, May 11, 2009 at 17:14, Jean Magnan de Bornier wrote: Hi all, Trying to use mpost with (today's) minimals, I get this answer: ... 16:55 j...@boldair /home/jean/graph % mpost ecindf Sorry, I can't find that mem file; will try PLAIN. I can't find the

Re: [NTG-context] Metapost question

2009-05-11 Thread Aditya Mahajan
On Mon, 11 May 2009, Jean Magnan de Bornier wrote: Hi all, Trying to use mpost with (today's) minimals, I get this answer: ... 16:55 j...@boldair /home/jean/graph % mpost ecindf Sorry, I can't find that mem file; will try PLAIN. I can't find the PLAIN mem file!

Re: [NTG-context] Metapost question

2009-05-11 Thread Mojca Miklavec
On Mon, May 11, 2009 at 17:42, Mojca Miklavec wrote: On Mon, May 11, 2009 at 17:14, Jean Magnan de Bornier wrote: Hi all, Trying to use mpost with (today's) minimals, I get this answer: ... 16:55 j...@boldair /home/jean/graph % mpost ecindf Sorry, I can't

Re: [NTG-context] Metapost question

2009-05-11 Thread Jean Magnan de Bornier
Le 11 mai à 17:34:42 Peter Rolf indi...@gmx.net écrit notamment: | Jean Magnan de Bornier schrieb: | Hi all, | Trying to use mpost with (today's) minimals, I get this answer: | ... | 16:55 j...@boldair /home/jean/graph % mpost ecindf | | Sorry, I can't find

Re: [NTG-context] Metapost question

2009-05-11 Thread Hans Hagen
Mojca Miklavec wrote: On Mon, May 11, 2009 at 17:14, Jean Magnan de Bornier wrote: Hi all, Trying to use mpost with (today's) minimals, I get this answer: ... 16:55 j...@boldair /home/jean/graph % mpost ecindf Sorry, I can't find that mem file; will try PLAIN. I

Re: [NTG-context] Metapost question

2009-05-11 Thread Mojca Miklavec
On Mon, May 11, 2009 at 19:33, Jean Magnan de Bornier wrote: Le 11 mai à 18:52:08 Mojca Miklavec écrit notamment: | But then I still have unending the | ... | metafun 2009-5-11 18:30 | metafun 2009-5-11 18:30 | metafun 2009-5-11 18:30 | metafun 2009-5-11 18:30 |

Re: [NTG-context] Metapost question

2009-05-11 Thread Mojca Miklavec
On Mon, May 11, 2009 at 19:01, Hans Hagen wrote: Mojca Miklavec wrote:    states.set(formats.metafun, true) Maybe mpost should be added there as well (though I didn't test yet if that indeed helps). maybe ... if someone is using mp directly in context -) in luatex/mkiv formats are

Re: [NTG-context] Metapost question

2009-05-11 Thread Jean Magnan de Bornier
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 please post the whole log. You cannot

[NTG-context] metapost question

2008-06-18 Thread Thomas A. Schmitz
Hi all, probably an easy question: for a presentation, I would like to have an area of my slide highlighted by placing a transparent grey layer on top of the slide and having one area of this layer completely transparent, a bit like this screenshot:

Re: [NTG-context] metapost question

2008-06-18 Thread Wolfgang Schuster
On Wed, Jun 18, 2008 at 1:14 PM, Thomas A. Schmitz [EMAIL PROTECTED] wrote: Hi all, probably an easy question: for a presentation, I would like to have an area of my slide highlighted by placing a transparent grey layer on top of the slide and having one area of this layer completely

Re: [NTG-context] metapost question

2008-06-18 Thread Thomas A. Schmitz
On Jun 18, 2008, at 1:58 PM, Peter Rolf wrote: \startuniqueMPgraphic{dim:and:focus}{fw,fh,fx,fy,c} begingroup save q ; path q; q:= (unitsquare xyscaled(\MPvar{fw},\MPvar{fh}) smoothed 4px) shifted (\MPvar{fx},\MPvar{fy}); fill OverlayBox--reverse q-- cycle withcolor

Re: [NTG-context] metapost question

2008-06-18 Thread Peter Rolf
Thomas A. Schmitz schrieb: Hi all, probably an easy question: for a presentation, I would like to have an area of my slide highlighted by placing a transparent grey layer on top of the slide and having one area of this layer completely transparent, a bit like this screenshot:

Re: [NTG-context] metapost question

2007-10-23 Thread Thomas A. Schmitz
Just wanted to renew my thanks. I used the code from these pages to produce the slides for my lecture, and I really liked the way the polyhedra came out. I always got an error about a redundant equation when compiling, but the pdf looks fine. So here's the link (the image with the Platonic

Re: [NTG-context] metapost question

2007-10-23 Thread Hans Hagen
Thomas A. Schmitz wrote: Just wanted to renew my thanks. I used the code from these pages to produce the slides for my lecture, and I really liked the way the polyhedra came out. I always got an error about a redundant equation when compiling, but the pdf looks fine. So here's the link (the

Re: [NTG-context] metapost question

2007-10-23 Thread Thomas A. Schmitz
On Oct 23, 2007, at 2:26 PM, Hans Hagen wrote: use := instead of = then Well yes, but this was a pretty intricate package with lots of included files, so I found it difficult to trace down which equation was causing the trouble. However, I found the resilt very nice. Best Thomas

[NTG-context] metapost question

2007-10-08 Thread Thomas A. Schmitz
Just because I hope that someone may have done this already: does anyone have metapost code to draw the Platonic solids (I hope the attachment comes through). All best Thomas inline: platonic.png___ If your

Re: [NTG-context] metapost question

2007-10-08 Thread Otared Kavian
Hi Thomas, I think you can find what you are looking for at: http://melusine.eu.org/syracuse/poulecl/albums/espace3/ Best regards: OK On 8 oct. 2007, at 15:47, Thomas A. Schmitz wrote: Just because I hope that someone may have done this already: does anyone have metapost code to draw the

Re: [NTG-context] metapost question

2007-10-08 Thread Thomas A. Schmitz
On Oct 8, 2007, at 6:49 PM, Otared Kavian wrote: Hi Thomas, I think you can find what you are looking for at: http://melusine.eu.org/syracuse/poulecl/albums/espace3/ Best regards: OK Thanks, Otared! It took me a while to find out how to navigate the site, but this really looks like it

Re: [NTG-context] metapost question

2007-10-08 Thread Jesse Alama
And here's a page dedicated to the MetaPost package that's used for those polyhedra: http://melusine.eu.org/syracuse/poulecl/geometriesyr16/ Download: http://melusine.eu.org/syracuse/poulecl/geometriesyr16/distrib/geometriesyr16.tgz Jesse Otared Kavian [EMAIL PROTECTED] writes: Hi

[NTG-context] MetaPost question

2007-06-28 Thread Tobias Burnus
Hello, I try to print a periodic table in MP+TeX, but I get the following error if I uncomment the % lines; I fail to see my error. Is there any trick to debug this? The error is: ! mpx file ended unexpectedly. l.3186 - line number depends on which line is outcommented Thanks, Tobias

Re: [NTG-context] MetaPost question

2007-06-28 Thread Taco Hoekwater
Tobias Burnus wrote: Hello, I try to print a periodic table in MP+TeX, but I get the following error if I uncomment the % lines; I fail to see my error. Is there any trick to debug this? It is not easy do debug that (in general), but it normally helps to run a standalone label in TeX if you

Re: [NTG-context] MetaPost question

2007-05-04 Thread Aditya Mahajan
On Wed, 2 May 2007, Aditya Mahajan wrote: On Wed, 2 May 2007, Tobias Burnus wrote: Hi, I want to define a macro in MetaPost which does: def myfunc (expr x,y)(text t) = draw thelabel.rt (btex You passed \quotation{t} etex, (x,y)); where t in btex ... text is replaced by the argument.

[NTG-context] MetaPost question

2007-05-02 Thread Tobias Burnus
Hi, I want to define a macro in MetaPost which does: def myfunc (expr x,y)(text t) = draw thelabel.rt (btex You passed \quotation{t} etex, (x,y)); where t in btex ... text is replaced by the argument. How to do so? Tobias

Re: [NTG-context] MetaPost question

2007-05-02 Thread Aditya Mahajan
On Wed, 2 May 2007, Tobias Burnus wrote: Hi, I want to define a macro in MetaPost which does: def myfunc (expr x,y)(text t) = draw thelabel.rt (btex You passed \quotation{t} etex, (x,y)); where t in btex ... text is replaced by the argument. How to do so? You can do that using TEX.mp. I

[NTG-context] Metapost question

2005-06-14 Thread Tobias Burnus
Hello, does someone know how, if at all, one can printout some variable? Like Emean:=(2*Eone+Ezero+2*Etwo)/5.; label.urt(btex $A = x$ where x is the value of Emean? I frequently create some diagrams, modify them and then forget to change the label. (If one could set the number of