Skip to content

Instantly share code, notes, and snippets.

@RodrigoPrior
Last active December 15, 2022 16:44
Show Gist options
  • Save RodrigoPrior/b1469a68058b212f8cb2 to your computer and use it in GitHub Desktop.
Save RodrigoPrior/b1469a68058b212f8cb2 to your computer and use it in GitHub Desktop.
subfig latex example
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{subfig}
\begin{document}
\begin{figure}[!ht]
\centering
\caption{Caption superior.}
\subfloat[Figura 1]{\includegraphics[width=0.4\columnwidth]{image_name}}
\qquad
\subfloat[Figura 2]{\includegraphics[width=0.4\columnwidth]{image_name}}
\label{fig:subfigname}
\end{figure}
\end{document}
@douglasrizzo
Copy link

It is of my knowledge that \label{} must come right after \caption{}. That is a common amateur mistake and I wi... calma aí, Prior?! Quem diria que o Google me traria até você um dia.

@rodrigo-guim
Copy link

thanks!

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