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?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI 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 6 '18 at 21:52