[OS X TeX] Program to draw Venn diagrams?

Kannan Moudgalya kannan at iitb.ac.in
Thu Apr 15 10:21:13 EDT 2004


I missed the link for venn.mp and so downloaded it from ctan.  I did as
suggested; got a file vennfigure.1 in eps format and the following error
message.  What is wrong?

This is MetaPost, Version 0.641 (Web2C 7.4.5) (mem=metafun 2003.5.3)  15
APR 2004 08:17
**&metafun vennfigure
(vennfigure.mp (venn.mp)
write0 = `vennfigure.mpo'.


! A statement can't begin with `shifted'.
<to be read again>
                   shifted
l.5   shifted
              (4cm,0) withcolor white;
?
! Extra tokens will be flushed.
<to be read again>
                   shifted
l.5   shifted
              (4cm,0) withcolor white;
?
[1] )
1 output file written: vennfigure.1




> The metapost method listed above is very simple.
> For stolen exampe:
> Create a metapost file vennfigure.mp with contents:
> input venn;
> beginfig(1);
>   draw_venn_three(false,false,true,false,true,false,false,false);
>   draw_venn_three(false,true,false,true,false,false,false,false)
>   shifted (4cm,0) withcolor white;
> endfig;
> end
>
> Download venn.mp (from the link posted by Jean-Claude)
>
> mptopdf vennfigure.mp
>
> You will have a vennfigure-0.pdf file the looks so nice.
>
> Alternatively, you can just put the metapost code in your latex
> document (much faster), but I'll let you look up how to do that.
> Joe
>
> -----------------------------------------------------
> Please see <http://www.esm.psu.edu/mac-tex/> for list
> guidelines, information, and LaTeX/TeX resources.
>
>
>

-----------------------------------------------------
Please see <http://www.esm.psu.edu/mac-tex/> for list
guidelines, information, and LaTeX/TeX resources.





More information about the MacOSX-TeX mailing list