Home > LaTeX > Figures

LaTeX 8.2 Figure Alignment

LaTeX Index
Document 1

Figure Alignment

.tex
LaTeX Source Ready

Rendered Output Preview

Click "Compile Online PDF" to generate and view full PDF.

Formulation Guide

  • Apply horizontal centering inside float: \centering
  • Avoid \begin{center} inside floats to eliminate extra vertical gaps
  • Use [h] (here) specifier for immediate context placement

In LaTeX, using \centering inside a figure environment is preferred over \begin{center}...\end{center} because \centering does not introduce unwanted additional vertical whitespace before and after the image.

Document 2

Figure Alignment

.tex
LaTeX Source Ready

Rendered Output Preview

Click "Compile Online PDF" to generate and view full PDF.

Formulation Guide

  • Align figure flush left: \raggedright
  • Align figure flush right: \raggedleft
  • Formulate large-angle nonlinear pendulum equation and complete elliptic integral of the first kind

By declaring \raggedright or \raggedleft inside the figure block, authors can override default alignment behavior and position graphics flush with the left or right margin as required by journal layout templates.