How can I set the width of an epigraph for automatic fitting of text inside epigraph?
I would like that the line between text and source have the same width of the above text. This in every epigraph!
Example of what I don't like:
Too long a line
\setlength{\epigraphwidth}{0.8\textwidth} \epigraph{All models are wrong, but some are useful.}{George E. P. Box}
Too short a line and it adds a new line that I don't like
\epigraph{All models are wrong, but some are useful.}{George E. P. Box}
UPDATE: the miminal source
\documentclass{book}
\usepackage[italian]{babel}
\usepackage{epigraph}
\renewcommand{\epigraphsize}{\small}
%\setlength{\epigraphwidth}{0.8\textwidth}
\renewcommand{\textflush}{flushright} \renewcommand{\sourceflush}{flushright}
\let\originalepigraph\epigraph
\renewcommand\epigraph[2]{\originalepigraph{\textit{#1}}{\textsc{#2}}}
\begin{document}
\epigraph{All models are wrong, but some are useful.}{George E. P. Box}
\end{document}
epigraph
package, then of interest might be “Inspirational” quote at start of chapter. – Werner Feb 3 '13 at 19:44epigraph
sets\epigraph
as a set of four rigid-width "minipage
s". The epigraph (1) text; (2) source; (3) rule and the encompassing epigraphminipage
. Perhaps an alternative an alternative toepigraph
would be of interest. – Werner Feb 3 '13 at 19:47