Skip to content

Instantly share code, notes, and snippets.

@abusse
Last active January 31, 2016 13:37
Show Gist options
  • Save abusse/ba77b5a55b81e07aae75 to your computer and use it in GitHub Desktop.
Save abusse/ba77b5a55b81e07aae75 to your computer and use it in GitHub Desktop.
--- tikz-uml.sty.orig 2015-10-10 23:44:04.978866966 -0300
+++ tikz-uml.sty 2015-10-10 23:29:46.902834319 -0300
@@ -16,7 +16,7 @@
\RequirePackage{xstring}%
\RequirePackage{calc}%
\RequirePackage{pgfopts}%
-\usetikzlibrary{backgrounds,arrows,shapes,fit,shadows,decorations.markings}%
+\usetikzlibrary{backgrounds,arrows,shapes,fit,shadows,decorations.markings,math}%
\def\tikzumlPackageLayersNum{3}%
\pgfkeys{/tikzuml/options/.cd, packageLayers/.initial=3}%
@@ -626,7 +626,11 @@
\setcounter{posT}{100*\real{\positionT}}%
\setcounter{posStereo}{100*\real{\positionStereotype}}%
%
- \pgfmathsetmacro{\weightT}{1-\real{\weight}}%
+ % \pgfmathsetmacro{\weightT}{1-\real{\weight}}%
+ \tikzmath{%
+ real \weightT;%
+ \weightT = 1 - real \weight;%
+ }%
%
\def\tikzumlControlNodesNum{0}%
%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment