pgf-tikz / pgf-umlcd

Automatically exported from code.google.com/p/pgf-umlcd
Other
8 stars 3 forks source link

Enable Underscore Package, Attribute and Operation names #4

Open sschwindt opened 1 year ago

sschwindt commented 1 year ago

Any use of underscores of a package, attribute or operation name cannot be interpreted by Latex and standard packages, such as \underscore, cannot resolve the issue. As a workaround, embracing arguments #1 and #2 with \detokenize{} in tikzlibraryumlcd.code.tex works for attributes and operations, but cannot be implemented easily for packages. Adding such capacity would be great because underscores are commonly used in Python for package, attributes, and operations.

EagleoutIce commented 4 months ago

There is a similar problem with using a comma (e.g., for Java generics) and \implement. However, this can be solved manually like this:

   \draw[umlcd style implement line] (node cs:name={A<K,V>}) -- (node cs:name={B<K,V>});