Open GoogleCodeExporter opened 9 years ago
Original comment by xuyuan...@gmail.com
on 31 Jan 2012 at 1:58
Maybe it's better to use a label to write the name of the class instead of the shape-name (ID) itself. I made a workaround by adding a label argument to the class-environment.
\renewenvironment{class}[4][]% add another argument
{
\def\umlcdClassLabel{#4}% define label here
\begin{classAndInterfaceCommon}{#1}{#2}{#3}
}%
{
\calcuateNumberOfParts{}
% another change is in the following line, where "anchor=north" was moved before "this umlcd style" % this is an other tip from https://github.com/xuyuan/pgf-umlcd/pull/16
\node[anchor=north,this umlcd style] (\umlcdClassName) at (\umlcdClassPos)
{\textbf{\umlcdClassLabel} % ClassLabel instead of ClassName (ID)
\insertAttributesAndOperations{}
};
\end{classAndInterfaceCommon}
}
Original issue reported on code.google.com by
CLe...@gmail.com
on 13 Dec 2011 at 4:40