latex caption
时间: 2023-09-22 09:13:37 浏览: 68
在LaTeX中,用于给图片添加题注的命令是\caption。一般情况下,题注会加在图片下方,你可以在\caption命令后面添加题注的内容。例如,\caption{A picture of a gull.}表示给图片添加一个题注,内容为"A picture of a gull."。
如果你想让题注位于图片上方,只需要将\caption命令置于\includegraphics命令之前即可。例如,\caption{A picture of a gull.} \includegraphics[width=0.5\textwidth]{atom_in_cavity.jpg}表示给图片添加一个位于图片上方的题注,内容为"A picture of a gull."。
此外,你还可以使用sidecap宏包中的SCfigure环境来实现题注的侧置。在SCfigure环境中,你可以使用\caption命令添加题注,并使用\includegraphics命令插入图片。例如,\begin{SCfigure} \centering \includegraphics[width=0.5\textwidth]{atoms_in_cavity.jpg} \caption{A picture of a gull} \end{SCfigure}。这样可以将题注放在图片的侧边位置。
最后,如果你想在一张图中添加多个图片,并给每个图片添加题注,你可以使用minipage环境将多个图片排列在一行或一列中。例如,\begin{figure}[htpb] \centering \noindent\makebox[\textwidth][c] { \begin{minipage}{0.55\textwidth} \includegraphics[width=\textwidth]{figure/spinPic/mtxPic/spin1D_ee_Matrix.png} \end{minipage} \begin{minipage}{0.55\textwidth} \includegraphics[width=\textwidth]{figure/spinPic/mtxPic/spin1D_mm_Matrix.png} \end{minipage} } \noindent\makebox[\textwidth][c] { \begin{minipage}{0.55\textwidth} \includegraphics[width=\textwidth]{figure/spinPic/mtxPic/spin1D_em_Matrix.png} \end{minipage} \begin{minipage}{0.55\textwidth} \caption{Response matrices from the SM MC sample for different channels ($\ee$, $\mumu$ and $\emu$).} \label{fig:smMatrix} \end{minipage} } \end{figure}。这样可以在一张图中显示多个图片,并给每个图片添加独立的题注。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
相关推荐
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)