summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/standalone
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-04-07 23:01:16 +0000
committerKarl Berry <karl@freefriends.org>2011-04-07 23:01:16 +0000
commit91851e5c767571e6cbab9de9dc575a9ef01dc3ba (patch)
tree4404d3d5355fae0789534b0a62c84cb816afb6a6 /Master/texmf-dist/tex/latex/standalone
parent29415daadb70dd736d4b501cc341c63c536ac611 (diff)
standalone (7apr11)
git-svn-id: svn://tug.org/texlive/trunk@22017 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/standalone')
-rw-r--r--Master/texmf-dist/tex/latex/standalone/standalone.cfg4
-rw-r--r--Master/texmf-dist/tex/latex/standalone/standalone.cls4
-rw-r--r--Master/texmf-dist/tex/latex/standalone/standalone.sty110
-rw-r--r--Master/texmf-dist/tex/latex/standalone/standalone.tex4
4 files changed, 8 insertions, 114 deletions
diff --git a/Master/texmf-dist/tex/latex/standalone/standalone.cfg b/Master/texmf-dist/tex/latex/standalone/standalone.cfg
index 308dc5cccd5..e96a300647e 100644
--- a/Master/texmf-dist/tex/latex/standalone/standalone.cfg
+++ b/Master/texmf-dist/tex/latex/standalone/standalone.cfg
@@ -1,5 +1,5 @@
-% $Id: standalone.dtx 2194 2011-02-28 19:26:29Z martin $
-\ProvidesFile{standalone.cfg}[2010/02/28 v0.4 Default configuration file for 'standalone' class]%
+% $Id: standalone.dtx 2451 2011-04-07 11:40:38Z martin $
+\ProvidesFile{standalone.cfg}[2011/04/07 v0.4a Default configuration file for 'standalone' class]%
\PassOptionsToPackage{active,tightpage}{preview}%
\ifstandalonebeamer
diff --git a/Master/texmf-dist/tex/latex/standalone/standalone.cls b/Master/texmf-dist/tex/latex/standalone/standalone.cls
index e4fbcbc12c1..363cd18ce0e 100644
--- a/Master/texmf-dist/tex/latex/standalone/standalone.cls
+++ b/Master/texmf-dist/tex/latex/standalone/standalone.cls
@@ -25,9 +25,9 @@
%% This work consists of the files standalone.dtx, standalone.ins
%% and the derived file standalone.sty.
%%
-% $Id: standalone.dtx 2194 2011-02-28 19:26:29Z martin $
+% $Id: standalone.dtx 2451 2011-04-07 11:40:38Z martin $
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{standalone} [2010/02/28 v0.4 Class to compile TeX sub-files standalone]
+\ProvidesClass{standalone} [2011/04/07 v0.4a Class to compile TeX sub-files standalone]
\newif\ifstandalone
\standalonetrue
\newif\ifstandalonebeamer
diff --git a/Master/texmf-dist/tex/latex/standalone/standalone.sty b/Master/texmf-dist/tex/latex/standalone/standalone.sty
index 4c83a7d2bd3..ce7c503e2bb 100644
--- a/Master/texmf-dist/tex/latex/standalone/standalone.sty
+++ b/Master/texmf-dist/tex/latex/standalone/standalone.sty
@@ -25,9 +25,9 @@
%% This work consists of the files standalone.dtx, standalone.ins
%% and the derived file standalone.sty.
%%
-% $Id: standalone.dtx 2194 2011-02-28 19:26:29Z martin $
+% $Id: standalone.dtx 2451 2011-04-07 11:40:38Z martin $
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{standalone} [2010/02/28 v0.4 Package to include TeX sub-files with preambles]
+\ProvidesPackage{standalone} [2011/04/07 v0.4a Package to include TeX sub-files with preambles]
\expandafter\newif\csname ifstandalone\endcsname
\standalonefalse
\@ifundefined{ifstandalonebeamer}{%
@@ -539,112 +539,6 @@
\def\sa@atenddocument{%
\unskip
}%
-\expandafter\ifx\csname sa@mode\endcsname\relax\else
-\RequirePackage{gincltex}
-\RequirePackage{ifpdf}
-\ifpdf
- \def\sa@graphicext{.pdf}
-\else
- \def\sa@graphicext{.eps}
-\fi
-
-\def\sa@comparegranpic#1{%
- \begingroup
- \let\next\empty
- \expandafter\sa@comparegranpic@\pdffilemoddate{#1\sa@graphicext}\relax
- \let\sa@picdate\sa@date
- \let\sa@pictime\sa@time
- \expandafter\sa@comparegranpic@\pdffilemoddate{#1.tex}\relax
- \ifnum\sa@date>\sa@picdate\relax
- \def\next{\sa@buildgraphic{#1}}%
- \else
- \ifnum\sa@date=\sa@picdate\relax
- \ifnum\sa@time>\sa@pictime\relax
- \def\next{\sa@buildgraphic{#1}}%
- \fi
- \fi
- \fi
- \expandafter
- \endgroup
- \next
-}
-
-\begingroup
-\@makeother\D
-\@makeother:
-\global\@namedef{sa@comparegranpic@}D:#1#2#3#4#5#6#7#8#9\relax{%
- \def\sa@date{#1#2#3#4#5#6#7#8}%
- \sa@comparegranpic@@#9\relax
-}
-\endgroup
-
-\def\sa@comparegranpic@@#1#2#3#4#5#6#7\relax{%
- \def\sa@time{#1#2#3#4#5#6}%
- \def\sa@tz{#7}%
-}
-
-\def\sa@compilecmd{\ifpdf pdf\fi latex --interaction=batchmode \image}%
-
-\def\sa@buildgraphic#1{%
- \ifeof18
- \PackageError{standalone}{Shell escape needed to create graphic!}{}%
- \else
- \begingroup
- \def\image{#1}%
- \immediate\write18{\sa@compilecmd}%
- \endgroup
- \fi
-}
-
-\newcommand*\includestandalone[2][]{%
- \begingroup
- \edef\@tempa{{#2\sa@graphicext}}%
- \expandafter\includestandalone@\@tempa{#2}{#1}%
- \endgroup
-}
-
-%% 0 = PDF if exists, TEX otherwise
-%% 1 = force TEX
-%% 2 = force PDF
-%% 3 = build PDF if not exists
-%% 4 = build PDF if older than TEX
-\def\includestandalone@#1#2#3{%
- \ifcase\sa@mode
- \relax% 0
- \IfFileExists{#1}%
- {\includegraphics[#3]{#1}}%
- {\includegraphics[#3]{#2.tex}}%
- \or% 1
- \includegraphics[#3]{#2.tex}%
- \or% 2
- \includegraphics[#3]{#1}%
- \or% 3
- \IfFileExists{#1}%
- {\includegraphics[#3]{#1}}%
- {\sa@buildgraphic{#2}%
- \IfFileExists{#1}%
- {\includegraphics[#3]{#1}}%
- {\PackageWarning{standalone}%
- {Graphic '#1' could not be build.^^J%
- Shell escape activated?}%
- \includegraphics[#3]{#2.tex}%
- }%
- }%
- \else% 4
- \IfFileExists{#1}%
- {\sa@comparegranpic{#2}}%
- {\sa@buildgraphic{#2}%
- \IfFileExists{#1}%
- {\includegraphics[#3]{#1}}%
- {\PackageWarning{standalone}%
- {Graphic '#1' could not be build.^^J%
- Shell escape activated?}%
- \includegraphics[#3]{#2.tex}%
- }%
- }%
- \fi
-}
-\fi
\endinput
%%
%% End of file `standalone.sty'.
diff --git a/Master/texmf-dist/tex/latex/standalone/standalone.tex b/Master/texmf-dist/tex/latex/standalone/standalone.tex
index 251f6f6e175..4d1617fbe91 100644
--- a/Master/texmf-dist/tex/latex/standalone/standalone.tex
+++ b/Master/texmf-dist/tex/latex/standalone/standalone.tex
@@ -1,5 +1,5 @@
-% $Id: standalone.dtx 2194 2011-02-28 19:26:29Z martin $
-\ProvidesFile{standalone.tex}[2010/02/28 v0.4 Provides if-switch to show if file is compiled standalone]%
+% $Id: standalone.dtx 2451 2011-04-07 11:40:38Z martin $
+\ProvidesFile{standalone.tex}[2011/04/07 v0.4a Provides if-switch to show if file is compiled standalone]%
\expandafter\ifx\csname ifstandalone\endcsname\relax
\expandafter\newif\csname ifstandalone\endcsname
\expandafter\ifx\csname @twoclasseserror\endcsname\documentclass