From: Hartmut Henkel <hartmut_henkel@gmx.de>
Subject: mptopdf.pl --raw warning
Date: Sun, 29 Aug 2004 17:16:02 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.61.0408291710570.6111@hahepc1.hahe> (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 }
reply other threads:[~2004-08-29 15:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.61.0408291710570.6111@hahepc1.hahe \
--to=hartmut_henkel@gmx.de \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).