Skip to content

Instantly share code, notes, and snippets.

@TorbjornT
Last active July 9, 2020 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TorbjornT/dd3a49e0a904007d43cab82f6a316dab to your computer and use it in GitHub Desktop.
Save TorbjornT/dd3a49e0a904007d43cab82f6a316dab to your computer and use it in GitHub Desktop.
\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}
\captionsetup[subfigure]{justification=justified,singlelinecheck=false}
\begin{document}
\begin{figure}
\begin{subfigure}{0.45\linewidth}
\centering
\includegraphics[width=\linewidth]{example-image-a}
\caption{}
\label{subA}
\end{subfigure}\hfill
\begin{subfigure}{0.45\linewidth}
\centering
\includegraphics[width=\linewidth]{example-image-b}
\caption{}
\label{subB}
\end{subfigure}
\caption{Main fig}
\label{main}
\end{figure}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment