It seems that there are vertical blank spaces before and after the center
enviroment, as shown in the attached picture.
My question is: how to adjust these vertical blank spaces?
Code:
\documentclass{article}
\parindent0pt
\begin{document}
\rule{\textwidth}{1pt}
\begin{center}
aaa\\bbb\\ccc
\end{center}
\rule[\baselineskip]{\textwidth}{1pt}
\end{document}
\begin{center}...\end{center}
, use{\centering...\par}
to eliminate the added space.\centering
may lead to some odd and uncontrolable behavior,center
enviroment seems to be better, except that how to adjust the extra vertical spaces before/after it.{ }
before and after the\centering...\par
is intended to limit the effect of\centering
to the scope within the braces.\strut
before the\par
.\meaning
of\center
(the environment), you will discover that it is just\centering
inside of a\trivlist
.