[Tex/LaTex] Beautiful quotes in documentclass article

articlequoting

Possible Duplicate:
“Inspirational” quote at start of chapter

I'm using \documentclass[a4paper,12pt]{article}. How to do this beautiful quote by using \renewenvironment{quote} or having my own \newenvironment{myQuote}?

Quote

Best Answer

I took Gonzalo Medina's second solution in his answer to "Inspirational" quote at start of chapter and changed the following:

  • Instead of using the memoir class, the epigraph package (from memoirs author) is loaded;

  • \epigraphfontsize is replaced with \epigraphsize;

  • The etoolbox package is used to patch the internal \@epitext command so that \itshape works.


\documentclass{article}

\usepackage{epigraph}

% \epigraphsize{\small}% Default
\setlength\epigraphwidth{8cm}
\setlength\epigraphrule{0pt}

\usepackage{etoolbox}

\makeatletter
\patchcmd{\epigraph}{\@epitext{#1}}{\itshape\@epitext{#1}}{}{}
\makeatother

\begin{document}

\section{Graph Theory}

\epigraph{``Begin at the beginning," the King said gravely, ``and go on till you come to the end: then stop."}{--- \textup{Lewis Carroll}, Alice in Wonderland}

\end{document}

enter image description here