texlive[54948] Master/texmf-dist: dynkin-diagrams (30apr20)

commits+karl at tug.org commits+karl at tug.org
Thu Apr 30 23:27:15 CEST 2020


Revision: 54948
          http://tug.org/svn/texlive?view=revision&revision=54948
Author:   karl
Date:     2020-04-30 23:27:15 +0200 (Thu, 30 Apr 2020)
Log Message:
-----------
dynkin-diagrams (30apr20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/dynkin-diagrams/README
    trunk/Master/texmf-dist/doc/latex/dynkin-diagrams/dynkin-diagrams.pdf
    trunk/Master/texmf-dist/doc/latex/dynkin-diagrams/dynkin-diagrams.tex
    trunk/Master/texmf-dist/tex/latex/dynkin-diagrams/dynkin-diagrams.sty

Modified: trunk/Master/texmf-dist/doc/latex/dynkin-diagrams/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/dynkin-diagrams/README	2020-04-30 15:47:57 UTC (rev 54947)
+++ trunk/Master/texmf-dist/doc/latex/dynkin-diagrams/README	2020-04-30 21:27:15 UTC (rev 54948)
@@ -1,6 +1,6 @@
 Dynkin diagrams               
-v3.1415926535897
-19 March 2020
+v3.14159265358979
+30 April 2020
 
 Authors: 
 Ben McKay

Modified: trunk/Master/texmf-dist/doc/latex/dynkin-diagrams/dynkin-diagrams.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/dynkin-diagrams/dynkin-diagrams.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/dynkin-diagrams/dynkin-diagrams.tex	2020-04-30 15:47:57 UTC (rev 54947)
+++ trunk/Master/texmf-dist/doc/latex/dynkin-diagrams/dynkin-diagrams.tex	2020-04-30 21:27:15 UTC (rev 54948)
@@ -1,7 +1,7 @@
 \documentclass{amsart}
 \title[The Dynkin diagrams package]%
 {The Dynkin diagrams package \\ 
-Version 3.1415926535897}
+Version 3.14159265358979}
 %% My name:
 \makeatletter
 \DeclareRobustCommand{\scotsMc}{\scotsMcx{c}}
@@ -20,8 +20,7 @@
 \author{Ben \scotsMc{}Kay}
 \address{School of Mathematical Sciences,  University College Cork, Cork, Ireland}
 \email{b.mckay at ucc.ie}
-\date{19 March 2020}
-\usepackage{etex}
+\date{30 April 2020}
 \usepackage[T1]{fontenc}
 \usepackage[utf8]{inputenx}
 \usepackage{etoolbox} 
@@ -612,7 +611,8 @@
 
 \section{Style}
 \begin{tcblisting}{title={Colours}}
-\dynkin[
+\dynkin[extended,
+	o/.append style={fill=orange},
 	*/.style=blue!50!red,
 	edge length=.75cm,
 	edge/.style={blue!50,thick},
@@ -1621,8 +1621,8 @@
     \newcolumntype{#1}{>{\columncolor[gray]{.9}}>{$}m{#2cm}<{$}}
 }
 \nct{G}{.3}
-\nct{D}{2.1}
-\nct{W}{3}
+\nct{J}{2.1}
+\nct{K}{3}
 \nct{R}{3.7}
 \nct{S}{3}
 \NewDocumentCommand\LieG{}{\mathfrak{g}}
@@ -1635,7 +1635,7 @@
 }
 \renewcommand*{\arraystretch}{1.5}
 \NewDocumentCommand\quo{}{\text{quotient of } E_8}
-\begin{longtable}{@{}GDWRS@{}}
+\begin{longtable}{@{}GJKRS@{}}
 \LieG&
     \text{Diagram}&
     \text{Weights}&

Modified: trunk/Master/texmf-dist/tex/latex/dynkin-diagrams/dynkin-diagrams.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/dynkin-diagrams/dynkin-diagrams.sty	2020-04-30 15:47:57 UTC (rev 54947)
+++ trunk/Master/texmf-dist/tex/latex/dynkin-diagrams/dynkin-diagrams.sty	2020-04-30 21:27:15 UTC (rev 54948)
@@ -1,6 +1,6 @@
 % The Dynkin Diagrams package.
 %
-% Version 3.1415926535897
+% Version 3.14159265358979
 %
 % This package draws Dynkin diagrams in LaTeX 
 % documents, using the TikZ package.
@@ -13,8 +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/03/19 Dynkin diagrams]
-\RequirePackage{etex}
+\ProvidesPackage{dynkin-diagrams}[2020/04/30 Dynkin diagrams]
 \RequirePackage{tikz}
 \RequirePackage{xstring}
 \RequirePackage{xparse}
@@ -40,7 +39,7 @@
 %%% Application programming interface: 
 %%% See dynkin-diagrams.tex file for examples of use.
 %%%
-\ifx\draw at lie@hasse at root\undefined
+\ifx\draw at lie@hasse at root\undefined\relax
 \pgfdeclarelayer{background}
 \pgfdeclarelayer{Dynkin behind}
 \pgfsetlayers{background,Dynkin behind,main}
@@ -94,10 +93,13 @@
 \dynkin at restore{}%
 }%
 
+\NewDocumentCommand\dynkin at check@if at in@tikZ{}%
+{\ifdefined\filldraw\relax\else\dynkin at error@not at in@tikz\fi}
+
 \NewDocumentCommand\dynkin{O{}mO{0}m}%
 {%
 \dynkin at save{}%
-\ifdefined\filldraw%
+\ifdefined\filldraw\relax%
 \@dynkin[vertical shift=0,#1]{#2}[#3]{#4}%
 \else%
 \tikz[baseline=(origin.base)]{\@dynkin[#1]{#2}[#3]{#4}}%
@@ -208,7 +210,7 @@
 
 \NewDocumentCommand\dynkinRefreshRoots{}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+???
 	\dynkin at override@label at directions{}%
 	\dynkin at draw@all at roots{}%
 	\ifdynkin at label@the at roots%
@@ -285,8 +287,8 @@
 %% Starred form uses the alternate label location.
 \NewDocumentCommand\dynkinLabelRoot{smm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
-	\ifnum\dynkin at nodes<#2%
+	\dynkin at check@if at in@tikZ%
+	\ifnum\dynkin at nodes<#2\relax%
 		\ClassError{Dynkin diagrams}%
 		{Unrecognized root: 
 		``#2'' found when labelling Dynkin diagram
@@ -345,41 +347,41 @@
 
 \NewDocumentCommand\dynkinBrace{somm}%[text]{start}{end}
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
+	\IfBooleanTF{#1}%
+	{%
+		\xdef\braceYshift{1mm}%
+	}%
+	{%
+		\xdef\braceYshift{-1mm}%
+	}%
+	\draw[%
+		decoration=%
+			{%
+				brace,
+				\IfBooleanF{#1}{mirror},
+				raise=0.05cm,
+			},%
+		decorate]%
+		($(root #3)-({\dynkin at root@radius},
 		\IfBooleanTF{#1}%
-		{%
-			\xdef\braceYshift{1mm}%
-		}%
-		{%
-			\xdef\braceYshift{-1mm}%
-		}%
-		\draw[%
-			decoration=%
-				{%
-					brace,
-					\IfBooleanF{#1}{mirror},
-					raise=0.05cm,
-				},%
-			decorate]%
-			($(root #3)-({\dynkin at root@radius},
-			\IfBooleanTF{#1}%
-				{{-\dynkin at root@radius}}%
-				{{\dynkin at root@radius}}%
-			)$) 
-		    	-- 
-			($(root #4)+({\dynkin at root@radius},
-			\IfBooleanTF{#1}%
-				{{\dynkin at root@radius}}%
-				{{-\dynkin at root@radius}}%
-			)$) 
- 			node%
-			[%
-				pos=0.5,%
-			   	anchor=\IfBooleanTF{#1}{south}{north},%
-		  		yshift=\braceYshift,%
-				/Dynkin diagram/text style%
-			]% 
-			{\IfValueT{#2}{\(#2\)}};%
+			{{-\dynkin at root@radius}}%
+			{{\dynkin at root@radius}}%
+		)$) 
+		   	-- 
+		($(root #4)+({\dynkin at root@radius},
+		\IfBooleanTF{#1}%
+			{{\dynkin at root@radius}}%
+			{{-\dynkin at root@radius}}%
+		)$) 
+ 		node%
+		[%
+			pos=0.5,%
+		   	anchor=\IfBooleanTF{#1}{south}{north},%
+	  		yshift=\braceYshift,%
+			/Dynkin diagram/text style%
+		]% 
+		{\IfValueT{#2}{\(#2\)}};%
 }%
 
 \NewDocumentCommand\dynkin at involution{somD<>{}om}%
@@ -458,7 +460,7 @@
 %% Prints the labels on the Dynkin diagram,in the given ordering. Uses the default labels if ``label'' is set without a list of ``labels'' being set.
 \newcommand{\dynkinPrintLabels}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfStrEq{\dynkin at label@list}{}{%
 		\foreach \i in {1,...,\the\dynkin at nodes}{\dynkinLabelRoot{\i}{\i}}%
 		\ifdynkin at is@extended%
@@ -499,7 +501,7 @@
 % Print alternate location labels.
 \newcommand{\dynkinPrintLabelsStar}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfStrEq{\dynkin at label@list at star}{}{%
 		\foreach \i in {1,...,\the\dynkin at nodes}{\dynkinLabelRoot*{\i}{\i}}%
 		\ifdynkin at is@extended%
@@ -571,7 +573,7 @@
 %% The starred form accepts <n> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinCrossRootMark{sO{}m}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%	
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootNumber{#3}%
@@ -587,7 +589,7 @@
 %% The starred form accepts <n> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinHeavyCrossRootMark{sO{}m}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootNumber{#3}%
@@ -611,7 +613,7 @@
 %% The starred form accepts <n> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinHollowRootMark{sO{}m}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootNumber{#3}%
@@ -627,7 +629,7 @@
 %% The starred form accepts <n> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinDoubleHollowRootMark{sO{}m}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%	
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootNumber{#3}%
@@ -641,7 +643,7 @@
 
 \NewDocumentCommand\dynkinDrawSolidRootMark{O{}m}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%	
 	\fill[/Dynkin diagram,*,#1] (#2) circle (\dynkin at root@radius);%
 }%
 
@@ -650,7 +652,7 @@
 %% The starred form accepts <n> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinSolidRootMark{sO{}m}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootNumber{#3}%
@@ -667,7 +669,7 @@
 %% The starred form accepts <n> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinTensorRootMark{sO{}m}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootNumber{#3}%
@@ -692,7 +694,7 @@
 % The starred form accepts <n> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinRootMark{smm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\IfStrEqCase{#2}%
@@ -731,7 +733,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinDefiniteSingleEdge{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -754,7 +756,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinIndefiniteSingleEdge{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -784,7 +786,7 @@
 %%% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinRightFold{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\dynkinFold*[/Dynkin diagram,fold right style,#2]{#3}{#4}%
@@ -799,7 +801,7 @@
 %%% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinLeftFold{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\dynkinFold*[/Dynkin diagram,fold left style,#2]{#3}{#4}%
@@ -814,7 +816,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinFold{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -838,7 +840,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinDefiniteRightDownArc{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -859,7 +861,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinIndefiniteRightDownArc{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -890,7 +892,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinDefiniteRightUpArc{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -911,7 +913,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinIndefiniteRightUpArc{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -943,7 +945,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinDefiniteLeftDownArc{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -964,7 +966,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinIndefiniteLeftDownArc{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -995,7 +997,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinDefiniteLeftUpArc{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -1016,7 +1018,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinIndefiniteLeftUpArc{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -1048,7 +1050,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinDefiniteSemiCircle{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -1069,7 +1071,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinIndefiniteSemiCircle{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -1101,7 +1103,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinDefiniteDoubleRightDownArc{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -1139,7 +1141,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinDefiniteDoubleUpRightArc{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -1177,7 +1179,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinDefiniteDoubleUpLeftArc{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -1217,7 +1219,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinDefiniteDoubleDownRightArc{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -1257,7 +1259,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinDefiniteDoubleRightUpArc{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -1294,7 +1296,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinDefiniteDoubleLeftDownArc{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -1332,7 +1334,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinDefiniteDoubleDownLeftArc{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -1371,7 +1373,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinDefiniteDoubleLeftUpArc{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -1409,7 +1411,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinDefiniteDoubleDownRightSemiCircle{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -1449,7 +1451,7 @@
 %%% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinDefiniteTripleDownRightSemiCircle{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -1498,7 +1500,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinDefiniteDoubleUpRightSemiCircle{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -1536,7 +1538,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinEdge{sO{}mmm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#4}{#5}%
@@ -1564,7 +1566,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinEdgeArrow{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\ifdynkin at arrows%
 		\IfBooleanTF{#1}%
 		{%
@@ -1576,24 +1578,32 @@
 		}%
 		\begin{pgfonlayer}{Dynkin behind}%%
 			\ifdynkin at reverse@arrows%
-				\path[
-				/Dynkin diagram/arrow shape,
-				tips] 
-					($(\dynkin at root@name \the\@dynkin at to@root)$) 
-					-- 
-					($.5*(\dynkin at root@name \the\@dynkin at to@root)%
-					+.5*(\dynkin at root@name \the\@dynkin at from@root)
-					-(.5*\dynkin at arrow@width,0)$);%
+				\node (from-arrow-node) 
+					at
+					($(\dynkin at root@name \the\@dynkin at to@root)$){};%
+				\node (to-arrow-node) 
+					at
+					($(\dynkin at root@name \the\@dynkin at from@root)$){};%
 			\else%
-				\path[
+				\node (from-arrow-node) 
+					at
+					($(\dynkin at root@name \the\@dynkin at from@root)$){};%
+				\node (to-arrow-node) 
+					at
+					($(\dynkin at root@name \the\@dynkin at to@root)$){};%
+			\fi%
+			\node (middle-node)
+				at
+				($.5*(from-arrow-node)+.5*(to-arrow-node)$){};%
+			\node (arrow-node)
+				at
+				($(middle-node)!.5*\dynkin at arrow@width!(to-arrow-node)$) {};%
+			\path[
 				/Dynkin diagram/arrow shape,
 				tips] 
-					($(\dynkin at root@name \the\@dynkin at from@root)$) 
-					-- 
-					($.5*(\dynkin at root@name \the\@dynkin at from@root)+%
-					.5*(\dynkin at root@name \the\@dynkin at to@root)
-					+(.5*\dynkin at arrow@width,0)$);%
-			\fi%
+				($(from-arrow-node)$) 
+				-- 
+				($(arrow-node)$);%
 		\end{pgfonlayer}%%
 	\fi%
 }%
@@ -1678,7 +1688,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinDefiniteDoubleEdge{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -1764,7 +1774,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinTripleEdge{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -1859,7 +1869,7 @@
 %% The starred form accepts <p> and <q> in the Bourbaki ordering.
 \NewDocumentCommand\dynkinQuadrupleEdge{sO{}mm}%
 {%
-	\ifdefined\filldraw\else\dynkin at error@not at in@tikz\fi%
+	\dynkin at check@if at in@tikZ%	
 	\IfBooleanTF{#1}%
 	{%
 		\convertRootPair{#3}{#4}%
@@ -2616,7 +2626,7 @@
 {%
 	\dynkin at first@root at no=#1\relax%
 	\dynkin at second@root at no=#2\relax%
-	\ifnum\the\dynkin at first@root at no<\the\dynkin at second@root at no%
+	\ifnum\the\dynkin at first@root at no<\the\dynkin at second@root at no\relax%
 		\listxadd\dynkin at indefinite@edge at list{\the\dynkin at first@root at no,\the\dynkin at second@root at no}%
 	\else%
 		\listxadd\dynkin at indefinite@edge at list{\the\dynkin at second@root at no,\the\dynkin at first@root at no}%
@@ -2652,7 +2662,7 @@
 	% Next we sort the order, since edges are stored as undirected edges.
 	\global\dynkin at first@root at no=\@dynkin at from@root\relax%
 	\global\dynkin at second@root at no=\@dynkin at to@root\relax%
-	\ifnum\the\dynkin at second@root at no<\the\dynkin at first@root at no%
+	\ifnum\the\dynkin at second@root at no<\the\dynkin at first@root at no\relax%
 		\global\dynkin at first@root at no=\@dynkin at to@root\relax%
 		\global\dynkin at second@root at no=\@dynkin at from@root\relax%
 	\fi%
@@ -2680,7 +2690,7 @@
 		{%
 			\dynkin at Root@Numbrpo=\dynkin at Root@Numbr\relax%
 			\advance\dynkin at Root@Numbrpo by 1\relax%
-			\ifnum\the\dynkin at Root@Numbr<\the\dynkin at nodes%
+			\ifnum\the\dynkin at Root@Numbr<\the\dynkin at nodes\relax%
 				\dynkin at set@edge at indefinite{\dynkin at Root@Numbr}{\dynkin at Root@Numbrpo}%
 			\fi%
 		}%
@@ -2848,7 +2858,7 @@
 \NewDocumentCommand\dynkin at grok@series{}%
 {%
 	\StrLen{\dynkin at series}[\dynkin at lenny]
-	\ifnum\dynkin at lenny>1%
+	\ifnum\dynkin at lenny>1\relax%
 		\dynkin at error@series%
 	\fi%
 	\edef\series{\dynkin at series}%
@@ -2982,7 +2992,7 @@
 				{}{%
 					\global\dynkin at Satake@diagramfalse%
 					\ifdynkin at is@extended%
-							\ifnum\dynkin at ply=4%
+							\ifnum\dynkin at ply=4\relax%
 								\gdef\dynkin at string{dddd.d.ddddd}
 							\else%
 								\gdef\dynkin at string{ddd.dddd}%
@@ -3171,8 +3181,8 @@
 		{D}{}%
 		{E}%
 		{%
-			\ifnum\dynkin at nodes=5%
-				\ifnum\dynkin at rank=6%
+			\ifnum\dynkin at nodes=5\relax%
+				\ifnum\dynkin at rank=6\relax%
 					\IfStrEq{\dynkin at twisted@series}{2}%
 					{%
 					}%
@@ -3183,11 +3193,11 @@
 					\dynkin at error@rank%
 				\fi%
 			\else
-				\ifnum\dynkin at rank=6%
+				\ifnum\dynkin at rank=6\relax%
 				\else%
-					\ifnum\dynkin at rank=7%
+					\ifnum\dynkin at rank=7\relax%
 					\else%
-						\ifnum\dynkin at rank=8%
+						\ifnum\dynkin at rank=8\relax%
 						\else%
 							\IfStrEq{\dynkin at ordering}{Kac}{}{\dynkin at error@rank}%
 						\fi%
@@ -3197,7 +3207,7 @@
 		}%
 		{F}%
 		{%
-			\ifnum\dynkin at rank=4%
+			\ifnum\dynkin at rank=4\relax%
 			\else%
 				\dynkin at error@rank%
 			\fi%
@@ -3204,7 +3214,7 @@
 		}%
 		{G}%
 		{%
-			\ifnum\dynkin at rank=2%
+			\ifnum\dynkin at rank=2\relax%
 			\else%
 				\dynkin at error@rank%
 			\fi%
@@ -3228,11 +3238,11 @@
 %% let \dynkin at Root@Number be <r>.
 \NewDocumentCommand\swapRootIfInLastTwoRoots{m}%
 {%
-	\ifnum\dynkin at rank>1%
-		\ifnum\dynkin at rank=#1%
+	\ifnum\dynkin at rank>1\relax%
+		\ifnum\dynkin at rank=#1\relax%
 			\global\dynkin at Root@Number=\the\dynkin at rank@minus at one\relax%
 		\else%
-			\ifnum\dynkin at rank@minus at one=#1%
+			\ifnum\dynkin at rank@minus at one=#1\relax%
 				\global\dynkin at Root@Number=\the\dynkin at rank\relax%
 			\else%
 				\global\dynkin at Root@Number=#1\relax%
@@ -3246,11 +3256,11 @@
 \NewDocumentCommand\swap at if@in at last@two{mm}%
 {%
 	\global\dynkin at r=#2\relax%
-	\ifnum\dynkin at r=#1%
+	\ifnum\dynkin at r=#1\relax%
 		\global\advance \dynkin at r by -1\relax%
 	\else%
 		\global\advance \dynkin at r by 1\relax%
-		\ifnum\dynkin at r=#1%
+		\ifnum\dynkin at r=#1\relax%
 		\else%
 			\global\advance \dynkin at r by -1\relax%
 		\fi%
@@ -3304,7 +3314,7 @@
 			}%
 			{E}%
 			{%
-					\ifnum#2=6%
+					\ifnum#2=6\relax%
 							\IfStrEqCase{#3}%
 							{%
 								{Adams}%
@@ -3337,7 +3347,7 @@
 							}%
 							[\global#5=#4\relax]%
 					\else%
-						\ifnum#2=7%
+						\ifnum#2=7\relax%
 							\IfStrEqCase{#3}%
 							{%
 								{Adams}%
@@ -3371,7 +3381,7 @@
 							}%
 							[\global#5=#4\relax]%
 						\else%
-							\ifnum#2=8%
+							\ifnum#2=8\relax%
 								\IfStrEqCase{#3}%
 								{%
 									{Adams}%
@@ -3483,7 +3493,7 @@
 		}%
 		{E}%
 		{%
-				\ifnum#2=6%
+				\ifnum#2=6\relax%
 						\IfStrEqCase{#4}%
 						{%
 							{Adams}%
@@ -3517,7 +3527,7 @@
 						}%
 						[\global#5=#3\relax]%
 				\else%
-					\ifnum#2=7%
+					\ifnum#2=7\relax%
 						\IfStrEqCase{#4}%
 						{%
 							{Adams}%
@@ -3547,7 +3557,7 @@
 						}%
 						[\global#5=#3\relax]%
 					\else%
-						\ifnum#2=8%
+						\ifnum#2=8\relax%
 							\IfStrEqCase{#4}%
 							{%
 								{Adams}%
@@ -3661,7 +3671,7 @@
 				{%
 					\global\dynkin at Root@Number=#1\relax%
 					\global\advance\dynkin at Root@Number by 1\relax%
-					\ifnum\dynkin at Root@Number>\the\dynkin at rank%
+					\ifnum\dynkin at Root@Number>\the\dynkin at rank\relax%
 						\global\dynkin at Root@Number=1\relax%
 					\fi%
 				}%
@@ -3692,7 +3702,7 @@
 			\ifdynkin at is@twisted%
 				\global\dynkin at Root@Number=#1\relax%
 			\else%
-				\ifnum\dynkin at rank=6%
+				\ifnum\dynkin at rank=6\relax%
 						\IfStrEqCase{\dynkin at ordering}%
 						{%
 							{Adams}{\global\dynkin at Root@Number=\stringCharacterInPosition{152436}{#1}\relax}%
@@ -3702,7 +3712,7 @@
 						}%
 						[\global\dynkin at Root@Number=#1\relax]%
 				\else%
-					\ifnum\dynkin at rank=7%
+					\ifnum\dynkin at rank=7\relax%
 						\IfStrEqCase{\dynkin at ordering}%
 						{%
 							{Adams}{\global\dynkin at Root@Number=\stringCharacterInPosition{6354217}{#1}\relax}%
@@ -3712,7 +3722,7 @@
 						}%
 						[\global\dynkin at Root@Number=#1\relax]%			
 					\else%
-						\ifnum\dynkin at rank=8%
+						\ifnum\dynkin at rank=8\relax%
 							\IfStrEqCase{\dynkin at ordering}%
 							{%
 								{Adams}{\global\dynkin at Root@Number=\stringCharacterInPosition{13245678}{#1}\relax}%
@@ -3769,7 +3779,7 @@
 {%
 	\test at bit@a#1\relax%
 	\test at bit@b#2\relax%
-	\ifnum\test at bit@a=0%
+	\ifnum\test at bit@a=0\relax%
 		\global\bitfalse%
 	\else%
 		\global\test at bit@moretrue%
@@ -3797,11 +3807,11 @@
 \xdef\replacementRightString{}
 \NewDocumentCommand\replaceNthChar{mmm}%
 {%
-	\ifnum#2<1
+	\ifnum#2<1\relax%
 	\else%
 		\StrLen{#1}[\thatreplaceNthCounter]%
 		\replaceNthCounter\thatreplaceNthCounter\relax%
-		\ifnum\replaceNthCounter<#2
+		\ifnum\replaceNthCounter<#2\relax%
 		\else%
 			\replacementN#2\relax%
 			\advance\replacementN by -1\relax%
@@ -4265,12 +4275,12 @@
 %% Draws an A series Dynkin diagram.
 \NewDocumentCommand\Adynkin{}%
 {%
-	\ifnum\dynkin at rank=1%
+	\ifnum\dynkin at rank=1\relax%
 		\global\dynkin at ply=1\relax%
 	\fi%
 %	% Create the roots.
-	\ifnum\dynkin at ply>1%
-		\ifnum\dynkin at ply=2%
+	\ifnum\dynkin at ply>1\relax%
+		\ifnum\dynkin at ply=2\relax%
 			\dynkin at jump{1}%
 		\fi%
 		\dynkinPlaceRootHere*{1}{above}{below right}%
@@ -4277,7 +4287,7 @@
 		\dynkin at fold{1}{\the\dynkin at rank}%
 	\else%
 		\dynkinPlaceRootHere*{1}{below}{above}%
-		\ifnum\dynkin at rank>1%
+		\ifnum\dynkin at rank>1\relax%
 			\dynkin at pipe{1}%
 				{\the\dynkin at rank}%
 				{east}{below}{above}%
@@ -4288,9 +4298,9 @@
 %% Draw a B series Dynkin diagram.
 \NewDocumentCommand\Bdynkin{}%
 {%
-	\ifnum\dynkin at rank<2
-		\Adynkin
-	\else
+	\ifnum\dynkin at rank<2\relax%
+		\Adynkin%
+	\else%
 		\ifdynkin at Coxeter%
 			\Adynkin%
 			\dynkinEdgeLabel%
@@ -4298,8 +4308,8 @@
 				{\the\dynkin at rank}{4}%
 		\else
 			% Create the roots.
-			\ifnum\dynkin at ply>1%
-				\ifnum\dynkin at rank>3%
+			\ifnum\dynkin at ply>1\relax%
+				\ifnum\dynkin at rank>3\relax%
 					\dynkin at jump{1}%
 					\dynkinPlaceRootHere*{1}{above}{below right}%
 					\dynkinPlaceRootRelativeTo*%
@@ -4313,7 +4323,7 @@
 						{\the\dynkin at rank@minus at one}{\the\dynkin at rank}%
 					\dynkinEdge*{SingleEdge}{1}{2}%
 				\else%
-					\ifnum\dynkin at rank=2%
+					\ifnum\dynkin at rank=2\relax%
 						\dynkin at jump{1}%
 						\dynkinPlaceRootHere*{1}{above}{below right}%
 						\dynkinPlaceRootRelativeTo*{2}{1}%
@@ -4342,7 +4352,7 @@
 					{\the\dynkin at rank}%
 			\fi%
 			\ifdynkin at arrows%
-				\ifnum\dynkin at ply>1%
+				\ifnum\dynkin at ply>1\relax%
 					\dynkinLeftFold*{1}{\the\dynkin at rank}%
 				\fi%
 			\fi%
@@ -4371,8 +4381,8 @@
 {
 	% Create the roots.
 	\ifdynkin at is@extended%
-		\ifnum\dynkin at ply>1%
-			\ifnum\dynkin at rank=4%
+		\ifnum\dynkin at ply>1\relax%
+			\ifnum\dynkin at rank=4\relax%
 				\dynkinPlaceRootRelativeTo*%
 					{2}{0}%
 					{southeastfold}%
@@ -4389,7 +4399,7 @@
 				{left}{above left}%
 		\else%	
 			\ifdynkin at left@fold%	
-				\ifnum\dynkin at rank=4%
+				\ifnum\dynkin at rank=4\relax%
 					\dynkinPlaceRootRelativeTo*%
 						{2}{0}%
 						{southeastfold}%
@@ -4405,7 +4415,7 @@
 					{southwestfold}%
 					{left}{above left}%
 			\else%
-				\ifnum\dynkin at rank=4%
+				\ifnum\dynkin at rank=4\relax%
 					\ifdynkin at right@fold%
 						\dynkinPlaceRootRelativeTo*%
 							{2}{0}%
@@ -4432,13 +4442,13 @@
 		\dynkinMoveToRoot*{2}%
 	\else
 		\dynkinPlaceRootHere*{1}{below}{above}
-		\ifnum\dynkin at rank=4%
+		\ifnum\dynkin at rank=4\relax%
 			\ifdynkin at right@fold%
 				\dynkinPlaceRootRelativeTo*%
 					{2}{1}%
 					{east}{below}{above}%
 			\else%			
-				\ifnum\dynkin at ply>1%
+				\ifnum\dynkin at ply>1\relax%
 					\dynkinPlaceRootRelativeTo*%
 						{2}{1}%
 						{east}%
@@ -4457,17 +4467,17 @@
 				{below}{above}%
 		\fi%
 	\fi
-	\ifnum\dynkin at rank>2%
-		\ifnum\dynkin at rank>5%
+	\ifnum\dynkin at rank>2\relax%
+		\ifnum\dynkin at rank>5\relax%
 			\dynkinPlaceRootRelativeTo*{3}{2}{east}{below}{above}%
 		\else%
-			\ifnum\dynkin at ply>1%
+			\ifnum\dynkin at ply>1\relax%
 				\dynkinPlaceRootRelativeTo*%
 					{3}{2}%
 					{east}%
 					{below left}{above left}%
 			\else%
-					\ifnum\dynkin at rank=5%
+					\ifnum\dynkin at rank=5\relax%
 						\ifdynkin at right@fold%	
 							\dynkinPlaceRootRelativeTo*%
 								{3}{2}%
@@ -4487,14 +4497,14 @@
 					\fi%
 			\fi%
 		\fi%
-		\ifnum\dynkin at rank@minus at three>3%
+		\ifnum\dynkin at rank@minus at three>3\relax%
 			\dynkin at pipe%
 				{3}{\the\dynkin at rank@minus at three}%
 				{east}%
 				{below}{above}%
 		\fi%
-		\ifnum\dynkin at rank@minus at two>3%
-			\ifnum\dynkin at ply>1%
+		\ifnum\dynkin at rank@minus at two>3\relax%
+			\ifnum\dynkin at ply>1\relax%
 				\dynkinPlaceRootRelativeTo*%
 					{\dynkin at rank@minus at two}%
 					{\dynkin at rank@minus at three}%
@@ -4519,7 +4529,7 @@
 				{\dynkin at rank@minus at two}%
 				{\dynkin at rank@minus at three}%
 		\fi%
-		\ifnum\dynkin at ply=1%
+		\ifnum\dynkin at ply=1\relax%
 			\ifdynkin at right@fold%
 				\dynkinPlaceRootRelativeTo*%
 					{\the\dynkin at rank@minus at one}%
@@ -4557,13 +4567,13 @@
 \NewDocumentCommand\Ddynkin at edges{}%
 {%
 	% Draw the edges.
-	\ifnum\dynkin at ply>1%
+	\ifnum\dynkin at ply>1\relax%
 		\ifdynkin at is@extended%
 			\dynkinEdge*{RightUpArc}{1}{2}%
 		\else%
 			\dynkinEdge*{SingleEdge}{1}{2}%
 		\fi%
-		\ifnum\dynkin at rank>4%
+		\ifnum\dynkin at rank>4\relax%
 			\dynkinEdge*{SingleEdge}{2}{3}%
 		\fi%
 		\dynkinEdge*{LeftDownArc}%
@@ -4581,7 +4591,7 @@
 			\fi%
 		\fi%
 	\else%
-		\ifnum\dynkin at rank=4%
+		\ifnum\dynkin at rank=4\relax%
 		\else%
 			\dynkinEdge*{SingleEdge}{2}{3}%
 		\fi%
@@ -4685,9 +4695,9 @@
 %% Draws a D series Dynkin diagram.
 \NewDocumentCommand\Ddynkin{}%
 {%
-	\ifnum\dynkin at rank>3%
-		\ifnum\dynkin at rank=4%
-			\ifnum\dynkin at ply=3%
+	\ifnum\dynkin at rank>3\relax%
+		\ifnum\dynkin at rank=4\relax%
+			\ifnum\dynkin at ply=3\relax%
 				\DthreePly%
 			\else%
 				\Ddynkin at roots%
@@ -4700,9 +4710,9 @@
 	\else%
 		\gdef\dynkin at series{A}%
 		\Adynkin%
-		\ifnum\dynkin at ply>1%	
+		\ifnum\dynkin at ply>1\relax%
 			\ifdynkin at arrows%
-				\ifnum\dynkin at rank=1%
+				\ifnum\dynkin at rank=1\relax%
 				\else%
 					\dynkinLeftFold*{1}{\the\dynkin at rank}%
 				\fi%
@@ -4725,7 +4735,7 @@
 		{east}%
 		{below}{above right}%
 	\ifdynkin at is@extended%
-		\ifnum\dynkin at rank=6%
+		\ifnum\dynkin at rank=6\relax%
 			\dynkinPlaceRootRelativeTo*%
 				{2}{4}%
 				{north}%
@@ -4756,11 +4766,11 @@
 	\dynkinEdge*{SingleEdge}{3}{4}
 	\dynkinEdge*{SingleEdge}{4}{2}
 	\ifdynkin at is@extended%
-		\ifnum\dynkin at rank=6%
+		\ifnum\dynkin at rank=6\relax%
 			\dynkinPlaceRootRelativeTo*{0}{2}{north}{right}{above}%
 			\dynkinEdge*{SingleEdge}{0}{2}%
 		\else%
-			\ifnum\dynkin at rank=7%
+			\ifnum\dynkin at rank=7\relax%
 				\dynkinPlaceRootRelativeTo*%
 					{0}{1}%
 					{west}%
@@ -4780,10 +4790,10 @@
 %% Draws an E series Dynkin diagram not folded.
 \newcommand*{\Edynkin at unfolded}%
 {
-	\ifnum\dynkin at rank>8%
+	\ifnum\dynkin at rank>8\relax%
 		% We have to work in Kac ordering directly.
 		\dynkinPlaceRootHere*{1}{below}{above}%
-		\ifnum\dynkin at rank>1%
+		\ifnum\dynkin at rank>1\relax%
 			\dynkin at pipe%
 				{1}{\the\dynkin at rank@minus at one}%
 				{east}{below}%
@@ -4802,8 +4812,8 @@
 %% Draws a folded E6, affine E6 or affine E7 Dynkin diagram.
 \NewDocumentCommand\Edynkin at folded{}%
 {%
-	\ifnum\dynkin at rank=6%
-		\ifnum\dynkin at ply=2\ESixTwoPly\else\ESixThreePly\fi%
+	\ifnum\dynkin at rank=6\relax%
+		\ifnum\dynkin at ply=2\relax\ESixTwoPly\else\ESixThreePly\fi%
 	\else%
 		\extendedESevenFolded%
 	\fi%
@@ -4905,7 +4915,7 @@
 		\ifnum\dynkin at rank=6\relax%
 			\Edynkin at folded%
 		\else%
-			\ifnum\dynkin at rank=7
+			\ifnum\dynkin at rank=7\relax
 				\ifdynkin at is@extended
 					\Edynkin at folded%
 				\else%
@@ -4994,7 +5004,7 @@
 			($(\dynkin at root@name \the\dynkin at Root@Number)-(\dynkin at root@radius,0)$);%
 		\end{pgfonlayer}%%
 	\else%
-		\ifnum\dynkin at ply=4%
+		\ifnum\dynkin at ply=4\relax%
 			\node (Dynkin current) at ($(Dynkin current)+(0,\dynkin at edge@length)$){};%
 			\dynkinPlaceRootHere*{0}{left}{above}%
 			\dynkinPlaceRootRelativeTo*{1}{0}{east}{right}{above}%
@@ -5008,7 +5018,7 @@
 			\dynkinFold*{1}{3}%
 		\else%
 			\Adynkin{}%
-			\ifnum\dynkin at ply>1%
+			\ifnum\dynkin at ply>1\relax%
 				\dynkinPlaceRootRelativeTo*{0}{1}{southwestfold}{left}{right}%
 				\dynkinEdge*{LeftDownArc}{1}{0}%
 				\dynkinEdge*{LeftUpArc}{\the\dynkin at rank}{0}%
@@ -5019,7 +5029,7 @@
 					+.5*(\dynkin at root@name \the\dynkin at rank)$)%
 					{};%
 				\dynkinNorth%
-				\dynkinPlaceRootHere*{0}{below}{above}%
+				\dynkinPlaceRootHere*{0}{above}{below}%
 				\dynkinEdge*{SingleEdge}{0}{1}%
 				\dynkinEdge*{SingleEdge}{\the\dynkin at rank}{0}%
 			\fi%
@@ -5030,7 +5040,7 @@
 
 \NewDocumentCommand\extendedBthreePly{}%
 {%
-	\ifnum\dynkin at rank=3%
+	\ifnum\dynkin at rank=3\relax%
 	\else%
 		\ClassError%
 			{Dynkin diagrams}%
@@ -5096,7 +5106,7 @@
 					\dynkinEdge*{SingleEdge}{1}{2}%
 				\fi%
 				\dynkin at bmo=2\relax%
-				\ifnum\dynkin at rank>3%
+				\ifnum\dynkin at rank>3\relax%
 					\foreach \dynkin at b in {3,...,\the\dynkin at rank@minus at one}%
 					{%
 						\dynkinPlaceRootRelativeTo*%
@@ -5107,7 +5117,7 @@
 						\global\advance\dynkin at bmo by 1\relax%
 					}%
 				\fi%
-				\ifnum\dynkin at ply<3%
+				\ifnum\dynkin at ply<3\relax%
 					\dynkinPlaceRootRelativeTo*%
 						{\the\dynkin at rank}%
 						{\the\dynkin at rank@minus at one}%
@@ -5121,7 +5131,7 @@
 						{\the\dynkin at rank@minus at one}%
 						{\the\dynkin at rank}{4}%
 				\else%
-					\ifnum\dynkin at ply<3%
+					\ifnum\dynkin at ply<3\relax%
 						\dynkinEdge*{DoubleEdge}%
 							{\the\dynkin at rank@minus at one}%
 							{\the\dynkin at rank}%
@@ -5249,26 +5259,26 @@
 %% Draws an D series affine Dynkin/Coxeter diagram.
 \NewDocumentCommand\extendedDdynkin{}%
 {%
-	\ifnum\dynkin at ply=4%
-		\ifnum\dynkin at rank=4%
+	\ifnum\dynkin at ply=4\relax%
+		\ifnum\dynkin at rank=4\relax%
 			\DOneFourFourPly%
 		\else%
 			\DfourPly%
 		\fi%
 	\else%
-		\ifnum\dynkin at ply=3%
+		\ifnum\dynkin at ply=3\relax%
 			\extendedDthreePly%
 		\else%
-			\ifnum\the\dynkin at rank=1%
+			\ifnum\the\dynkin at rank=1\relax%
 				\extendedAdynkin%
 			\else%
-				\ifnum\the\dynkin at rank=4%
+				\ifnum\the\dynkin at rank=4\relax%
 					\global\dynkin at hex@gridfalse
 				\fi
 				\dynkin at hop{1}%
 				\dynkinPlaceRootHere*{0}{left}{above left}%
 				\Ddynkin%
-				\ifnum\dynkin at ply=2%
+				\ifnum\dynkin at ply=2\relax%
 					\dynkinEdge*{RightDownArc}{0}{2}%
 				\else%
 					\ifdynkin at left@fold%
@@ -5277,7 +5287,7 @@
 						\dynkinEdge*{SingleEdge}{0}{2}%
 					\fi%
 				\fi%
-				\ifnum\the\dynkin at rank=4%
+				\ifnum\the\dynkin at rank=4\relax%
 					\global\dynkin at hex@gridtrue
 				\fi
 			\fi%
@@ -5294,7 +5304,7 @@
 %% Draws an F series affine Dynkin/Coxeter diagram.
 \newcommand*{\extendedFdynkin}%
 {%
-	\ifnum\dynkin at ply=1%
+	\ifnum\dynkin at ply=1\relax%
 		\dynkinPlaceRootHere*{0}{below}{above}%
 		\dynkinEast%
 		\Fdynkin%
@@ -5408,13 +5418,13 @@
 			\dynkinEdge*{DoubleEdge}%
 				{\the\dynkin at nodes}%
 				{\the\dynkin at height@minus at one}%
-			\ifnum\dynkin at ply>1%	
+			\ifnum\dynkin at ply>1\relax%
 				\dynkinLeftFold*{0}{1}%
 			\fi%			
 		\else%
-			\ifnum\dynkin at nodes>1%
-				\ifnum\dynkin at ply>1%	
-					\ifnum\dynkin at height@minus at one>1%
+			\ifnum\dynkin at nodes>1\relax%
+				\ifnum\dynkin at ply>1\relax%
+					\ifnum\dynkin at height@minus at one>1\relax%
 						\dynkin at jump{1}%
 					\fi%
 					\dynkinPlaceRootHere*{0}{below}{above}%
@@ -5423,7 +5433,7 @@
 						{east}%
 						{below left}{above}%
 					\dynkinEdge*{DoubleEdge}{1}{0}%
-					\ifnum\dynkin at height@minus at one>1%
+					\ifnum\dynkin at height@minus at one>1\relax%
 						\dynkin at fold{1}{\the\dynkin at height@minus at one}%
 					\fi%
 					\dynkinPlaceRootRelativeTo*%
@@ -5439,7 +5449,7 @@
 						{east}%
 						{below right}{above}%
 					\dynkinEdge*{DoubleEdge}{1}{0}%
-					\ifnum\dynkin at height@minus at one>1%
+					\ifnum\dynkin at height@minus at one>1\relax%
 						\dynkin at pipe{1}{\the\dynkin at height@minus at one}%
 						{east}{below}{above}%
 					\fi%
@@ -5474,7 +5484,7 @@
 		{2}{\twistedDTwo}%
 		{3}%
 		{%
-			\ifnum\dynkin at rank=4%
+			\ifnum\dynkin at rank=4\relax%
 				\dynkinPlaceRootHere*{0}{below}{above}%
 				\dynkinPlaceRootRelativeTo*{1}{0}{east}{below}{above}%
 				\dynkinPlaceRootRelativeTo*{2}{1}{east}{below}{above}%
@@ -5494,14 +5504,14 @@
 {%
 	\dynkin at nodes@minus at one\dynkin at nodes\relax%
 	\advance\dynkin at nodes@minus at one by -1\relax%
-	\ifnum\dynkin at rank<3%
+	\ifnum\dynkin at rank<3\relax%
 		\ClassError{Dynkin diagrams}{D2 series twisted diagrams cannot have rank \the\dynkin at rank}{}%
 	\fi%
-	\ifnum\dynkin at ply=1%
+	\ifnum\dynkin at ply=1\relax%
 		\dynkinPlaceRootHere*{0}{below}{above}%
 		\dynkinPlaceRootRelativeTo*{1}{0}{east}{below}{above}%
 	\else%
-		\ifnum\dynkin at rank=3%
+		\ifnum\dynkin at rank=3\relax%
 			\dynkin at jump{1}%
 			\dynkinPlaceRootHere*{0}{above}{right}%
 			\dynkinPlaceRootRelativeTo*{1}{0}{southwestfold}{left}{right}%
@@ -5511,7 +5521,7 @@
 			\dynkinPlaceRootRelativeTo*{1}{0}{east}{above}{below}%
 		\fi%
 	\fi%
-	\ifnum\dynkin at ply=2%
+	\ifnum\dynkin at ply=2\relax%
 		\dynkinEdge*{DoubleUpRightArc}{1}{0}%
 	\else
 		\dynkinEdge*{DoubleEdge}{1}{0}%
@@ -5528,7 +5538,7 @@
 			\dynkinFold*{0}{2}%
 		\fi%
 	\else%
-		\ifnum\dynkin at rank>2%
+		\ifnum\dynkin at rank>2\relax%
 			\dynkin at pipe{1}{\the\dynkin at nodes@minus at one}{east}{below}{above}%
 		\fi%
 		\dynkinPlaceRootRelativeTo*%



More information about the tex-live-commits mailing list.