% Renders a diagram through a PlantUML *server* instead of a local plantuml.jar,
% so no Java/PlantUML installation is needed -- only curl. See #6.
%
% The `server` option below points at a local server (e.g. the official
% `plantuml/plantuml-server` Docker image on port 8080). To use the public
% server instead, set it to https://www.plantuml.com/plantuml. Alternatively,
% drop the option and set the PLANTUML_SERVER environment variable.
%
% Only png and svg work via a server; latex/TikZ output always uses the jar.
% PNG output needs neither inkscape nor xelatex.
\documentclass{scrartcl}
\usepackage[output=png, server=http://localhost:8080]{plantuml}
\begin{document}
\begin{plantuml}
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
\end{plantuml}
\end{document}
