latex 用 subfigure排版一行两个子图,但是子图标题一直左对齐,如何居中?

2019-12-02 11:55发布

\begin{figure}[!htb]%图1 \centering \subfigure{a}{ \centering \includegraphics[width=3in]{fig1a.pdf}}...

\begin{figure}[!htb]%图1 \centering \subfigure{a}{ \centering \includegraphics[width=3in]{fig1a.pdf}} \subfigure{b}{ \centering \includegraphics[width=3in]{fig1b.pdf}} \caption{船舶挂靠港口顺序} \end{figure}[![](http://tieba.baidu.com/photo/p?kw=latex&ie=utf-8&flux=1&tid=5842750507&pic_id=999b93cad1c8a7868e85da3a6a09c93d71cf50df&pn=1&fp=2&see_lz=1)](http://tieba.baidu.com/photo/p?kw=latex&ie=utf-8&flux=1&tid=5842750507&pic_id=999b93cad1c8a7868e85da3a6a09c93d71cf50df&pn=1&fp=2&see_lz=1)
3条回答
WoodMan
2019-12-04 10:07
![](/static/images/ext/pdf.gif)mwe_subfig.pdf 源码如下: ```tex %mwe_subfig.tex \documentclass{article} \usepackage{mwe} \usepackage{subfigure} \usepackage{caption} \begin{document} \begin{figure}%图1 \centering \begin{minipage}{0.45\linewidth} \centering \subfigure[a]{\includegraphics[width=\linewidth]{example-image-a.pdf}} \end{minipage}\qquad \begin{minipage}{0.45\linewidth} \centering \subfigure[b]{\includegraphics[width=\linewidth]{example-image-b.pdf}} \end{minipage} \caption{a and b} \end{figure} \end{document} ```

一周热门 更多>