ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* mptopdf (broken again)
@ 2011-01-09 23:37 Mojca Miklavec
  2011-01-10  7:55 ` Taco Hoekwater
  2011-01-12  9:07 ` Hans Hagen
  0 siblings, 2 replies; 13+ messages in thread
From: Mojca Miklavec @ 2011-01-09 23:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hans & Taco,

A tiny request: is there any chance to make the mptopdf script point
to "--script mptopdf" instead of "--script base"?

And note for Taco: I have no idea how it got there (I think that I use
TLContrib), but my TL installation (/usr/texbin/mptopdf) contains:

eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' && eval 'exec
perl -S $0 $argv:q'
        if 0;

# MikTeX users can set environment variable TEXSYSTEM to "miktex".

#D \module
#D   [       file=mptopdf.pl,
...
#D      copyright={PRAGMA ADE / Hans Hagen \& Ton Otten}]
#C
#C This module is part of the \CONTEXT\ macro||package and is
#C therefore copyrighted by \PRAGMA. See licen-en.pdf for
#C details.

# use File::Copy ; # not in every perl

use Config ;
use Getopt::Long ;
use strict ;
use File::Basename ;


And when I try to use it I get:

> mptopdf a.mp
-bash: /usr/texbin/mptopdf: Permission denied

Thanks a lot,
   Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: mptopdf (broken again)
  2011-01-09 23:37 mptopdf (broken again) Mojca Miklavec
@ 2011-01-10  7:55 ` Taco Hoekwater
  2011-01-10 10:11   ` Mojca Miklavec
  2011-01-12  9:07 ` Hans Hagen
  1 sibling, 1 reply; 13+ messages in thread
From: Taco Hoekwater @ 2011-01-10  7:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mojca Miklavec

Hi,

That mptopdf probably comes from the 'mptopdf' texlive
package.

On 01/10/2011 12:37 AM, Mojca Miklavec wrote:
>
>
> And when I try to use it I get:
>
>> mptopdf a.mp
> -bash: /usr/texbin/mptopdf: Permission denied

Permission denied is usually a file permission error
(script is not executable).

Best wishes,
Taco

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: mptopdf (broken again)
  2011-01-10  7:55 ` Taco Hoekwater
@ 2011-01-10 10:11   ` Mojca Miklavec
  0 siblings, 0 replies; 13+ messages in thread
From: Mojca Miklavec @ 2011-01-10 10:11 UTC (permalink / raw)
  To: Taco Hoekwater; +Cc: mailing list for ConTeXt users

On Mon, Jan 10, 2011 at 08:55, Taco Hoekwater wrote:
>
>> And when I try to use it I get:
>>
>>> mptopdf a.mp
>>
>> -bash: /usr/texbin/mptopdf: Permission denied
>
> Permission denied is usually a file permission error
> (script is not executable).

Totally weird. The file
    /usr/local/texlive/2010/texmf-dist/scripts/context/perl/mptopdf.pl
was not executable, but it is executable in TeXLive's SVN which is a
bit strange. Moreover the file I have is dated 28th May, while the one
in TL is dated 1st June.

Maybe MacTeX took older files exactly in the three-day window (but I
did update after that ...) or maybe I simply screwed up the
installation by rewriting some ConTeXt files one day without being
aware of it (which is more probable).

TLContrib's ConTeXt doesn't seem to accidentally have that file, at
least not at the moment.

Thanks anyway,
    Mojca

PS: the request for Hans is still valid
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: mptopdf (broken again)
  2011-01-09 23:37 mptopdf (broken again) Mojca Miklavec
  2011-01-10  7:55 ` Taco Hoekwater
@ 2011-01-12  9:07 ` Hans Hagen
  2011-01-12  9:31   ` Mojca Miklavec
  2011-01-12 16:41   ` Michal Kvasnička
  1 sibling, 2 replies; 13+ messages in thread
From: Hans Hagen @ 2011-01-12  9:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mojca Miklavec

On 10-1-2011 12:37, Mojca Miklavec wrote:
> Hans&  Taco,
>
> A tiny request: is there any chance to make the mptopdf script point
> to "--script mptopdf" instead of "--script base"?

i see, the sh script is wrong

> And note for Taco: I have no idea how it got there (I think that I use
> TLContrib), but my TL installation (/usr/texbin/mptopdf) contains:

it was wrong in the context zip; for windows one can just copy the stub 
mtxrun.exe to mptopdf.exe but the same is not true for the shell script 
that needs to be:

#!/bin/sh
mtxrun --script mptopdf "$@"

I'm not sure, but a generic (copyable) script could be:

#!/bin/sh
mtxrun --script $0 "$@"

(no shell expert)


Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: mptopdf (broken again)
  2011-01-12  9:07 ` Hans Hagen
@ 2011-01-12  9:31   ` Mojca Miklavec
  2011-01-12 11:17     ` Hans Hagen
  2011-01-12 16:41   ` Michal Kvasnička
  1 sibling, 1 reply; 13+ messages in thread
From: Mojca Miklavec @ 2011-01-12  9:31 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

On Wed, Jan 12, 2011 at 10:07, Hans Hagen wrote:
>
> it was wrong in the context zip; for windows one can just copy the stub
> mtxrun.exe to mptopdf.exe but the same is not true for the shell script that
> needs to be:
>
> #!/bin/sh
> mtxrun --script mptopdf "$@"

That's right, but may I ask to fix that in ConTeXt?

> I'm not sure, but a generic (copyable) script could be:
>
> #!/bin/sh
> mtxrun --script $0 "$@"
>
> (no shell expert)

No, that would not work properly. $0 gives me full path to the
executable script, so in my case I would get
    mtxrun --script /context/tex/texmf-osx-64/bin/mptopdf <the rest>
which is probably not desirable. There are ways to circumvent this,
but leaving the scripts the way they are now still seems reasonable to
me.

Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: mptopdf (broken again)
  2011-01-12  9:31   ` Mojca Miklavec
@ 2011-01-12 11:17     ` Hans Hagen
  2011-01-12 11:38       ` Mojca Miklavec
  0 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2011-01-12 11:17 UTC (permalink / raw)
  To: Mojca Miklavec; +Cc: mailing list for ConTeXt users

On 12-1-2011 10:31, Mojca Miklavec wrote:

> No, that would not work properly. $0 gives me full path to the
> executable script, so in my case I would get
>      mtxrun --script /context/tex/texmf-osx-64/bin/mptopdf<the rest>
> which is probably not desirable. There are ways to circumvent this,
> but leaving the scripts the way they are now still seems reasonable to
> me.

ok, can you check if the current zip has it right for you?

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: mptopdf (broken again)
  2011-01-12 11:17     ` Hans Hagen
@ 2011-01-12 11:38       ` Mojca Miklavec
  0 siblings, 0 replies; 13+ messages in thread
From: Mojca Miklavec @ 2011-01-12 11:38 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

On Wed, Jan 12, 2011 at 12:17, Hans Hagen <pragma@wxs.nl> wrote:
> On 12-1-2011 10:31, Mojca Miklavec wrote:
>
>> No, that would not work properly. $0 gives me full path to the
>> executable script, so in my case I would get
>>     mtxrun --script /context/tex/texmf-osx-64/bin/mptopdf<the rest>
>> which is probably not desirable. There are ways to circumvent this,
>> but leaving the scripts the way they are now still seems reasonable to
>> me.
>
> ok, can you check if the current zip has it right for you?

It seems ok, thanks.

Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: mptopdf (broken again)
  2011-01-12  9:07 ` Hans Hagen
  2011-01-12  9:31   ` Mojca Miklavec
@ 2011-01-12 16:41   ` Michal Kvasnička
  2011-01-12 17:06     ` luigi scarso
                       ` (2 more replies)
  1 sibling, 3 replies; 13+ messages in thread
From: Michal Kvasnička @ 2011-01-12 16:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2699 bytes --]

Hallo.

I tried mtxrun --script mptopdf chart08.1 but I've got the following error.

This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
 \write18 enabled.
entering extended mode
[MP to PDF]
(./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m
ap/pdftex/plain/pdftex.map}) [1]
!pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found
 ==> Fatal error occurred, no output PDF file produced!

MPtoPDF 1.4.0 : error while processing tex file

I'm using ConTeXt minimals under Ubuntu 10.10, the last stable version of
ConTeXt (ver: 2010.07.30 11:35 MKII). However, it produces the same error
with two other betas I've got in my computer.

I guess there is something broken inside the mptopdf since I can compile the
charts themselves with texexec --mptex chart08.mp. And when I include it
into a TeX file with \externalfigure, the pdf file created is all right.

Can you tell me how to solve it? I will really need mptopdf in two or three
weeks painfully. Many thanks.

Best wishes,
Michal



2011/1/12 Hans Hagen <pragma@wxs.nl>

> On 10-1-2011 12:37, Mojca Miklavec wrote:
>
>> Hans&  Taco,
>>
>> A tiny request: is there any chance to make the mptopdf script point
>> to "--script mptopdf" instead of "--script base"?
>>
>
> i see, the sh script is wrong
>
>
>  And note for Taco: I have no idea how it got there (I think that I use
>> TLContrib), but my TL installation (/usr/texbin/mptopdf) contains:
>>
>
> it was wrong in the context zip; for windows one can just copy the stub
> mtxrun.exe to mptopdf.exe but the same is not true for the shell script that
> needs to be:
>
> #!/bin/sh
> mtxrun --script mptopdf "$@"
>
> I'm not sure, but a generic (copyable) script could be:
>
> #!/bin/sh
> mtxrun --script $0 "$@"
>
> (no shell expert)
>
>
> Hans
>
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                             | www.pragma-pod.nl
> -----------------------------------------------------------------
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 4119 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: mptopdf (broken again)
  2011-01-12 16:41   ` Michal Kvasnička
@ 2011-01-12 17:06     ` luigi scarso
  2011-01-12 17:12     ` Mojca Miklavec
  2011-01-12 17:30     ` Mojca Miklavec
  2 siblings, 0 replies; 13+ messages in thread
From: luigi scarso @ 2011-01-12 17:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2011/1/12 Michal Kvasnička <prgosek@gmail.com>:
> Hallo.
>
> I tried mtxrun --script mptopdf chart08.1 but I've got the following error.
>
> This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
>  \write18 enabled.
> entering extended mode
> [MP to PDF]
> (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m
> ap/pdftex/plain/pdftex.map}) [1]
> !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found
>  ==> Fatal error occurred, no output PDF file produced!
>
> MPtoPDF 1.4.0 : error while processing tex file
>
> I'm using ConTeXt minimals under Ubuntu 10.10, the last stable version of
> ConTeXt (ver: 2010.07.30 11:35 MKII). However, it produces the same error
> with two other betas I've got in my computer.
>
> I guess there is something broken inside the mptopdf since I can compile the
> charts themselves with texexec --mptex chart08.mp. And when I include it
> into a TeX file with \externalfigure, the pdf file created is all right.
>
> Can you tell me how to solve it? I will really need mptopdf in two or three
> weeks painfully. Many thanks.
>
> Best wishes,
> Michal
Can you show a minimal example ?
-- 
luigi
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: mptopdf (broken again)
  2011-01-12 16:41   ` Michal Kvasnička
  2011-01-12 17:06     ` luigi scarso
@ 2011-01-12 17:12     ` Mojca Miklavec
  2011-01-12 17:26       ` Mojca Miklavec
  2011-01-13 10:59       ` luigi scarso
  2011-01-12 17:30     ` Mojca Miklavec
  2 siblings, 2 replies; 13+ messages in thread
From: Mojca Miklavec @ 2011-01-12 17:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2011/1/12 Michal Kvasnička <prgosek@gmail.com>:
> Hallo.
>
> I tried mtxrun --script mptopdf chart08.1 but I've got the following error.
>
> This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
>  \write18 enabled.
> entering extended mode
> [MP to PDF]
> (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m
> ap/pdftex/plain/pdftex.map}) [1]
> !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found
>  ==> Fatal error occurred, no output PDF file produced!

I have tried to compile the following example:

beginfig(1);
draw btex $x+1=2$ etex;
endfig;
end.

It works fine with TeX Live 2010/TLContrib, but fails in minimals
(nearly-latest version of ConTeXt).

To me this seems as if mptopdf was trying to run plain pdfTeX instead
of ConTeXt [or I have no idea what]. It then only reads pdftex.map
which certainly lacks the information about lmmi font. But I wonder
why it only reads from pdftex.map ... I could fix pdftex.map, but I
would like to figure out what exactly is going on ...

Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: mptopdf (broken again)
  2011-01-12 17:12     ` Mojca Miklavec
@ 2011-01-12 17:26       ` Mojca Miklavec
  2011-01-13 10:59       ` luigi scarso
  1 sibling, 0 replies; 13+ messages in thread
From: Mojca Miklavec @ 2011-01-12 17:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Jan 12, 2011 at 18:12, Mojca Miklavec
<mojca.miklavec.lists@gmail.com> wrote:
> 2011/1/12 Michal Kvasnička <prgosek@gmail.com>:
>> Hallo.
>>
>> I tried mtxrun --script mptopdf chart08.1 but I've got the following error.
>>
>> This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
>>  \write18 enabled.
>> entering extended mode
>> [MP to PDF]
>> (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m
>> ap/pdftex/plain/pdftex.map}) [1]
>> !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found
>>  ==> Fatal error occurred, no output PDF file produced!
>
> I have tried to compile the following example:
>
> beginfig(1);
> draw btex $x+1=2$ etex;
> endfig;
> end.
>
> It works fine with TeX Live 2010/TLContrib, but fails in minimals
> (nearly-latest version of ConTeXt).
>
> To me this seems as if mptopdf was trying to run plain pdfTeX instead
> of ConTeXt [or I have no idea what]. It then only reads pdftex.map
> which certainly lacks the information about lmmi font. But I wonder
> why it only reads from pdftex.map ... I could fix pdftex.map, but I
> would like to figure out what exactly is going on ...

Just some more information ... Looking into the filename.1 makes me
very suspicious:

%!PS
%%BoundingBox: 0 0 0 0
%%HiResBoundingBox: 0 0 0 0
%%Creator: MetaPost 1.503
%%CreationDate: 2011.01.12:1822
%%Pages: 1
%*Font: ec-lmr12 11.95517 11.95517 1c:800c04010000000006d42298
%*Font: lmmi12 11.95517 11.95517 78:8
%%BeginProlog
%%EndProlog
%%Page: 1 1
 0 0 0 setrgbcolor
208.537 -9.2369 moveto
(1) ec-lmr12 11.95517 fshow
-1.133 -67.5053 moveto
(b) ec-lmr12 11.95517 fshow
5.6958 -67.5053 moveto
(egin\034g\(1\);) ec-lmr12 11.95517 fshow
60.9747 -67.5053 moveto
(dra) ec-lmr12 11.95517 fshow
77.5584 -67.5053 moveto
(w) ec-lmr12 11.95517 fshow
89.9146 -67.5053 moveto
(btex) ec-lmr12 11.95517 fshow
116.2533 -67.5053 moveto
(x) lmmi12 11.95517 fshow
showpage
%%EOF

What exactly does "begindraw" do in EPS file? Adding ec-lmr12 and
lmmi12 into pdftex.map got rid of the error, but didn't generate any
valid output (it created an empty pdf). What mptopdf run on filename.1
does is basically
    pdftex -fmt=mptopdf -progname=context \\relax mathmp.1
(maybe I'm wrong; but it behaved exactly like that), but I didn't
manage to get any sensible output out of that.

Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: mptopdf (broken again)
  2011-01-12 16:41   ` Michal Kvasnička
  2011-01-12 17:06     ` luigi scarso
  2011-01-12 17:12     ` Mojca Miklavec
@ 2011-01-12 17:30     ` Mojca Miklavec
  2 siblings, 0 replies; 13+ messages in thread
From: Mojca Miklavec @ 2011-01-12 17:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2011/1/12 Michal Kvasnička:
> Hallo.
>
> Can you tell me how to solve it? I will really need mptopdf in two or three
> weeks painfully. Many thanks.

You can always use

    \starttext\startMPpage
       your metapost code
    \stopMPpage\stoptext

but the problem needs to be resolved.

Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: mptopdf (broken again)
  2011-01-12 17:12     ` Mojca Miklavec
  2011-01-12 17:26       ` Mojca Miklavec
@ 2011-01-13 10:59       ` luigi scarso
  1 sibling, 0 replies; 13+ messages in thread
From: luigi scarso @ 2011-01-13 10:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Jan 12, 2011 at 6:12 PM, Mojca Miklavec
<mojca.miklavec.lists@gmail.com> wrote:
> 2011/1/12 Michal Kvasnička <prgosek@gmail.com>:
>> Hallo.
>>
>> I tried mtxrun --script mptopdf chart08.1 but I've got the following error.
>>
>> This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
>>  \write18 enabled.
>> entering extended mode
>> [MP to PDF]
>> (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m
>> ap/pdftex/plain/pdftex.map}) [1]
>> !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found
>>  ==> Fatal error occurred, no output PDF file produced!
>
> I have tried to compile the following example:
>
> beginfig(1);
> draw btex $x+1=2$ etex;
> endfig;
> end.
It seems related to mpost.



Saving this to mpost.map

lmmi10 LMMathItalic10-Regular "enclmmathit ReEncodeFont"
<lm-mathit.enc <lmmi10.pfb
lmmi12 LMMathItalic12-Regular "enclmmathit ReEncodeFont"
<lm-mathit.enc <lmmi12.pfb
lmmi5 LMMathItalic5-Regular "enclmmathit ReEncodeFont" <lm-mathit.enc <lmmi5.pfb
lmmi6 LMMathItalic6-Regular "enclmmathit ReEncodeFont" <lm-mathit.enc <lmmi6.pfb
lmmi7 LMMathItalic7-Regular "enclmmathit ReEncodeFont" <lm-mathit.enc <lmmi7.pfb
lmmi8 LMMathItalic8-Regular "enclmmathit ReEncodeFont" <lm-mathit.enc <lmmi8.pfb
lmmi9 LMMathItalic9-Regular "enclmmathit ReEncodeFont" <lm-mathit.enc <lmmi9.pfb
lmmib10 LMMathItalic10-Bold "enclmmathit ReEncodeFont" <lm-mathit.enc
<lmmib10.pfb
lmmib5 LMMathItalic5-Bold "enclmmathit ReEncodeFont" <lm-mathit.enc <lmmib5.pfb
lmmib7 LMMathItalic7-Bold "enclmmathit ReEncodeFont" <lm-mathit.enc <lmmib7.pfb
rm-lmr10 LMRoman10-Regular "enclmrm ReEncodeFont" <lm-rm.enc <lmr10.pfb
rm-lmr12 LMRoman12-Regular "enclmrm ReEncodeFont" <lm-rm.enc <lmr12.pfb
rm-lmr17 LMRoman17-Regular "enclmrm ReEncodeFont" <lm-rm.enc <lmr17.pfb
rm-lmr5 LMRoman5-Regular "enclmrm ReEncodeFont" <lm-rm.enc <lmr5.pfb
rm-lmr6 LMRoman6-Regular "enclmrm ReEncodeFont" <lm-rm.enc <lmr6.pfb
rm-lmr7 LMRoman7-Regular "enclmrm ReEncodeFont" <lm-rm.enc <lmr7.pfb
rm-lmr8 LMRoman8-Regular "enclmrm ReEncodeFont" <lm-rm.enc <lmr8.pfb
rm-lmr9 LMRoman9-Regular "enclmrm ReEncodeFont" <lm-rm.enc <lmr9.pfb
rm-lmri10 LMRoman10-Italic "enclmrm ReEncodeFont" <lm-rm.enc <lmri10.pfb
rm-lmri12 LMRoman12-Italic "enclmrm ReEncodeFont" <lm-rm.enc <lmri12.pfb
rm-lmri7 LMRoman7-Italic "enclmrm ReEncodeFont" <lm-rm.enc <lmri7.pfb
rm-lmri8 LMRoman8-Italic "enclmrm ReEncodeFont" <lm-rm.enc <lmri8.pfb
rm-lmri9 LMRoman9-Italic "enclmrm ReEncodeFont" <lm-rm.enc <lmri9.pfb
rm-lmro10 LMRomanSlant10-Regular "enclmrm ReEncodeFont" <lm-rm.enc <lmro10.pfb
rm-lmro12 LMRomanSlant12-Regular "enclmrm ReEncodeFont" <lm-rm.enc <lmro12.pfb
rm-lmro17 LMRomanSlant17-Regular "enclmrm ReEncodeFont" <lm-rm.enc <lmro17.pfb
rm-lmro8 LMRomanSlant8-Regular "enclmrm ReEncodeFont" <lm-rm.enc <lmro8.pfb
rm-lmro9 LMRomanSlant9-Regular "enclmrm ReEncodeFont" <lm-rm.enc <lmro9.pfb

and test.mp

prologues:=3;
beginfig(1);
draw btex $x+1=2$ etex;
endfig;
end.

I have still an error

This is MetaPost, version 1.503 (kpathsea version 6.0.0)

mpost: Not writing to .log (openout_any = p).
! I can't write on file `.log'.
Please type another transcript file name:

Under linux I can bypass this error with

#>echo test | mpost  --jobname=test test.mp

The result eps has all the fonts subsetted.



-- 
luigi
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-01-13 10:59 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-09 23:37 mptopdf (broken again) Mojca Miklavec
2011-01-10  7:55 ` Taco Hoekwater
2011-01-10 10:11   ` Mojca Miklavec
2011-01-12  9:07 ` Hans Hagen
2011-01-12  9:31   ` Mojca Miklavec
2011-01-12 11:17     ` Hans Hagen
2011-01-12 11:38       ` Mojca Miklavec
2011-01-12 16:41   ` Michal Kvasnička
2011-01-12 17:06     ` luigi scarso
2011-01-12 17:12     ` Mojca Miklavec
2011-01-12 17:26       ` Mojca Miklavec
2011-01-13 10:59       ` luigi scarso
2011-01-12 17:30     ` Mojca Miklavec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).