Skip to content

Instantly share code, notes, and snippets.

@istitov
Created March 14, 2013 01:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save istitov/5157988 to your computer and use it in GitHub Desktop.
Save istitov/5157988 to your computer and use it in GitHub Desktop.
Example for the standalone package. For http://istitov.wordpress.com/2013/03/14/standalone-latex/
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\draw (0,0) circle (0.4cm);
\end{tikzpicture}
\end{document}
\documentclass[a4paper,10pt]{scrartcl}
\usepackage{tikz} %needed to satisfy build dependencies of the included graph
\usepackage{standalone}
\begin{document}
\begin{figure}[p!]
\input{my_image} %inputting the picture itself
\caption{That's it!}
\label{fig:standalone}
\end{figure}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment