Thursday, November 17, 2022

[FIXED] How do i center a quote, vertically and horizontally in latex?

Issue

I have a quote on a blank page in latex. I have managed to center it horizontally, however, when i try to center it vertically it gives me some problems. I have tried

\vspace{}
\begin{quote}
\centering
quote
\end{quote}

However it doesnt work.


Solution

Try this:

\vspace*{\fill} 
\begin{quote} 
\centering 
quote 
\end{quote}
\vspace*{\fill}


Answered By - In silico
Answer Checked By - Candace Johnson (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.