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.

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

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
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 '14 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.