tikz add tag
CarLaTeX
Is is possible to do this with TikZ options, without using `\makebox[0pt]`?



```
\documentclass{article} 
\usepackage{tikz}
\tikzset{
    cerchio/.style = {
        draw, red, fill=yellow,
        circle,
        text=black,
        text width=10pt,
        text centered
        },   
    }
\begin{document} 
\begin{tikzpicture}
\node[cerchio]{\makebox[0pt]{a long node}};
\end{tikzpicture}
\end{document}
```

![image.png](/image?hash=ff9d19777165c627d20ed0fa77a4e60740d23578c63f227e723a93a16135e2e2)
Top Answer
Skillmon
Using `insert path` we can add things to the background of the node, and using a `pic` we can draw things with independent options. The following does exactly that:

```
\documentclass[border=3.14,tikz]{standalone}

\tikzset
  {
     cerchio/.style={insert path={pic{cerchio}}}
    ,cerchio/.pic={\draw[red,fill=yellow] circle[radius=10pt];}
  }

\begin{document}
\begin{tikzpicture}
  \node[cerchio]{a long node};
\end{tikzpicture}
\end{document}
```

![tikznodedeborder-1.png](/image?hash=6b6892d47dc2d9ab30b597f430576404ac711f5a40d6fb3e59048ff5163dfb2f)

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.