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
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
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
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
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
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
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
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 =
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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!
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
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!
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
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!
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
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
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
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
|
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
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
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:
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
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
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:
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
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
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
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
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
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
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
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
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
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.
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
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
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
50 matches
Mail list logo