summaryrefslogtreecommitdiff
path: root/graphics/pgf/base/tex/context/utilities
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pgf/base/tex/context/utilities')
-rw-r--r--graphics/pgf/base/tex/context/utilities/t-pgfcal.tex37
-rw-r--r--graphics/pgf/base/tex/context/utilities/t-pgffor.tex38
-rw-r--r--graphics/pgf/base/tex/context/utilities/t-pgfkey.tex35
-rw-r--r--graphics/pgf/base/tex/context/utilities/t-pgfmod.tex52
-rw-r--r--graphics/pgf/base/tex/context/utilities/t-pgfrcs.tex43
5 files changed, 205 insertions, 0 deletions
diff --git a/graphics/pgf/base/tex/context/utilities/t-pgfcal.tex b/graphics/pgf/base/tex/context/utilities/t-pgfcal.tex
new file mode 100644
index 0000000000..16e65ab6dc
--- /dev/null
+++ b/graphics/pgf/base/tex/context/utilities/t-pgfcal.tex
@@ -0,0 +1,37 @@
+% Copyright 2018 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.
+%
+% See the file doc/generic/pgf/licenses/LICENSE for more details.
+
+% ConTeXt module pgfcalendar.
+\writestatus{loading}{ConTeXt User Module / pgfcalendar}
+
+\unprotect
+\startmodule[pgfcal]
+
+
+\ifx\pgfcalendardefined\undefined
+\let\pgfcalendardefined=\relax
+
+\input t-pgfrcs.tex
+
+\edef\pgfcalendaratcode{\the\catcode`\@}
+\edef\pgfcalendarbarcode{\the\catcode`\|}
+\catcode`\@=11
+\catcode`\|=12
+
+\input pgfcalendar.code.tex
+
+\catcode`\@=\pgfcalendaratcode
+\catcode`\|=\pgfcalendarbarcode
+
+\fi
+
+\stopmodule
+
+\protect
+\endinput
diff --git a/graphics/pgf/base/tex/context/utilities/t-pgffor.tex b/graphics/pgf/base/tex/context/utilities/t-pgffor.tex
new file mode 100644
index 0000000000..e233f8bc4d
--- /dev/null
+++ b/graphics/pgf/base/tex/context/utilities/t-pgffor.tex
@@ -0,0 +1,38 @@
+% Copyright 2018 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.
+%
+% See the file doc/generic/pgf/licenses/LICENSE for more details.
+
+% ConTeXt module pgffor.
+\writestatus{loading}{ConTeXt User Module / pgffor}
+
+\unprotect
+\startmodule[pgffor]
+
+
+\ifx\pgffordefined\undefined
+\let\pgffordefined=\relax
+
+\input t-pgfrcs.tex
+\input t-pgfkey.tex
+
+\edef\pgfforatcode{\the\catcode`\@}
+\edef\pgfforbarcode{\the\catcode`\|}
+\catcode`\@=11
+\catcode`\|=12
+
+\input pgffor.code.tex
+
+\catcode`\@=\pgfforatcode
+\catcode`\|=\pgfforbarcode
+
+\fi
+
+\stopmodule
+
+\protect
+\endinput
diff --git a/graphics/pgf/base/tex/context/utilities/t-pgfkey.tex b/graphics/pgf/base/tex/context/utilities/t-pgfkey.tex
new file mode 100644
index 0000000000..2d62486ea6
--- /dev/null
+++ b/graphics/pgf/base/tex/context/utilities/t-pgfkey.tex
@@ -0,0 +1,35 @@
+% Copyright 2018 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.
+%
+% See the file doc/generic/pgf/licenses/LICENSE for more details.
+
+% ConTeXt module pgfkeys.
+\writestatus{loading}{ConTeXt User Module / pgfkey}
+
+\unprotect
+\startmodule[pgfkey]
+
+
+\ifx\pgfkeysdefined\undefined
+\let\pgfkeysdefined=\relax
+
+\edef\pgfkeysatcode{\the\catcode`\@}
+\edef\pgfkeysbarcode{\the\catcode`\|}
+\catcode`\@=11
+\catcode`\|=12
+
+\input pgfkeys.code.tex
+
+\catcode`\@=\pgfkeysatcode
+\catcode`\|=\pgfkeysbarcode
+
+\fi
+
+\stopmodule
+
+\protect
+\endinput
diff --git a/graphics/pgf/base/tex/context/utilities/t-pgfmod.tex b/graphics/pgf/base/tex/context/utilities/t-pgfmod.tex
new file mode 100644
index 0000000000..d10b2c9d99
--- /dev/null
+++ b/graphics/pgf/base/tex/context/utilities/t-pgfmod.tex
@@ -0,0 +1,52 @@
+% Copyright 2018 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.
+%
+% See the file doc/generic/pgf/licenses/LICENSE for more details.
+
+
+\writestatus{loading}{ConTeXt User Module / pgfmodules}
+
+\unprotect
+\startmodule[pgfmod]
+
+
+% ConTeXt module pgfmodules.
+
+% This module defines the correct names for the context modules.
+%
+% This is necessary because context cuts down all module names to 6
+% characters.
+%
+% One starts to wonder whether context was already used in the Apollo
+% missions...
+
+\ifx\pgfmoddefined\undefined
+\let\pgfmoddefined=\relax
+
+\definefilesynonym [pgfmath] [pgfmat]
+\definefilesynonym [pgfkeys] [pgfkey]
+
+\definefilesynonym [pgfcore] [pgfcor]
+
+\definefilesynonym [pgfbasesnakes] [pgfbsn]
+\definefilesynonym [pgfbaseshapes] [pgfbsh]
+\definefilesynonym [pgfbaseplots] [pgfbpl]
+\definefilesynonym [pgfbaselayers] [pgfbla]
+\definefilesynonym [pgfbaseimage] [pgfbim]
+\definefilesynonym [pgfbasepatterns] [pgfbpt]
+\definefilesynonym [pgfbasematrix] [pgfbma]
+\definefilesynonym [pgfbasetransparency] [pgfbtr]
+
+\definefilesynonym [pgfcalendar] [pgfcal]
+
+
+\fi
+
+\stopmodule
+
+\protect
+\endinput
diff --git a/graphics/pgf/base/tex/context/utilities/t-pgfrcs.tex b/graphics/pgf/base/tex/context/utilities/t-pgfrcs.tex
new file mode 100644
index 0000000000..51456b7d45
--- /dev/null
+++ b/graphics/pgf/base/tex/context/utilities/t-pgfrcs.tex
@@ -0,0 +1,43 @@
+% Copyright 2018 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.
+%
+% See the file doc/generic/pgf/licenses/LICENSE for more details.
+
+% ConTeXt module pgfrcs.
+\writestatus{loading}{ConTeXt User Module / pgfrcs}
+
+\unprotect
+\startmodule[pgfrcs]
+
+
+\ifx\pgfrcsdefined\undefined
+\let\pgfrcsdefined=\relax
+
+\input t-pgfmod.tex
+
+\edef\pgfrcsatcode{\the\catcode`\@}
+\edef\pgfrcsbarcode{\the\catcode`\|}
+\edef\pgfrcsexclaimcode{\the\catcode`\!}
+\catcode`\@=11
+\catcode`\|=12
+\catcode`\!=12
+
+\input pgfutil-common.tex
+\input pgfutil-context.def
+
+\input pgfrcs.code.tex
+
+\catcode`\@=\pgfrcsatcode
+\catcode`\|=\pgfrcsbarcode
+\catcode`\!=\pgfrcsexclaimcode
+
+\fi
+
+\stopmodule
+
+\protect
+\endinput