Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Add blank line in LaTeX

📅 2012-Jul-31 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ latex, par, subfloat ⬩ 📚 Archive

It is useful to be able to add a blank line, both in text and in other environments like figures. This can be done in LaTeX using the \par command.

This example shows how to subfigures can be arranged row-by-row using the \par command:

\begin{figure}
\centering
\subfloat[]
{
    \includegraphics[scale=.6]{fig-1.pdf}
    \label{fig:foo-1}
}
\par
\subfloat[]
{
    \includegraphics[scale=.6]{fig-2.pdf}
    \label{fig:foo-2}
}
\par
\subfloat[]
{
    \includegraphics[scale=.85]{fig-3.pdf}
    \label{fig:foo-3}
}
\caption{ Sub-figures arranged one below another. }
\label{fig:foo}
\end{figure}

Tried with: MikTeX 2.9


© 2023 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 Mastodon📧 Email