I want to define a quote environment such that after the quote on the right occurs the author with page number. My solution is yet the redefinition of the quote environment
\usepackage{amsthm} % pushQED, popQED
\newenvironment{aquote}[1]{%
\pushQED{#1}%
\begin{quote}
}{%
\par\nointerlineskip\noindent\hfill(\popQED)%
\end{quote}%
}
with the following result:
The drawback is the parskip
in front of the author, which wastes some space in the first quote, but is right in the second one. If I change my command to:
\newenvironment{aquote}[1]{%
\pushQED{#1}%
\begin{quote}
}{%
\noindent\hfill(\popQED)%
\end{quote}%
}
I get the following result:
Now the placement of the author's name in the first quote is perfect, but in the second quote I want a parskip
in front, like in my first example.
How can I find out, whether the line has enough space to put the author without a parskip
behind or if there is not enough space to introduce a parskip
to put the author on the next line?
!
in front of them.