summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-10-08 16:46:40 +0000
committerKarl Berry <karl@freefriends.org>2007-10-08 16:46:40 +0000
commit19a42d9cc5c26f46914f065ba66498541203c092 (patch)
treee127108922554172ba25f675914a2bad6b11f996
parenteb15e60943eb3e31e4fab8cdaf8b0178b640f496 (diff)
new latex package epspdfconversion
git-svn-id: svn://tug.org/texlive/trunk@5140 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xBuild/cdbuild/ctan2tds.pl102
-rwxr-xr-xBuild/tools/tpm-ctan-check2
-rw-r--r--Master/texmf-dist/doc/latex/epspdfconversion/README8
-rw-r--r--Master/texmf-dist/doc/latex/epspdfconversion/documentation/epspdfconversion_docu.pdfbin0 -> 407999 bytes
-rw-r--r--Master/texmf-dist/doc/latex/epspdfconversion/documentation/epspdfconversion_docu.tex342
-rw-r--r--Master/texmf-dist/doc/latex/epspdfconversion/documentation/testimage-static.eps496
-rw-r--r--Master/texmf-dist/doc/latex/epspdfconversion/documentation/testimage.eps496
-rw-r--r--Master/texmf-dist/tex/latex/epspdfconversion/epspdfconversion.sty207
-rw-r--r--Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/epspdfconversion.tlpsrc2
10 files changed, 1606 insertions, 50 deletions
diff --git a/Build/cdbuild/ctan2tds.pl b/Build/cdbuild/ctan2tds.pl
index 5dfd61dec01..3f10db28d9a 100755
--- a/Build/cdbuild/ctan2tds.pl
+++ b/Build/cdbuild/ctan2tds.pl
@@ -60,16 +60,16 @@ chdir $startdir || die "chdir($startdir) failed: $!";
'Catalogue', "&MAKEcatalog",
'HA-prosper', '&MAKEhaprosper',
'IEEEtran', "&MAKEIEEEtran",
- 'LingTrees', "warn \"skipping LingTrees, requires python\n\"",
+ 'LingTrees', "die 'skipping, requires python'",
'SIstyle', '&MAKEflatten',
'aastex', "&MAKEflatten",
- 'aeb_pro', "warn \"skipping aeb_pro, requires new acrobat + complicated\n\"",
+ 'aeb_pro', "die 'skipping, requires new acrobat + complicated'",
'arabxetex', '&MAKEflatten',
'active-conf', "&MAKEflatten",
'ae', "&MAKEae",
'algorithmicx',"&MAKEnosymlinks",
'allrunes', "&MAKEflatten",
- 'alphabib', "warn \"skipping alphabib, shell script, and no doc source?\n\"",
+ 'alphabib', "die 'skipping, shell script, and no doc source?'",
'ams', "&MAKEamslatex",
'amscls', "&MAKEamslatex",
'amsmath', "&MAKEamslatex",
@@ -84,7 +84,7 @@ chdir $startdir || die "chdir($startdir) failed: $!";
'archaic', "&MAKEwilson",
'arev', "&MAKEcopy",
'ascii', "&MAKEflatten",
- 'astron', "warn \"skipping astron, nonfree license\n\"",
+ 'astron', "die 'skipping, nonfree license'",
'augie', "&MAKEaugie",
'aurical', "&MAKEaurical",
'babel', "&MAKEcopy", # we use latex-tds/babel.zip
@@ -95,7 +95,7 @@ chdir $startdir || die "chdir($startdir) failed: $!";
# 'bbm', "&MAKEbbm",
'beamer', "&MAKEbeamer",
'beamer-contrib',"&MAKEflatten",
- 'beebe', "warn \"skipping beebe, MAKEbeebe needs work\n\"",
+ 'beebe', "die 'skipping, MAKEbeebe needs work'",
'bengali', '&MAKEflatten',
'bera', "&MAKEunzipandflatten",
'bookhands', "&MAKEwilson",
@@ -104,10 +104,10 @@ chdir $startdir || die "chdir($startdir) failed: $!";
'cb', "&MAKEflatten",
'cbcoptic', "&MAKEcbcoptic",
'changebar', "&MAKEchangebar",
- 'chemsym', "warn \"skipping chemsym, nonfree\n\"",
- 'chessboard', "warn \"skipping chessboard, no doc source\n\"",
- 'chessfss', "warn \"skipping chessfss, no doc source\n\"",
- 'circuit_macros', "warn \"skipping circuit_macros, needs m4\n\"",
+ 'chemsym', "die 'skipping, nonfree'",
+ 'chessboard', "die 'skipping, no doc source'",
+ 'chessfss', "die 'skipping, no doc source'",
+ 'circuit_macros', "die 'skipping, needs m4'",
'cjhebrew', "&MAKEflatten",
'clock', "&MAKEflatten",
'cm-lgc', '&MAKEcmlgc',
@@ -116,38 +116,37 @@ chdir $startdir || die "chdir($startdir) failed: $!";
'cmll', "&MAKEflatten",
'concmath', "&MAKEconcmath",
'context', "&MAKEcontext",
- 'coptic', "warn \"skipping coptic, it has been replaced by cbcoptic\n\"",
- 'corridx', "warn \"skipping corridx, Pascal source\n\"",
- 'csplain', "warn \"skipping csplain, too hard to automate\n\"",
+ 'coptic', "die 'skipping, it has been replaced by cbcoptic'",
+ 'corridx', "die 'skipping, Pascal source'",
+ 'csplain', "die 'skipping, too hard to automate'",
'csvtools', "&MAKEflatten",
'ctable', "&MAKEflatten",
'ctib', "&MAKEflatten",
- 'cweb', "warn \"skipping cweb, programs\n\"",
+ 'cweb', "die 'skipping, programs'",
'cyrillic', "&MAKEcopy", # we use latex-tds/cyrillic.zip
'datetime', "&MAKEflatten",
'devanagr', "&MAKEdevanagr",
'diagnose', "&MAKEflatten",
'dictsym', "&MAKEunzipandflatten",
'disser', "&MAKEdisser",
- 'dmfonts', "warn \"skipping dmfonts, needs work\n\"",
+ 'dmfonts', "die 'skipping, needs work'",
'doipubmed', "&MAKEflatten",
- 'dps', "warn \"skipping dps, requires acrotex\n\"",
+ 'dps', "die 'skipping, requires acrotex'",
'dtk', "&MAKEflatten",
'dtxtut', "&setup", # straight copy
'dvdcoll', "&MAKEflatten",
'easy', "&MAKEeasy",
- 'ebib', "warn \"skipping ebib, as it is Emacs\n\"",
+ 'ebib', "die 'skipping, as it is Emacs'",
'ebong', "&MAKEebong",
'ecc', "&MAKEflatten",
'eco', "&MAKEeco",
- 'edmac', "warn \"skipping edmac, needs work (unzip xx)\n\"",
+ 'edmac', "die 'skipping, needs work (unzip xx)'",
'ednotes', "&MAKEnosymlinks",
'elhyphen', "&MAKEelhyphen",
'epigrafica', "&MAKEflatten",
'epiolmec', "&MAKEflatten",
- 'epix', "warn \"skipping epix, needs C++\n\"",
+ 'epix', "die 'skipping, needs C++'",
'eplain', "&MAKEcopy",
- 'epspdfconversion', "warn \"skipping for now, no doc source\n\"",
'eqnarray', "&MAKEeqnarray",
'eskdx', "&MAKEeskdx",
'esvect', "&MAKEflatten",
@@ -167,39 +166,39 @@ chdir $startdir || die "chdir($startdir) failed: $!";
'fouriernc', "&MAKEflatten",
'fp', "&MAKEfp",
'fpl', "&MAKEflatten",
- 'fragments', "warn \"skipping fragments, not a package\n\"",
+ 'fragments', "die 'skipping, not a package'",
'frcursive', "&MAKEflatten",
'germbib', "&MAKEgermbib",
# 'gfsartemisia',"&MAKEflatten",
'graphics', "&MAKEcopy", # we use latex-tds/graphics.zip
- 'graphicxsp', "warn \"skipping graphicxsp, requires adobe distiller\n\"",
+ 'graphicxsp', "die 'skipping, requires adobe distiller'",
'hfbright', "&MAKEflatten",
'hfoldsty', "&MAKEflatten",
'hyperref', "&MAKEhyperref",
- 'hyphen-german',"warn \"please install hyphen-german by hand, sorry\n\"",
+ 'hyphen-german',"die 'please install hyphen-german by hand, sorry'",
'ibycus-babel',"&MAKEibycusbabel",
'ibygrk', "&MAKEflatten",
'invoice', "&MAKEflatten",
'iwona', "&MAKEcopy",
- 'japanese', "warn \"skipping japanese, requires ptex\n\"",
- 'jasthesis', "warn \"skipping jasthesis, license is unknown\n\"",
- 'jj_game', "warn \"skipping jj_game, requires acrotex\n\"",
+ 'japanese', "die 'skipping, requires ptex'",
+ 'jasthesis', "die 'skipping, license is unknown'",
+ 'jj_game', "die 'skipping, requires acrotex'",
'kerkis', "&MAKEflatten",
'koma-script', "&MAKEkoma",
'kpfonts', "&MAKEflatten",
'kurier', "&MAKEcopy",
- 'kuvio', "warn \"skipping kuvio, nonfree license\n\"",
+ 'kuvio', "die 'skipping, nonfree license'",
'latex', "&MAKEcopy", # we use latex-tds/base.zip
'latex-tds', "&MAKEcopy", # we use latex-tds/source.zip
'latexmp', "&MAKEflatten",
'leawood', "&MAKEflatten",
'lettre', "&MAKEflatten",
'lettrine', "&MAKEflatten",
- 'lexitex', "warn \"skipping lexitex, camel has replaced\n\"",
+ 'lexitex', "die 'skipping, camel has replaced'",
'lfb', "&MAKElfb",
'lh', "&MAKEcopy",
'libertine', "&MAKElibertine",
- 'lifia-th', "warn \"skipping lifia-th\n\"",
+ 'lifia-th', "die 'skipping, '",
'linearA', "&MAKEflatten",
"lineno", "&MAKEnosymlinks",
'listings', "&MAKElistings",
@@ -230,7 +229,7 @@ chdir $startdir || die "chdir($startdir) failed: $!";
'mh', "&MAKEflatten",
'minitoc', "&MAKEunzip",
'misc', "&MAKEmisc",
- 'mkbangtex', "warn \"skipping mkbangtex, no copyright (and python)\n\"",
+ 'mkbangtex', "die 'skipping, no copyright (and python)'",
'mnhyphn', "&MAKEmnhyphn",
'mnsymbol', "&MAKEflatten",
'montex', "&MAKEflatten",
@@ -244,15 +243,15 @@ chdir $startdir || die "chdir($startdir) failed: $!";
'ocherokee', "&MAKEflatten",
'ofs', "&MAKEflatten",
'omegajapanese',"&MAKEflatten",
- 'osa', "warn \"skipping osa, relies on endfloat.cfg and non-unique filenames\n\"",
+ 'osa', "die 'skipping, relies on endfloat.cfg and non-unique filenames'",
'ot2cyr', "&MAKEot2cyr",
'otibet', "&MAKEflatten",
'pandora', "&MAKEflatten",
- 'pax', "warn \"skipping pax, needs java\n\"",
+ 'pax', "die 'skipping, needs java'",
'pb-diagram', "&MAKEpbdiagram",
'pclnfss', "&MAKEpclnfss",
- 'pdcmac', "warn \"skipping pdcmac, needs work\n\"",
- 'pdf-forms-tutorial', "die \"use pdf-forms-tutorial-de or -en\n\"",
+ 'pdcmac', "die 'skipping, needs work'",
+ 'pdf-forms-tutorial', "die 'use pdf-forms-tutorial-de or -en'",
'pdf-forms-tutorial-de', "&MAKEpdf_forms_tutorial",
'pdf-forms-tutorial-en', "&MAKEpdf_forms_tutorial",
'perltex', "&MAKEperltex",
@@ -261,15 +260,15 @@ chdir $startdir || die "chdir($startdir) failed: $!";
'pict2e', "&MAKEpict2e",
'pictex', "&MAKEpictex",
'pl-qx', "&MAKEplqx",
- 'poster', "warn \"skipping poster, nonfree license\n\"",
+ 'poster', "die 'skipping, nonfree license'",
'powerdot', '&MAKEflatten',
'probsoln', '&MAKEflatten',
'prosper', '&MAKEflatten',
- 'ps4pdf', "warn \"skipping ps4pdf, obsolete\n\"",
+ 'ps4pdf', "die 'skipping, obsolete'",
'psfragx', "&MAKEflatten",
'pslatex', "&MAKEpslatex",
'psnfss', "&MAKEpsnfss", # we use latex-tds/psnfss.zip
- 'psnfss-addons', "warn \"skipping psnfss-addons\n\"",
+ 'psnfss-addons', "die 'skipping, ?'",
'psnfssx', "&MAKEflatten",
'pst-2dplot', "&MAKEpst",
'pst-3d', "&MAKEpst",
@@ -319,26 +318,26 @@ chdir $startdir || die "chdir($startdir) failed: $!";
'showexpl', "&MAKEflatten",
'siam', "&MAKEsiam",
'skak', "&MAKEflatten",
- 'songs', "warn \"skipping symbolindex, requires binary\n\"",
+ 'songs', "die 'skipping, requires binary'",
'stellenbosch',"&MAKEcopy",
- 'symbolindex', "warn \"skipping symbolindex, requires binary\n\"",
+ 'symbolindex', "die 'skipping, requires binary'",
't2', "&MAKEt2",
'tabvar', "&MAKEflatten",
'tamethebeast',"&MAKEtamethebeast",
'tengwarscript',"&MAKEflatten",
'tex-gyre', "&MAKEcopy",
- 'tex-refs', "warn \"skipping tex-refs, needs work\n\"",
+ 'tex-refs', "die 'skipping, needs work'",
'texdraw', "&MAKEtexdraw",
'texpower', "&MAKEnosymlinks",
'texsis', "&MAKEtexsis",
- 'thaifonts-scalable', "warn \"Thai, fontforge format only, skip\n\"",
- 'thailatex', "warn \"Thai, requires preprocessor (?), skip\n\"",
+ 'thaifonts-scalable', "die 'Thai, fontforge format only, skip'",
+ 'thailatex', "die 'Thai, requires preprocessor (?), skip'",
'thumbpdf', "&MAKEthumbpdf",
- 'thuthesis', "warn \"Chinese, may as well skip\n\"",
+ 'thuthesis', "die 'Chinese, may as well skip'",
'ticket', "&MAKEflatten",
'tipa', "&MAKEtipa",
- 'titlepage-uni-dortmund', "warn \"needs graphics (too short names) in .\n\"",
- 'tpcmfont', "warn \"skipping tpcmfont\n\"",
+ 'titlepage-uni-dortmund', "die 'needs graphics (too short names) in .'",
+ 'tpcmfont', "die 'skipping, ?'",
'tools', "&MAKEcopy", # we use latex-tds/tools.zip
'turnstile', "&MAKEflatten",
'txfonts', "&MAKEflatten",
@@ -346,12 +345,12 @@ chdir $startdir || die "chdir($startdir) failed: $!";
'ukrhyph', "&MAKEukrhyph",
'unitsdef', "&MAKEflatten",
'velthuis', "&MAKEcopy",
- 'verbatimcopy', "warn \"skipping verbatimcopy, no doc source\n\"",
+ 'verbatimcopy', "die 'skipping, no doc source'",
'vhistory', "&MAKEflatten",
'vntex', "&MAKEcopy",
'voss-de', "&MAKEvossde",
'vpe', "&MAKEvpe",
- 'vrsion', "warn \"skipping vrsion, nonfree license\n\"",
+ 'vrsion', "die 'skipping, nonfree license'",
'wasy2', "&MAKEflatten",
'wordcount', "&MAKEwordcount",
'xbase', "&MAKEnosymlinks",
@@ -1221,9 +1220,14 @@ for (@ARGV) {
print "pkg=$package (fmt=$whichformat docfmt=$whichdocformat) -> $DEST\n";
if ($special{$package}) {
- print "doing $special{$package}...\n";
- eval $special{$package};
- die "failure in $special{$package} (for $package): $@" if $@;
+ if ($special{$package} =~ s/^die //) {
+ # avoid repeating the die message.
+ die "$package failed: $special{$package}\n";
+ } else {
+ print "special: $special{$package}...\n";
+ eval $special{$package};
+ die "$package failed in $special{$package}: $@" if $@;
+ }
} else {
&donormal;
}
diff --git a/Build/tools/tpm-ctan-check b/Build/tools/tpm-ctan-check
index aa715f1ce7c..79ae3a9ac43 100755
--- a/Build/tools/tpm-ctan-check
+++ b/Build/tools/tpm-ctan-check
@@ -47,7 +47,7 @@ my @WorkingTPM = qw(
egplot eijkhout elatex
ellipsis elpres elsevier elsevier-bib emulateapj endfloat endheads
engrec enumitem envbig environ epigrafica epiolmec eplain epsdice
- epsf epslatex-fr eqlist eqparbox es-tex-faq
+ epsf epslatex-fr epspdfconversion eqlist eqparbox es-tex-faq
ESIEEcv esint esint-type1 eskd eskdx eso-pic etaremune
ethiop ethiop-t1 eulervm euro europecv eurosans everypage exam
examdesign examplep exercise expl3 expressg extarrows exteps
diff --git a/Master/texmf-dist/doc/latex/epspdfconversion/README b/Master/texmf-dist/doc/latex/epspdfconversion/README
new file mode 100644
index 00000000000..8fafc53ea33
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/epspdfconversion/README
@@ -0,0 +1,8 @@
+The package epspdfconversion.sty
+
+This package facilitates the use of the epspdf tools (on CTAN in pub/tex/support) from
+within (pdf)LaTeX. EPS graphic files are converted "on the fly". It is similar to and
+based on the epstopdf package and allows to pass several options such as grayscale,
+prepress, pdfversion etc. to the epspdf conversion-command.
+
+This material is subject to the LaTeX Project Public License.
diff --git a/Master/texmf-dist/doc/latex/epspdfconversion/documentation/epspdfconversion_docu.pdf b/Master/texmf-dist/doc/latex/epspdfconversion/documentation/epspdfconversion_docu.pdf
new file mode 100644
index 00000000000..177e2848c66
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/epspdfconversion/documentation/epspdfconversion_docu.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/epspdfconversion/documentation/epspdfconversion_docu.tex b/Master/texmf-dist/doc/latex/epspdfconversion/documentation/epspdfconversion_docu.tex
new file mode 100644
index 00000000000..190af28cb02
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/epspdfconversion/documentation/epspdfconversion_docu.tex
@@ -0,0 +1,342 @@
+\pdfminorversion=3
+
+\documentclass[11pt]{scrartcl}
+\usepackage[T1]{fontenc}
+\usepackage[latin1]{inputenc}
+\usepackage{microtype}
+\usepackage[british]{babel}
+\usepackage{booktabs}
+\usepackage{tabularx}
+
+
+%DRAWING, IMAGES
+\usepackage[final]{graphicx}
+\usepackage{epic}%
+\usepackage{color}%
+
+\usepackage[pdfversion=1.3,GRAY]{epspdfconversion}
+
+
+%DIMENSIONS
+\usepackage[a4paper,left=1.3in,right=1.3in,top=1.3in,bottom=1.3in]{geometry}%
+\setlength{\parindent}{0mm}
+\addtolength{\parskip}{1mm}
+
+
+\definecolor{dunkelblau}{rgb}{0.063,0.030,0.670}
+
+%LAYOUT
+\usepackage[bookmarks,bookmarksopen]{hyperref}%pdftex
+\hypersetup{
+colorlinks=true,
+linkcolor=dunkelblau,
+anchorcolor=black,
+citecolor=black,
+filecolor=black,
+menucolor=black,
+pagecolor=black,
+urlcolor=dunkelblau,
+hypertexnames=true,
+pdftitle = {The package epspdfconversion v0.3},
+pdfsubject = {documentation of the package epspdfconversion.sty },
+pdfkeywords = {epspdf, conversion, LaTeX, eps, eps->pdf},
+pdfauthor = {daniel.becker@uni-rostock.de}
+}
+
+
+
+
+%marginnotes:
+\newcommand{\query}[1]{\marginpar{%
+ \vskip-\baselineskip %raise the marginpar a bit
+ \raggedright\tiny \hrule\smallskip#1\par\smallskip\hrule}}
+
+\newcommand{\removequeries}{\renewcommand{\query}[1]{}}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%% END OF PREAMBLE, START OF TEXT %%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\begin{document}
+
+
+
+\newcommand{\pack}{{{\texttt{epspdfconversion}}}}
+
+\hypersetup{pageanchor=false}
+
+\title{The package {\pack}}
+\author{Daniel Becker\\ \texttt{\href{mailto:daniel.becker@uni-rostock.de}{daniel.becker@uni-rostock.de}}
+\thanks{Many thanks to Siep Kroonenberg and Heiko Oberdiek for their help.}
+}
+\date{02. October 2007, version 0.3}
+
+\maketitle
+
+\tableofcontents
+
+\section{What is it for?}
+
+This package can be used to use the epspdf tools (see \url{http://tex.aanhet.net/epspdf/}) from within (pdf)LaTeX ``on the fly''. It is similar to and based on the epstopdf package.\footnote{You might also want to read the documentation of epstopdf. See \url{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/epstopdf.pdf}.} It is possible to pass several options to the epspdf conversion-command.
+
+This package can be used for the conversion of eps-files to pdf. The epspdf-tools itself can do the conversion both ways.
+
+I am by no means an {\TeX}pert. Use this package at your own risk. What I did is to take the epsdpdf-package (\url{http://www.ctan.org/tex-archive/help/Catalogue/entries/epstopdf.html}) and adjusted it to my needs and then gave this the new name {\pack}. Heiko Oberdiek then improved the code a lot.
+
+This package is helpful in general when you include eps-figures in a (pdf)LaTeX-document. The author uses it for the inclusion of eps-figures that are produced en-masse by a software packages like Stata, Mathematica or Maple and that are often updated. The package makes sure that I can include the eps-figures easily and the updating of the corresponding pdf's is done ``on-the-fly''. Using the epspdf-tools helps a lot to prepare a final pdf that is, for example, accepted by your print shop (really grayscale, prepress-ready, ...).
+
+\section{Installation}
+
+\begin{itemize}
+ \item Go to \url{http://tex.aanhet.net/epspdf/} and follow the installation instructions there.
+
+ Alternative URL's for epspdf are \\ \url{http://www.ctan.org/tex-archive/support/epspdf/} or\\ \url{http://www.ctan.org/tex-archive/help/Catalogue/entries/epspdf.html}
+
+ See also Bruno Voisin's notes at \url{http://tug.org/pipermail/macostex-archives/2007-April/030318.html}.
+
+ \item Make sure that you can use epspdf from the command line. I am using Mac OS X. After the installation of epspdf, the following command is working from the command line (assuming the file /Users/daniel/Desktop/testimage.eps exists):
+\begin{verbatim}
+[ibook-daniel:~] daniel% epspdf /Users/daniel/Desktop/testimage.eps
+\end{verbatim}
+It results in a file \verb"/Users/daniel/Desktop/testimage.pdf".
+
+I did no testing for other Systems (Windows,...) -- simply follow the instructions at the epspdf-website. It would be nice if you let me know whether this .sty-file works for you.\footnote{The package seems to work as expected with a Linux/TeXLive2007 and with a Windows/MikTeX2.5 installation.}
+ \item Put the sty-file {\pack}.sty for this package where TeX can find it. For example in the same directory as your main .tex file. Or -- again on Mac OS X -- in \verb"~/Library/texmf/tex/latex/" where the ``\verb"~"'' stands for your home directory.
+ \item The package requires that shell escapes are enabled. You should get a warning in your .log-file if this is not the case.\footnote{However, a test with MikTeX and the command-line option -shell-escape resulted in the warning ``Package epstopdf Warning: Shell escape feature is not enabled.'' Nevertheless, the shell escape worked fine.}
+ \item the package loads the epstopf-package as it is based on that.
+\end{itemize}
+
+\section{Usage}
+
+Put in the preamble of your .tex-file the line
+\begin{verbatim}
+\usepackage[OPTIONSHERE]{epspdfconversion}
+\end{verbatim}
+where ``OPTIONSHERE'' can be either empty or be filled with the options described below.
+
+If you typeset your document, and (pdf)LaTeX detects that you want to use an eps-figure, the {\pack}-package makes sure that it is converted to pdf to include it in your final pdf.
+
+There are two possibilities.\footnote{This functionality is provided by the epstopdf package.} If you include your eps-figure \emph{with} the .eps extension, every typesetting procedure will trigger a conversion to pdf again. This makes sense if your eps-figure changes very often. Or, alternatively, you can include the figure without the extension. Then there will be only a conversion if there is no corresponding .pdf-file.
+
+In a section below, I include two figures, \verb"testimage.eps" and \verb"testimage-static.eps" with the following lines. \verb"testimage-static.eps" is converted to pdf only once, the other eps-file with every run of pdf(LaTeX).
+
+\label{bilderbefehle}
+\begin{verbatim}
+\begin{center}
+\includegraphics[width=0.5\textwidth]{testimage.eps}\\
+\includegraphics[width=0.5\textwidth]{testimage-static}
+\end{center}
+\end{verbatim}
+
+\section{Options}
+
+{\pack} accepts several options. All options change the conversion command that is used for the conversion of .eps to pdf. Table \ref{optiontable} gives an overview. The explanations are more or less taken from the epspdf-documentation.\query{\textcolor{red}{New in 0.3:} The list of options is a bit longer than before.}
+
+\begin{table}[htbp]
+\begin{center}
+\small
+\begin{tabularx} {0.9\textwidth} {
+>{\hsize=.8\hsize}X|
+>{\hsize=1.2\hsize}X}
+\toprule
+option & explanation \\ \midrule
+& \\
+%
+\verb"help" & You will be shown the help of the epspdf command in your logfile. This option does not overrule all the others as previously.\\ & \\
+%
+\verb"simple" & the epspdf-conversion will be done with no option at all. Don't use it together with any of the options below.\\ & \\
+%
+\verb"gray | grey | GRAY | GREY" & gray | grey : convert eps-figures to grayscale (success not guaranteed); GRAY | GREY: Try harder to convert to grayscale (success still not guaranteed) \\ & \\
+%
+\verb"default | printer |" \verb"prepress | screen | ebook |" \verb"target=default |" \verb"target=printer | " \verb"target=prepess |" \verb"target=screen | " \verb"target=ebook" & target use of pdf \\ & \\
+%
+\verb"pdfversion=default |" \verb"pdfversion=1.2 |" \verb"pdfversion=1.3 |" \verb"pdfversion=1.4" & Pdf version to be generated. Setting another version than those on the left will result in an error. `default' means
+whatever Ghostscript's default is. \\ & \\
+%
+\verb"bbox |" \verb"bbox=true" & Compute tight boundingbox\\ & \\
+%
+\verb"bbox=false" & don't compute tight boundingbox\\ & \\
+%
+\verb"nopdftops" & Ignore pdftops even if available (default: use if available)\\ & \\
+%
+\verb"pdftops" & use pdftops if available\\ & \\
+%
+\verb"custom={-dPDFX}" & This option allows you to pass a string to the ghostscript-commandline. On the left it would be Here you can set custom options for conversion to pdf,
+view \href{http://pages.cs.wisc.edu/~ghost/doc/cvs/Use.htm}{Use.htm} and \href{http://pages.cs.wisc.edu/~ghost/doc/cvs/Ps2pdf.htm}{ps2pdf.htm} from
+the Ghostscript documentation set. The example on the left adds \verb"-dPDFX" to the ghostscript-call by epstopdf \\ & \\
+%
+\verb"psoptions={-level2}" & This sets the options for pdftops; the default is -level2, don?t include -eps or page number options; these will be generated by epstopdf itself \\ & \\
+%
+\verb"pagenumber={1}" & Page (in the eps-file) to be converted\\ & \\
+%
+\bottomrule
+\end{tabularx}
+\end{center}
+\caption{Options for the package {\pack}.}
+\label{optiontable}
+\end{table}
+
+Important: When there are several options in the first column, divided by |, this means that you should \emph{choose only one} of them. For example, it does not make sense have this in the preamble:
+\begin{verbatim}
+\usepackage[pdfversion=1.3,pdfversion=1.4]{epspdfconversion}
+\end{verbatim}
+
+\verb"\pdfminorversion": When you choose the options pdfversion=1.2 or pdfversion=1.3, you need to set \verb"\pdfminorversion" accordingly. The package checks if you have done that properly and shows a warning if not.\query{\textcolor{red}{New in 0.3:} This check is a new feature. Again thanks to Heiko Oberdiek.}
+
+%You will find an entry like that in your log-file:
+%%
+%\begin{verbatim}
+%package epspdfconversion info =>
+%the conversion command defined in the preamble is: epspdf inputfile.eps
+%\end{verbatim}
+
+Thanks to Heiko Oberdiek, changing the options somewhere in the middle of your .tex document is supported. Writing
+\begin{verbatim}
+\epspdfconversionsetup{target=prepress,bbox}
+\end{verbatim}
+changes the options of {\pack} to \verb"target=prepress,bbox".
+\query{\textcolor{red}{New in 0.3:} You don't need to redefine the conversion command to switch to other settings}
+
+\section{The command \textbackslash\texttt{epspdfconversioncmdline}}
+
+The options described above change the command that is used to call epspdf for the conversion from .eps to .pdf. %
+\query{\textcolor{red}{New in 0.3:} the name of the command has changed}
+Typing \verb"\epspdfconversioncmdline" somewhere in your source-.tex file will output the call that you have defined in your preamble. For example, this file has in the preamble
+
+\begin{verbatim}
+\usepackage[pdfversion=1.3,GRAY]{epspdfconversion}
+\end{verbatim}
+
+and the \verb"\epspdfconversioncmdline" then is: \verb"epspdf --GRAY --version=1.3".
+
+This means that you can use \verb"\renewcommand" to define you own \verb"\epspdfconversioncmdline".
+
+For example, to restore the behaviour of the epstopdf-package, you could write
+%
+\begin{verbatim}
+\renewcommand{\epspdfconversioncmdline}%
+{epstopdf }
+\end{verbatim}
+%
+This allows you to use whatever tool you want for your conversion. But epstopdf really seems the way to go for eps->pdf.....
+
+\section{A test}
+
+What follows is the output of the two \verb"\includegraphics"-commands from page \pageref{bilderbefehle}. The first of the two figures is converted with every run of (pdf)LaTeX, the second is the \verb"testimage-static.pdf" that is already present.
+
+
+\begin{center}
+\includegraphics[width=0.5\textwidth]{testimage.eps}\\
+\includegraphics[width=0.5\textwidth]{testimage-static}
+\end{center}
+
+
+\section{--help of epstopdf}
+
+The help of epspdf reads
+%
+\small
+\begin{verbatim}
+[ibook-daniel:~] daniel% epspdf --help
+Convert between [e]ps and pdf formats
+Usage: epspdf.rb [options] infile [outfile]
+
+Default for outfile is file.pdf if infile is file.eps or file.ps
+Default for outfile is file.eps if infile is file.pdf
+
+ -I Ignore pdftops even if available
+ (default: use if available)
+ -U Use pdftops if available
+ (overrides previous -I setting)
+ -T, --target=TARGET Target use of pdf; one of
+ default, printer, prepress, screen, ebook
+ -V, --version=VERSION Pdf version to be generated;
+ one of 1.2, 1.3, 1.4, default
+ -C, --custom=CUSTOMOPTIONS Custom options for conversion to pdf,
+ view Use.htm and ps2pdf.htm from
+ the Ghostscript documentation set
+ -P, --psoptions=PSOPTIONS Options for pdftops; default -level2,
+ don't include -eps or page number options;
+ these will be generated by the program
+ -p, --pagenumber=PAGENUMBER Page to be converted or selected
+ -b, --bbox, --BoundingBox Compute tight boundingbox
+ -g, --gray, --grey Convert to grayscale;
+ success not guaranteed
+ -G, --GRAY, --GREY Try harder to convert to grayscale;
+ success still not guaranteed
+ -i, --info Info: display detected filetype
+ -s Save (some) settings
+ -d Debug: don't remove temp files
+
+ -h, --help Show this message
+\end{verbatim}
+\normalsize
+
+
+\section{What {\pack} writes in your log-file}
+The package reports in the log-file what it is doing
+
+%
+\small
+\begin{verbatim}
+This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
+(format=pdflatex 2007.9.28) 2 OCT 2007 13:50
+entering extended mode
+\write18 enabled.
+ %&-line parsing enabled.
+
+[... Schnipp ....]
+
+(/Users/daniel/Library/texmf/tex/latex/epspdfconversion/epspdfconversion.sty
+Package: epspdfconversion 2007/10/02 v0.3 Conversion eps->pdf with epspdf-tools
+ on the fly
+
+(/usr/local/texlive/2007/texmf-dist/tex/latex/oberdiek/epstopdf.sty
+Package: epstopdf 2006/08/26 v1.3 Conversion with epstopdf on the fly (HO)
+)
+(/usr/local/texlive/2007/texmf-dist/tex/latex/oberdiek/kvoptions.sty
+Package: kvoptions 2006/08/22 v2.4 Connects package keyval with LaTeX options (
+HO)
+)
+system(epspdf --help)...executed.
+
+Package epspdfconversion Info: epspdf --version=1.2 <file>
+(epspdfconversion) on input line 186.
+)
+
+[... Schnipp ....]
+
+system(epspdf --version=1.2 testimage.eps)...executed.
+
+ <testimage.pdf, id=69, 505.89pt x 289.08pt>
+File: testimage.pdf Graphic file (type pdf)
+ <use testimage.pdf>
+<testimage-static.pdf, id=70, 505.89pt x 289.08pt>
+File: testimage-static.pdf Graphic file (type pdf)
+ <use testimage-static.pdf>
+[4 <./testimage.pdf> <./testimage-static.pdf>] (./epspdfconversion.aux) )
+
+[... Schnipp ....]
+\end{verbatim}
+\normalsize
+
+\section{Version-history, ToDo's}
+
+\begin{description}
+ \item[ToDo's] Nothing at the moment. Please report errors and missing features.
+ \item[v.0.3, 2007-10-02:] \begin{itemize}
+ \item check whether \verb"\pdfminorversion" has been set in accordance with option pdfversion=...
+ \item Use the kvoptions-package for the implemention of options. It uses key value syntax that can be used both as package options and a separate setup macro.
+ \item Almost all options of epstopdf are now available as an option of this package.
+ \item The command \verb"\epspdfconversionsetup" is new and allows a change of the options for this package anywhere in your document.
+ \item The command \verb"\epspdfconversioncmdline" has been renamed to\\ \verb"\epspdfconversioncmdline".
+ \item the documentation has been updated
+\end{itemize}
+ \item[v.0.2, 2007-09-21:] the package is now simply based on epstopdf. It essentially defines \verb"\@namedef{Gin@rule@.eps}#1{{pdf}{.pdf}{`\epspdfconversioncmdline #1}}" differently than epstopdf. The code has been cleaned up. Improvements of documentation and additional warning about pdfminorversion....
+ \item[v.0.1, 2007-09-21:] first try
+\end{description}
+
+\end{document}
+ \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/epspdfconversion/documentation/testimage-static.eps b/Master/texmf-dist/doc/latex/epspdfconversion/documentation/testimage-static.eps
new file mode 100644
index 00000000000..1ec14f46784
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/epspdfconversion/documentation/testimage-static.eps
@@ -0,0 +1,496 @@
+%!PS-Adobe-2.0 EPSF-2.0
+%% This is a Stata generated postscript file
+%%BoundingBox: 0 0 504 288
+%%HiResBoundingBox: 0.000 0.000 504.000 288.000
+%%DocumentNeededResources: font Helvetica
+/xratio 0.015750 def
+/yratio 0.015751 def
+/Sbgfill {
+ /y1 exch def
+ /x1 exch def
+ /y0 exch def
+ /x0 exch def
+ x0 y0 moveto
+ x0 y1 lineto x1 y1 lineto x1 y0 lineto x0 y0 lineto
+ fill
+} def
+/Spt {
+ yratio mul
+ /yp exch def
+ xratio mul
+ /xp exch def
+ Slrgb setrgbcolor
+ newpath
+ xp yp moveto
+ xp Slw add yp
+ lineto
+ currentlinecap
+ 1 setlinecap
+ stroke
+ setlinecap
+} def
+/Sln {
+ yratio mul
+ /y1p exch def
+ xratio mul
+ /x1p exch def
+ yratio mul
+ /y0p exch def
+ xratio mul
+ /x0p exch def
+ Slw setlinewidth
+ Slrgb setrgbcolor
+ x0p y0p M x1p y1p lineto S
+} def
+/Stxtl {
+ /sp exch def
+ yratio mul
+ /sizep exch def
+ dup
+ /anglep exch def
+ 0 exch sub
+ /angle2p exch def
+ yratio mul
+ /y0p exch def
+ xratio mul
+ /x0p exch def
+ Strgb setrgbcolor
+ x0p y0p M anglep rotate sizep fntsize sp show stroke angle2p rotate
+} def
+/Stxtc {
+ /sp exch def
+ yratio mul
+ /sizep exch def
+ dup
+ /anglep exch def
+ 0 exch sub
+ /angle2p exch def
+ yratio mul
+ /y0p exch def
+ xratio mul
+ /x0p exch def
+ Strgb setrgbcolor
+ x0p y0p M anglep rotate sizep fntsize sp stringwidth exch -2 div exch rm sp show stroke angle2p rotate
+} def
+/Stxtr {
+ /sp exch def
+ yratio mul
+ /sizep exch def
+ dup
+ /anglep exch def
+ 0 exch sub
+ /angle2p exch def
+ yratio mul
+ /y0p exch def
+ xratio mul
+ /x0p exch def
+ Strgb setrgbcolor
+ x0p y0p M anglep rotate sizep fntsize sp stringwidth 1 index -1 mul exch rm pop sp show stroke angle2p rotate
+} def
+/Srect {
+ /sfill exch def
+ yratio mul
+ /y1 exch def
+ xratio mul
+ /x1 exch def
+ yratio mul
+ /y0 exch def
+ xratio mul
+ /x0 exch def
+ sfill 1 eq {
+ Ssrgb setrgbcolor
+ x0 y0 moveto
+ x0 y1 lineto x1 y1 lineto x1 y0 lineto x0 y0 lineto
+ fill
+ } if
+ Slw setlinewidth
+ Slrgb setrgbcolor
+ x0 y0 moveto
+ x0 y1 lineto x1 y1 lineto x1 y0 lineto x0 y0 lineto
+ stroke
+} def
+/Stri {
+ /sfill exch def
+ xratio mul
+ /r exch def
+ yratio mul
+ /y0 exch def
+ xratio mul
+ /x0 exch def
+ /xcen x0 def
+ y0 r add
+ /ytop exch def
+ r 2 div
+ y0 exch sub
+ /ybot exch def
+ r 3 sqrt 2 div mul dup
+ xcen exch sub
+ /xleft exch def
+ xcen add
+ /xright exch def
+ sfill 1 eq {
+ Ssrgb setrgbcolor
+ xcen ytop moveto xright ybot lineto xleft ybot lineto xcen ytop lineto fill
+ } if
+ Slw setlinewidth
+ Slrgb setrgbcolor
+ xcen ytop moveto xright ybot lineto xleft ybot lineto xcen ytop lineto stroke
+} def
+/Soldtri {
+ /sfill exch def
+ xratio mul
+ /r exch def
+ yratio mul
+ /y0 exch def
+ xratio mul
+ /x0 exch def
+ x0 r sub
+ /x1 exch def
+ y0 r sub
+ /y1 exch def
+ x0 r add
+ /x2 exch def
+ y0 r sub
+ /y2 exch def
+ /x3 x0 def
+ y0 r add
+ /y3 exch def
+ sfill 1 eq {
+ Ssrgb setrgbcolor
+ x1 y1 moveto x2 y2 lineto x3 y3 lineto x1 y1 lineto fill
+ } if
+ Slw setlinewidth
+ Slrgb setrgbcolor
+ x1 y1 moveto x2 y2 lineto x3 y3 lineto x1 y1 lineto stroke
+} def
+/Sdia {
+ /sfill exch def
+ xratio mul
+ /r exch def
+ yratio mul
+ /y exch def
+ xratio mul
+ /x exch def
+ x r sub
+ /x0 exch def
+ /y0 y def
+ /x1 x def
+ y r sub
+ /y1 exch def
+ x r add
+ /x2 exch def
+ /y2 y def
+ /x3 x def
+ y r add
+ /y3 exch def
+ sfill 1 eq {
+ Ssrgb setrgbcolor
+ x0 y0 moveto x1 y1 lineto x2 y2 lineto x3 y3 lineto x0 y0 lineto fill
+ } if
+ Slw setlinewidth
+ Slrgb setrgbcolor
+ x0 y0 moveto x1 y1 lineto x2 y2 lineto x3 y3 lineto x0 y0 lineto stroke
+} def
+/Scc {
+ /sfill exch def
+ xratio mul
+ /r0 exch def
+ yratio mul
+ /y0 exch def
+ xratio mul
+ /x0 exch def
+ sfill 1 eq {
+ Ssrgb setrgbcolor
+ x0 y0 r0 0 360 arc fill
+ } if
+ Slw setlinewidth
+ Slrgb setrgbcolor
+ x0 y0 r0 0 360 arc stroke
+} def
+/Spie {
+ /sfill exch def
+ /a1 exch def
+ /a0 exch def
+ xratio mul
+ /r exch def
+ yratio mul
+ /y exch def
+ xratio mul
+ /x exch def
+ sfill 1 eq {
+ Ssrgb setrgbcolor
+ newpath x y moveto x y r a0 a1 arc closepath
+ fill
+ } if
+ Slw setlinewidth
+ Slrgb setrgbcolor
+ newpath x y moveto x y r a0 a1 arc closepath
+ stroke
+} def
+/Splu {
+ xratio mul
+ /r exch def
+ yratio mul
+ /y exch def
+ xratio mul
+ /x exch def
+ x r sub
+ /x0 exch def
+ x r add
+ /x1 exch def
+ x0 y M x1 y L
+ y r sub
+ /y0 exch def
+ y r add
+ /y1 exch def
+ x y0 M x y1 L
+} def
+/Scro {
+ xratio mul
+ /r exch def
+ yratio mul
+ /y exch def
+ xratio mul
+ /x exch def
+ x r sub
+ /x0 exch def
+ y r sub
+ /y0 exch def
+ x r add
+ /x1 exch def
+ y r add
+ /y1 exch def
+ x0 y0 M x1 y1 L
+ x r add
+ /x0 exch def
+ y r sub
+ /y0 exch def
+ x r sub
+ /x1 exch def
+ y r add
+ /y1 exch def
+ x0 y0 M x1 y1 L
+} def
+/Sm {
+ yratio mul
+ /y exch def
+ xratio mul
+ /x exch def
+ x y M
+} def
+/Sl {
+ yratio mul
+ /y exch def
+ xratio mul
+ /x exch def
+ x y L
+} def
+/SPl {
+ yratio mul
+ /y exch def
+ xratio mul
+ /x exch def
+ x y PL
+} def
+/Lcs {
+ currentlinecap
+ 1 setlinecap
+} def
+/Lcr {
+ setlinecap
+} def
+/Sbp {
+ newpath
+} def
+/Sep {
+ /sfill exch def
+ closepath
+ sfill 1 eq {
+ Ssrgb setrgbcolor
+ gsave
+ fill
+ grestore
+ } if
+ Slw setlinewidth
+ Slrgb setrgbcolor
+ Lcs
+ stroke
+ Lcr
+} def
+/cp {currentpoint} def
+/M {moveto} def
+/rm {rmoveto} def
+/S {stroke} def
+/L {Slw setlinewidth Slrgb setrgbcolor lineto Lcs S Lcr} def
+/PL {Slw setlinewidth Slrgb setrgbcolor lineto} def
+/MF { % make new latin1 encoded font
+ /newfontname exch def
+ /fontname exch def
+ /fontdict fontname findfont def
+ /newfont fontdict maxlength dict def
+ fontdict {
+ exch dup /FID eq {pop pop} {exch newfont 3 1 roll put} ifelse
+ } forall
+ newfont /FontName newfontname put
+ newfont /Encoding ISOLatin1Encoding put
+ newfontname newfont definefont pop
+} def
+/Helvetica /Helvetica-Latin1 MF
+/reg {/Helvetica-Latin1 findfont 1 scalefont setfont } def
+/fntsize {/Helvetica-Latin1 findfont exch scalefont setfont } def
+/Slw 0.120 def
+1.000 1.000 1.000 setrgbcolor
+0 0 504.000 288.000 Sbgfill
+/Slrgb {1.000 1.000 1.000} def
+/Strgb {1.000 1.000 1.000} def
+/Ssrgb {1.000 1.000 1.000} def
+/Slw 0.576 def
+0 0 31999 18285 1 Srect
+9001 7024 31359 17645 1 Srect
+/Slrgb {0.000 0.000 0.000} def
+/Strgb {0.000 0.000 0.000} def
+/Slw 0.120 def
+9001 7024 9001 17645 Sln
+/Slw 0.576 def
+/Slw 0.120 def
+13344 7024 13344 17645 Sln
+/Slw 0.576 def
+/Slw 0.120 def
+17688 7024 17688 17645 Sln
+/Slw 0.576 def
+/Slw 0.120 def
+22031 7024 22031 17645 Sln
+/Slw 0.576 def
+/Slw 0.120 def
+26375 7024 26375 17645 Sln
+/Slw 0.576 def
+/Slw 0.120 def
+30719 7024 30719 17645 Sln
+/Slw 0.576 def
+/Ssrgb {0.102 0.278 0.435} def
+/Slw 0.720 def
+/Slrgb {0.102 0.278 0.435} def
+9001 7955 16816 9413 1 Srect
+/Ssrgb {0.565 0.208 0.231} def
+/Slrgb {0.565 0.208 0.231} def
+16816 7955 19514 9413 1 Srect
+/Ssrgb {0.333 0.459 0.184} def
+/Slrgb {0.333 0.459 0.184} def
+19514 7955 24286 9413 1 Srect
+/Ssrgb {0.890 0.494 0.000} def
+/Slrgb {0.890 0.494 0.000} def
+24286 7955 28367 9413 1 Srect
+/Ssrgb {0.431 0.557 0.518} def
+/Slrgb {0.431 0.557 0.518} def
+28367 7955 30719 9413 1 Srect
+/Ssrgb {0.102 0.278 0.435} def
+/Slrgb {0.102 0.278 0.435} def
+9001 10389 18822 11846 1 Srect
+/Ssrgb {0.565 0.208 0.231} def
+/Slrgb {0.565 0.208 0.231} def
+18822 10389 22583 11846 1 Srect
+/Ssrgb {0.333 0.459 0.184} def
+/Slrgb {0.333 0.459 0.184} def
+22583 10389 26894 11846 1 Srect
+/Ssrgb {0.890 0.494 0.000} def
+/Slrgb {0.890 0.494 0.000} def
+26894 10389 29357 11846 1 Srect
+/Ssrgb {0.431 0.557 0.518} def
+/Slrgb {0.431 0.557 0.518} def
+29357 10389 30719 11846 1 Srect
+/Ssrgb {0.102 0.278 0.435} def
+/Slrgb {0.102 0.278 0.435} def
+9001 12823 21136 14280 1 Srect
+/Ssrgb {0.565 0.208 0.231} def
+/Slrgb {0.565 0.208 0.231} def
+21136 12823 24821 14280 1 Srect
+/Ssrgb {0.333 0.459 0.184} def
+/Slrgb {0.333 0.459 0.184} def
+24821 12823 28280 14280 1 Srect
+/Ssrgb {0.890 0.494 0.000} def
+/Slrgb {0.890 0.494 0.000} def
+28280 12823 29415 14280 1 Srect
+/Ssrgb {0.431 0.557 0.518} def
+/Slrgb {0.431 0.557 0.518} def
+29415 12823 30719 14280 1 Srect
+/Ssrgb {0.102 0.278 0.435} def
+/Slrgb {0.102 0.278 0.435} def
+9001 15256 21888 16714 1 Srect
+/Ssrgb {0.565 0.208 0.231} def
+/Slrgb {0.565 0.208 0.231} def
+21888 15256 26852 16714 1 Srect
+/Ssrgb {0.333 0.459 0.184} def
+/Slrgb {0.333 0.459 0.184} def
+26852 15256 29382 16714 1 Srect
+/Ssrgb {0.890 0.494 0.000} def
+/Slrgb {0.890 0.494 0.000} def
+29382 15256 30385 16714 1 Srect
+/Ssrgb {0.431 0.557 0.518} def
+/Slrgb {0.431 0.557 0.518} def
+30385 15256 30719 16714 1 Srect
+12908 8506 0.000 508 (36) Stxtc
+18165 8506 0.000 508 (12) Stxtc
+21900 8506 0.000 508 (22) Stxtc
+26327 8506 0.000 508 (19) Stxtc
+29543 8506 0.000 508 (11) Stxtc
+13911 10940 0.000 508 (45) Stxtc
+20702 10940 0.000 508 (17) Stxtc
+24738 10940 0.000 508 (20) Stxtc
+28126 10940 0.000 508 (11) Stxtc
+30038 10940 0.000 508 (6) Stxtc
+15068 13373 0.000 508 (56) Stxtc
+22978 13373 0.000 508 (17) Stxtc
+26551 13373 0.000 508 (16) Stxtc
+28848 13373 0.000 508 (5) Stxtc
+30067 13373 0.000 508 (6) Stxtc
+15444 15807 0.000 508 (59) Stxtc
+24370 15807 0.000 508 (23) Stxtc
+28117 15807 0.000 508 (12) Stxtc
+29883 15807 0.000 508 (5) Stxtc
+30552 15807 0.000 508 (2) Stxtc
+/Slw 0.576 def
+/Slrgb {0.000 0.000 0.000} def
+9001 7024 31359 7024 Sln
+9001 7024 9001 6770 Sln
+9001 6199 0.000 635 (0) Stxtc
+13344 7024 13344 6770 Sln
+13344 6199 0.000 635 (20) Stxtc
+17688 7024 17688 6770 Sln
+17688 6199 0.000 635 (40) Stxtc
+22031 7024 22031 6770 Sln
+22031 6199 0.000 635 (60) Stxtc
+26375 7024 26375 6770 Sln
+26375 6199 0.000 635 (80) Stxtc
+30719 7024 30719 6770 Sln
+30719 6199 0.000 635 (100) Stxtc
+9001 7024 9001 17645 Sln
+8747 8462 0.000 635 (Studienabschlussphase >9) Stxtr
+8747 10896 0.000 635 (Hauptstudium 5-9) Stxtr
+8747 13329 0.000 635 (Vertiefungsphase 3-4) Stxtr
+8747 15763 0.000 635 (Studienanfangsphase 1-2) Stxtr
+/Ssrgb {1.000 1.000 1.000} def
+/Slrgb {1.000 1.000 1.000} def
+15389 859 24970 5598 1 Srect
+/Ssrgb {0.102 0.278 0.435} def
+/Slw 0.720 def
+/Slrgb {0.102 0.278 0.435} def
+15663 4689 16465 5324 1 Srect
+/Ssrgb {0.565 0.208 0.231} def
+/Slrgb {0.565 0.208 0.231} def
+15663 3800 16465 4435 1 Srect
+/Ssrgb {0.333 0.459 0.184} def
+/Slrgb {0.333 0.459 0.184} def
+15663 2911 16465 3546 1 Srect
+/Ssrgb {0.890 0.494 0.000} def
+/Slrgb {0.890 0.494 0.000} def
+15663 2023 16465 2657 1 Srect
+/Ssrgb {0.431 0.557 0.518} def
+/Slrgb {0.431 0.557 0.518} def
+15663 1134 16465 1769 1 Srect
+16674 4784 0.000 635 (Ich konnte bisher immer teilnehmen) Stxtl
+16674 3896 0.000 635 (1-mal) Stxtl
+16674 3007 0.000 635 (2-mal) Stxtl
+16674 2118 0.000 635 (3-mal) Stxtl
+16674 1229 0.000 635 (mehr als 3-mal) Stxtl
+S showpage
+%%EOF
diff --git a/Master/texmf-dist/doc/latex/epspdfconversion/documentation/testimage.eps b/Master/texmf-dist/doc/latex/epspdfconversion/documentation/testimage.eps
new file mode 100644
index 00000000000..1ec14f46784
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/epspdfconversion/documentation/testimage.eps
@@ -0,0 +1,496 @@
+%!PS-Adobe-2.0 EPSF-2.0
+%% This is a Stata generated postscript file
+%%BoundingBox: 0 0 504 288
+%%HiResBoundingBox: 0.000 0.000 504.000 288.000
+%%DocumentNeededResources: font Helvetica
+/xratio 0.015750 def
+/yratio 0.015751 def
+/Sbgfill {
+ /y1 exch def
+ /x1 exch def
+ /y0 exch def
+ /x0 exch def
+ x0 y0 moveto
+ x0 y1 lineto x1 y1 lineto x1 y0 lineto x0 y0 lineto
+ fill
+} def
+/Spt {
+ yratio mul
+ /yp exch def
+ xratio mul
+ /xp exch def
+ Slrgb setrgbcolor
+ newpath
+ xp yp moveto
+ xp Slw add yp
+ lineto
+ currentlinecap
+ 1 setlinecap
+ stroke
+ setlinecap
+} def
+/Sln {
+ yratio mul
+ /y1p exch def
+ xratio mul
+ /x1p exch def
+ yratio mul
+ /y0p exch def
+ xratio mul
+ /x0p exch def
+ Slw setlinewidth
+ Slrgb setrgbcolor
+ x0p y0p M x1p y1p lineto S
+} def
+/Stxtl {
+ /sp exch def
+ yratio mul
+ /sizep exch def
+ dup
+ /anglep exch def
+ 0 exch sub
+ /angle2p exch def
+ yratio mul
+ /y0p exch def
+ xratio mul
+ /x0p exch def
+ Strgb setrgbcolor
+ x0p y0p M anglep rotate sizep fntsize sp show stroke angle2p rotate
+} def
+/Stxtc {
+ /sp exch def
+ yratio mul
+ /sizep exch def
+ dup
+ /anglep exch def
+ 0 exch sub
+ /angle2p exch def
+ yratio mul
+ /y0p exch def
+ xratio mul
+ /x0p exch def
+ Strgb setrgbcolor
+ x0p y0p M anglep rotate sizep fntsize sp stringwidth exch -2 div exch rm sp show stroke angle2p rotate
+} def
+/Stxtr {
+ /sp exch def
+ yratio mul
+ /sizep exch def
+ dup
+ /anglep exch def
+ 0 exch sub
+ /angle2p exch def
+ yratio mul
+ /y0p exch def
+ xratio mul
+ /x0p exch def
+ Strgb setrgbcolor
+ x0p y0p M anglep rotate sizep fntsize sp stringwidth 1 index -1 mul exch rm pop sp show stroke angle2p rotate
+} def
+/Srect {
+ /sfill exch def
+ yratio mul
+ /y1 exch def
+ xratio mul
+ /x1 exch def
+ yratio mul
+ /y0 exch def
+ xratio mul
+ /x0 exch def
+ sfill 1 eq {
+ Ssrgb setrgbcolor
+ x0 y0 moveto
+ x0 y1 lineto x1 y1 lineto x1 y0 lineto x0 y0 lineto
+ fill
+ } if
+ Slw setlinewidth
+ Slrgb setrgbcolor
+ x0 y0 moveto
+ x0 y1 lineto x1 y1 lineto x1 y0 lineto x0 y0 lineto
+ stroke
+} def
+/Stri {
+ /sfill exch def
+ xratio mul
+ /r exch def
+ yratio mul
+ /y0 exch def
+ xratio mul
+ /x0 exch def
+ /xcen x0 def
+ y0 r add
+ /ytop exch def
+ r 2 div
+ y0 exch sub
+ /ybot exch def
+ r 3 sqrt 2 div mul dup
+ xcen exch sub
+ /xleft exch def
+ xcen add
+ /xright exch def
+ sfill 1 eq {
+ Ssrgb setrgbcolor
+ xcen ytop moveto xright ybot lineto xleft ybot lineto xcen ytop lineto fill
+ } if
+ Slw setlinewidth
+ Slrgb setrgbcolor
+ xcen ytop moveto xright ybot lineto xleft ybot lineto xcen ytop lineto stroke
+} def
+/Soldtri {
+ /sfill exch def
+ xratio mul
+ /r exch def
+ yratio mul
+ /y0 exch def
+ xratio mul
+ /x0 exch def
+ x0 r sub
+ /x1 exch def
+ y0 r sub
+ /y1 exch def
+ x0 r add
+ /x2 exch def
+ y0 r sub
+ /y2 exch def
+ /x3 x0 def
+ y0 r add
+ /y3 exch def
+ sfill 1 eq {
+ Ssrgb setrgbcolor
+ x1 y1 moveto x2 y2 lineto x3 y3 lineto x1 y1 lineto fill
+ } if
+ Slw setlinewidth
+ Slrgb setrgbcolor
+ x1 y1 moveto x2 y2 lineto x3 y3 lineto x1 y1 lineto stroke
+} def
+/Sdia {
+ /sfill exch def
+ xratio mul
+ /r exch def
+ yratio mul
+ /y exch def
+ xratio mul
+ /x exch def
+ x r sub
+ /x0 exch def
+ /y0 y def
+ /x1 x def
+ y r sub
+ /y1 exch def
+ x r add
+ /x2 exch def
+ /y2 y def
+ /x3 x def
+ y r add
+ /y3 exch def
+ sfill 1 eq {
+ Ssrgb setrgbcolor
+ x0 y0 moveto x1 y1 lineto x2 y2 lineto x3 y3 lineto x0 y0 lineto fill
+ } if
+ Slw setlinewidth
+ Slrgb setrgbcolor
+ x0 y0 moveto x1 y1 lineto x2 y2 lineto x3 y3 lineto x0 y0 lineto stroke
+} def
+/Scc {
+ /sfill exch def
+ xratio mul
+ /r0 exch def
+ yratio mul
+ /y0 exch def
+ xratio mul
+ /x0 exch def
+ sfill 1 eq {
+ Ssrgb setrgbcolor
+ x0 y0 r0 0 360 arc fill
+ } if
+ Slw setlinewidth
+ Slrgb setrgbcolor
+ x0 y0 r0 0 360 arc stroke
+} def
+/Spie {
+ /sfill exch def
+ /a1 exch def
+ /a0 exch def
+ xratio mul
+ /r exch def
+ yratio mul
+ /y exch def
+ xratio mul
+ /x exch def
+ sfill 1 eq {
+ Ssrgb setrgbcolor
+ newpath x y moveto x y r a0 a1 arc closepath
+ fill
+ } if
+ Slw setlinewidth
+ Slrgb setrgbcolor
+ newpath x y moveto x y r a0 a1 arc closepath
+ stroke
+} def
+/Splu {
+ xratio mul
+ /r exch def
+ yratio mul
+ /y exch def
+ xratio mul
+ /x exch def
+ x r sub
+ /x0 exch def
+ x r add
+ /x1 exch def
+ x0 y M x1 y L
+ y r sub
+ /y0 exch def
+ y r add
+ /y1 exch def
+ x y0 M x y1 L
+} def
+/Scro {
+ xratio mul
+ /r exch def
+ yratio mul
+ /y exch def
+ xratio mul
+ /x exch def
+ x r sub
+ /x0 exch def
+ y r sub
+ /y0 exch def
+ x r add
+ /x1 exch def
+ y r add
+ /y1 exch def
+ x0 y0 M x1 y1 L
+ x r add
+ /x0 exch def
+ y r sub
+ /y0 exch def
+ x r sub
+ /x1 exch def
+ y r add
+ /y1 exch def
+ x0 y0 M x1 y1 L
+} def
+/Sm {
+ yratio mul
+ /y exch def
+ xratio mul
+ /x exch def
+ x y M
+} def
+/Sl {
+ yratio mul
+ /y exch def
+ xratio mul
+ /x exch def
+ x y L
+} def
+/SPl {
+ yratio mul
+ /y exch def
+ xratio mul
+ /x exch def
+ x y PL
+} def
+/Lcs {
+ currentlinecap
+ 1 setlinecap
+} def
+/Lcr {
+ setlinecap
+} def
+/Sbp {
+ newpath
+} def
+/Sep {
+ /sfill exch def
+ closepath
+ sfill 1 eq {
+ Ssrgb setrgbcolor
+ gsave
+ fill
+ grestore
+ } if
+ Slw setlinewidth
+ Slrgb setrgbcolor
+ Lcs
+ stroke
+ Lcr
+} def
+/cp {currentpoint} def
+/M {moveto} def
+/rm {rmoveto} def
+/S {stroke} def
+/L {Slw setlinewidth Slrgb setrgbcolor lineto Lcs S Lcr} def
+/PL {Slw setlinewidth Slrgb setrgbcolor lineto} def
+/MF { % make new latin1 encoded font
+ /newfontname exch def
+ /fontname exch def
+ /fontdict fontname findfont def
+ /newfont fontdict maxlength dict def
+ fontdict {
+ exch dup /FID eq {pop pop} {exch newfont 3 1 roll put} ifelse
+ } forall
+ newfont /FontName newfontname put
+ newfont /Encoding ISOLatin1Encoding put
+ newfontname newfont definefont pop
+} def
+/Helvetica /Helvetica-Latin1 MF
+/reg {/Helvetica-Latin1 findfont 1 scalefont setfont } def
+/fntsize {/Helvetica-Latin1 findfont exch scalefont setfont } def
+/Slw 0.120 def
+1.000 1.000 1.000 setrgbcolor
+0 0 504.000 288.000 Sbgfill
+/Slrgb {1.000 1.000 1.000} def
+/Strgb {1.000 1.000 1.000} def
+/Ssrgb {1.000 1.000 1.000} def
+/Slw 0.576 def
+0 0 31999 18285 1 Srect
+9001 7024 31359 17645 1 Srect
+/Slrgb {0.000 0.000 0.000} def
+/Strgb {0.000 0.000 0.000} def
+/Slw 0.120 def
+9001 7024 9001 17645 Sln
+/Slw 0.576 def
+/Slw 0.120 def
+13344 7024 13344 17645 Sln
+/Slw 0.576 def
+/Slw 0.120 def
+17688 7024 17688 17645 Sln
+/Slw 0.576 def
+/Slw 0.120 def
+22031 7024 22031 17645 Sln
+/Slw 0.576 def
+/Slw 0.120 def
+26375 7024 26375 17645 Sln
+/Slw 0.576 def
+/Slw 0.120 def
+30719 7024 30719 17645 Sln
+/Slw 0.576 def
+/Ssrgb {0.102 0.278 0.435} def
+/Slw 0.720 def
+/Slrgb {0.102 0.278 0.435} def
+9001 7955 16816 9413 1 Srect
+/Ssrgb {0.565 0.208 0.231} def
+/Slrgb {0.565 0.208 0.231} def
+16816 7955 19514 9413 1 Srect
+/Ssrgb {0.333 0.459 0.184} def
+/Slrgb {0.333 0.459 0.184} def
+19514 7955 24286 9413 1 Srect
+/Ssrgb {0.890 0.494 0.000} def
+/Slrgb {0.890 0.494 0.000} def
+24286 7955 28367 9413 1 Srect
+/Ssrgb {0.431 0.557 0.518} def
+/Slrgb {0.431 0.557 0.518} def
+28367 7955 30719 9413 1 Srect
+/Ssrgb {0.102 0.278 0.435} def
+/Slrgb {0.102 0.278 0.435} def
+9001 10389 18822 11846 1 Srect
+/Ssrgb {0.565 0.208 0.231} def
+/Slrgb {0.565 0.208 0.231} def
+18822 10389 22583 11846 1 Srect
+/Ssrgb {0.333 0.459 0.184} def
+/Slrgb {0.333 0.459 0.184} def
+22583 10389 26894 11846 1 Srect
+/Ssrgb {0.890 0.494 0.000} def
+/Slrgb {0.890 0.494 0.000} def
+26894 10389 29357 11846 1 Srect
+/Ssrgb {0.431 0.557 0.518} def
+/Slrgb {0.431 0.557 0.518} def
+29357 10389 30719 11846 1 Srect
+/Ssrgb {0.102 0.278 0.435} def
+/Slrgb {0.102 0.278 0.435} def
+9001 12823 21136 14280 1 Srect
+/Ssrgb {0.565 0.208 0.231} def
+/Slrgb {0.565 0.208 0.231} def
+21136 12823 24821 14280 1 Srect
+/Ssrgb {0.333 0.459 0.184} def
+/Slrgb {0.333 0.459 0.184} def
+24821 12823 28280 14280 1 Srect
+/Ssrgb {0.890 0.494 0.000} def
+/Slrgb {0.890 0.494 0.000} def
+28280 12823 29415 14280 1 Srect
+/Ssrgb {0.431 0.557 0.518} def
+/Slrgb {0.431 0.557 0.518} def
+29415 12823 30719 14280 1 Srect
+/Ssrgb {0.102 0.278 0.435} def
+/Slrgb {0.102 0.278 0.435} def
+9001 15256 21888 16714 1 Srect
+/Ssrgb {0.565 0.208 0.231} def
+/Slrgb {0.565 0.208 0.231} def
+21888 15256 26852 16714 1 Srect
+/Ssrgb {0.333 0.459 0.184} def
+/Slrgb {0.333 0.459 0.184} def
+26852 15256 29382 16714 1 Srect
+/Ssrgb {0.890 0.494 0.000} def
+/Slrgb {0.890 0.494 0.000} def
+29382 15256 30385 16714 1 Srect
+/Ssrgb {0.431 0.557 0.518} def
+/Slrgb {0.431 0.557 0.518} def
+30385 15256 30719 16714 1 Srect
+12908 8506 0.000 508 (36) Stxtc
+18165 8506 0.000 508 (12) Stxtc
+21900 8506 0.000 508 (22) Stxtc
+26327 8506 0.000 508 (19) Stxtc
+29543 8506 0.000 508 (11) Stxtc
+13911 10940 0.000 508 (45) Stxtc
+20702 10940 0.000 508 (17) Stxtc
+24738 10940 0.000 508 (20) Stxtc
+28126 10940 0.000 508 (11) Stxtc
+30038 10940 0.000 508 (6) Stxtc
+15068 13373 0.000 508 (56) Stxtc
+22978 13373 0.000 508 (17) Stxtc
+26551 13373 0.000 508 (16) Stxtc
+28848 13373 0.000 508 (5) Stxtc
+30067 13373 0.000 508 (6) Stxtc
+15444 15807 0.000 508 (59) Stxtc
+24370 15807 0.000 508 (23) Stxtc
+28117 15807 0.000 508 (12) Stxtc
+29883 15807 0.000 508 (5) Stxtc
+30552 15807 0.000 508 (2) Stxtc
+/Slw 0.576 def
+/Slrgb {0.000 0.000 0.000} def
+9001 7024 31359 7024 Sln
+9001 7024 9001 6770 Sln
+9001 6199 0.000 635 (0) Stxtc
+13344 7024 13344 6770 Sln
+13344 6199 0.000 635 (20) Stxtc
+17688 7024 17688 6770 Sln
+17688 6199 0.000 635 (40) Stxtc
+22031 7024 22031 6770 Sln
+22031 6199 0.000 635 (60) Stxtc
+26375 7024 26375 6770 Sln
+26375 6199 0.000 635 (80) Stxtc
+30719 7024 30719 6770 Sln
+30719 6199 0.000 635 (100) Stxtc
+9001 7024 9001 17645 Sln
+8747 8462 0.000 635 (Studienabschlussphase >9) Stxtr
+8747 10896 0.000 635 (Hauptstudium 5-9) Stxtr
+8747 13329 0.000 635 (Vertiefungsphase 3-4) Stxtr
+8747 15763 0.000 635 (Studienanfangsphase 1-2) Stxtr
+/Ssrgb {1.000 1.000 1.000} def
+/Slrgb {1.000 1.000 1.000} def
+15389 859 24970 5598 1 Srect
+/Ssrgb {0.102 0.278 0.435} def
+/Slw 0.720 def
+/Slrgb {0.102 0.278 0.435} def
+15663 4689 16465 5324 1 Srect
+/Ssrgb {0.565 0.208 0.231} def
+/Slrgb {0.565 0.208 0.231} def
+15663 3800 16465 4435 1 Srect
+/Ssrgb {0.333 0.459 0.184} def
+/Slrgb {0.333 0.459 0.184} def
+15663 2911 16465 3546 1 Srect
+/Ssrgb {0.890 0.494 0.000} def
+/Slrgb {0.890 0.494 0.000} def
+15663 2023 16465 2657 1 Srect
+/Ssrgb {0.431 0.557 0.518} def
+/Slrgb {0.431 0.557 0.518} def
+15663 1134 16465 1769 1 Srect
+16674 4784 0.000 635 (Ich konnte bisher immer teilnehmen) Stxtl
+16674 3896 0.000 635 (1-mal) Stxtl
+16674 3007 0.000 635 (2-mal) Stxtl
+16674 2118 0.000 635 (3-mal) Stxtl
+16674 1229 0.000 635 (mehr als 3-mal) Stxtl
+S showpage
+%%EOF
diff --git a/Master/texmf-dist/tex/latex/epspdfconversion/epspdfconversion.sty b/Master/texmf-dist/tex/latex/epspdfconversion/epspdfconversion.sty
new file mode 100644
index 00000000000..2f0f8878172
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/epspdfconversion/epspdfconversion.sty
@@ -0,0 +1,207 @@
+%%
+%% This is file `epspdfconversion.sty',
+%%
+%%
+%% It is based on epstopdf.sty by Heiko Oberdiek and an attempt to use Siep
+%% Kroonenberg tools Epspdf (http://tex.aanhet.net/epspdf/)
+%% "on the fly" in LaTeX
+%%
+%% Please send suggestions to daniel.becker@uni-rostock.de
+%% version history:
+%%
+%% ToDo:
+%%
+%% 0.3: Heiko Oberdiek substantially improved the code.
+%% The kvoptions-package is now used for the implemention of options.
+%% See the documentation %% for effects and additional features.
+%% 0.2: the package is now simply based on epstopdf. This package essentially
+%% defines \@namedef{Gin@rule@.eps}#1{{pdf}{.pdf}{`\conversioncommand #1}}
+%% differently than epstopdf. The code has been cleaned up. Improvements of
+%% documentation and additional warning about pdfminorversion....
+%% 0.1: first try
+%%
+
+
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{epspdfconversion}%
+ [2007/10/02 v0.3 Conversion eps->pdf with epspdf-tools on the fly]
+
+
+%% this loads the epstopdf and the kvoptions packages.
+\RequirePackage{epstopdf}
+\RequirePackage{kvoptions}[2006/08/22]
+
+
+\SetupKeyvalOptions{
+ family=EPC,
+ prefix=EPC@
+}
+
+%% this is the basic command necessary for the conversion with epspdf
+\DeclareStringOption[epspdf]{cmd}
+
+% Gray
+% \EPC@gray stores the whole option
+\DeclareVoidOption{gray}{%this is for the \usepackage[gray]{...
+ \def\EPC@optgray{--gray }%this is the effect in the command line
+}
+\DeclareVoidOption{GRAY}{%
+ \def\EPC@optgray{--GRAY }%
+}
+\DeclareVoidOption{grey}{%
+ \def\EPC@optgray{--grey }%
+}
+\DeclareVoidOption{GREY}{%
+ \def\EPC@optgray{--GREY }%
+}
+
+% Target
+% \EPC@target stores the target only
+% target ==> --target=default
+% target=printer ==> --target=printer
+% screen ==> --target=screen
+\DeclareStringOption{target}[default]
+\DeclareVoidOption{default}{%
+ \def\EPC@target{default}%
+}
+\DeclareVoidOption{printer}{%
+ \def\EPC@target{printer}%
+}
+\DeclareVoidOption{prepress}{%
+ \def\EPC@target{prepress}%
+}
+\DeclareVoidOption{screen}{%
+ \def\EPC@target{screen}%
+}
+\DeclareVoidOption{ebook}{%
+ \def\EPC@target{ebook}%
+}
+
+% Version
+% \EPC@pdfversion stores the version only
+% pdfversion=1.2 ==> --version=1.2
+% the warning with pdfminorversion does not work?
+
+\define@key{EPC}{pdfversion}[default]{%
+ \@ifundefined{EPC@pdfversion@#1}{%
+ \PackageError{epspdfconversion}{%
+ Ignoring unknown value for `pdfversion'. Known values are: 1.2,1.3, 1.4, default%
+ }\@ehc
+ }{%
+ \def\EPC@pdfversion{#1}%
+ \begingroup
+ \let\MinorVersion\relax
+ \@ifundefined{pdfminorversion}{%
+ \@ifundefined{pdfoptionpdfminorversion}{}{%
+ \def\MinorVersion{\pdfoptionpdfminorversion}%
+ }%
+ }{%
+ \def\MinorVersion{\pdfminorversion}%
+ }%
+ \ifx\MinorVersion\relax
+ \else
+ \ifnum\@nameuse{EPC@pdfversion@#1}>\MinorVersion
+ \PackageWarning{epspdfconversion}{%
+ You have chosen pdfversion=#1,\MessageBreak
+ but you generate PDF-1.\number\MinorVersion.%
+ \MessageBreak
+ This can be changed by\MessageBreak
+ \expandafter\string\MinorVersion=%
+ \@nameuse{EPC@pdfversion@#1}%
+ \MessageBreak
+ (at the very beginning of your .tex file).\MessageBreak Or try `pdfversion=1.\number\MinorVersion'%
+ }%
+ \fi
+ \fi
+ \endgroup
+ }%
+}
+
+\@namedef{EPC@pdfversion@1.2}{2}
+\@namedef{EPC@pdfversion@1.3}{3}
+\@namedef{EPC@pdfversion@1.4}{4}
+\@namedef{EPC@pdfversion@default}{0}% disable version check
+
+% bbox ==> --bbox
+% bbox=true ==> --bbox
+% bbox=false ==> option disabled
+\DeclareBoolOption{bbox}
+
+\DeclareVoidOption{pdftops}{%
+ \def\EPC@optpdftops{-U }%
+}
+\DeclareVoidOption{nopdftops}{%
+ \def\EPC@optpdftops{-I }%
+}
+
+\DeclareStringOption{custom}
+\DeclareStringOption{psoptions}
+\DeclareStringOption{pagenumber}
+
+\DeclareVoidOption{simple}{%
+ % disable other options
+ \let\EPC@optgray\@empty
+ \let\EPC@optpdftops\@empty
+ \let\EPC@target\@empty
+ \let\EPC@pdfversion\@empty
+ \let\EPC@custom\@empty
+ \let\EPC@psoptions\@empty
+ \let\EPC@pagenumber\@empty
+ \EPC@bboxfalse
+}
+
+% default setting: all options cleared
+\EPC@simple
+
+% Options help works immediately, if shell escape feature is enabled.
+\DeclareVoidOption{help}{%
+ \immediate\write18{\EPC@cmd\space--help}%
+}
+
+\def\EPC@addopt#1{%
+ \expandafter\ifx\csname EPC@#1\endcsname\@empty
+ \else
+ --#1=\@nameuse{EPC@#1} %
+ \fi
+}
+
+%% this is the setup of the command line....
+\newcommand*{\epspdfconversioncmdline}[1]{%
+ \EPC@cmd\space
+ \EPC@optpdftops
+ \EPC@addopt{target}%
+ \ifx\EPC@pdfversion\@empty
+ \else
+ --version=\EPC@pdfversion\space
+ \fi
+ \EPC@addopt{custom}%
+ \EPC@addopt{psoptions}%
+ \EPC@addopt{pagenumber}%
+ \ifEPC@bbox
+ --bbox %
+ \fi
+ \EPC@optgray
+ #1%
+}
+
+%% this shows what is going on in the log
+\def\EPC@printlog{%
+ \PackageInfo{epspdfconversion}{%
+ \epspdfconversioncmdline{<file>}\MessageBreak
+ }%
+}
+
+%% this allows to change the options on the fly
+% Use example: \epspdfconversionsetup{target=prepress,bbox}
+\newcommand*{\epspdfconversionsetup}[1]{%
+ \setkeys{EPC}{#1}%
+ \EPC@printlog
+}
+
+\ProcessKeyvalOptions*
+\EPC@printlog
+
+%%% this changes the definition provided by epstopdf:
+\@namedef{Gin@rule@.eps}#1{{pdf}{.pdf}{`\epspdfconversioncmdline{#1}}}
+\endinput
diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
index a633ebc1fa2..3b97e3c7777 100644
--- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
@@ -137,6 +137,7 @@ depend Package/environ
depend Package/envlab
depend Package/epigraph
depend Package/epiolmec
+depend Package/epspdfconversion
depend Package/eqlist
depend Package/eqname
depend Package/eqparbox
diff --git a/Master/tlpkg/tlpsrc/epspdfconversion.tlpsrc b/Master/tlpkg/tlpsrc/epspdfconversion.tlpsrc
new file mode 100644
index 00000000000..2781d3b891b
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/epspdfconversion.tlpsrc
@@ -0,0 +1,2 @@
+name epspdfconversion
+category Package