我有兴趣制作一个包含多个子图的图。通过一些搜索,我发现了不同的方法,但对我不起作用。可能是我使用的是 shareLatex 而其他人使用的是适当的 Latex (我不知道有多大区别,如果我说一些奇怪的话,很抱歉)。下面给出的是代码...
\begin{figure}[t!]
\centering
\begin{subfigure}[t]{0.5\textwidth}
\centering
\includegraphics[height=1.2in]{Bilder/sample.png}
\caption{Sample1}
\end{subfigure}%
~
\begin{subfigure}[t]{0.5\textwidth}
\centering
\includegraphics[height=1.2in]{Bilder/sample.png}
\caption{sample2}
\end{subfigure}
\caption{Caption place holder}
\end{figure}
我的输出是这样的。
这与建议的解决方案既不合意也不相同。建议的解决方案示例如下。如何解决?