I would like to put a red circle before the beginning of a paragraph.
This code does that effect but there are a lot of errors:
\paragraph{{\tikz{\draw[red,fill=red] (0,0) circle (.5ex);}} PARAGRAPH}
What I have to do in order to avoid errors?
I would like to put a red circle before the beginning of a paragraph.
This code does that effect but there are a lot of errors:
\paragraph{{\tikz{\draw[red,fill=red] (0,0) circle (.5ex);}} PARAGRAPH}
What I have to do in order to avoid errors?
Just like marmots, sometimes TikZ needs a bit of protection. ;-)
\documentclass{article}
\usepackage{tikz}
\begin{document}
\paragraph{\protect\tikz{\fill[red] (0,0) circle (.5ex);} PARAGRAPH}
\end{document}
Of course, for red bullets you do not need TikZ, you could just load xcolor and do \paragraph{\textcolor{red}{\textbullet} PARAGRAPH} to achieve virtually the same. I am assuming that you want to do more fancy things.
:)– Fran Nov 06 '18 at 21:52