[Tex/LaTex] the simplest, most canonical way to change the background color of quoted text

colorenvironments

There are many questions in this site on changing the background color of quoted text, but I am bewildered and disheartened by the huge proliferation of different ways to do this, each using a different additional package. I can't believe that such a common and conceptually simple task doesn't have one basic, canonical solution. (This solution may be inadequate for specific situations, of course, but only then I would consider bringing in speciallized tools.)

Basically, I'm looking for something analogous in appearance to

this effect (but without the fancy borders, just the background color change)

…or

this effect (but without the change of font or foreground color, just the background color change)

…or preferably somewhere in-between, namely, the simple color change of the latter, but without the change of font.

Doesn't "bare LaTeX" provide a way to do this?

Best Answer

A simple code based on framed and quoting which can break across pages:

\documentclass{article}
\usepackage[x11names]{xcolor}
\usepackage{framed}
\usepackage{quoting}

 \colorlet{shadecolor}{LavenderBlush2}
\usepackage{lipsum}
\newenvironment{shadedquotation}
 {\begin{shaded*}
  \quoting[leftmargin=0pt, vskip=0pt]
 }
 {\endquoting
 \end{shaded*}
}

\begin{document}

\lipsum*[1-4]
\begin{shadedquotation}
\lipsum*[5-6]
\end{shadedquotation}
\lipsum*[7-10]

\end{document} 

enter image description here