You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I wanted to add a caption to my plantuml. I tried to solve this with wrapping inside a figure.
But now I have to problem that the plantuml floats sometimes in really bad ways, even sometimes it places itself between other lstlistings :/.
Is there a way to do better?
\begin{figure}[h]
\begin{plantuml}
@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> Bob: Another authentication Request
Alice <-- Bob: another authentication Response
@enduml
\end{plantuml}
\caption{my caption}
\label{my label}
\end{figure}
The text was updated successfully, but these errors were encountered:
Can you post a MWE for bad positioning? The figure approach is the right one. I assume, you do \begin{listing} without float option. Thus, please either let all listings float or all figures not float (not recommended! - \usepackage{float} offers H to turn off floating)
I would try to isolate it, making my UML diagram into a separate document using the standalone class to get an image that I can insert as a figure and then make use of all the options of a floating object.
But that may be the most lazy and the least interesting solution.
Hello,
I wanted to add a caption to my plantuml. I tried to solve this with wrapping inside a figure.
But now I have to problem that the plantuml floats sometimes in really bad ways, even sometimes it places itself between other lstlistings :/.
Is there a way to do better?
The text was updated successfully, but these errors were encountered: