summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/pgf/utilities/pgfutil-context.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgf/utilities/pgfutil-context.def')
-rw-r--r--Master/texmf-dist/tex/generic/pgf/utilities/pgfutil-context.def62
1 files changed, 26 insertions, 36 deletions
diff --git a/Master/texmf-dist/tex/generic/pgf/utilities/pgfutil-context.def b/Master/texmf-dist/tex/generic/pgf/utilities/pgfutil-context.def
index ebd9780372c..4cd975d6600 100644
--- a/Master/texmf-dist/tex/generic/pgf/utilities/pgfutil-context.def
+++ b/Master/texmf-dist/tex/generic/pgf/utilities/pgfutil-context.def
@@ -11,14 +11,11 @@
% The aux files, needed for reading back coordinates
-
-\newwrite\pgfutil@auxout
-\pgfutil@IfFileExists{\jobname.aux}{\input \jobname.aux\relax}{}
-\openout\pgfutil@auxout
-% Hmm, is there a better file for use with ConTeXt?
-
-
-
+\def\pgfutil@aux@read@hook{
+ \pgfutil@IfFileExists{\jobname.pgf}{\input \jobname.pgf\relax}{}
+ \csname newwrite\endcsname\pgfutil@auxout
+ \csname openout\endcsname\pgfutil@auxout\jobname.pgf
+}
% XColor-like support for ConTeXt
@@ -207,6 +204,27 @@
\def\pgfutil@font@itshape{\it}
\def\pgfutil@font@bfseries{\bf}
+\let\pgfutil@font@normalfont=\rm
+
+\let\pgfutil@selectfont=\rm
+
+
+% Extra counters, registers, boxes
+
+\newcount\pgfutil@tempcnta
+\newcount\pgfutil@tempcntb
+
+\newbox\pgfutil@tempboxa
+
+\newdimen\pgfutil@tempdima
+\newdimen\pgfutil@tempdimb
+
+
+% Module stuff
+
+\def\pgfutil@usemodule#1{\usemodule[#1]}
+
+
% The following is still messy and needs to be cleanup up (everything
% prefixed by pgfutil@):
@@ -216,27 +234,6 @@
\def\PackageError#1#2#3{\immediate\write-1{Package #1: Error! #2.}}%
\long\def\AtBeginDocument#1{#1}%
\long\def\AtBeginDvi#1{#1}%
-\def\providecommand#1#2{\ifx#1\@undefined\def#1{#2}\fi}
-
-\def\pgflatex@setcounter#1#2{\global\csname c@#1\endcsname#2\relax}%
-
-\def\setlength#1#2{%
- \pgf@length@skip=0pt%
- \edef\pgf@temp{#2}%
- \expandafter\pgfutil@parse@setlength\pgf@temp+\pgf@stop%
- #1=\pgf@length@skip%
-}
-\def\pgfutil@parse@setlength#1+#2\pgf@stop{%
- \advance\pgf@length@skip by#1\relax%
- \def\pgf@test{#2}%
- \ifx\pgf@test\pgfutil@empty%
- \else%
- \pgfutil@parse@setlength#2\pgf@stop%
- \fi%
-}
-\def\addtolength#1#2{\setlength{\pgf@length@skip}{#2}\advance#1 \pgf@length@skip\relax}
-\def\selectfont{\rm}
-\def\applycolormixins#1{}
\ifx\setkeys\@undefined
\def\setkeys#1#2{%
@@ -296,12 +293,5 @@
\newtoks\KV@toks@
-\newdimen\@tempdima
-\newdimen\@tempdimb
-\newcount\@tempcnta
-\newcount\@tempcntb
-\newbox\@tempboxa
-\newskip\pgf@length@skip
-
\endinput