From 671d6f77d0d1ebc0d4353fbac3c37071b4d9c961 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 19 Apr 2013 23:38:45 +0000 Subject: smartdiagram (19apr13) git-svn-id: svn://tug.org/texlive/trunk@30046 c570f23f-e606-0410-a88d-b1316a301751 --- .../source/latex/smartdiagram/smartdiagram.dtx | 29 ++++++++++++++-------- 1 file changed, 19 insertions(+), 10 deletions(-) (limited to 'Master/texmf-dist/source/latex/smartdiagram') diff --git a/Master/texmf-dist/source/latex/smartdiagram/smartdiagram.dtx b/Master/texmf-dist/source/latex/smartdiagram/smartdiagram.dtx index 2dbfe19a12f..fe305caac24 100644 --- a/Master/texmf-dist/source/latex/smartdiagram/smartdiagram.dtx +++ b/Master/texmf-dist/source/latex/smartdiagram/smartdiagram.dtx @@ -105,7 +105,7 @@ and the derived files smartdiagram.ins, % %<*package> \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{smartdiagram}[2013/04/01 v0.3 Automatic creation of smart diagrams from lists of items.] +\ProvidesPackage{smartdiagram}[2013/04/19 v0.3a Automatic creation of smart diagrams from lists of items.] % %<*driver> \documentclass{ltxdoc} @@ -137,7 +137,7 @@ and the derived files smartdiagram.ins, % % \fi % -% \CheckSum{1360} +% \CheckSum{1368} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -161,6 +161,7 @@ and the derived files smartdiagram.ins, % \changes{v0.3}{2013/03/26}{Fix color arrow problem in circular diagram animated, add possibility uniform color list, % added initial null space to items to hypenate first word,libraries, additions, arrows styles % } +% \changes{v0.3a}{2013/04/19}{Fix bug in circular diagram animated: last arrow appearence, added key "back arrow distance"} % % \GetFileInfo{smartdiagram.sty} % \title{The \textsf{smartdiagram} package\thanks{This document @@ -444,8 +445,9 @@ and the derived files smartdiagram.ins, % % \end{itemize} % -% Considering just the \diagram{flow diagram} and the \diagram{flow diagram:horizontal}, there is a specific option to disable the back arrow going from the final module to the first one: +% Considering just the \diagram{flow diagram} and the \diagram{flow diagram:horizontal}, there is a specific option to disable the back arrow going from the final module to the first one and to set its distance from the modules: % \begin{itemize} +% \item \packoption{back arrow distance}{0.5}: the option sets the distance (it hold for both types); % \item \packoption{back arrow disabled}{false}: the option, set to \texttt{true} disables the back arrow. % \end{itemize} % @@ -649,6 +651,7 @@ and the derived files smartdiagram.ins, % uniform color list=teal!60 for 4 items, % arrow style=[-stealth', % module x sep=3.75, +% back arrow distance=0.75, % } % \smartdiagram[flow diagram:horizontal]{Set up,Run,Analyse,Modify~/ Add} % \end{center} @@ -658,6 +661,7 @@ and the derived files smartdiagram.ins, % \smartdiagramset{border color=none, % uniform color list=teal!60 for 4 items, % arrow style=stealth'-], module x sep=3.75, +% back arrow distance=0.75, % } % \smartdiagram[flow diagram:horizontal]{Set up,Run,Analyse,Modify~/ Add} % } @@ -1087,7 +1091,7 @@ and the derived files smartdiagram.ins, % % I would also like to thank \href{http://tex.stackexchange.com/users/4427/egreg}{Enrico Gregorio} and \href{http://tex.stackexchange.com/users/994/ahmed-musa}{Ahmed Musa} for the courtesy of explaining me why my poor attempt in creating the \smkey{set color list} failed and for providing me valid solutions. % -% Last, but not least, I would like to thank prof.~Ludger~Humbert for suggesting and providing the code for the \diagram{circular diagram:clockwise} and André Hilbig for suggesting the key \smkey{back arrow disabled}. +% Last, but not least, I would like to thank prof.~Ludger~Humbert for suggesting and providing the code for the \diagram{circular diagram:clockwise} as well as for pointing out some bugs in the version 0.3 and André Hilbig for suggesting the key \smkey{back arrow disabled}. % \StopEventually{\PrintChanges} % \iffalse %<*package> @@ -1236,6 +1240,7 @@ and the derived files smartdiagram.ins, sequence item uniform color/.initial={gray!60!black}, arrow style/.initial={<-}, text color/.initial={black}, + back arrow distance/.initial={0.5}, }% \pgfkeys{/smart diagram/.cd, module minimum width/.get=\sm@core@modulewidth, @@ -1298,6 +1303,7 @@ and the derived files smartdiagram.ins, sequence item uniform color/.get=\sm@core@seqitemuniformcol, arrow style/.get=\sm@core@arrowstyle, text color/.get=\sm@core@textcolor, + back arrow distance/.get=\sm@core@backarrowdistance, }% % \end{macrocode} % The specific key to set the list of colors: @@ -1410,6 +1416,7 @@ and the derived files smartdiagram.ins, sequence item uniform color/.get=\sm@core@seqitemuniformcol, arrow style/.get=\sm@core@arrowstyle, text color/.get=\sm@core@textcolor, + back arrow distance/.get=\sm@core@backarrowdistance, }% }% % \end{macrocode} @@ -1712,14 +1719,14 @@ and the derived files smartdiagram.ins, \ifnum\xi=\maxsmitem \IfStrEq{\option}{horizontal}{% true-horizontal-flow diagram \tikzset{square arrow/.style={ - to path={-- ++(0,0.5) -| (\tikztotarget)} + to path={-- ++(0,\sm@core@backarrowdistance) -| (\tikztotarget)} } } \draw[diagram arrow type, square arrow] (module\xj.north) to (module\xi.north); }{% false-horizontal-flow diagram \tikzset{square arrow/.style={ - to path={-- ++(0.5,0) |- (\tikztotarget)} + to path={-- ++(\sm@core@backarrowdistance,0) |- (\tikztotarget)} } } \draw[diagram arrow type,square arrow] @@ -1891,10 +1898,12 @@ and the derived files smartdiagram.ins, \pgfmathtruncatemacro{\adv}{\xi + 1)} \edef\col{\@nameuse{color@\xj}} \IfStrEq{\option}{clockwise}{% true-clockwise-circular diagram - \draw[diagram arrow type,shorten <=0.3cm,shorten >=0.3cm] + \draw[diagram arrow type,shorten <=0.3cm,shorten >=0.3cm, + smvisible on=<\adv->] (module\xj) to[bend right] (module\xi); }{% false-clockwise-circular diagram - \draw[diagram arrow type,shorten <=0.3cm,shorten >=0.3cm] + \draw[diagram arrow type,shorten <=0.3cm,shorten >=0.3cm, + smvisible on=<\adv->] (module\xj) to[bend left] (module\xi); } \fi @@ -1950,14 +1959,14 @@ and the derived files smartdiagram.ins, \ifnum\xi=\maxsmitem \IfStrEq{\option}{horizontal}{% true-horizontal-flow diagram \tikzset{square arrow/.style={ - to path={-- ++(0,0.5) -| (\tikztotarget)} + to path={-- ++(0,\sm@core@backarrowdistance) -| (\tikztotarget)} } } \draw[diagram arrow type, square arrow,smvisible on=<\xi->] (module\xj.north) to (module\xi.north); }{% false-horizontal-flow diagram \tikzset{square arrow/.style={ - to path={-- ++(0.5,0) |- (\tikztotarget)} + to path={-- ++(\sm@core@backarrowdistance,0) |- (\tikztotarget)} } } \draw[diagram arrow type,square arrow,smvisible on=<\xi->] -- cgit v1.2.3