What's the best way to draw UML class diagrams in LaTeX?
|
|
|||||||||||
|
|
For UML class diagrams I'd recommend |
|||||||
|
|
A nice package I found a while ago is this: TikZ-UML. It provides:
It works pretty well, at least with the sequence diagrams I used. |
|||
|
|
|
Tangentially related to Willie's answer, if you think you might use graphviz to generate the diagrams, you might consider doxygen. This approach would be especially handy if you have more documentation than just the diagrams to create. Doxygen is intended to document software projects. If you have a set of classes in C++ or java, then you can use doxygen to generate latex from the source code. It can automatically generate several types of diagrams from the source, including UML class diagrams all hyperlinked and integrated with the rest of the documentation and its source code. |
|||
|
|
|
(Lifted from Dima's answer to my question on flowcharts.) You can also use the Dot language and GraphViz. With UMLGraph you can generate GraphViz specs, and use dot2tex or Mark Aufflick's graphviz.sty to embed the graphs into LaTeX. |
|||
|
|
|
While I guess there are nicer ways to do it, I recently came across this example on texample.net on one way to produce UML diagrams with TikZ. |
|||
|
|