- 主题:请问latex怎么两个图片并排放,两个图片各自有小标题,而且小标
大家好,如题,想用latex编辑排版两个各自有标题的图片,然后两图片还有个共用的大标题,请问可以用什么代码实现?谢谢
--
FROM 59.109.219.*
【 在 nljc66 (nljc66) 的大作中提到: 】
: 大家好,如题,想用latex编辑排版两个各自有标题的图片,然后两图片还有个共用的大标题,请问可以用什么代码实现?谢谢
具体什么代码是不记得了(因为很少用到……)
搜 subcaption 看看能不能找到示例吧
--
FROM 117.152.200.*
Try this.
% Create subfigures in LaTeX
\documentclass{article}
\usepackage{subcaption}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\begin{subfigure}{0.4\textwidth}
\includegraphics[width=\textwidth]{example-image}
\caption{First subfigure.}
\label{fig:first}
\end{subfigure}
\hfill
\begin{subfigure}{0.4\textwidth}
\includegraphics[width=\textwidth]{example-image}
\caption{Second subfigure.}
\label{fig:second}
\end{subfigure}
\hfill
\begin{subfigure}{0.4\textwidth}
\includegraphics[width=\textwidth]{example-image}
\caption{Third subfigure.}
\label{fig:third}
\end{subfigure}
\caption{Creating subfigures in \LaTeX.}
\label{fig:figures}
\end{figure}
\end{document}
【 在 nljc66 的大作中提到: 】
: 大家好,如题,想用latex编辑排版两个各自有标题的图片,然后两图片还有个共用的大标题,请问可以用什么代码实现?谢谢
--
修改:lavertu FROM 153.34.255.*
FROM 153.34.255.*
好的,谢谢大神
【 在 lavertu 的大作中提到: 】
: Try this.
: % Create subfigures in LaTeX
: \documentclass{article}
: ...................
--
FROM 124.207.151.*
多谢
【 在 snoopyzhao 的大作中提到: 】
:
: 具体什么代码是不记得了(因为很少用到……)
: 搜 subcaption 看看能不能找到示例吧
--
FROM 124.207.151.*