I have tried formulations of using subcaption
inside minipage
—subcaption
and subcaptionbox
. I have also look at some threads but couldn't find anything doing what I needed.
Please note that this minipage
is enclosed in a tcolorbox
.
\documentclass{article}
\usepackage{standalone}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{capt-of}
\captionsetup[subfigure]{labelformat = parens, labelsep = space, font = small}
\begin{document}
\begin{minipage}{\linewidth}
\centering
\subcaptionbox{A frictionless ball in a semi-circle. \label{semicircle}
[.5\linewidth]{\includestandalone{semicircle}}
\subcaptionbox{Close up of the forces on the frictionless ball.
\label{exam2triangle}
[.5\linewidth]{\includestandalone{exam2triangle}}
\captionof{figure}[Frictionless Ball on a Semi-Circle]{A frictionless ball
oscillating on a semi-circle.}
\label{exam2}
\end{minipage}
\end{document}
This was my most recent failed attempt.
Best Answer
Normally I wouldn't suggest this, but this seems to be a case in which the
H
specifier (from, for example, thefloat
package) might be handy to suppress flotation: