![如何在 multicol 环境中仅一列并排调整两张图片?](https://linux22.com/image/297083/%E5%A6%82%E4%BD%95%E5%9C%A8%20multicol%20%E7%8E%AF%E5%A2%83%E4%B8%AD%E4%BB%85%E4%B8%80%E5%88%97%E5%B9%B6%E6%8E%92%E8%B0%83%E6%95%B4%E4%B8%A4%E5%BC%A0%E5%9B%BE%E7%89%87%EF%BC%9F.png)
首先,感谢小组成员 Harish Kumar,在他的建议下,我终于能够修复多列环境中图形/浮动下方的标题行。这是我当时面临的情况:
\documentclass[10pt, twoside]{book}
\usepackage[demo]{graphicx} %%% remove demo in your file
\usepackage{multicol}
\usepackage{caption}
\begin{document}
\begin{multicols}{2}
a test file for picture inclusion along with the captions and labeling
\begin{center}
\fbox{\includegraphics[scale=0.2]{Cauchy_sequence_illustration-png}}
\captionof{figure}{Cauchy Seq1}\label{Cauchy1}
\fbox{\includegraphics[scale=0.2]{Cauchy_sequence_illustration-png}}
\captionof{figure}{Cauchy Seq2}\label{Cauchy2}
\end{center}
\end{multicols}
\end{document}
问题是:我愿意将两张图片“并排”而不是上下排列。但徒劳无功。有人能帮我怎么做吗?
提前致谢
答案1
是這樣嗎?
\documentclass[10pt, twoside]{book}
\usepackage[demo]{graphicx} %%% remove demo in your file
\usepackage{multicol}
\usepackage{caption}
\usepackage{kantlipsum}
\begin{document}
\begin{multicols}{2}
a test file for picture inclusion along with the captions and labeling
\noindent
\begin{minipage}{0.5\columnwidth}
\centering
\fbox{\includegraphics[width=\dimexpr\textwidth-2\fboxsep-2\fboxrule\relax]{Cauchy_sequence_illustration-png}}
\captionof{figure}{\protect\raggedright Cauchy Seq1}\label{Cauchy1}
\end{minipage}%
\begin{minipage}{0.5\columnwidth}
\centering
\fbox{\includegraphics[width=\dimexpr\textwidth-2\fboxsep-2\fboxrule\relax]{Cauchy_sequence_illustration-png}}
\captionof{figure}{\protect\raggedright Cauchy Seq2}\label{Cauchy2}
\end{minipage}
\kant[2]
\end{multicols}
\end{document}