logo

How to Automatically Fill Blank Spaces in LaTeX 📂Writing

How to Automatically Fill Blank Spaces in LaTeX

Code

If you want to place any equations or images at the bottom of the document, you can use \vfill. This will fill the empty space vertically. If you want to fill the empty space horizontally, use \hfill.

\documentclass{article}
\usepackage[a6paper]{geometry}

\begin{document}

aaaaaaaaaa \hfill bbbbbbbbbbbb
\vfill
cccccccccc

\end{document}