* mptopdf.pl --raw warning
@ 2004-08-29 15:16 Hartmut Henkel
0 siblings, 0 replies; only message in thread
From: Hartmut Henkel @ 2004-08-29 15:16 UTC (permalink / raw)
There is a warning due to a wrong option given by mptopdf.pl:
hahe@hahepc1:~$ mptopdf --raw x.mp
mpost: unrecognized option `--format=latex'
This goes away by the tiny patch below.
Regards, Hartmut
--- mptopdf.pl.orig.texlive Sun Aug 29 16:59:39 2004
+++ mptopdf.pl Sun Aug 29 17:06:17 2004
@@ -39,7 +39,8 @@
my $pattern = $ARGV[0] ;
my $done = 0 ;
my $report = '' ;
-my $latexswitch = " --tex=latex --format=latex " ;
+my $texlatexswitch = " --tex=latex --format=latex " ;
+my $mplatexswitch = " --tex=latex " ;
## $dosish = ($Config{'osname'} =~ /dos|mswin/i) ;
my $dosish = ($Config{'osname'} =~ /^(ms)?dos|^os\/2|^(ms|cyg)win/i) ;
@@ -67,12 +68,14 @@
{ if (/(documentstyle|documentclass|begin\{document\})/io)
{ $Latex = 1 ; last } }
close (INP) }
- if ($Latex)
- { $rest .= " $latexswitch" }
if ($RawMP)
- { $mpbin = 'mpost' }
+ { if ($Latex)
+ { $rest .= " $mplatexswitch" }
+ $mpbin = 'mpost' }
else
- { $mpbin = 'texexec --mptex $PassOn' }
+ { if ($Latex)
+ { $rest .= " $texlatexswitch" }
+ $mpbin = 'texexec --mptex $PassOn' }
my $error = system ("$mpbin $rest $pattern") ;
if ($error)
{ print "\n$program : error while processing mp file\n" ; exit }
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-08-29 15:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-29 15:16 mptopdf.pl --raw warning Hartmut Henkel
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).