summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/pgf/utilities/pgf-latex-emulation.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgf/utilities/pgf-latex-emulation.tex')
-rw-r--r--Master/texmf-dist/tex/generic/pgf/utilities/pgf-latex-emulation.tex22
1 files changed, 15 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/generic/pgf/utilities/pgf-latex-emulation.tex b/Master/texmf-dist/tex/generic/pgf/utilities/pgf-latex-emulation.tex
index 139ac162264..257741a3c9a 100644
--- a/Master/texmf-dist/tex/generic/pgf/utilities/pgf-latex-emulation.tex
+++ b/Master/texmf-dist/tex/generic/pgf/utilities/pgf-latex-emulation.tex
@@ -1,10 +1,12 @@
-% This file is pgf-latex-emulation.tex
-
-% Copyright 2005 by Till Tantau <tantau@cs.tu-berlin.de>.
+% Copyright 2006 by Till Tantau
+%
+% This file may be distributed and/or modified
+%
+% 1. under the LaTeX Project Public License and/or
+% 2. under the GNU Public License.
%
-% This program can be redistributed and/or modified under the terms
-% of the LaTeX Project Public License Distributed from CTAN
-% archives in directory macros/latex/base/lppl.txt.
+% See the file doc/generic/pgf/licenses/LICENSE for more details.
+
\catcode`\@=11\relax
@@ -14,7 +16,6 @@
\else%
% Direct copy from latex.ltx:
-\long\def\@ifundefined#1#2#3{\expandafter\ifx\csname #1\endcsname\relax#2\else#3\fi}
\def\typeout#1{\immediate\write\@unused{#1}}
\alloc@7\write\chardef\sixt@@n\@unused
\let\@@par=\par
@@ -118,6 +119,10 @@
\gdef\Gin@driver{pdftex.def}%
\fi%
+% aux files
+\newwrite\@auxout
+\IfFileExists{\jobname.aux}{\input \jobname.aux\relax}{}
+\openout\@auxout
% Things that are not too clever, yet:
\def\selectfont{\rm}
@@ -144,6 +149,7 @@
\definecolor{purple}{rgb}{0.75,0,0.25}
\definecolor{brown}{rgb}{0.75,0.5,0.25}
+\ifx\color\@undefined
\def\color#1{%
\colorlet{.}{#1}%
\pgfsysprotocol@getcurrentprotocol\pgf@emu@temp%
@@ -156,6 +162,8 @@
\pgfsysprotocol@setcurrentprotocol\pgf@emu@temp%
\aftergroup\reset@color%
}
+\fi
+
\def\reset@color{%
\pgfsysprotocol@getcurrentprotocol\pgf@emu@temp%
{%