texlive[42781] Master/texmf-dist: smartdiagram (23dec16)

commits+karl at tug.org commits+karl at tug.org
Sat Dec 24 00:05:18 CET 2016


Revision: 42781
          http://tug.org/svn/texlive?view=revision&revision=42781
Author:   karl
Date:     2016-12-24 00:05:18 +0100 (Sat, 24 Dec 2016)
Log Message:
-----------
smartdiagram (23dec16)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/smartdiagram/smartdiagram.pdf
    trunk/Master/texmf-dist/source/latex/smartdiagram/smartdiagram.dtx
    trunk/Master/texmf-dist/tex/latex/smartdiagram/smartdiagram.sty
    trunk/Master/texmf-dist/tex/latex/smartdiagram/smartdiagramlibrarycore.commands.code.tex
    trunk/Master/texmf-dist/tex/latex/smartdiagram/smartdiagramlibrarycore.definitions.code.tex
    trunk/Master/texmf-dist/tex/latex/smartdiagram/smartdiagramlibrarycore.styles.code.tex

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

Modified: trunk/Master/texmf-dist/source/latex/smartdiagram/smartdiagram.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/smartdiagram/smartdiagram.dtx	2016-12-23 23:04:49 UTC (rev 42780)
+++ trunk/Master/texmf-dist/source/latex/smartdiagram/smartdiagram.dtx	2016-12-23 23:05:18 UTC (rev 42781)
@@ -105,7 +105,7 @@
 %</internal>
 %<*package>
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{smartdiagram}[2013/04/19 v0.3a Automatic creation of smart diagrams from lists of items.]
+\ProvidesPackage{smartdiagram}[2016/12/23 v0.3b Automatic creation of smart diagrams from lists of items.]
 %</package>
 %<*driver>
 \documentclass{ltxdoc}
@@ -162,6 +162,7 @@
 %   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"}
+% \changes{v0.3b}{2016/12/23}{Fix bug uniform color list}
 %
 % \GetFileInfo{smartdiagram.sty}
 % \title{The \textsf{smartdiagram} package\thanks{This document
@@ -171,7 +172,7 @@
 % \maketitle
 % \begin{abstract}
 % This package provides a way to easily draw diagrams in documents and presentations from a list of items thanks to Ti\textit{k}Z.
-% The idea cames out from \href{http://tex.stackexchange.com/questions/78310/powerpoints-smart-art-for-tikz}{this question} on \href{http://tex.stackexchange.com}{TeX.StackExchange}.
+% The idea originated from \href{http://tex.stackexchange.com/questions/78310/powerpoints-smart-art-for-tikz}{this question} on \href{http://tex.stackexchange.com}{TeX.StackExchange}.
 %
 % \end{abstract}
 %
@@ -1089,7 +1090,7 @@
 % \section{Aknowledgements}
 % I would like to acknowledge first of all \href{http://tex.stackexchange.com/users/3144/alain-matthes}{Alain Matthes} and \href{http://tex.stackexchange.com/users/4956/mohsen}{Mohsen} because the \diagram{bubble diagram} and the \diagram{constellation diagram} are based on \href{http://tex.stackexchange.com/questions/52394/high-level-macros-and-environments-based-on-tikz?#52408}{Alain's answer} while the \diagram{circular diagram} is based on \href{http://tex.stackexchange.com/questions/52394/high-level-macros-and-environments-based-on-tikz?#52972}{Mohsen's answer}.
 %
-% 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.
+% 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. Enrico also kindly fixed a spacing bug concerning the \smkey{uniform color list}.
 %
 % 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}
@@ -1308,31 +1309,31 @@
 %    \end{macrocode} 
 % The specific key to set the list of colors:
 %    \begin{macrocode}
-\pgfkeys{/smart diagram/.cd, set color list/.code={
-      \foreach \listitem [count=\i] in {#1}{
-         \global\@namedef{color@\i\expandafter}\expandafter{\listitem}
-      }
-   } 
+\pgfkeys{/smart diagram/.cd, set color list/.code={%
+      \foreach \listitem [count=\i] in {#1}{%
+         \global\@namedef{color@\i\expandafter}\expandafter{\listitem}%
+      }%
+   }%
 }
 
-\pgfkeys{/smart diagram/.cd, uniform color list/.code args={#1 for #2 items}{
-      \foreach \listitem [count=\i] in {1,...,#2}{
-         \global\@namedef{color@\i\expandafter}\expandafter{#1}
-      }
-   } 
+\pgfkeys{/smart diagram/.cd, uniform color list/.code args={#1 for #2 items}{%
+      \foreach \listitem [count=\i] in {1,...,#2}{%
+         \global\@namedef{color@\i\expandafter}\expandafter{#1}%
+      }%
+   }%
 }
 
-\pgfkeys{/smart diagram/.cd, use predefined color list/.code={
-      \@namedef{color at 1}{red!30}
-      \@namedef{color at 2}{cyan!30}   
-      \@namedef{color at 3}{blue!30} 
-      \@namedef{color at 4}{green!30}  
-      \@namedef{color at 5}{orange!30} 
-      \@namedef{color at 6}{yellow!30}    
-      \@namedef{color at 7}{magenta!30}    
-      \@namedef{color at 8}{brown!30}
-      \@namedef{color at 9}{violet!30}
-      \@namedef{color at 10}{teal!30}
+\pgfkeys{/smart diagram/.cd, use predefined color list/.code={%
+      \@namedef{color at 1}{red!30}%
+      \@namedef{color at 2}{cyan!30}%   
+      \@namedef{color at 3}{blue!30}%
+      \@namedef{color at 4}{green!30}%  
+      \@namedef{color at 5}{orange!30}% 
+      \@namedef{color at 6}{yellow!30}%   
+      \@namedef{color at 7}{magenta!30}%    
+      \@namedef{color at 8}{brown!30}%
+      \@namedef{color at 9}{violet!30}%
+      \@namedef{color at 10}{teal!30}%
    } 
 }
 %    \end{macrocode} 
@@ -1425,13 +1426,13 @@
 \pgfkeys{/smart diagram/.cd,% 
     uniform sequence color/.is choice,%
     uniform sequence color/true/.code={%
-      \tikzset{sequence item/.append style={
+      \tikzset{sequence item/.append style={%
          fill=\sm at core@seqitemuniformcol,
-         },
-       }
+         },%
+       }%
     },%
     uniform sequence color/false/.style={sequence item},%
-    uniform sequence color/.default=false,
+    uniform sequence color/.default=false,%
 }%
 %    \end{macrocode}
 % Key to let the connection planet satellite color be uniform:
@@ -1439,13 +1440,13 @@
 \pgfkeys{/smart diagram/.cd,% 
       uniform connection color/.is choice,%
       uniform connection color/true/.code={%
-        \tikzset{connection planet satellite/.append style={
+        \tikzset{connection planet satellite/.append style={%
            \sm at core@connectioncolor
-           },
-        }
+           },%
+        }%
       },%
       uniform connection color/false/.style={connection planet satellite},%
-    uniform connection color/.default=false,
+    uniform connection color/.default=false,%
 }%
 %    \end{macrocode}
 % Key to let the arrow color be uniform:
@@ -1453,13 +1454,13 @@
 \pgfkeys{/smart diagram/.cd,% 
       uniform arrow color/.is choice,%
       uniform arrow color/true/.code={%
-        \tikzset{diagram arrow type/.append style={
+        \tikzset{diagram arrow type/.append style={%
            \sm at core@arrowcolor
-           },
-        }
+           },%
+        }%
       },%
       uniform arrow color/false/.style={diagram arrow type},%
-    uniform arrow color/.default=false,
+    uniform arrow color/.default=false,%
 }%
 
 %    \end{macrocode}
@@ -1482,7 +1483,7 @@
   }
 }
 
-\tikzset{module/.style={
+\tikzset{module/.style={%
       \pgfkeysvalueof{/smart diagram/module shape},
       thick,
       draw=\sm at core@bordercolor,
@@ -1495,14 +1496,14 @@
       font=\sm at core@modulefontsize,
       \sm at core@borderdecoration
    },
-   diagram arrow type/.style={
+   diagram arrow type/.style={%
       \sm at core@arrowstyle,
       >=\sm at core@arrowtip,
       line width=\sm at core@arrowlinewidth,
       \col
-   },
+   },%
 }
-\tikzset{description title/.style={
+\tikzset{description title/.style={%
       circle,
       draw=\sm at core@bordercolor,
       minimum width=\sm at core@descriptiontitlewidth,
@@ -1513,7 +1514,7 @@
       text width=\sm at core@descriptiontitletextwidth,
       \sm at core@borderdecoration,
    },
-   description/.style={
+   description/.style={%
       \pgfkeysvalueof{/smart diagram/module shape},
       text width=\sm at core@descriptiontextwidth,
       draw=\sm at core@bordercolor, 
@@ -1524,7 +1525,7 @@
       top color=white!80!\col,
       font=\sm at core@descriptionfontsize,
       \sm at core@borderdecoration,
-   }
+   }%
 }
 \tikzset{priority arrow/.style={
       draw=\sm at core@bordercolor,
@@ -1600,22 +1601,22 @@
   }
 }
 % let the first word of the item be hypenate
-\tikzset{let hypenation/.style={ 
+\tikzset{let hypenation/.style={%
     execute at begin node={%
        \hspace{0pt}%
-    }
-  }
+    }%
+  }%
 }%
 %    \end{macrocode}
 % The definition of the visibility style:
 %    \begin{macrocode}
-\tikzset{
+\tikzset{%
    sminvisible/.style={opacity=0,text opacity=0},
    smvisible on/.style={smalt=#1{}{sminvisible}},
    smalt/.code args={<#1>#2#3}{%
       \alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}}
-   },
-}
+   },%
+}%
 %    \end{macrocode}
 % \iffalse
 %</styles>
@@ -1718,20 +1719,20 @@
    \else
      \ifnum\xi=\maxsmitem     
        \IfStrEq{\option}{horizontal}{% true-horizontal-flow diagram
-         \tikzset{square arrow/.style={
+         \tikzset{square arrow/.style={%
             to path={-- ++(0,\sm at core@backarrowdistance) -| (\tikztotarget)}
-            }
-         }
+            }%
+         }%
          \draw[diagram arrow type, square arrow] 
           (module\xj.north) to (module\xi.north);
        }{% false-horizontal-flow diagram
-         \tikzset{square arrow/.style={
+         \tikzset{square arrow/.style={%
             to path={-- ++(\sm at core@backarrowdistance,0) |- (\tikztotarget)}
-            }
-         }
+            }%
+         }%
          \draw[diagram arrow type,square arrow]
            (module\xj.east) to (module\xi);         
-       }
+       }%
      \fi
    \fi
    }%

Modified: trunk/Master/texmf-dist/tex/latex/smartdiagram/smartdiagram.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/smartdiagram/smartdiagram.sty	2016-12-23 23:04:49 UTC (rev 42780)
+++ trunk/Master/texmf-dist/tex/latex/smartdiagram/smartdiagram.sty	2016-12-23 23:05:18 UTC (rev 42781)
@@ -15,7 +15,7 @@
 %% * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 %% 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{smartdiagram}[2013/04/19 v0.3a Automatic creation of smart diagrams from lists of items.]
+\ProvidesPackage{smartdiagram}[2016/12/23 v0.3b Automatic creation of smart diagrams from lists of items.]
 
 \RequirePackage{tikz}
 

Modified: trunk/Master/texmf-dist/tex/latex/smartdiagram/smartdiagramlibrarycore.commands.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/smartdiagram/smartdiagramlibrarycore.commands.code.tex	2016-12-23 23:04:49 UTC (rev 42780)
+++ trunk/Master/texmf-dist/tex/latex/smartdiagram/smartdiagramlibrarycore.commands.code.tex	2016-12-23 23:05:18 UTC (rev 42781)
@@ -106,20 +106,20 @@
    \else
      \ifnum\xi=\maxsmitem
        \IfStrEq{\option}{horizontal}{% true-horizontal-flow diagram
-         \tikzset{square arrow/.style={
+         \tikzset{square arrow/.style={%
             to path={-- ++(0,\sm at core@backarrowdistance) -| (\tikztotarget)}
-            }
-         }
+            }%
+         }%
          \draw[diagram arrow type, square arrow]
           (module\xj.north) to (module\xi.north);
        }{% false-horizontal-flow diagram
-         \tikzset{square arrow/.style={
+         \tikzset{square arrow/.style={%
             to path={-- ++(\sm at core@backarrowdistance,0) |- (\tikztotarget)}
-            }
-         }
+            }%
+         }%
          \draw[diagram arrow type,square arrow]
            (module\xj.east) to (module\xi);
-       }
+       }%
      \fi
    \fi
    }%

Modified: trunk/Master/texmf-dist/tex/latex/smartdiagram/smartdiagramlibrarycore.definitions.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/smartdiagram/smartdiagramlibrarycore.definitions.code.tex	2016-12-23 23:04:49 UTC (rev 42780)
+++ trunk/Master/texmf-dist/tex/latex/smartdiagram/smartdiagramlibrarycore.definitions.code.tex	2016-12-23 23:05:18 UTC (rev 42781)
@@ -158,31 +158,31 @@
    text color/.get=\sm at core@textcolor,
    back arrow distance/.get=\sm at core@backarrowdistance,
 }%
-\pgfkeys{/smart diagram/.cd, set color list/.code={
-      \foreach \listitem [count=\i] in {#1}{
-         \global\@namedef{color@\i\expandafter}\expandafter{\listitem}
-      }
-   }
+\pgfkeys{/smart diagram/.cd, set color list/.code={%
+      \foreach \listitem [count=\i] in {#1}{%
+         \global\@namedef{color@\i\expandafter}\expandafter{\listitem}%
+      }%
+   }%
 }
 
-\pgfkeys{/smart diagram/.cd, uniform color list/.code args={#1 for #2 items}{
-      \foreach \listitem [count=\i] in {1,...,#2}{
-         \global\@namedef{color@\i\expandafter}\expandafter{#1}
-      }
-   }
+\pgfkeys{/smart diagram/.cd, uniform color list/.code args={#1 for #2 items}{%
+      \foreach \listitem [count=\i] in {1,...,#2}{%
+         \global\@namedef{color@\i\expandafter}\expandafter{#1}%
+      }%
+   }%
 }
 
-\pgfkeys{/smart diagram/.cd, use predefined color list/.code={
-      \@namedef{color at 1}{red!30}
-      \@namedef{color at 2}{cyan!30}
-      \@namedef{color at 3}{blue!30}
-      \@namedef{color at 4}{green!30}
-      \@namedef{color at 5}{orange!30}
-      \@namedef{color at 6}{yellow!30}
-      \@namedef{color at 7}{magenta!30}
-      \@namedef{color at 8}{brown!30}
-      \@namedef{color at 9}{violet!30}
-      \@namedef{color at 10}{teal!30}
+\pgfkeys{/smart diagram/.cd, use predefined color list/.code={%
+      \@namedef{color at 1}{red!30}%
+      \@namedef{color at 2}{cyan!30}%
+      \@namedef{color at 3}{blue!30}%
+      \@namedef{color at 4}{green!30}%
+      \@namedef{color at 5}{orange!30}%
+      \@namedef{color at 6}{yellow!30}%
+      \@namedef{color at 7}{magenta!30}%
+      \@namedef{color at 8}{brown!30}%
+      \@namedef{color at 9}{violet!30}%
+      \@namedef{color at 10}{teal!30}%
    }
 }
 \newif\ifbackarrowdisabled
@@ -263,35 +263,35 @@
 \pgfkeys{/smart diagram/.cd,%
     uniform sequence color/.is choice,%
     uniform sequence color/true/.code={%
-      \tikzset{sequence item/.append style={
+      \tikzset{sequence item/.append style={%
          fill=\sm at core@seqitemuniformcol,
-         },
-       }
+         },%
+       }%
     },%
     uniform sequence color/false/.style={sequence item},%
-    uniform sequence color/.default=false,
+    uniform sequence color/.default=false,%
 }%
 \pgfkeys{/smart diagram/.cd,%
       uniform connection color/.is choice,%
       uniform connection color/true/.code={%
-        \tikzset{connection planet satellite/.append style={
+        \tikzset{connection planet satellite/.append style={%
            \sm at core@connectioncolor
-           },
-        }
+           },%
+        }%
       },%
       uniform connection color/false/.style={connection planet satellite},%
-    uniform connection color/.default=false,
+    uniform connection color/.default=false,%
 }%
 \pgfkeys{/smart diagram/.cd,%
       uniform arrow color/.is choice,%
       uniform arrow color/true/.code={%
-        \tikzset{diagram arrow type/.append style={
+        \tikzset{diagram arrow type/.append style={%
            \sm at core@arrowcolor
-           },
-        }
+           },%
+        }%
       },%
       uniform arrow color/false/.style={diagram arrow type},%
-    uniform arrow color/.default=false,
+    uniform arrow color/.default=false,%
 }%
 
 

Modified: trunk/Master/texmf-dist/tex/latex/smartdiagram/smartdiagramlibrarycore.styles.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/smartdiagram/smartdiagramlibrarycore.styles.code.tex	2016-12-23 23:04:49 UTC (rev 42780)
+++ trunk/Master/texmf-dist/tex/latex/smartdiagram/smartdiagramlibrarycore.styles.code.tex	2016-12-23 23:05:18 UTC (rev 42781)
@@ -25,7 +25,7 @@
   }
 }
 
-\tikzset{module/.style={
+\tikzset{module/.style={%
       \pgfkeysvalueof{/smart diagram/module shape},
       thick,
       draw=\sm at core@bordercolor,
@@ -38,14 +38,14 @@
       font=\sm at core@modulefontsize,
       \sm at core@borderdecoration
    },
-   diagram arrow type/.style={
+   diagram arrow type/.style={%
       \sm at core@arrowstyle,
       >=\sm at core@arrowtip,
       line width=\sm at core@arrowlinewidth,
       \col
-   },
+   },%
 }
-\tikzset{description title/.style={
+\tikzset{description title/.style={%
       circle,
       draw=\sm at core@bordercolor,
       minimum width=\sm at core@descriptiontitlewidth,
@@ -56,7 +56,7 @@
       text width=\sm at core@descriptiontitletextwidth,
       \sm at core@borderdecoration,
    },
-   description/.style={
+   description/.style={%
       \pgfkeysvalueof{/smart diagram/module shape},
       text width=\sm at core@descriptiontextwidth,
       draw=\sm at core@bordercolor,
@@ -67,7 +67,7 @@
       top color=white!80!\col,
       font=\sm at core@descriptionfontsize,
       \sm at core@borderdecoration,
-   }
+   }%
 }
 \tikzset{priority arrow/.style={
       draw=\sm at core@bordercolor,
@@ -142,19 +142,19 @@
       text=\sm at core@seqitemtextcolor,
   }
 }
-\tikzset{let hypenation/.style={
+\tikzset{let hypenation/.style={%
     execute at begin node={%
        \hspace{0pt}%
-    }
-  }
+    }%
+  }%
 }%
-\tikzset{
+\tikzset{%
    sminvisible/.style={opacity=0,text opacity=0},
    smvisible on/.style={smalt=#1{}{sminvisible}},
    smalt/.code args={<#1>#2#3}{%
       \alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}}
-   },
-}
+   },%
+}%
 
 %% 
 %% Copyright (C) 2012-2013 by Claudio Fiandrino



More information about the tex-live-commits mailing list