summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/commutative-diagrams
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-06-06 21:11:51 +0000
committerKarl Berry <karl@freefriends.org>2020-06-06 21:11:51 +0000
commit204a15684f2ee547b4b0816480b87b3c30d3ef6f (patch)
tree34c8f919e87413a026b3718c985735de7368f19c /Master/texmf-dist/tex/latex/commutative-diagrams
parent632dd1c4a26f2687cefe49e59c2071c4f7b2c5ee (diff)
commutative-diagrams (6jun20)
git-svn-id: svn://tug.org/texlive/trunk@55438 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/commutative-diagrams')
-rw-r--r--Master/texmf-dist/tex/latex/commutative-diagrams/commutative-diagrams.sty14
-rw-r--r--Master/texmf-dist/tex/latex/commutative-diagrams/kodi.sty60
2 files changed, 74 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/commutative-diagrams/commutative-diagrams.sty b/Master/texmf-dist/tex/latex/commutative-diagrams/commutative-diagrams.sty
new file mode 100644
index 00000000000..63bfde447f4
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/commutative-diagrams/commutative-diagrams.sty
@@ -0,0 +1,14 @@
+%
+% CoDi: Commutative Diagrams for TeX
+% Copyright (c) 2015-2020 Paolo Brasolin <paolo.brasolin@gmail.com>
+% SPDX-License-Identifier: MIT
+%
+% This file is part of CoDi 1.0.0, released on 2020/06/06 under MIT license.
+%
+
+\RequirePackage{tikz}%[2013/12/13] % pgf version 3.0.0 required
+\ProvidesPackage{commutative-diagrams}[2020/06/06 1.0.0 CoDi: Commutative Diagrams for TeX]
+\usetikzlibrary{commutative-diagrams}
+\let\codi\kDRammaOpen
+\let\endcodi\kDRammaShut
+\endinput
diff --git a/Master/texmf-dist/tex/latex/commutative-diagrams/kodi.sty b/Master/texmf-dist/tex/latex/commutative-diagrams/kodi.sty
new file mode 100644
index 00000000000..9443a2d8b01
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/commutative-diagrams/kodi.sty
@@ -0,0 +1,60 @@
+%
+% CoDi: Commutative Diagrams for TeX
+% Copyright (c) 2015-2020 Paolo Brasolin <paolo.brasolin@gmail.com>
+% SPDX-License-Identifier: MIT
+%
+% This file is part of CoDi 1.0.0, released on 2020/06/06 under MIT license.
+%
+
+\RequirePackage{commutative-diagrams}
+
+\PackageWarningNoLine{kodi}{this package is only a compatibility layer
+to help you migrate from 'kodi' to 'commutative-diagrams'. It is NOT
+intended for production use. Please solve all other warnings and then
+switch to 'commutative-diagrams'}
+
+% TikZ keys: /kodi/**/* -> /codi/**/*
+
+\pgfkeys{
+ /handlers/.unknown/.code={%
+ \def\pgfkeysisdescendantof@impl/##1/##2\pgf@@eov{%
+ \def\wot{##1}%
+ \def\asd{kD}%
+ \ifx\wot\asd
+ \def\tmp{/codi/##2}%
+ \PackageWarning{kodi}{automatically remapped key '\pgfkeyscurrentkey'
+ to key '\tmp'. Please switch to the latter}
+ \ifx\pgfkeyscurrentvalue\pgfkeysnovalue
+ \expandafter\pgfkeysalso\expandafter{\tmp}%
+ \else
+ \expandafter\expandafter\expandafter\pgfkeysalso\expandafter\expandafter\expandafter{\expandafter\expandafter\expandafter\tmp\expandafter=\pgfkeyscurrentvalue}%
+ \fi
+ \else
+ % NOTE: this is the default /handlers/.unknown/.code
+ \def\pgf@marshal{\pgfkeysvalueof{/errors/unknown key/.@cmd}}%
+ {\expandafter\expandafter\expandafter\pgf@marshal\expandafter\expandafter\expandafter{\expandafter\pgfkeyscurrentkey\expandafter}\expandafter{\pgfkeyscurrentvalue}\pgfeov}%
+ \fi
+ }%
+ \expandafter\pgfkeysisdescendantof@impl\pgfkeyscurrentkey\pgf@@eov
+ }
+}
+
+% TikZ key: /tikz/kodi -> /tikz/codi
+
+\pgfkeys{
+ /tikz/kodi/.code={%
+ \PackageWarning{kodi}{automatically remapped key '/tikz/kodi'
+ to key '/tikz/codi'. Please switch to the latter}%
+ \pgfkeysalso{/tikz/codi}%
+ }
+}
+
+% Environment: kodi -> codi
+
+\def\kodi{%
+ \PackageWarning{kodi}{automatically remapped environment 'kodi'
+ to environment 'codi'. Please switch to the latter}%
+ \codi}
+\let\endkodi\endcodi
+
+\endinput