How te remove the white space on the right side of the figure? I need to crop the figure and control the padding around it..
Ex: How to generate a series of \paused stand-alone TikZ images?
How te remove the white space on the right side of the figure? I need to crop the figure and control the padding around it..
Ex: How to generate a series of \paused stand-alone TikZ images?
The standalone package by default crops the page to its contents. There is also a border option (also called margin, which I think is a better name) that allows you to put a white space margin around it. You can even specify all four margins differently. Here is an example:
\documentclass[tikz, margin=5mm]{standalone}
\begin{document}
\tikz \draw[thick,rounded corners=8pt]
(0,0) -- (0,2) -- (1,3.25) -- (2,2) -- (2,0) -- (0,2) -- (2,2) -- (0,0) -- (2,0);
\end{document}
N.B. The gray border is not part of the file. It is the background of the viewer, included to show the size of the resulting output.
\begin{document} \begin{standaloneframe} \begin{tikzpicture} \tikz \draw[thick,rounded corners=8pt] (0,0) -- (0,2) -- (1,3.25); \end{tikzpicture} \end{standaloneframe}
\begin{standaloneframe} \begin{tikzpicture} \tikz \draw[thick,rounded corners=8pt] (0,0) -- (0,2) -- (1,3.25) -- (2,2) -- (2,0) -- (0,2) -- (2,2) -- (0,0) -- (2,0); \end{tikzpicture} \end{standaloneframe}
\end{document}
– Ahmed Hawary Dec 12 '16 at 09:55