Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

In my text I have some paragraphs that should be denoted as "note", "caution", "tip", "story". These paragraphs should be rendered with darker background and an icon on the left side.

I was not able to figure out the good keywords to google this up.

Any clues?

share|improve this question

1 Answer 1

up vote 13 down vote accepted
\documentclass[english]{article}
\usepackage{babel,xcolor,framed,marginnote,blindtext}
\colorlet{shadecolor}{blue!10}

\newenvironment{SpecialPar}
  {\begin{shaded}\marginnote{\fbox{Icon}}}
  {\end{shaded}}

\begin{document}

\blindtext
\begin{SpecialPar}
\blindtext 
\end{SpecialPar}
\blindtext

\end{document}

enter image description here

share|improve this answer
    
Thank you for introducing me to the \blindtext command! –  I Like to Code Jun 24 at 19:13

Your Answer

 
discard

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.