BITPlan / diagrams

Online diagrams-Service supporting graphviz, mscgen and plantuml markup
http://diagrams2.bitplan.com
Apache License 2.0
2 stars 4 forks source link

TIKZ code as result #9

Closed MBoegers closed 4 years ago

MBoegers commented 4 years ago

Using TIKZ is the common way to draw pictures/diagrams with latex. An output option would be very helpful. Below is an example of an UML-Class diagram using the tikz-uml package, see overleaf example as well.

\begin{tikzpicture}
  \begin{umlpackage}{EquipmentProfile}
    \umlclass[]{Terminal}{conductedTo : ACLineSegment\\limit: Limit}{}
    \umlclass[x=-5, y=-3]{Limit}{value : double}{}
    \umlclass[x=+5, y=-3]{ACLineSegment}{}{}
    \umlclass[y=-5]{IdentifiedObject}{name : string\\mrid : IRI}{}

    \umlinherit[geometry=|-]{ACLineSegment}{IdentifiedObject}
    \umlinherit[geometry=|-]{Limit}{IdentifiedObject}
    \umlinherit[geometry=-|]{Terminal}{IdentifiedObject}

    \umlunicompo[mult=0..2, pos2=0.5]{Terminal}{ACLineSegment}
    \umlunicompo[mult=1]{Terminal}{Limit}
  \end{umlpackage}
\end{tikzpicture}

Renders to: grafik

WolfgangFahl commented 4 years ago

Would direct latex code as in https://plantuml.com/de/latex also be acceptable?

WolfgangFahl commented 4 years ago

see https://de.overleaf.com/read/qrxwdbpwjgkb for how the diagrams service can already help with Latex/Overleav