Sequence diagrams: Add column headers in middle of diagram

+1 vote
asked Oct 11, 2019 in Wanted features by dlidstrom (240 points)
Some sequence diagrams that become very high are sometimes hard to understand, due to the fact that the column headers are only on top and on bottom (usually). I thought it would be useful to be able to repeat the column headers in the middle of the diagram, so that the viewer does not have to scroll up to see them.

Probably the complete header is necessary, i.e. name with boxes or actor figures too.

I am thinking some syntax similar to the == xxx === syntax for dividers since this would be almost the same. I.e. adding something horizontally at a custom location.

1 Answer

0 votes
answered Oct 30, 2019 by mgrol (3,150 points)

Hi,

if you still have the problem and you can live with the fact that plantuml will generate multiple images, try adding a "newpage"

@startuml
Alice -> Bob: hello
newpage
Bob --> Alice : hello back
@enduml

This will generate two images with header and footer

BR,

Michaek

commented May 17, 2023 by Alessandro
Hi,

It seems that newpage is not working correctly when used with"!pragma teoz true".

In a two page diagram, for example, I'll get a lot of space at the bottom of the first page (half page is blank).

On the second page I'll get a lot of space at the beginning of the diagram.

I'm using teoz because I need multiple arrows on the same row.

Br,

Alessandro
...