texlive[58718] Master/texmf-dist: dynkin-diagrams (4apr21)

commits+preining at tug.org commits+preining at tug.org
Sun Apr 4 03:48:06 CEST 2021


Revision: 58718
          http://tug.org/svn/texlive?view=revision&revision=58718
Author:   preining
Date:     2021-04-04 03:48:06 +0200 (Sun, 04 Apr 2021)
Log Message:
-----------
dynkin-diagrams (4apr21)

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	2021-04-04 01:47:13 UTC (rev 58717)
+++ trunk/Master/texmf-dist/doc/latex/dynkin-diagrams/README	2021-04-04 01:48:06 UTC (rev 58718)
@@ -1,6 +1,6 @@
 Dynkin diagrams               
-v3.14159265358979
-30 April 2020
+v3.141592653589793
+31 March 2021
 
 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	2021-04-04 01:47:13 UTC (rev 58717)
+++ trunk/Master/texmf-dist/doc/latex/dynkin-diagrams/dynkin-diagrams.tex	2021-04-04 01:48:06 UTC (rev 58718)
@@ -1,7 +1,7 @@
 \documentclass{amsart}
 \title[The Dynkin diagrams package]%
 {The Dynkin diagrams package \\ 
-Version 3.14159265358979}
+Version 3.141592653589793}
 %% My name:
 \makeatletter
 \DeclareRobustCommand{\scotsMc}{\scotsMcx{c}}
@@ -20,7 +20,7 @@
 \author{Ben \scotsMc{}Kay}
 \address{School of Mathematical Sciences,  University College Cork, Cork, Ireland}
 \email{b.mckay at ucc.ie}
-\date{30 April 2020}
+\date{31 March 2021}
 \usepackage[T1]{fontenc}
 \usepackage[utf8]{inputenx}
 \usepackage{etoolbox} 
@@ -53,6 +53,7 @@
 \usepackage{filecontents}
 \usetikzlibrary{decorations.markings}
 \usetikzlibrary{decorations.pathmorphing}
+\usepackage{tikz-cd}
 %% Use white rulings in tables.
 \arrayrulecolor{white}
 \makeatletter
@@ -316,13 +317,13 @@
     involutions={16;35}]E6
 \end{tcblisting}
 
-\newpage
-
 \begin{tcblisting}{title={The double arrows for \(A_{IIIa}\) are big}}
 \dynkin[edge length=.75cm,
     involutions={1{10};29;38;47;56}]{A}{oo.o**.**o.oo}
 \end{tcblisting}
 
+\newpage
+
 \begin{tcblisting}{title={We can add labels}}
 \dynkin[edge length=.75cm,
     involutions={
@@ -342,8 +343,6 @@
     ]{A}{oo.o**.**o.oo}
 \end{tcblisting}
 
-\newpage
-
 \begin{tcblisting}{title={Arrow angles}}
 \dynkin[%
     edge length=.75cm,
@@ -380,6 +379,16 @@
 \end{tcblisting}
 
 \section{Labels for the roots}
+
+
+\begin{tcblisting}{title={Make a list of labels for the roots.
+Optionally, you can add label directions to say where to put each label relative to its root.}}
+\dynkin[%
+	labels={m\cosh\theta,1,2,3,,n-2,n-1,n,n+1},
+	label directions={,,left,,,,right,,},
+	scale=1.8,
+	extended] D{*ooo...oooo}
+\end{tcblisting}
 \begin{tcblisting}{title={Make a macro to assign labels to roots}}
 \dynkin[label,label macro/.code={\alpha_{\drlap{#1}}},edge length=.75cm]D5
 \end{tcblisting}
@@ -400,7 +409,7 @@
 \end{tcblisting}
 \begin{tcblisting}{title={Access root labels via TikZ}}
 \begin{dynkinDiagram}B3
-\node[below] at (root 2) {\(\alpha_{\drlap{2}}\)};
+\node[below,/Dynkin diagram/text style] at (root 2) {\(\alpha_{\drlap{2}}\)};
 \end{dynkinDiagram}
 \end{tcblisting}
 \begin{tcblisting}{title={The labels have default locations, mostly below roots}}
@@ -409,7 +418,9 @@
 \begin{tcblisting}{title={The starred form flips labels to alternate locations, mostly above roots}}
 \dynkin[labels*={1,2,3}]E8
 \end{tcblisting}
+
 \newpage
+
 \begin{tcblisting}{title={Labelling several roots and alternates}}
 \dynkin[%
 label macro/.code={\alpha_{\drlap{#1}}},
@@ -465,16 +476,19 @@
 
 \section{Text style for the labels}
 \begin{tcblisting}{title={Use a text style: big and blue}}
-\begin{dynkinDiagram}[text style={scale=1.2,blue},
-edge length=.75cm,
+\begin{dynkinDiagram}[text style/.style={scale=1.2,blue},
+edge length=1cm,
 labels={1,2,n-1,n},
 label macro/.code={\alpha_{\drlap{#1}}}
 ]A{}
 \end{dynkinDiagram}
 \end{tcblisting}
+
+\newpage
+
 \begin{tcblisting}{title={Use a text style; font selection is in the label macro}}
-\begin{dynkinDiagram}[text style={scale=1.2,blue},
-edge length=.75cm,
+\begin{dynkinDiagram}[text style/.style={scale=1.2,blue},
+edge length=1cm,
 labels={1,2,n-1,n},
 label macro/.code={\mathbb{A}_{\drlap{#1}}}]A{}
 \end{dynkinDiagram}
@@ -495,6 +509,9 @@
 \dynkinBrace*[\text{Roots 3 to 8}]38
 \end{dynkinDiagram}
 \end{tcblisting}
+
+\newpage
+
 \begin{tcblisting}{title={Bracing roots}}
 \newcommand\circleRoot[1]{\draw (root #1) circle (3pt);}
 \begin{dynkinDiagram}A{**.***.***.***.***.**}
@@ -506,7 +523,6 @@
 \end{dynkinDiagram}
 \end{tcblisting}
 
-\newpage
 \section{Label placement}
 Take a \(D_8\):
 \begin{tcblisting}{}
@@ -607,8 +623,6 @@
 \end{filecontents*}
 {\input{EulerProducts}}\VerbatimInput{EulerProducts.tex}
 
-\newpage
-
 \section{Style}
 \begin{tcblisting}{title={Colours}}
 \dynkin[extended,
@@ -949,6 +963,16 @@
 the Dynkin diagram \dynkin[parabolic=3]A3.
 \end{tcblisting}
 
+\begin{tcblisting}{title={Commutative diagrams: anchor nodes to center}}
+\begin{tikzcd}[row sep=0em,column sep=1em,cramped,
+cells={nodes={anchor=center}}]
+& \dynkin{G}{xx} \arrow{dr} \arrow{dl} & \\ 
+\dynkin{G}{*x} \arrow{dr} &
+& \dynkin{G}{x*} \arrow{dl} \\ 
+& \dynkin{G}{**} \\ 
+\end{tikzcd}
+\end{tcblisting}
+
 \begin{filecontents*}{hermitian-symmetric-spaces.tex}
 \NewDocumentCommand\HSS{mommm}
 {#1&\IfNoValueTF{#2}{\dynkin{#3}{#4}}{\dynkin[parabolic=#2]{#3}{#4}}&#5\\}
@@ -998,8 +1022,6 @@
 A[1]{}
 \end{tcblisting}
 
-\newpage
-
 \section{Affine twisted and untwisted Dynkin diagrams}
 The affine Dynkin diagrams are described in the notation of Kac \cite{Kac:1990} p. 55:
 \begin{tcblisting}{title={Affine Dynkin diagrams}}
@@ -1013,8 +1035,6 @@
 A[2]2,A[2]{even},A[2]{odd},D[2]{},E[2]6,D[3]4}
 \end{dynkinTable}
 
-\newpage
-
 \begin{dynkinTable}{Some more affine Dynkin diagrams}{3cm}{3.25cm}
 \docsvlist{A[2]4,A[2]5,A[2]6,A[2]7,A[2]8,D[2]3,D[2]4,D[2]5,D[2]6,D[2]7,D[2]8,
 D[3]4,E[2]6}
@@ -1036,12 +1056,13 @@
 \docsvlist{A{},B{},C{},D{},E6,E7,E8,F4,G2,H3,H4,I1}
 \end{dynkinTable}
 
+\newpage
+
 \section{Kac style}
 We include a style called \verb!Kac! which tries to imitate the style of \cite{Kac:1990}.
 \begin{tcblisting}{title={Kac style}}
 \dynkin[Kac]F4
 \end{tcblisting}
-\newpage
 \begingroup
 \pgfkeys{/Dynkin diagram,Kac}
 \renewcommand{\do}[1]{\dyn#1}
@@ -1096,7 +1117,6 @@
 \dynkin[ply=3,fold right]D4
 \dynkin[ply=3]D[1]4
 \end{tcblisting}
-\newpage
 \begin{tcblisting}{title={4-ply}}
 \dynkin[ply=4]D[1]4
 \end{tcblisting}
@@ -1261,6 +1281,8 @@
 \dynkinName D[3]4
 \end{tcblisting}
 
+\newpage
+
 \section{Connecting Dynkin diagrams}\label{section:name}
 We can make some sophisticated folded diagrams by drawing multiple diagrams, each with a name:
 \begin{tcblisting}{title={Name a diagram}}

Modified: trunk/Master/texmf-dist/tex/latex/dynkin-diagrams/dynkin-diagrams.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/dynkin-diagrams/dynkin-diagrams.sty	2021-04-04 01:47:13 UTC (rev 58717)
+++ trunk/Master/texmf-dist/tex/latex/dynkin-diagrams/dynkin-diagrams.sty	2021-04-04 01:48:06 UTC (rev 58718)
@@ -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 at user@string}{}%
-				{\dynkin at indefinite@number at symbol}%
-				{\ifdynkin at Satake@diagram%
+			\ifx\dynkin at user@string\empty\relax%
+				\dynkin at indefinite@number at symbol%
+			\else%
+				\ifdynkin at Satake@diagram%
 					\dynkin at user@string%
 				\else%
 					\IfStrEq{\dynkin at user@string}{even}{ev}%
@@ -174,7 +175,7 @@
 						}%
 					}%
 				\fi%
-				}%
+			\fi%
 			\IfStrEq{\dynkin at parabolic}{0}%
 				{}%
 				{,\dynkin at parabolic}
@@ -210,7 +211,6 @@
 
 \NewDocumentCommand\dynkinRefreshRoots{}%
 {%
-???
 	\dynkin at override@label at directions{}%
 	\dynkin at draw@all at roots{}%
 	\ifdynkin at label@the at roots%
@@ -296,10 +296,8 @@
 		Allowed values are up to \the\dynkin at nodes}%
 		{}%
 	\fi%
-	\IfStrEq{#3}{}%
-	{%
-	}%
-	{%
+	\ifx#3\empty\relax%
+	\else%
 		\dynkin at rpo=#2\relax%
 		\advance\dynkin at rpo by 1\relax%
 		\IfBooleanTF{#1}%
@@ -331,7 +329,7 @@
 			]%
 			at (\dynkin at root@name #2){};%
 		}%
-	}%
+	\fi%
 }%
 \newcounter{dynkinRootNo}
 \NewDocumentCommand\@dynkinLabelThisRoot{m}%
@@ -461,7 +459,7 @@
 \newcommand{\dynkinPrintLabels}%
 {%
 	\dynkin at check@if at in@tikZ%
-	\IfStrEq{\dynkin at label@list}{}{%
+	\ifx\dynkin at label@list\empty\relax%
 		\foreach \i in {1,...,\the\dynkin at nodes}{\dynkinLabelRoot{\i}{\i}}%
 		\ifdynkin at is@extended%
 			\dynkinLabelRoot{0}{0}%
@@ -470,8 +468,7 @@
 				\dynkinLabelRoot{0}{0}%
 			\fi%
 		\fi%
-	}%
-	{%
+	\else%
 		\ifdynkin at is@extended%
 			\setcounter{dynkinRootNo}{-1}%	
 		\else%
@@ -481,8 +478,7 @@
 				\setcounter{dynkinRootNo}{0}%	
 			\fi%
 		\fi%
-		\edef\XXX{\dynkin at label@list}%
-		\foreach \i in \XXX%
+		\foreach \i in \dynkin at label@list%
 		{%
 			\@dynkinLabelThisRoot{\i}%
 		}%
@@ -495,7 +491,7 @@
 				\setcounter{dynkinRootNo}{0}%	
 			\fi%
 		\fi%
-	}%
+    \fi%
 }%
 
 % Print alternate location labels.
@@ -502,7 +498,7 @@
 \newcommand{\dynkinPrintLabelsStar}%
 {%
 	\dynkin at check@if at in@tikZ%
-	\IfStrEq{\dynkin at label@list at star}{}{%
+	\ifx\dynkin at label@list at star\empty\relax%
 		\foreach \i in {1,...,\the\dynkin at nodes}{\dynkinLabelRoot*{\i}{\i}}%
 		\ifdynkin at is@extended%
 			\dynkinLabelRoot*{0}{0}%
@@ -511,8 +507,7 @@
 				\dynkinLabelRoot*{0}{0}%
 			\fi%
 		\fi%
-	}%
-	{%
+	\else%
 		\ifdynkin at is@extended%
 			\setcounter{dynkinRootNo}{-1}%	
 		\else%
@@ -522,8 +517,7 @@
 				\setcounter{dynkinRootNo}{0}%	
 			\fi%
 		\fi%
-		\edef\XXX{\dynkin at label@list at star}%
-		\foreach \i in \XXX%
+		\foreach \i in \dynkin at label@list at star%
 		{%
 			\@dynkinLabelThisRootStar{\i}%
 		}%
@@ -536,7 +530,7 @@
 				\setcounter{dynkinRootNo}{0}%	
 			\fi%
 		\fi%
-	}%
+	\fi%
 }%
 
 %% \dynkinEdgeLabel{<n1>}{<n2>}{<s>}
@@ -543,16 +537,16 @@
 %% 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 at root@radius,%
-			label={%
-				[/Dynkin diagram/text style,/Dynkin diagram/edge label]%
-				above:
-				\(\pgfkeys{/Dynkin diagram/label macro*=#3}\)%
-				}%
-			]
-			at ($.5*(\dynkin at root@name \the\@dynkin at from@root)+.5*(\dynkin at root@name \the\@dynkin at to@root)$) 
-			{};
+	\convertRootPair{#1}{#2}%
+	\node[inner sep=\dynkin at root@radius,%
+		label={%
+			[/Dynkin diagram/text style,/Dynkin diagram/edge label]%
+			above:
+			\(\pgfkeys{/Dynkin diagram/label macro*=#3}\)%
+			}%
+		]
+		at ($.5*(\dynkin at root@name \the\@dynkin at from@root)+.5*(\dynkin at root@name \the\@dynkin at to@root)$) 
+		{};
 }%
 
 
@@ -2735,18 +2729,8 @@
 	\ifdynkin at is@upsidedown%
 		\tikzset{yscale=-1}%
 	\fi%
-	\IfStrEq{\dynkin at label@list}{}%
-	{%
-	}%
-	{%
-		\global\dynkin at label@the at rootstrue%
-	}%
-	\IfStrEq{\dynkin at label@list at star}{}%
-	{%
-	}%
-	{%
-		\global\dynkin at label@star at the@rootstrue%
-	}%
+	\ifx\dynkin at label@list\empty\relax\else\global\dynkin at label@the at rootstrue\fi%
+\ifx\dynkin at label@list at star\empty\relax\else\global\dynkin at label@star at the@rootstrue\fi%
 	\xdef\dynkin at user@series{#2}%
 	\xdef\dynkin at twisted@series{#3}%
 	\xdef\dynkin at user@string{#4}%



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