diff options
author | Karl Berry <karl@freefriends.org> | 2014-04-08 22:20:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-04-08 22:20:48 +0000 |
commit | d213249d916724bc567b5c28883cf6965db2e18e (patch) | |
tree | d312409939a24d78081449664e8ff32a5654a427 /Master/texmf-dist/tex/latex/tqft/tqft.sty | |
parent | 2cf705b464bf17366d3da797f80f41965c54f85b (diff) |
tqft (8apr14)
git-svn-id: svn://tug.org/texlive/trunk@33411 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tqft/tqft.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/tqft/tqft.sty | 59 |
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'. |