# Latex tips and tricks

Here are some tips and tricks I found useful while working with Latex

• If one wants to reduce the spacing between a figure and its caption, use the following command
\begin{figure}[t]
\centering
\includegraphics[width=3.5in]{some_image.pdf}
\vspace*{-1.0cm}
\caption{some image caption}
\label{fig:ref_to_some_image}
• If one wants two or more images to be placed on the same page, include them in the same figure environment
\begin{figure}[t]
\centering
\includegraphics[width=3.5in]{fig1.pdf}
\vspace*{-1.0cm}
\caption{caption 1}
\label{fig:label1}
\includegraphics[width=3.5in]{fig2.pdf}
\vspace*{-1.0cm}
\caption{caption2}
\label{fig:label2}
\end{figure}