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. ;-)

\paragraph{\protect\tikz{\fill[red] (0,0) circle (.5ex);} PARAGRAPH}

enter image description here

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.

  • +1 for the last paragraph, assuming that here "fancy" mean really "needlessly convoluted" :)
    – Fran
    Nov 6 '18 at 21:52
  • @Fran I was more thinking about marmots, bears and penguins, and koalas. All of them need a bit protection...;-)
    – user121799
    Nov 6 '18 at 22:33
  • I sympathize with that. Also the snorers readers are endangered because of lack of space in our natural hábitats.
    – Fran
    Nov 6 '18 at 22:53
  • @Fran That's what I thought (given that you produced such a nice certificate for marmot students ;-)
    – user121799
    Nov 6 '18 at 22:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.