diff options
author | Karl Berry <karl@freefriends.org> | 2019-08-20 20:44:55 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-08-20 20:44:55 +0000 |
commit | cbb5e2fbb4d58170c4b508755e2b104192a48966 (patch) | |
tree | 7933e512838e528c354d23192160ff5b112263d7 /Master/texmf-dist/tex | |
parent | b91f083eda084808b59b93d32baee2e9d1abd7fa (diff) |
tikz-feynhand (20aug19)
git-svn-id: svn://tug.org/texlive/trunk@51915 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
3 files changed, 69 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/tikz-feynhand/tikz-feynhand.sty b/Master/texmf-dist/tex/latex/tikz-feynhand/tikz-feynhand.sty index f78d0886f96..205b451fa74 100644 --- a/Master/texmf-dist/tex/latex/tikz-feynhand/tikz-feynhand.sty +++ b/Master/texmf-dist/tex/latex/tikz-feynhand/tikz-feynhand.sty @@ -1,9 +1,9 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % -% TikZ-FeynHand, Version 1.0.0 of 2018/01/31 +% TikZ-FeynHand, Version 1.1.0 of 2019/08/19 % Feynhand Diagrams with TikZ (LaTex manual version) -% Copyright (C) 2018 Max Dohse +% Copyright (C) 2019 Max Dohse % Copyright (C) 2016 Joshua Ellis % % @@ -27,7 +27,7 @@ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\def\tikzfeynhand@date{2018/01/31} +\def\tikzfeynhand@date{2019/08/19} \def\tikzfeynhand@version@major{1} \def\tikzfeynhand@version@minor{1} \def\tikzfeynhand@version@patch{0} diff --git a/Master/texmf-dist/tex/latex/tikz-feynhand/tikzfeynhand.keys.code.tex b/Master/texmf-dist/tex/latex/tikz-feynhand/tikzfeynhand.keys.code.tex index 4e78722938b..50b6de23f21 100644 --- a/Master/texmf-dist/tex/latex/tikz-feynhand/tikzfeynhand.keys.code.tex +++ b/Master/texmf-dist/tex/latex/tikz-feynhand/tikzfeynhand.keys.code.tex @@ -1,9 +1,9 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % -% TikZ-FeynHand, Version 1.0.0 of 2018/01/31 +% TikZ-FeynHand, Version 1.1.0 of 2019/08/19 % Feynhand Diagrams with TikZ (LaTex manual version) -% Copyright (C) 2018 Max Dohse +% Copyright (C) 2019 Max Dohse % Copyright (C) 2016 Joshua Ellis % % @@ -625,6 +625,54 @@ }, }, insertion@@/.default={[]0.5}, + %% + %% Slashes + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + slash/.search also={/tikzfeynhand,/tikz}, + %% Parameters + slash/size/.store in=\tikzfeynhand@slash@size, + slash/size=5\feynhandlinesize, + slash/style/.store in=\tikzfeynhand@slash@style, + slash/style={}, + %% Styles + slash@@/.style args={[#1]#2}{ + /tikz/line width = \feynhandlinesize, + /tikz/decoration={ + markings, + mark=at position #2 with { + \tikzfeynhandset{slash/.cd,#1} + \draw [\tikzfeynhand@slash@style] (-\tikzfeynhand@slash@size, -2*\tikzfeynhand@slash@size) -- (\tikzfeynhand@slash@size, 2*\tikzfeynhand@slash@size); + }, + }, + /tikz/postaction={ + /tikz/decorate=true, + }, + }, + slash@@/.default={[]0.5}, + %% + %% Backslashes + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + backslash/.search also={/tikzfeynhand,/tikz}, + %% Parameters + backslash/size/.store in=\tikzfeynhand@backslash@size, + backslash/size=5\feynhandlinesize, + backslash/style/.store in=\tikzfeynhand@backslash@style, + backslash/style={}, + %% Styles + backslash@@/.style args={[#1]#2}{ + /tikz/line width = \feynhandlinesize, + /tikz/decoration={ + markings, + mark=at position #2 with { + \tikzfeynhandset{backslash/.cd,#1} + \draw [\tikzfeynhand@backslash@style] (-\tikzfeynhand@backslash@size, 2*\tikzfeynhand@backslash@size) -- (\tikzfeynhand@backslash@size, -2*\tikzfeynhand@backslash@size); + }, + }, + /tikz/postaction={ + /tikz/decorate=true, + }, + }, + backslash@@/.default={[]0.5}, %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Momentum arrows %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/Master/texmf-dist/tex/latex/tikz-feynhand/tikzlibraryfeynhand.code.tex b/Master/texmf-dist/tex/latex/tikz-feynhand/tikzlibraryfeynhand.code.tex index 27d8bc5c7e8..02f3495735e 100644 --- a/Master/texmf-dist/tex/latex/tikz-feynhand/tikzlibraryfeynhand.code.tex +++ b/Master/texmf-dist/tex/latex/tikz-feynhand/tikzlibraryfeynhand.code.tex @@ -1,9 +1,9 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % -% TikZ-FeynHand, Version 1.0.0 of 2018/01/31 +% TikZ-FeynHand, Version 1.1.0 of 2019/08/19 % Feynhand Diagrams with TikZ (LaTex manual version) -% Copyright (C) 2018 Max Dohse +% Copyright (C) 2019 Max Dohse % Copyright (C) 2016 Joshua Ellis % % This LaTeX file and the whole package are free: @@ -225,6 +225,20 @@ {\tikzfeynhand@key@opt{insertion@@}[]}} \pgfkeyslet{/tikzfeynhand/insertion/.@cmd}{\tikzfeynhand@insertion} +%% Slash +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\def\tikzfeynhand@slash{% + \pgfutil@ifnextchar[{\tikzfeynhand@key@opt{slash@@}} + {\tikzfeynhand@key@opt{slash@@}[]}} +\pgfkeyslet{/tikzfeynhand/slash/.@cmd}{\tikzfeynhand@slash} + +%% Backslash +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\def\tikzfeynhand@backslash{% + \pgfutil@ifnextchar[{\tikzfeynhand@key@opt{backslash@@}} + {\tikzfeynhand@key@opt{backslash@@}[]}} +\pgfkeyslet{/tikzfeynhand/backslash/.@cmd}{\tikzfeynhand@backslash} + %% Momentum %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\tikzfeynhand@momentum@std{% |