I would like to make something similar to the following green alert box
http://twitter.github.com/bootstrap/components.html#alerts
I have tried various combinations of verbatim without success
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI would like to make something similar to the following green alert box
http://twitter.github.com/bootstrap/components.html#alerts
I have tried various combinations of verbatim without success
You can use a color box.
\documentclass{article}
\usepackage{graphicx,xcolor}
\begin{document}
\colorbox{pink}{\hbox to \textwidth{alert box\hfill}}
\end{document}
If you want the text to have a different color use,
\textcolor{brown}{your text...}
For a paragraph you can you parbox
or minipage
.
\documentclass{article}
\usepackage{graphicx,xcolor,lipsum}
\begin{document}
\colorbox{pink}{\parbox{\textwidth}{\lipsum[1]}}
\end{document}
If you want a bit of "padding"
\documentclass{article}
\usepackage{graphicx,xcolor,lipsum}
\begin{document}
\colorbox{pink}{\parbox{\textwidth}{%
\vskip10pt
\leftskip10pt\rightskip10pt
\lipsum[1]
\vskip10pt
}
}
\end{document}
mdframed
for this