如何在 multicol 环境中仅一列并排调整两张图片?

如何在 multicol 环境中仅一列并排调整两张图片?

首先,感谢小组成员 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}

在此处输入图片描述

相关内容