Peter Frane | 6 May 2012 21:01
Picon
Favicon

EPS

Hello,

I am writing a lightweight PostScript (PS) interpreter for use with my LaTeX DVI converter. I'm not familiar with MetaPost (MP) but from what I know it can output EPS. What I want to know is where can I get a documentation on the EPS output of MP? What are the PS operators used by MP?

Once I've learned that, what I want to do is to rasterize the EPS outputted by MP or convert it to other formats such as PNG, JPEG, or even PDF. Currently, this can only be done with Ghostscript.

Looking forward to hearing from you.

Sincerely,

Peter Frane
--
http://tug.org/metapost/
Taco Hoekwater | 7 May 2012 15:34
Gravatar

Re: EPS

On 05/06/2012 09:01 PM, Peter Frane wrote:
> Hello,
>
> I am writing a lightweight PostScript (PS) interpreter for use with my
> LaTeX DVI converter. I'm not familiar with MetaPost (MP) but from what I
> know it can output EPS. What I want to know is where can I get a
> documentation on the EPS output of MP? What are the PS operators used by MP?

Quickest solution is to run a file with:   procset := 1;

This will create an EPS with a small ps procset at the top that it
should be easy to extract the used operators from (excluding any
operators that could appear in font encodings). Metapost does not
use a lot of PS operators.

There is no formal documentation, but the CWeb source file that takes
care of EPS output:

http://foundry.supelec.fr/gf/project/metapost/scmsvn/?action=browse&path=%2Ftags%2Fbeta-1.504%2Fsource%2Ftexk%2Fweb2c%2Fmplibdir%2Fpsout.w&view=markup

is not exceptionally large (much of the file is used for font
subsetting).

Best wishes,
Taco
--
http://tug.org/metapost/

William Adams | 8 May 2012 17:47

Elegant interactive environment for Metapost / metafont?

I'm looking at going back to work on a typeface project and want to (once again) look into re-casting the
fonts as metafonts.

Is there a nice, elegant, interactive previewing tool optimized for editing a metafont?

I managed to find the MetaPostEngines.tar.bz2 which were posted to the OS X TeX mailing list a while back
(but it puts lots of figure-text information on the .pdf) --- I'm vaguely remembering some
Windows-specific tools though? Could someone re-fresh my uncertain organic memory or provide me w/ some
search terms which will work?

Thanks!

William

--

-- 
William Adams
senior graphic designer
Fry Communications
Sphinx of black quartz, judge my vow.

--
http://tug.org/metapost/

Nicola | 9 May 2012 23:59
Picon

Re: Elegant interactive environment for Metapost / metafont?

In article <AEF9E733-C10C-4000-89E7-FCDFB97AB3AE <at> frycomm.com>,
 William Adams <will.adams <at> frycomm.com> wrote:

> I'm looking at going back to work on a typeface project and want to (once 
> again) look into re-casting the fonts as metafonts.
> 
> Is there a nice, elegant, interactive previewing tool optimized for editing a 
> metafont?

Not that I know of. With TeXShop, you can typeset a .mf file with the 
nv-metapost engine and get a PDF preview of your font, one glyph per page. But 
TeXShop has no other specific MetaFont-editing features (e.g., syntax coloring). 
Besides, TeXShop is OS X only.

> I managed to find the MetaPostEngines.tar.bz2 which were posted to the OS X 
> TeX mailing list a while back (but it puts lots of figure-text information on 
> the .pdf)

I'm the author of those engines. Since the time I have posted to the mailing 
list, they have been improved quite a bit and the latest release is available at

http://users.dimi.uniud.it/~nicola.vitacolonna/home/content/metapost-engines-texs
hop

In particular, now you have better control over the output via special comments 
in your source file (see the documentation).

The engines are meant to be used with TeXShop, but since they are just Perl 
scripts, they can be also run from the command line or integrated into some 
other workflow.

Nicola

--
http://tug.org/metapost/

Juergen Reuter | 16 May 2012 12:09
Picon
Favicon

Filenames containing dots

Hi Metaposters,
I am using Metapost v1.504 (from TexLive 2011), and there is the 
following problem:
mpost seems to cut off file names after the first dot, such that the log 
files and pictures
from a file
A.B.mp
are created as A.log, A.1, A.2 etc.
but not A.B.log, A.B.1, A.B.2 etc.
This causes major problems with our software. Are there any plans to 
change this?
Or is there even a flag in the existing MetaPost to work around that 
problem?
Thanks a lot for your help and advice in advance!
Cheers,
     JRR

--

-- 
-------------------------------------
Juergen Reuter	
*****
DESY Theory Group
Notkestrasse 85
D-22603 Hamburg
Phone: +49 (0)40 8998-3895
Fax  : +49 (0)40 8998-2777

*****
Skype: jr_reuter
-------------------------------------

--
http://tug.org/metapost/

Taco Hoekwater | 17 May 2012 15:31
Gravatar

Re: Filenames containing dots

On 05/16/2012 12:09 PM, Juergen Reuter wrote:
> Hi Metaposters,
> I am using Metapost v1.504 (from TexLive 2011), and there is the
> following problem:
> mpost seems to cut off file names after the first dot, such that the log
> files and pictures
> from a file
> A.B.mp
> are created as A.log, A.1, A.2 etc.
> but not A.B.log, A.B.1, A.B.2 etc.
> This causes major problems with our software. Are there any plans to
> change this?

This is fixed in the development version of Metapost, but I do not
know of any workarounds for 1.504 that actually work, sorry.

Best wishes,
Taco
--
http://tug.org/metapost/

Dan Luecking | 31 May 2012 04:37
Picon
Favicon

Re: [NTG-context] MetaPost transformation

At 07:56 PM 5/30/2012, Troy Henderson wrote:
>Well then in case anyone needs such a transformation, I've 
>constructed the (non-unique) transformation T
>
> > t:=angle(f,e);
> > q:=e++f;
> > p:=(c*f-d*e)/q;
> > s:=(c*e+d*f)/(q**2);
> > transform T;
> > T:=identity rotated t xscaled p yscaled q slanted s shifted (a,b);
>
>This yields T=(a,b,c,d,e,f).

You can implement something like what you wanted directly
because, just as you can write equations for the parts of
a pair, you can also write equations for the parts of a
transform:
vardef mktransform (expr a,b,c,d,e,f) =
   save T_; transform T_;
   xpart  T_ = a;
   ypart  T_ = b;
   xxpart T_ = c;
   xypart T_ = d;
   yxpart T_ = e;
   yypart T_ = f;
   T_
enddef;

After this
   transform T;
   T := mktransform (1,2,3,4,5,6);
   show T;
produces:
 >> (1,2,3,4,5,6)

Regards,
Dan

Daniel H. Luecking
Department of Mathematical Sciences
Fayetteville, Arkansas
http://www-cs-faculty.stanford.edu/~knuth/iaq.html 

--
http://tug.org/metapost/


Gmane