TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to create a few new paragraph styles for a user manual I am writing. The trick part is I want to add an Icon to the beging of the line. I want to create three styles;

  • Danger
  • Warning
  • Important

each is differnt in terms of color and have different icons. I want it to be more like a textbox with a boarder around it. keeping in mind that each instance will be no more than 2 lines at very most. e.g.

enter image description here Warning; Risk of Electric Shock

share|improve this question
Take a look at tex.stackexchange.com/questions/13532/… (possible duplicate?) – Matthew Leingang May 12 '11 at 3:53
the bclogo package should do this; it even includes the relevant icons – prettygully May 12 '11 at 4:56
I support @prettygully's comment, the bclogo package is pretty good at doing this. – Paulo Cereda May 12 '11 at 10:54
Thanks, The bclogo package seems to be exactly what i want. only problem is i am having a bit of trouble understanding the french documentation. dose anyone know how to add a new icon? – Stephen May 12 '11 at 22:58

You can define new icons for bclogo just following the pattern shown on page 18 of the documentation:


assuming that your logo is in warning.png; \logowidth is a length parameter that defaults to 17pt and can be changed by \setlength{\logowidth}{<length>}.

You can then use

\begin{bclogo}[<other settings>,logo=\warninglogo]{Title}
share|improve this answer
thanks, everyting is working now. – Stephen May 16 '11 at 2:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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