I am drawing an tikz
picture using standalone
class, but there is weird blank space on the left side. My code is
\documentclass{standalone}
\usepackage{kerkis}
\usepackage{tikz}
\begin{document}
\usetikzlibrary{positioning}
\tikzset{
gold/.style = {
top color=gray!60,
bottom color=gray!20,
minimum width=0.25cm,
minimum height=2cm,
anchor=west,
},
boron/.style = {
top color=gray!80,
bottom color=gray!40,
minimum width=1cm,
minimum height=2cm,
anchor=west,
},
telescope/.style = {
right color=black!70,
left color=black!20,
minimum width=1.2cm,
minimum height=.4cm,
sloped,
pos=1,
rotate=90,
},
E/.style = {
top color=black!80,
bottom color=black!40,
minimum width=1.2cm,
minimum height=1.4cm,
sloped,
pos=1,
rotate=90,
},
}
\begin{tikzpicture}
\coordinate (beam left) at (-5,0);
\coordinate (beam right) at (2,0);
% Incident Beam
\draw[->, very thick] (beam left) -- (beam right);
\node[above right] at (beam left) (proton) {$p^+$};
% Target : Boron + Au
\node[gold, label=95:$Au$] at (6,0) (gold) {};% Au
\node[boron, right=0mm of gold, label=80:$^{nat}B$] (boron) {};
\coordinate (hit) at (gold.west);
% Telescopes
\path (hit) -- +(170:8)
node[telescope, label=right:$6\mu m$] (telescope1) {$\Delta E$};
\path (hit) -- +(-120:8)
node[telescope, label=left:$22\mu m$] (telescope2) {$\Delta E$};
\path (hit) -- +(170:9)
node[E, label=20:$1000\mu m$] {$\mathbf{E}$};
\path (hit) -- +(-120:9)
node[E, label=left:$1000\mu m$] {$\mathbf{E}$};
% Angles
\draw[dashed, gray, thick] (beam right) -- (hit);
\draw[dashed, gray, thick] (hit) -- (telescope1);
\draw[dashed, gray, thick] (hit) -- (telescope2);
\draw[<->,thick] (hit) +(180:2) arc (180:170:2);
\path (hit) +(175:2) node[left] {$10^\circ$};
\draw[<->,thick] (hit) +(180:2) arc (-180:-120:2);
\path (hit) +(210:2) node[left] {$60^\circ$};
\end{tikzpicture}
\end{document}
My output is the following
Any idea on why this is happening and how can it be fixed?
\usetikzlibrary
should go before\begin{document}
\usetikzlibrary
takes up horizontal space I guess.