Use \tikz
instead of the tikzpicture
environment
Instead of creating a tikzpicture
environment (36 bytes) you can use the \tikz
command (7 bytes)
Global options can be set in square brackets in using the tikz command as such \tikz[options...]{...}
. If the tikz code is one line long the curly braces can be omitted saving an additional two bytes.
Example:
Both of the following programs output the image at the bottom
\documentclass{standalone}\input tikz\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);\draw(-1.5,0)--(0,1.5);}\end{document}
\documentclass{standalone}\input tikz\begin{document}\begin{tikzpicture}\draw[thick,rounded corners=8pt](0,0)--(0,2)--(1,3.25)--(2,2)--(2,0)--(0,2)--(2,2)--(0,0)--(2,0);\draw(-1.5,0)--(0,1.5);\end{tikzpicture}\end{document}

Credit to WheatWizard for figuring the multiline use of \tikz