我正在使用{multicols*}{2}
并希望显示非浮动子图,并尝试了以下方法,但没有成功,它没有显示任何内容。您能指导我解决方案吗?
\begin{multicols*}{2}
\begin{figure}
\centering
\subfigure[$\text{Participant Overlap}(PO)=60\%$]{\includegraphics[width=3.5in]{TSp0802060fresh3.eps} \label{fig:TSa}}%
\subfigure[$\text{Participant Overlap}(PO)=100\%$]{\includegraphics[width=3.5in]{TSp08020100fresh3.eps} \label{fig:TSc}}\\
\subfigure[$\text{Participant Overlap}(PO)=60\%$]{\includegraphics[width=3.5in]{TLp0802060fresh3.eps} \label{fig:TLa}}%
\subfigure[$\text{Participant Overlap}(PO)=100\%$]{\includegraphics[width=3.5in]{TLp08020100fresh3.eps} \label{fig:TLc}}%
\caption{Sample values of TS and TL selected from Table \ref{tab:TS},\ref{tab:TL} for depiction.}
\label{fig:TSTL}
\end{figure}
\end{multicols*}
答案1
在我看来,问题是:图像与文档的限制重叠,并将其放置在 Latex 认为最好的位置(这种情况下,“不适合就不要放它”),我做的一个解决方案是让 Latex 遵循您所述的放置,要做到这一点,您可以使用包 \float,之后只需在 \begin{figure}(\begin{figure}[H])后添加 [H] 它就会显示出来。
这是我的示例代码:
\RequirePackage{snapshot}
\documentclass[letterpaper,12pt]{report}
\usepackage{multicol}
\usepackage{subfigure}
\usepackage{float}
\usepackage{graphicx}
\usepackage{amsmath}
\begin{document}
\begin{adjustwidth}{-1in}{-1in}
\begin{multicols}{2}
\begin{figure}[H]
\centering
\subfigure[$\text{Participant Overlap}(PO)=60\%$]{\includegraphics[width=3.5in]{figs/cat.jpg} \label{fig:TSa}}%
\subfigure[$\text{Participant Overlap}(PO)=100\%$]{\includegraphics[width=3.5in]{figs/cat.jpg} \label{fig:TSc}}\\
\subfigure[$\text{Participant Overlap}(PO)=60\%$]{\includegraphics[width=3.5in]{figs/cat.jpg} \label{fig:TLa}}%
\subfigure[$\text{Participant Overlap}(PO)=100\%$]{\includegraphics[width=3.5in]{figs/cat.jpg} \label{fig:TLc}}%
\caption{Sample values of TS and TL selected from Table \ref{tab:TS},\ref{tab:TL} for depiction.}
\label{fig:TSTL}
\end{figure}
\end{multicols}
\end{adjustwidth}
\end{document}
我添加了 \adjustwidth 以便它可以居中并适合页面宽度。
(英语不是我的母语,抱歉语法不好)