I am tryng to use the subfigure to plot two pictures side be side, but it does not copile since the error: “Illegal unit of measure (pt inserted). Missing number, treated as zero.”
<code>usepackage{graphicx}
usepackage{subcaption}
begin{figure}[H]
begin{subfigure}{.45linewidth}
centering
includegraphics[width = linewidth]{IMG/resul-3 (comparar).png}
caption{Gráfico dos parâmetros $abs{S}$ obtidos na ETAPA 03\Ganho: SI{12,2}{decibel}}
label{fig:simul3}
end{subfigure}
begin{subfigure}{.45linewidth}
centering
includegraphics[width = linewidth]{IMG/resul-4 (comparar).png}
caption{Gráfico dos parâmetros $abs{S}$ obtidos na ETAPA 04\Ganho: SI{12,1}{decibel}}
label{fig:simul4}
end{subfigure}
end{figure}
</code>
<code>usepackage{graphicx}
usepackage{subcaption}
begin{figure}[H]
begin{subfigure}{.45linewidth}
centering
includegraphics[width = linewidth]{IMG/resul-3 (comparar).png}
caption{Gráfico dos parâmetros $abs{S}$ obtidos na ETAPA 03\Ganho: SI{12,2}{decibel}}
label{fig:simul3}
end{subfigure}
begin{subfigure}{.45linewidth}
centering
includegraphics[width = linewidth]{IMG/resul-4 (comparar).png}
caption{Gráfico dos parâmetros $abs{S}$ obtidos na ETAPA 04\Ganho: SI{12,1}{decibel}}
label{fig:simul4}
end{subfigure}
end{figure}
</code>
usepackage{graphicx}
usepackage{subcaption}
begin{figure}[H]
begin{subfigure}{.45linewidth}
centering
includegraphics[width = linewidth]{IMG/resul-3 (comparar).png}
caption{Gráfico dos parâmetros $abs{S}$ obtidos na ETAPA 03\Ganho: SI{12,2}{decibel}}
label{fig:simul3}
end{subfigure}
begin{subfigure}{.45linewidth}
centering
includegraphics[width = linewidth]{IMG/resul-4 (comparar).png}
caption{Gráfico dos parâmetros $abs{S}$ obtidos na ETAPA 04\Ganho: SI{12,1}{decibel}}
label{fig:simul4}
end{subfigure}
end{figure}
I tried to substitute the {.45linewidth}
with {}
and then specifyng the width online inside the includegraphics
but it didn’t work.
New contributor
Jessica Lo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.