# Standalone preamble for TikZ graphics

asked Jan 11, 2018

Hello,

currently, the graphics build by TikZ are surrounded by an article document (class) like this:

\documentclass{article}

\usepackage{tikz}

\usepackage{aeguill}

\begin{document}

\begin{tikzpicture}

...

\end{tikzpicture}

\end{document}

Instead of using article, I recommend to use the standalone document class

\documentclass{standalone}

https://tex.stackexchange.com/questions/32127/standalone-tikz-pictures

Benefit: The size of the final PDF (generated by LaTeX) fits the graphic exactly. In particular, that is important for graphics which are bigger than the default paper size!

answered Jan 11, 2018 by (286,820 points)
selected Mar 21, 2018

Ok, we've made the modification in last beta http://beta.plantuml.net/plantuml.jar

Does it sound better ?

Thanks!