Centering Latex Code Example


Example 1: figure centering latex

\begin{figure} \centering ... (Code for pictures, captions) ... \end{figure}

Example 2: centering text latex

\documentclass{article}  \begin{document}  This is a really long sentence as an example.  The second have of this\\ \centerline{sentence should be centered.} \end{document}

Example 3: aligning latex

\begin{align*} x&=y           &  w &=z              &  a&=b+c\\ 2x&=-y         &  3w&=\frac{1}{2}z   &  a&=b\\ -4 + 5x&=2+y   &  w+2&=-1+w          &  ab&=cb \end{align*}

Comments

Popular posts from this blog

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?