4

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

  • 1
    Take a look at tex.stackexchange.com/questions/13532/… (possible duplicate?) – Matthew Leingang May 12 '11 at 3:53
  • 1
    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
2

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

\newcommand{\warninglogo}{\includegraphics[width=\logowidth]{warning.png}}

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}
text
\end{bclogo}

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.