diff options
author | Norbert Preining <preining@logic.at> | 2021-04-04 01:48:06 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2021-04-04 01:48:06 +0000 |
commit | 010fef6beed8d8f505513fdc9c92bc110a954082 (patch) | |
tree | d6ab85ab8f4047a0dc16d667ceeea267cd5afe02 /Master/texmf-dist/tex/latex/dynkin-diagrams | |
parent | 78f1d3c8ecc919923e32ecc9e57f5bf91e0f4bb5 (diff) |
dynkin-diagrams (4apr21)
git-svn-id: svn://tug.org/texlive/trunk@58718 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/dynkin-diagrams')
-rw-r--r-- | Master/texmf-dist/tex/latex/dynkin-diagrams/dynkin-diagrams.sty | 76 |
1 files changed, 30 insertions, 46 deletions
diff --git a/Master/texmf-dist/tex/latex/dynkin-diagrams/dynkin-diagrams.sty b/Master/texmf-dist/tex/latex/dynkin-diagrams/dynkin-diagrams.sty index 0a6191599fa..df3bc2ef693 100644 --- a/Master/texmf-dist/tex/latex/dynkin-diagrams/dynkin-diagrams.sty +++ b/Master/texmf-dist/tex/latex/dynkin-diagrams/dynkin-diagrams.sty @@ -1,6 +1,6 @@ % The Dynkin Diagrams package. % -% Version 3.14159265358979 +% Version 3.141592653589793 % % This package draws Dynkin diagrams in LaTeX % documents, using the TikZ package. @@ -13,7 +13,7 @@ % Released under the LaTeX Project Public License v1.3c or later, see % http://www.latex-project.org/lppl.txt \NeedsTeXFormat{LaTeX2e}[1994/06/01] -\ProvidesPackage{dynkin-diagrams}[2020/04/30 Dynkin diagrams] +\ProvidesPackage{dynkin-diagrams}[2021/03/31 Dynkin diagrams] \RequirePackage{tikz} \RequirePackage{xstring} \RequirePackage{xparse} @@ -161,9 +161,10 @@ }% _% {% - \IfStrEq{\dynkin@user@string}{}% - {\dynkin@indefinite@number@symbol}% - {\ifdynkin@Satake@diagram% + \ifx\dynkin@user@string\empty\relax% + \dynkin@indefinite@number@symbol% + \else% + \ifdynkin@Satake@diagram% \dynkin@user@string% \else% \IfStrEq{\dynkin@user@string}{even}{ev}% @@ -174,7 +175,7 @@ }% }% \fi% - }% + \fi% \IfStrEq{\dynkin@parabolic}{0}% {}% {,\dynkin@parabolic} @@ -210,7 +211,6 @@ \NewDocumentCommand\dynkinRefreshRoots{}% {% -??? \dynkin@override@label@directions{}% \dynkin@draw@all@roots{}% \ifdynkin@label@the@roots% @@ -296,10 +296,8 @@ Allowed values are up to \the\dynkin@nodes}% {}% \fi% - \IfStrEq{#3}{}% - {% - }% - {% + \ifx#3\empty\relax% + \else% \dynkin@rpo=#2\relax% \advance\dynkin@rpo by 1\relax% \IfBooleanTF{#1}% @@ -331,7 +329,7 @@ ]% at (\dynkin@root@name #2){};% }% - }% + \fi% }% \newcounter{dynkinRootNo} \NewDocumentCommand\@dynkinLabelThisRoot{m}% @@ -461,7 +459,7 @@ \newcommand{\dynkinPrintLabels}% {% \dynkin@check@if@in@tikZ% - \IfStrEq{\dynkin@label@list}{}{% + \ifx\dynkin@label@list\empty\relax% \foreach \i in {1,...,\the\dynkin@nodes}{\dynkinLabelRoot{\i}{\i}}% \ifdynkin@is@extended% \dynkinLabelRoot{0}{0}% @@ -470,8 +468,7 @@ \dynkinLabelRoot{0}{0}% \fi% \fi% - }% - {% + \else% \ifdynkin@is@extended% \setcounter{dynkinRootNo}{-1}% \else% @@ -481,8 +478,7 @@ \setcounter{dynkinRootNo}{0}% \fi% \fi% - \edef\XXX{\dynkin@label@list}% - \foreach \i in \XXX% + \foreach \i in \dynkin@label@list% {% \@dynkinLabelThisRoot{\i}% }% @@ -495,14 +491,14 @@ \setcounter{dynkinRootNo}{0}% \fi% \fi% - }% + \fi% }% % Print alternate location labels. \newcommand{\dynkinPrintLabelsStar}% {% \dynkin@check@if@in@tikZ% - \IfStrEq{\dynkin@label@list@star}{}{% + \ifx\dynkin@label@list@star\empty\relax% \foreach \i in {1,...,\the\dynkin@nodes}{\dynkinLabelRoot*{\i}{\i}}% \ifdynkin@is@extended% \dynkinLabelRoot*{0}{0}% @@ -511,8 +507,7 @@ \dynkinLabelRoot*{0}{0}% \fi% \fi% - }% - {% + \else% \ifdynkin@is@extended% \setcounter{dynkinRootNo}{-1}% \else% @@ -522,8 +517,7 @@ \setcounter{dynkinRootNo}{0}% \fi% \fi% - \edef\XXX{\dynkin@label@list@star}% - \foreach \i in \XXX% + \foreach \i in \dynkin@label@list@star% {% \@dynkinLabelThisRootStar{\i}% }% @@ -536,23 +530,23 @@ \setcounter{dynkinRootNo}{0}% \fi% \fi% - }% + \fi% }% %% \dynkinEdgeLabel{<n1>}{<n2>}{<s>} %% Prints <s> between root <n1> and <n2> on the current Dynkin diagram in the current root ordering. \NewDocumentCommand\dynkinEdgeLabel{mmm}% {% - \convertRootPair{#1}{#2}% - \node[inner sep=\dynkin@root@radius,% - label={% - [/Dynkin diagram/text style,/Dynkin diagram/edge label]% - above: - \(\pgfkeys{/Dynkin diagram/label macro*=#3}\)% - }% - ] - at ($.5*(\dynkin@root@name \the\@dynkin@from@root)+.5*(\dynkin@root@name \the\@dynkin@to@root)$) - {}; + \convertRootPair{#1}{#2}% + \node[inner sep=\dynkin@root@radius,% + label={% + [/Dynkin diagram/text style,/Dynkin diagram/edge label]% + above: + \(\pgfkeys{/Dynkin diagram/label macro*=#3}\)% + }% + ] + at ($.5*(\dynkin@root@name \the\@dynkin@from@root)+.5*(\dynkin@root@name \the\@dynkin@to@root)$) + {}; }% @@ -2735,18 +2729,8 @@ \ifdynkin@is@upsidedown% \tikzset{yscale=-1}% \fi% - \IfStrEq{\dynkin@label@list}{}% - {% - }% - {% - \global\dynkin@label@the@rootstrue% - }% - \IfStrEq{\dynkin@label@list@star}{}% - {% - }% - {% - \global\dynkin@label@star@the@rootstrue% - }% + \ifx\dynkin@label@list\empty\relax\else\global\dynkin@label@the@rootstrue\fi% +\ifx\dynkin@label@list@star\empty\relax\else\global\dynkin@label@star@the@rootstrue\fi% \xdef\dynkin@user@series{#2}% \xdef\dynkin@twisted@series{#3}% \xdef\dynkin@user@string{#4}% |