Skip to content

Instantly share code, notes, and snippets.

@amarjitdhillon
Created June 3, 2018 18:43
Show Gist options
  • Save amarjitdhillon/26cb2ba78862c073d509b39dd3b1c9be to your computer and use it in GitHub Desktop.
Save amarjitdhillon/26cb2ba78862c073d509b39dd3b1c9be to your computer and use it in GitHub Desktop.
\documentclass[letterpaper,12pt,titlepage,final]{report}
\setlength{\marginparwidth}{0pt} % Please customize the margins as per your need
\setlength{\marginparsep}{0pt} % width of space between body text and margin notes
\setlength{\evensidemargin}{0.125in}
\setlength{\oddsidemargin}{0.125in}
\setlength{\textwidth}{6.375in}
\raggedbottom
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{subfig}
\begin{document}
\begin{figure}[!ht]
\centering
\subfloat[]{\includegraphics[width=0.28\linewidth]{enter image 1 path here}}
\qquad
\subfloat[]{\includegraphics[width=0.28\linewidth]{enter image 2 path here}}
\qquad
\subfloat[]{\includegraphics[width=0.28\linewidth]{enter image 3 path here}}
\caption{(a): caption for fig 1 (b): caption for fig 3 (c): caption for fig 3 }
\label{fig:subfigname}
\end{figure}
\end{document}
@amarjitdhillon
Copy link
Author

An important note: the \qquad adds some space between the figures. Hence, I am using 28% of the width for an image. If you try to use 33.33% then you have to remove \qquad, but the images will have no space between them in that case.

A sample output is shown below:
image

Please let me know if you have any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment