Standalone preamble for TikZ graphics

0 votes
asked Jan 11, 2018 in Closed feature request by JohannesMeier (1,080 points)

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!

1 Answer

0 votes
answered Jan 11, 2018 by plantuml (190,630 points)
selected Mar 21, 2018 by Anthony-Gaudino
 
Best answer
Ok, we've made the modification in last beta http://beta.plantuml.net/plantuml.jar

Does it sound better ?

Thanks!
...