summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tqft/tqft.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/tqft/tqft.sty')
-rw-r--r--Master/texmf-dist/tex/latex/tqft/tqft.sty59
1 files changed, 41 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/latex/tqft/tqft.sty b/Master/texmf-dist/tex/latex/tqft/tqft.sty
index 490c95867b2..a85df63cc49 100644
--- a/Master/texmf-dist/tex/latex/tqft/tqft.sty
+++ b/Master/texmf-dist/tex/latex/tqft/tqft.sty
@@ -6,14 +6,14 @@
%%
%% tqft.dtx (with options: `package')
%% ----------------------------------------------------------------
-%% tqft --- a style file for drawing TQFT diagrams with TikZ/PGF
+%% tqft --- a library for drawing TQFT diagrams with TikZ/PGF
%% E-mail: stacey@math.ntnu.no
%% Released under the LaTeX Project Public License v1.3c or later
%% See http://www.latex-project.org/lppl.txt
%% ----------------------------------------------------------------
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tqft}[2011/05/03 v1.0 Tikz/PGF commands for drawing TQFT diagrams]
+\ProvidesPackage{tqft}[2014/04/07 v2.0 Tikz/PGF commands for drawing TQFT diagrams]
\RequirePackage{pgfkeys}
\RequirePackage{pgf}
\def\pgf@tqft@minus{-}
@@ -40,22 +40,42 @@
\newdimen\tqft@w
\newif\iftqft@within@node
\pgfkeys{
- /tikz/tqft/.style={%
- /tikz/shape=tqft cobordism,
- /pgf/tqft,
- /tikz/every tqft
+ /tikz/tqft/use nodes/.is choice,
+ /tikz/tqft/use nodes/true/.code={%
+ \tikzset{
+ tqft/.style={%
+ /tikz/shape=tqft cobordism,
+ /pgf/tqft,
+ /tikz/every tqft/.try
+ },
+ tqft/.unknown/.code={%
+ \let\tqft@searchname=\pgfkeyscurrentname%
+ \pgfkeys{%
+ /pgf/tqft/\tqft@searchname={##1}
+ }
+ },
+ }%
},
- /pgf/tqft/.unknown/.code={%
- \let\tqft@searchname=\pgfkeyscurrentname%
- \pgfkeysalso{%
- /tikz/\tqft@searchname=#1
- }
+ /tikz/tqft/use nodes/false/.code={%
+ \tikzset{
+ tqft/.style={%
+ pic type=cobordism,
+ tqft/.cd,
+ every tqft/.try,
+ },
+ tqft/.unknown/.code={%
+ \let\tqft@searchname=\pgfkeyscurrentname%
+ \pgfkeys{%
+ /tikz/\tqft@searchname={##1}
+ }
+ },
+ }%
},
- /tikz/every tqft/.style={},
- /tikz/tqft/.unknown/.code={%
+ /tikz/tqft/use nodes=true,
+ /pgf/tqft/.unknown/.code={%
\let\tqft@searchname=\pgfkeyscurrentname%
\pgfkeysalso{%
- /pgf/tqft/\tqft@searchname=#1
+ /tikz/\tqft@searchname={#1}
}
},
/pgf/tqft/.is family,
@@ -744,10 +764,13 @@
%% This work is "maintained" (as per LPPL maintenance status) by
%% Andrew Stacey.
%%
-%% This work consists of the file tqft.dtx
-%% and the derived files tqft.ins,
-%% tqft.pdf, and
-%% tqft.sty.
+%% This work consists of the files tqft.dtx,
+%% tqft_doc.tex,
+%% and the derived files tqft.ins,
+%% tqft.pdf,
+%% tqft_doc.pdf,
+%% tqft.sty, and
+%% tikzlibrarytqft.code.tex.
%%
%%
%% End of file `tqft.sty'.