Following this How to modify spacing around quotation environment?
...I have tried to use both given solutions (using quoting
package and renewing quotation
environment). I cannot use quoting
package (MiKTeX does not find it, it is recognized by the newest version of MiKTeX but I am finishing my thesis so do not want to ruin my previous work by updating MiKTeX or do anything as such :) - I am not a pro etc. ;)), so I have tried this:
\renewenvironment{quotation}
{\list{}{\listparindent=0pt%whatever you need
\itemindent \listparindent
\leftmargin=0pt% whatever you need
\rightmargin=10pt%whatever you need
\topsep=0pt%%%%% whatever you need
\parsep \z@ \@plus\p@}%
\item\relax}
{\endlist}
However it does not work. I have got this in the log file:
! Undefined control sequence. ...tmargin =10pt\topsep =0pt\parsep \z
@ \@plus\p @ l.319 \begin{quotation}
EDIT: the solution is to not miss the \makeatletter before the code and \makeatother after the code (I did not include the full code)
Have you any ideas, why I cannot use it?
Or how to define spaces (mainly - block stretching it) between quotation
environment and paragraphs (the spaces are not the same in different quotations in the text, sometimes the space is uneven before and after quotation or the space is huge, so the output does not look good as it should and I have to add or reduce vspace
, which is probably the worst solution taking into account why I use TeX
).
\makeatletter
before the redefiniton and should use\makeatother
after it, because of the@
character in\z@
and further control sequences. See What do \makeatletter and \makeatother do? for an explanation.