Liunian | 5 Jan 16:32 2007
Picon

how to regenerate .mem files

Hi,
   I follow the guid in the INSTALL file of metpost0.932 to update my metapost.
But i have no idea of regenerate the .mem files in my TeX installation.
   Can anybody give me some advise! 
   Thanks a lot

Liunian
_______________________________________________
metapost mailing list
http://tug.org/mailman/listinfo/metapost

Stephan Hennig | 5 Jan 18:58 2007
Picon

Re: generic TeX interface?

Stephan Hennig schrieb:

> Instead, I tried to collect some features I'd like to see for a new
> TeX interface. Here's the unsorted list:

I would like to add one additional feature:

* The new TeX interface should provide means to declare different TeX
preambles for TeXing different text pictures inside one MetaPost source
file.  In a current application I would like to call LaTeX with
preambles that are basically the same, but differ in document class and
package options.

I can think of two alternative ways to support this:

(a) TeX is called with the (La)TeX preamble declared last:

beginfig(1);
texpreamble
\documentclass{article}
\usepackage{mathptmx}
\begin{document}
endpreamble
draw textext("Times");

texpreamble
\documentclass{article}
\usepackage[sc]{mathpazo}
\begin{document}
endpreamble
(Continue reading)

Hans Hagen | 5 Jan 20:36 2007
Picon

Re: generic TeX interface?

Stephan Hennig wrote:
> Stephan Hennig schrieb:
>
>   
>> Instead, I tried to collect some features I'd like to see for a new
>> TeX interface. Here's the unsorted list:
>>     
>
>   
just as one can implement a textext (which basically does a btex etex) 
one can implement a preamble mechanism,

texpreamble("...")

Hans 

> I would like to add one additional feature:
>
> * The new TeX interface should provide means to declare different TeX
> preambles for TeXing different text pictures inside one MetaPost source
> file.  In a current application I would like to call LaTeX with
> preambles that are basically the same, but differ in document class and
> package options.
>
> I can think of two alternative ways to support this:
>
> (a) TeX is called with the (La)TeX preamble declared last:
>
> beginfig(1);
> texpreamble
(Continue reading)

Reinhard Kotucha | 5 Jan 21:51 2007
Picon

Re: how to regenerate .mem files

>>>>> "Liunian" == Liunian  <Liunian <at> zju.edu.cn> writes:

  > Hi, I follow the guid in the INSTALL file of metpost0.932 to
  > update my metapost.  But i have no idea of regenerate the .mem
  > files in my TeX installation.  Can anybody give me some advise!

On UNIX systems (including Mac OS/X) try

   texconfig init mpost
or
   fmtutil --byfmt mpost

In TeXLive on Windows you probably have to use the second version.

Don't know about MikTeX.  But maybe it is described in its manual.
A mem file in Metapost is somthing like a format file in TeX.  If you
don't find anything about re-creating mem files, try to find out how
to re-create format files.  They are most likely created by the same
tool.

It's always best to use the tools provided by your TeX system because
they also make sure the generated files are moved to the correct
directories.

If you do not succeed, please tell us which TeX distribution you are
using and on which platform. 

Regards,
  Reinhard

(Continue reading)

Stephan Hennig | 5 Jan 21:30 2007
Picon

Re: CTAN has a new package: cmarrows

CTAN Announcements schrieb:
> On Tue, 19 Dec 2006, Tommy Ekola submitted the
> 
>    cmarrows 
> 
> package to CTAN.
> 
> Location on CTAN: /graphics/metapost/contrib/macros/cmarrows
> Summary description: MetaPost arrows and braces in the Computer Modern style
> License type: lppl
> 
> Announcement text: 
> ----------------------------------------------------------------------
> This MetaPost package contains macros to draw arrows and braces in the
> Computer Modern style.
> ----------------------------------------------------------------------
> 
> This package is located at 
>    http://dante.ctan.org/tex-archive/graphics/metapost/contrib/macros/cmarrows
> .  More information is at
>    http://tug.ctan.org/info/?id=cmarrows
> (if the package is new it may take a day for that information to 
> appear).  We are supported by the TeX Users Group http://www.tug.org .  
> Please join a users group; see http://www.tug.org/usergroups.html .
> _______________________________________________
> 
> Thanks for the upload.
> 
> For the CTAN Team
>   Rainer Schöpf
(Continue reading)

Steve MC Han | 5 Jan 22:17 2007
Picon

Re: generic TeX interface?

When we do
   <<mpost --tex=latex file.mp>>
is there anyway, just type only
  <<mpost file.mp>>
instead of whole text? It is very cumbersome to type all these everytime.
 
Thank you in advance.


Stephan Hennig <mailing_list <at> arcor.de> wrote:
Stephan Hennig schrieb:

> Instead, I tried to collect some features I'd like to see for a new
> TeX interface. Here's the unsorted list:


I would like to add one additional feature:

* The new TeX interface should provide means to declare different TeX
preambles for TeXing different text pictures inside one MetaPost source
file. In a current applicat ion I would like to call LaTeX with
preambles that are basically the same, but differ in document class and
package options.

I can think of two alternative ways to support this:

(a) TeX is called with the (La)TeX preamble declared last:

beginfig(1);
texpreamble
\documentclass{article}
\usepackage{mathptmx}
\begin{document}
endpreamble
draw textext("Times");

texpreamble
\documentclass{article}
\usepackage[sc]{mathpazo}
\begin{document}
endpreamble
draw textext("Palatino");
endfig;

(Macro names are chosen arbitrarily.)


(b) Or one can setup different "TeX profiles" (in the MetaPost preamble)
and switch them in the document:

deftexprofile(1);
\documentclass{article}
\usepackage{mathptmx}
\begin{document}
endprofile;

deftexprofile(2);
\documentclass{article}
\usepackage[sc]{mathpazo}
\begin{document}
endprofile;

beginfig(1);
usetexpreamble(1) ;
draw textext("Times");
usetexpreamble(2);
draw textext("Palatino");
usetexpreamble(1);
draw textext("Times again");
endfig;

What do you think?

Best regards,
Stephan Hennig

_______________________________________________
metapost mailing list
http://tug.org/mailman/listinfo/metapost

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

_______________________________________________
metapost mailing list
http://tug.org/mailman/listinfo/metapost
Hans Hagen | 5 Jan 23:32 2007
Picon

Re: generic TeX interface?

Steve MC Han wrote:
> When we do 
>      <<mpost --tex=latex file.mp>>
>   is there anyway, just type only
>     <<mpost file.mp>>
>   instead of whole text? It is very cumbersome to type all these everytime.
>    
>   
in texmf.cnf you can congure the tex variable

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

_______________________________________________
metapost mailing list
http://tug.org/mailman/listinfo/metapost

Liunian | 6 Jan 04:25 2007
Picon

Re: how to regenerate .mem files

Thanks for your help ^^

_______________________________________________
metapost mailing list
http://tug.org/mailman/listinfo/metapost

horak.k | 11 Jan 12:14 2007
Picon

problem with file database in mp.992

I have a macro file osy.mp in tex-local/metapost directory, but mp 
cannot find it,
even if ln ls-R file in my texmf-local directory is written

./metapost:
OSY.MP

What could be wrong? I am sure that before I moved some mp files into 
separate subdirectory, it worked fine.

Karel Horak
_______________________________________________
metapost mailing list
http://tug.org/mailman/listinfo/metapost

Dan Luecking | 11 Jan 20:34 2007
Picon

Re: problem with file database in mp.992

At 05:14 AM 1/11/2007, you wrote:
>I have a macro file osy.mp in tex-local/metapost directory, but mp
>cannot find it,
>even if ln ls-R file in my texmf-local directory is written
>
>./metapost:
>OSY.MP
>
>What could be wrong?

What is your operating system? Is letter case significant (that is,
is OSY.MP the same file as osy.mp)?

Did you type the above lines into ls-R yourself? That may not work.
Typically you have to run a program named texhash or makelsr or
something that updates ls-R.

What is your TeX system? Some do not use ls-R but some other
database format.

Is texmf-local recognized as a texmf directory? How to check that
depends on your TeX system.

Daniel H. Luecking
Department of Mathematical Sciences
University of Arkansas
"Mathematician's endless fortune to be around English monarch (8)"

_______________________________________________
metapost mailing list
http://tug.org/mailman/listinfo/metapost


Gmane