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}

 

Advertisements
Latex tips and tricks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s