I want to redefine the quote
environment in such a way to get the output of the following code.
\begin{quote}{\tiny\textquotedblleft Text \textquotedblright}\end{quote}
I also want to fix the line spacing because the distance between the lines looks so wide.
Best Answer
This is the original definition of the
quote
environment fromarticle
:Here is a redefined one using your requirements in the form of an MWE:
The correction of
\ignorespaces
at\begin{quote}
is to remove any spaces between at the start, while\unskip\unskip
does the same at\end{quote}
. Also, don't wrap the contents in a group{
}
, which provide the unwanted spacing.Note that this will replace the existing
quote
environment. If you're planning on using the original format, it is best to define a new (say)altquote
environment for this purpose.An updated version of
quote
allows for an optional argument[name]
which prepends "name said:" before adding the quote. If noname
is supplied, the defaultquote
(above) is set:Testing for empty arguments is supplied by the
ifmtarg
package's conditional