Michael Maschler | 4 Aug 2006 00:50
Picon

How to make winedt recognise metapost


HI,

 I installed WinEdt5 containing Miktex 2.4 in a computer. Almost  everything went well, except that:

When I pressed mp foo.mp it created an empty foo.1, so I could not
 proceed in getting the figure.

  The log report said: Emergency stop
  Endfig -> scantokens.extra_endfig: shipit:
                                                             endgroup

  I am not used to the options provided by WinEdt team and I could not see
 from the Wizard how to proceed.

I had a similar problem in a different computer and I succeeded to overcome it
by doing two things:

1.
In some configuration file, whose name I do not remember, I added
"assign" to  GS version 8.11 (because that filed called assign GS to an earlier
version).

2.
After that I pressed  some kind of update  taken from somewhere in  the Wizard.

I do not know why that worked, but  it did.  Can you advise  and tell me  the name of the metapost file in which "assign"  to GS  is  stated?

Can you tell me which "update" forces winedt to recognize meatpost?

Let me add that in the computer that works, I can only process the metapost
file via the path:  mp to foo.ps -> TeX using  epsf -> dvi to ps -> dvi to pdf.
Using Tex to pdf directly, or dvi 2 pdf does not work.  Obviously something is wrong in my
installation.


Thanks,

 Michael Maschler

 p.s.,
  I am using Ghostscript gs8.11 in C:\gs and Ghost view in
 c:\Ghostgum\gsview\gvwgs32.exe, version 4.5.








--
Note my additional mailing address.

_______________________________________________
metapost mailing list
http://tug.org/mailman/listinfo/metapost
Taco Hoekwater | 4 Aug 2006 09:19
Gravatar

Re: How to make winedt recognise metapost

Michael Maschler wrote:
> 
> HI,
> 
>  I installed WinEdt5 containing Miktex 2.4 in a computer. Almost  
> everything went well, except that:
> 
> When I pressed mp foo.mp it created an empty foo.1, so 
> I could not
>  proceed in getting the figure.
> 
>   The log report said: Emergency stop
>   Endfig -> scantokens.extra_endfig: shipit:
>                                                              endgroup

This is the line below the actual error, so please check what it
says immediately above this line.

>   I am not used to the options provided by WinEdt team and I could not see
>  from the Wizard how to proceed.

Does it work if you run metapost from a command line?

> 
> I do not know why that worked, but  it did.  Can you advise  and tell 
> me  the name of the metapost file in which "assign"  to GS  is  stated?

This current problem is definately not related to GS, but that
is where my help has to end (I do not have windows, so winedt
problems are well outside of my expertise).

Good luck,

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

Wim W. Wilhelm | 4 Aug 2006 17:05
Picon

Re: How to make winedt recognise metapost

This created the same error message on my system Win XP
prologues := 2;
beginfig(1);
 
endfig;
endfig;
end;
Endfig -> scantokens.extra_endfig: shipit:
                                                             endgroup
Put somewhere an extra bginfig()
Cheerio
Wim
----- Original Message -----
Sent: Friday, August 04, 2006 12:50 AM
Subject: [metapost] How to make winedt recognise metapost


HI,

 I installed WinEdt5 containing Miktex 2.4 in a computer. Almost  everything went well, except that:

When I pressed mp foo.mp it created an empty foo.1, so I could not
 proceed in getting the figure.

  The log report said: Emergency stop
  Endfig -> scantokens.extra_endfig: shipit:
                                                             endgroup

  I am not used to the options provided by WinEdt team and I could not see
 from the Wizard how to proceed.

I had a similar problem in a different computer and I succeeded to overcome it
by doing two things:

1.
In some configuration file, whose name I do not remember, I added
"assign" to  GS version 8.11 (because that filed called assign GS to an earlier
version).

2.
After that I pressed  some kind of update  taken from somewhere in  the Wizard.

I do not know why that worked, but  it did.  Can you advise  and tell me  the name of the metapost file in which "assign"  to GS  is  stated?

Can you tell me which "update" forces winedt to recognize meatpost?

Let me add that in the computer that works, I can only process the metapost
file via the path:  mp to foo.ps -> TeX using  epsf -> dvi to ps -> dvi to pdf.
Using Tex to pdf directly, or dvi 2 pdf does not work.  Obviously something is wrong in my
installation.


Thanks,

 Michael Maschler

 p.s.,
  I am using Ghostscript gs8.11 in C:\gs and Ghost view in
 c:\Ghostgum\gsview\gvwgs32.exe, version 4.5.








--
Note my additional mailing address.

_______________________________________________
metapost mailing list
http://tug.org/mailman/listinfo/metapost
_______________________________________________
metapost mailing list
http://tug.org/mailman/listinfo/metapost
Michael Maschler | 7 Aug 2006 15:04
Picon

How to draw Chess board with figures, using MetaPost?

Hi,

I need to draw several chess boards with figures in various locations.

This s needed for a textbook on game theory.

Is there any package that I can use?

Can you  provide me with  suggestions how to produce  such a figure?

Michael Maschler
 


_______________________________________________
metapost mailing list
http://tug.org/mailman/listinfo/metapost
José Carlos Santos | 7 Aug 2006 16:04
Picon
Favicon

Re: How to draw Chess board with figures, using MetaPost?

Michael Maschler wrote:

> I need to draw several chess boards with figures in various locations.
> 
> This s needed for a textbook on game theory.
> 
> Is there any package that I can use?
> 
> Can you  provide me with  suggestions how to produce  such a figure?

Instead of re-inventing the wheel, why don't you use some of the LaTeX
chess packages?

Best regards,

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

Oleg Katsitadze | 7 Aug 2006 16:26
Picon

Re: How to draw Chess board with figures, using MetaPost?

On Mon, Aug 07, 2006 at 04:04:54PM +0300, Michael Maschler wrote:
> I need to draw several chess boards with figures in various locations.

I don't know about a MetaPost package, but there's a LaTeX
package which does this:

  http://tug.ctan.org/tex-archive/macros/latex/contrib/chessboard

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

Denis Roegel | 21 Aug 2006 16:31
Picon
Favicon

latexmp problem

Hi all,

I am having a small problem with a file generated with latexmp.
The input file is:

input latexmp;
beginfig(1);
  for i=1 upto 5:
    label(textext("$i=" & (decimal i) & "$"),(0,10*i));
  endfor
endfig;

end

The problem I have is that I only get

i
i
i
i
i 1

when I include the file with latex+dvips:

\documentclass{article}
\usepackage{graphicx}
\begin{document}
%\DeclareGraphicsRule{*}{mps}{*}{}
\includegraphics{test.1}
\end{document}

but I do get the correct result with pdflatex:

i=5
i=4
i=3
i=2
i=1

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\DeclareGraphicsRule{*}{mps}{*}{}
\includegraphics{test.1}
\end{document}

In both cases the file test.1 is the same. Could anybody
enlighten me on the cause of this problem?

Thanks,

Denis Roegel

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

Piotr Zielinski | 21 Aug 2006 19:26
Picon

Re: latexmp problem

Are you viewing your ps file with ghostview? It might be the case that
ghostscript can't find proper math fonts.  Try enabling debugging in
ghostview, to find out more; also see if you have any errors if you
type "gs yourfile.ps" instead of "ghostview yourfile.ps".

Here are things some things that might help

1. Putting "prologues := 2;" at the beginning of your mp file

2. Setting

GS_LIB=$(dirname $(kpsewhich cmr10.pfb)):$(dirname $(kpsewhich lasy10.pfb)):

before invoking ghostview (note  the colon at the end).

Thanks,
Piotr

On 21/08/06, Denis Roegel <Denis.Roegel <at> loria.fr> wrote:
> Hi all,
>
> I am having a small problem with a file generated with latexmp.
> The input file is:
>
> input latexmp;
> beginfig(1);
>   for i=1 upto 5:
>     label(textext("$i=" & (decimal i) & "$"),(0,10*i));
>   endfor
> endfig;
>
> end
>
> The problem I have is that I only get
>
> i
> i
> i
> i
> i 1
>
> when I include the file with latex+dvips:
>
> \documentclass{article}
> \usepackage{graphicx}
> \begin{document}
> %\DeclareGraphicsRule{*}{mps}{*}{}
> \includegraphics{test.1}
> \end{document}
>
> but I do get the correct result with pdflatex:
>
> i=5
> i=4
> i=3
> i=2
> i=1
>
> \documentclass{article}
> \usepackage{graphicx}
> \begin{document}
> \DeclareGraphicsRule{*}{mps}{*}{}
> \includegraphics{test.1}
> \end{document}
>
> In both cases the file test.1 is the same. Could anybody
> enlighten me on the cause of this problem?
>
> Thanks,
>
> Denis Roegel
>
> _______________________________________________
> metapost mailing list
> http://tug.org/mailman/listinfo/metapost
>

--

-- 
Piotr Zielinski, Research Associate
Cavendish Laboratory, University of Cambridge, UK
http://www.cl.cam.ac.uk/~pz215/
_______________________________________________
metapost mailing list
http://tug.org/mailman/listinfo/metapost

José Carlos Santos | 21 Aug 2006 22:36
Picon
Favicon

Re: latexmp problem

On 21-08-2006 15:31, Denis Roegel wrote:

> I am having a small problem with a file generated with latexmp.
> The input file is:
> 
> input latexmp;
> beginfig(1);
>   for i=1 upto 5:
>     label(textext("$i=" & (decimal i) & "$"),(0,10*i));
>   endfor
> endfig;
> 
> end
> 
> The problem I have is that I only get
> 
> i
> i
> i
> i
> i 1
> 
> when I include the file with latex+dvips:
> 
> \documentclass{article}
> \usepackage{graphicx}
> \begin{document}
> %\DeclareGraphicsRule{*}{mps}{*}{}
> \includegraphics{test.1}
> \end{document}
> 
> but I do get the correct result with pdflatex:
> 
> i=5
> i=4
> i=3
> i=2
> i=1
> 
> \documentclass{article}
> \usepackage{graphicx}
> \begin{document}
> \DeclareGraphicsRule{*}{mps}{*}{}
> \includegraphics{test.1}
> \end{document}
> 
> In both cases the file test.1 is the same. Could anybody
> enlighten me on the cause of this problem?

I *do* get the same thing in both cases; to be more precise, I get in
both cases the same thing that you get while using PDFLaTeX.

I'm using:

latexmp-mp version 1.2.1
MetaPost version 0.901 (Web2C 7.5.3)
Ghostscript 8.54

and I am working under Windows. What about you?

Best regards,

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

Denis Roegel | 21 Aug 2006 23:41
Picon
Favicon

latexmp problem

dvips -j0 fixes the problem. I should have thought about it...

Thanks,

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


Gmane