Skip to content

Instantly share code, notes, and snippets.

@gaspardpetit
Last active January 30, 2025 18:18
Show Gist options
  • Select an option

  • Save gaspardpetit/95e6bb087fcc61c1afbf4b9e17b2f893 to your computer and use it in GitHub Desktop.

Select an option

Save gaspardpetit/95e6bb087fcc61c1afbf4b9e17b2f893 to your computer and use it in GitHub Desktop.
Plantuml Activity Diagram Template for Patent Figures
@startuml
!theme plain
hide empty description
skinparam defaultFontName Arial
skinparam defaultFontSize 16
skinparam activityFontSize 16
skinparam activityDiamondFontSize 16
skinparam activityArrowFontSize 14
skinparam footerFontSize 24
skinparam padding 2
skinparam boxPadding 0
skinparam participantPadding 0
skinparam pageMargin 0
skinparam defaultTextAlignment center
<style>
activityDiagram {
.dashed {
LineStyle 4
}
}
</style>
title <b><u>100</u></b>\n
|**Activity**|
:Step <b><u>110</u></b>;
|**Optional**|
-[dotted]->
:Optional Step <b><u>210</u></b>;<<dashed>>
|**Loop**|
repeat :Repeated Action 1<b><u>310</u></b>;
:Repeated Action 2<b><u>320</u></b>;
backward :When Repating <b><u>340</u></b>;
repeat while ("Repeat Condition <b><u>330</u></b>") is (no <b><u>332</u></b>)
->yes <b><u>334</u></b>;
:Done <b><u>350</u></b>;
|**Switch-Case**|
switch (test?)
case ( condition A )
:Text 1;
case ( condition B )
:Text 2;
endswitch
|**Parallel**|
fork
:action 1;
fork again
:action 2;
end merge
|**Groups**|
partition "Step 1" {
:Step 1.1;
:Step 1.2;
:Step 1.3;
}
footer "\nFigure 1"
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment