In the below TikZ image I'd like the two pins to not extend the bounding box but still be displayed in their entirety (even if parts of them fall outside the bounding box).
Using the overlay
option on either the nodes or the pins themselves (as suggested by percusse in the comments to this answer) unfortunately crops the pins to the bounding box. The same is true if we instead enclose the nodes in a pgfinterruptboundingbox
or scope
environment (the latter again with option overlay
).
\documentclass[tikz]{standalone}
\usetikzlibrary{patterns}
\tikzset{
cross/.style={path picture={\draw[black]
(path picture bounding box.south east) -- (path picture bounding box.north west)
(path picture bounding box.south west) -- (path picture bounding box.north east);}}
}
\begin{document}
\begin{tikzpicture}
% Loop
\def\radius{1.5}
\draw[very thick] (0,0) circle (\radius);
\draw[fill=white,cross] (0,\radius) circle (0.175*\radius) node[above=5pt] {$\partial_k R_{k,ij}(p_1,p_2)$};
\node at (-1.35*\radius,0.75*\radius) {$G_{ij}(p_1,p_2)$};
\node at (1.35*\radius,0.75*\radius) {$G_{jk}(p_2,p_3)$};
\node[below] at (0,-\radius) {$G_{ef}(p_3,p_4)$};
% External lines
\draw (-2*\radius,0) -- (-\radius,0) node[pos=0.4,below] {$\varphi_a$};
\draw[->,semithick,yshift=5pt,shorten >=5pt,shorten <=5pt] (-2*\radius,0) -- (-1.25*\radius,0) node[midway,above] {$q_1$};
\draw (\radius,0) -- (2*\radius,0) node[pos=0.6,below] {$\varphi_b$};
\draw[->,semithick,yshift=5pt,shorten >=5pt,shorten <=5pt] (1.25*\radius,0) -- (2*\radius,0) node[midway,above] {$q_2$};
% Vertices
\node[draw,circle,minimum size=16pt,fill=white,postaction={pattern=north east lines},pin={260:$\Gamma_{k,ail}^{(3)}(q_1,\!p_1,\!p_4\!)$}] at (-\radius,0) {};
\node[draw,circle,minimum size=16pt,fill=white,postaction={pattern=north east lines},pin={280:$\Gamma_{k,bde}^{(3)}(q_2,\!p_3,\!p_4\!)$}] at (\radius,0) {};
\end{tikzpicture}
\end{document}
standalone
file is inserted in a document. Imagine that diagram as part of a sum of several diagrams. I'm trying to avoid excessive horizontal white space in between these diagrams.\includestandalone{}
and load thestandalone
package with optionssubpreambles=true
andmode=buildnew
(and shell escape enabled). As far as I understand, this generates a PDF file (updates it if the source file is newer than the PDF) and includes that PDF using\includegraphics
. Does that answer your question?