summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/feynmp-auto/README9
-rw-r--r--Master/texmf-dist/doc/latex/feynmp-auto/feynmp-auto.pdfbin368806 -> 374250 bytes
-rw-r--r--Master/texmf-dist/source/latex/feynmp-auto/feynmp-auto.dtx37
-rw-r--r--Master/texmf-dist/source/latex/feynmp-auto/feynmp-auto.ins2
-rw-r--r--Master/texmf-dist/tex/latex/feynmp-auto/feynmp-auto.sty10
5 files changed, 49 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/latex/feynmp-auto/README b/Master/texmf-dist/doc/latex/feynmp-auto/README
index dab23b01870..6838fed4418 100644
--- a/Master/texmf-dist/doc/latex/feynmp-auto/README
+++ b/Master/texmf-dist/doc/latex/feynmp-auto/README
@@ -14,7 +14,12 @@ to
Options to feynmp are honored also by the feynmp-auto
package.
-This is version 1.0 of the package
+This is version 1.1 of the package
+
+o Changes from version 1.0:
+
+ The `force' option has been added; it overrides the
+ MD-5 checks for avoiding useless METAPOST runs.
Copyright (C) 2013 by Enrico Gregorio
<Enrico dot Gregorio at univr dot it>
@@ -51,5 +56,5 @@ o run "makeindex -s gind.ist feynmp-auto"
o run "makeindex -s gglo.ist -o feynmp-auto.gls feynmp-auto.glo"
o run "pdflatex feynmp-auto.dtx"
-2013/03/12
+2013/05/03
Enrico Gregorio
diff --git a/Master/texmf-dist/doc/latex/feynmp-auto/feynmp-auto.pdf b/Master/texmf-dist/doc/latex/feynmp-auto/feynmp-auto.pdf
index 99f2a09e66d..14a306ff3f9 100644
--- a/Master/texmf-dist/doc/latex/feynmp-auto/feynmp-auto.pdf
+++ b/Master/texmf-dist/doc/latex/feynmp-auto/feynmp-auto.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/feynmp-auto/feynmp-auto.dtx b/Master/texmf-dist/source/latex/feynmp-auto/feynmp-auto.dtx
index 5be176fa8f0..a9d3dff1ed7 100644
--- a/Master/texmf-dist/source/latex/feynmp-auto/feynmp-auto.dtx
+++ b/Master/texmf-dist/source/latex/feynmp-auto/feynmp-auto.dtx
@@ -30,7 +30,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}[2008/04/05]
%<package>\ProvidesPackage{feynmp-auto}
%<*package>
- [2013/03/12 v1.0 Automatic processing of feynmp graphics]
+ [2013/05/03 v1.1 Automatic processing of feynmp graphics]
%</package>
%
%<*driver>
@@ -48,7 +48,7 @@
%</driver>
% \fi
%
-% \CheckSum{113}
+% \CheckSum{129}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -67,6 +67,7 @@
% Right brace \} Tilde \~}
%
%
+% \changes{v1.1}{2013/05/03}{Added `force' option}
% \changes{v1.0}{2013/03/12}{Initial version}
%
% \GetFileInfo{feynmp-auto.dtx}
@@ -84,7 +85,7 @@
% \DoNotIndex{\@outfmf,\closeout,\CurrentOption,\equaltojobname,\fmfcmd}
% \DoNotIndex{\fmf@revision,\if@fmfio,\IfFileExists,\ifmeasuring@}
% \DoNotIndex{\immediate,\jobname,\openout,\p@rcent,\PassOptionsToPackage}
-% \DoNotIndex{\RequirePackage,\write,\z@}
+% \DoNotIndex{\RequirePackage,\write,\z@,\newif}
%
% \title{The \textsf{feynmp-auto} package\thanks{This document
% corresponds to \textsf{feynmp-auto}~\fileversion, dated \filedate.}}
@@ -97,7 +98,16 @@
% This package is just a wrapper around \textsf{feynmp}; it receives
% exactly the same options as that package and works in exactly the
% same way, so refer to its documentation for the specific commands
-% and environments.
+% and environments. There is just one option specific to
+% \textsf{feynmp-auto}: with
+% \begin{flushleft}
+% \verb|\usepackage[force]{feynmp-auto}|
+% \end{flushleft}
+% the checks whether the \hologo{METAPOST} files are not changed from
+% the previous \hologo{LaTeX} run get disabled. This option might come
+% handy when one is switching from \textsf{feynmp} to
+% \textsf{feynmp-auto} or, possibly, for the very final runs where one
+% wants to be \emph{really} sure that everything is updated.
%
% What the present package adds is the automatic call of
% \hologo{METAPOST} at \verb|\end{fmffile}|, taking advantage of the
@@ -139,7 +149,10 @@
%
% In both the above cases, adding the \texttt{-shell-escape} option to
% the call of the \hologo{LaTeX} run is sufficient (but beware for
-% security risks and run with the option only files from safe sources).
+% security risks and run with the option only files from safe
+% sources). The \texttt{-shell-escape} used to be called
+% \texttt{-enable-write18} in older versions of \hologo{MiKTeX}, but
+% newer versions (the 2.9 in particular) understand both.
%
% The package will emit a warning if shell escape is not enabled,
% which may happen if the call of the engine has the option
@@ -168,9 +181,12 @@
% \subsection{Options}
% All options are passed to \textsf{feynmp}
% \begin{macrocode}
+\newif\iffnmpa@force
+\DeclareOption{force}{\fnmpa@forcetrue}
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{feynmp}}
\ProcessOptions\relax
% \end{macrocode}
+%
% \subsection{Required packages and preliminary code}
% \begin{macrocode}
\RequirePackage{feynmp}
@@ -232,6 +248,17 @@
}
\fi
% \end{macrocode}
+% If the \texttt{force} option has been given, then we override in the
+% same way the macros. A bit of code duplication, but this avoids
+% complicated conditional nestings.
+% \begin{macrocode}
+\iffnmpa@force
+ \let\fnmpa@gethash\relax
+ \def\fnmpa@processmp{%
+ \IfFileExists{\thefmffile.mp}{\immediate\write18{mpost \thefmffile}}{}%
+ }
+\fi
+% \end{macrocode}
%
% \subsection*{Patching the macros of \textsf{feynmp}}
% We finally need to inject the code in the macros responsible for the
diff --git a/Master/texmf-dist/source/latex/feynmp-auto/feynmp-auto.ins b/Master/texmf-dist/source/latex/feynmp-auto/feynmp-auto.ins
index 3558d00116b..e0f86f1527b 100644
--- a/Master/texmf-dist/source/latex/feynmp-auto/feynmp-auto.ins
+++ b/Master/texmf-dist/source/latex/feynmp-auto/feynmp-auto.ins
@@ -62,7 +62,7 @@ and the derived file feynmp-auto.sty.
\Msg{* feynmp-auto.sty *}
\Msg{* *}
\Msg{* To produce the documentation run the file *}
-\Msg{* newunicodechar.dtx through LaTeX. *}
+\Msg{* feynmp-auto.dtx through LaTeX. *}
\Msg{* *}
\Msg{* Happy TeXing! *}
\Msg{* *}
diff --git a/Master/texmf-dist/tex/latex/feynmp-auto/feynmp-auto.sty b/Master/texmf-dist/tex/latex/feynmp-auto/feynmp-auto.sty
index 0b051541dd1..c4a5508e57d 100644
--- a/Master/texmf-dist/tex/latex/feynmp-auto/feynmp-auto.sty
+++ b/Master/texmf-dist/tex/latex/feynmp-auto/feynmp-auto.sty
@@ -31,10 +31,12 @@
%%
\NeedsTeXFormat{LaTeX2e}[2008/04/05]
\ProvidesPackage{feynmp-auto}
- [2013/03/12 v1.0 Automatic processing of feynmp graphics]
+ [2013/05/03 v1.1 Automatic processing of feynmp graphics]
\@ifundefined{eTeXversion}
{\PackageError{feynmp-auto}{LaTeX engine too old, aborting}
{Please upgrade your TeX system}\@@end}{}
+\newif\iffnmpa@force
+\DeclareOption{force}{\fnmpa@forcetrue}
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{feynmp}}
\ProcessOptions\relax
\RequirePackage{feynmp}
@@ -76,6 +78,12 @@
\IfFileExists{\thefmffile.mp}{\immediate\write18{mpost \thefmffile}}{}%
}
\fi
+\iffnmpa@force
+ \let\fnmpa@gethash\relax
+ \def\fnmpa@processmp{%
+ \IfFileExists{\thefmffile.mp}{\immediate\write18{mpost \thefmffile}}{}%
+ }
+\fi
\def\fmffile#1{%
\def\thefmffile{#1}%
\equaltojobname{\thefmffile}{%