[metapost] metapost Digest, Vol 41, Issue 8

Michael Maschler michael.maschler at gmail.com
Sat Apr 12 16:33:32 CEST 2008


This is a question for plain TeX:

The symbol \times generates Cartesian product of a fixed size.

I would like to have a symbol \bigtimes that, like \sum, generates
a symbol that generates Cartesian product to size that fits the
following formula.
E.g.  \bigtimes_{i=1}^n\int {x^i\ dx}.

It should work with $...$  and $$ ...  $$.

Thanks in advance.

Michael Maschler

Can one of your texperts generate it for me?

On Fri, Apr 11, 2008 at 1:00 PM,  <metapost-request at tug.org> wrote:
> Send metapost mailing list submissions to
>        metapost at tug.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://tug.org/mailman/listinfo/metapost
> or, via email, send a message with subject or body 'help' to
>        metapost-request at tug.org
>
> You can reach the person managing the list at
>        metapost-owner at tug.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of metapost digest..."
>
>
> Today's Topics:
>
>   1. MetaPost 1.003 announcement (Taco Hoekwater)
>   2. cloudit (David Van Horn)
>   3. Re: cloudit (Troy Henderson)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 10 Apr 2008 15:45:07 +0200
> From: Taco Hoekwater <taco at elvenkind.com>
> Subject: [metapost] MetaPost 1.003 announcement
> To: metapost at tug.org, ntg-context at ntg.nl, metafont at ens.fr,      TeX
>        Implementoren <tex-implementors at tug.org>,       "MetaPost bug reports and
>        discussion." <mp-implementors at tug.org>
> Message-ID: <47FE19E3.9090004 at elvenkind.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>
> The MetaPost team is happy to announce a new release of MetaPost:
>
> ----------------------------------------------------------------------
> MetaPost 1.003
> ----------------------------------------------------------------------
>
> The sources and a win32 package can be downloaded immediately from
>
>   http://foundry.supelec.fr/projects/metapost/
>
> The source package should compile normally on all systems that are
> capable of compiling a modern web2c-based TeX distribution.
>
> The win32 package is intended for texlive or a similar web2c-based
> installation, and has been tested only with TeXLive 2007. These
> executables will *not* work for miktex, sorry.
>
> Of course, we welcome any comments (either good or bad) that you may
> have. Simply replying to this message is fine, but see the bottom of
> the message for a more formal way to report bugs and feature requests.
>
> ----------------------------------------------------------------------
> What is new in version 1.003:
> ----------------------------------------------------------------------
>
> * Polygonal pens now work better (bug #3 and #7 at supelec.fr).
>
> * When asking for a color part in a picture object, the color models
>   now have to match each other, otherwise an error will be reported
>   and the return value will be set to a 'black' part.
>
> * The Makefile fragment (metapost.mk) now defines a separate mpost
>   target for better integration in TeXLive.
>
> * There was a bug in the internal handling of withprescript and
>   withpostscript, resulting in incorrect output when paths using
>   such scripts were stored in picture variables.
>
> * A newline was missing from the PostScript output when the
>   procset internal variable was set, so the first line of that
>   accidentally became a PostScript comment.
>
> * Applicable changes from Knuth's updates for MetaFont 2.718281
>   are incorporated.
>
> * Mpto did not play nice with %&<format> verbatimtex lines, it now
>   automatically tries to detect comment-lines.
>
> * Dvitomp  1.003 has higher limits for some internal constants like
>   the number of allowed fonts in DVI files.
>
> * The manual is improved.
>
>
> ----------------------------------------------------------------------
> Legal notice / license / bug reports
> ----------------------------------------------------------------------
> MetaPost is a system for producing graphics developed by John Hobby
> at AT&T, based on Donald Knuth's Metafont.  The MetaPost home page
> is http://tug.org/metapost.
>
> MetaPost and related programs are in the public domain.
>
> The MetaPost development project is currently hosted at Supelec,
> https://foundry.supelec.fr/projects/metapost; please report bugs and
> request enhancements through there if possible. Alternatively, you
> can reach us through the <metapost at tug.org> mailing list as well.
>
> Have fun!
>
> Taco Hoekwater, for the MetaPost team, April 10, 2008.
>
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 10 Apr 2008 20:19:49 -0400
> From: David Van Horn <dvanhorn at cs.brandeis.edu>
> Subject: [metapost] cloudit
> To: metapost at tug.org
> Message-ID: <47FEAEA5.6010203 at cs.brandeis.edu>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hello,
>
> I'm new to MetaPost and am trying to write a circleit-like macro that,
> instead of circling its contents, will draw a "cloud" around its
> contents.  As a first step, I've tried to just draw a cloud.
> (Understanding the definition of circleit is beyond my ability at this
> point.)
>
> Here is what I've come up with---this draws a 5-pointed cloud:
>
> beginfig(1)
>   path p[], pcirc, pcloud; numeric n, a, t[]; pair v[];
>
>   n = 5;
>   a = 85;
>   pcirc = fullcircle scaled 1cm;
>   for i=0 upto n:
>     t[i] = arctime i/n*arclength pcirc of pcirc;
>     v[i] = direction t[i] of pcirc;
>   endfor
>
>   pcloud =
>   point t0 of pcirc{direction t0 of pcirc rotated -a}..
>   {v1 rotated a}point t1 of pcirc{v1 rotated -a}..
>   {v2 rotated a}point t2 of pcirc{v2 rotated -a}..
>   {v3 rotated a}point t3 of pcirc{v3 rotated -a}..
>   {v4 rotated a}point t4 of pcirc{v4 rotated -a}..
>   {v5 rotated a}point t5 of pcirc..cycle;
>
>   draw pcloud;
> endfig;
>
> I'd like to generalize this to work for arbitrary values of n, but I
> don't see how to construct the pcloud path in general.
>
> 1) How can I generalize this?
> 2) How can I make a circleit like macro that draws a cloud around its
> contents?
>
> Thanks,
> David
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 10 Apr 2008 21:53:59 -0500
> From: "Troy Henderson" <thenders at gmail.com>
> Subject: Re: [metapost] cloudit
> Cc: metapost at tug.org
> Message-ID:
>        <cf53c9500804101953l6324da4cjab2e6300746f33f4 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> >  I'd like to generalize this to work for arbitrary values of n, but I
> >  don't see how to construct the pcloud path in general.
> >
> >  1) How can I generalize this?
>
> You can replace
>
> >  pcloud =
> >  point t0 of pcirc{direction t0 of pcirc rotated -a}..
> >  {v1 rotated a}point t1 of pcirc{v1 rotated -a}..
> >  {v2 rotated a}point t2 of pcirc{v2 rotated -a}..
> >  {v3 rotated a}point t3 of pcirc{v3 rotated -a}..
> >  {v4 rotated a}point t4 of pcirc{v4 rotated -a}..
> >  {v5 rotated a}point t5 of pcirc..cycle;
>
> with
>
>  pcloud =
>  point t0 of pcirc{direction t0 of pcirc rotated -a}
>  for i=1 upto n:
>    ..{v[i] rotated a}point t[i] of pcirc{v[i] rotated -a}
>  endfor ..cycle;
>
> This should let you use whatever n you choose.
>
> Troy
>
>
> ------------------------------
>
> _______________________________________________
> metapost mailing list
> metapost at tug.org
> http://tug.org/mailman/listinfo/metapost
>
>
> End of metapost Digest, Vol 41, Issue 8
> ***************************************
>



-- 
Note my additional mailing address.


More information about the metapost mailing list