I am making a big list of exercises and I'd like to box the number of the exercise at each line.
I found this:
\tikzstyle{square}=[minimum width=0.5cm,
minimum height=0.3cm,
rectangle,
rounded corners=1pt,
draw,
text=Blue,
font=\bfseries]
\newcommand{\square}[2]{%
\begin{tikzpicture} \node[square] (N) at (0,0) {\bfseries $#1$};
\end{tikzpicture}}
\square{345} bla bla bla
I am almost satisfied but the square is not aligned with my bla bla bla.
How can I get the box aligned?


.texfile, so I can easily reproduce your problem on my machine? – John Wickerson May 16 '13 at 19:23baseline=(N.base)as option to thetikzpicture– cgnieder May 16 '13 at 19:26\tikzstyle{square}=[...]is deprecated and\tikzset{square/.style={...}}should be used instead. – cgnieder May 16 '13 at 19:28