summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/hvextern/latex/hvextern-mp.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/hvextern/latex/hvextern-mp.cfg')
-rw-r--r--macros/latex/contrib/hvextern/latex/hvextern-mp.cfg32
1 files changed, 32 insertions, 0 deletions
diff --git a/macros/latex/contrib/hvextern/latex/hvextern-mp.cfg b/macros/latex/contrib/hvextern/latex/hvextern-mp.cfg
new file mode 100644
index 0000000000..9e42167f9c
--- /dev/null
+++ b/macros/latex/contrib/hvextern/latex/hvextern-mp.cfg
@@ -0,0 +1,32 @@
+%% This is file `hvextern-mp.cfg',
+%%
+%% Copyright (C) 2016-22 Herbert Voß hvoss@tug.org
+%%
+%% It may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3c
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3c or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+
+\def\hvFileversion{0.01}
+\ProvidesFile{hvextern-mp}[2022/04/21 v\hvFileversion: running MetaPost (HV)]
+
+\extern@ExampleType{mp}
+ {beginfig(1)}
+ {endfig;}
+ {\perCent StartVisiblePreamble}
+ {\perCent StopVisiblePreamble}
+
+\def\hv@extern@runMP#1#2#3#4{% path compiler file extension
+ \ifhv@extern@verbose \typeout{>>>> running #1#2 #3#4}\fi
+ \ShellEscape{#1#2\space -tex=tex\space #3#4}%
+ \ifhv@extern@verbose \typeout{>>>> running #1tex #3}\fi
+ \ShellEscape{#1tex\space "\string\input\space epsf\string\relax\string\nopagenumbers\string\epsfbox{#3.1}\string\bye"}%
+ \ifhv@extern@verbose \typeout{>>>> running #1dvips #3}\fi
+ \ShellEscape{#1dvips\space -j\space -E\space -o\space #3.eps\space epsf.dvi}%
+ \ifhv@extern@verbose \typeout{>>>> running #1epstopdf #3}\fi
+ \ShellEscape{#1epstopdf\space #3.eps}%
+}
+\endinput