I tried to insert side by side figures making a minipage instead of subfigures. The captions of the two figures are not aligned and are numbered ina wrong way.
I'd like to align captions and number the figures (a), (b) and the total figure fig. n with n the correct number (1 if the fig is the first in the document ecc).
\documentclass{article}
\usepackage{mwe}
\begin{document}
\begin{figure}[h]
\centering
\begin{minipage}{0.45\textwidth}
\centering
\includegraphics[scale=0.3]{fig2a}
\caption{Modello compartimentale mammellare (o mammillare).}
\end{minipage}\hfill
\begin{minipage}{0.45\textwidth}
\centering
\includegraphics[scale=0.3]{fig2b}
\caption{Modello compartimentale catenario.}
\end{minipage}
\caption{Principali topologie dei modelli compartimentali.}
\end{figure}
\end{document}
Thank you very much in advance.
subcaption
package is loaded, asubfigure
environment is nothing but aminipage
environment with some minimal functionality to "number" the caption as a, b, c, etc instead of 1, 2, 3, etc. Thesubfigure
environments take the same positioning specifiers as ` minipage` environments do. So, why is it that you don't what to usesubfigure
environments? – Mico Dec 6 '17 at 10:54subfigure
environments but still generate captions that are numbered a, b, c, etc (or whatever else you do), you basically have to "reinvent the wheel" and come up with caption-related macros -- a problem that's been solved by the writer(s) of thesubcaption
package... – Mico Dec 6 '17 at 11:00