I know there has been some questions about the quote style, I loved the one with the big quote marks. What I'm trying to achieve it's a little simpler.
Right now I have something like this:
\documentclass[11pt]{report}
\usepackage{framed}
\usepackage{color}
\newenvironment{shadequote}%
{\begin{snugshade}\begin{quote}}
{\hfill\end{quote}\end{snugshade}}
\definecolor{shadecolor}{rgb}{0.9,0.9,0.9}
\begin{document}
Text before. Text before. Text before. Text before.
Text before. Text before. Text before. Text before.
Text before. Text before. Text before.
\begin{shadequote}
Refactoring is the process of changing a software system in such a way
that it does not alter the external behavior of the code yet improves its
internal structure. It is a disciplined way to clean up code that minimizes
the chances of introducing bugs. In essence when you refactor you are improving
the design of the code after it has been written.
\end{shadequote}
Text after Text After Text after Text After Text after
Text After Text after Text After Text after Text After
Text after Text After Text after
\end{document}
which does something like this:
Now, what I want to acomplish is this:
where the shading affects the text of the quote only.
Finally, I like the beamer output for quotes:
But I've tried to change the quote with \itshape
but it looks like crap, does beamer change font of quoted text?.
So, now the questions, first the technical question:
1. How can I acomplish the result shown on the second picture? (the shading affecting only the text part). Extra bonus: idem, but with the beamer look-n-feel The ideal answer would use the quote
environment in order not to lose all its properties (like spaces, identation, etc.)
The appreciation question:
I know LaTeX do things for a good reason, sometimes I don't like it but then I realize I was wrong (the latest example is that when you put the twoside option, the right pages has more margin on the right side, at first I thought it should be the other way round), so, though it is a personal and subjective question, I want to know what you think:
2. Is it ok what I'm trying to achive? Should the shading affect only the text part or it's better in the first picture?
Of course, anything you may add or personal opinions are welcome
Best Answer
Here is a version using the
mdframed
package. The first image below usesshadequote
and the second image below uses themdframed
environment.Code: