Skip to content

Instantly share code, notes, and snippets.

@oyvindio
Created April 26, 2011 14:49
Show Gist options
  • Save oyvindio/942399 to your computer and use it in GitHub Desktop.
Save oyvindio/942399 to your computer and use it in GitHub Desktop.
%% aquote: quote environment with author
\def\signed #1{{\leavevmode\unskip\nobreak\hfil\penalty50\hskip2em
\hbox{}\nobreak\hfil(#1)%
\parfillskip=0pt \finalhyphendemerits=0 \endgraf}}
\newsavebox\mybox
\newenvironment{aquote}[1]
{\savebox\mybox{#1}\begin{quote}}
{\signed{\usebox\mybox}\end{quote}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment