我尝试了多种解决方案,但别无选择,只能向社区询问。我有以下代码:
\documentclass[10pt, final, journal, letterpaper, twocolumn]{IEEEtran}
%\documentclass[10pt,twocolumn]{article}
\usepackage[caption=false]{subfig}
\usepackage{float}
\usepackage{todonotes}
\usepackage[extendedchars]{grffile}
\begin{document}
\begin{figure*}[t]
\centering
\subfloat[1]{
\missingfigure[figwidth=0.3\textwidth]{foo}
}
\subfloat[2]{
\missingfigure[figwidth=0.3\textwidth]{foo}
}
\subfloat[3]{
\missingfigure[figwidth=0.3\textwidth]{foo}
}
\caption{A figure with two subfigures}
\label{fig:size}
\end{figure*}
The earliest known appearance of the phrase is from The Boston Journal. In an article titled "Current Notes" in the February 10, 1885 morning edition, the phrase is mentioned as a good practice sentence for writing students: "A favorite copy set by writing teachers for their pupils is the following, because it contains every letter of the alphabet: 'A quick brown fox jumps over the lazy dog.'" A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. Best believe A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog.A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog.
A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog.
A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog. A quick brown fox jumps over the lazy dog.
这个问题似乎在使用时出现IEEEtran.cls
,但我以前从未遇到过这个问题。结果数字似乎与预期相差 2 页,并且就在页面的中心。我尝试过使用[h]
、[t]
、[H]
选项\figure
,也尝试过使用\topfraction
和\bottomfraction
,但都不起作用。我还尝试过使用tabular
而不是\subfloat
。
任何帮助是极大的赞赏。
答案1
这是相当延伸的评论...
正如我在上面的评论中提到的,它figure*
总是出现在插入的下一页的顶部。如果您希望将它放在同一页的底部,那么您需要使用该stfloats
包。
如果您的文章中有足够的文本,那么插入后图像将出现在下一页的顶部。例如,使用标准graphicx
包及其语法,在第一页插入后它将出现在第二页的顶部:
\documentclass[10pt, final, journal, letterpaper, twocolumn]{IEEEtran}
\usepackage{graphicx}
\usepackage[caption=false]{subfig}
\usepackage{float}
\usepackage{todonotes}
\usepackage[extendedchars]{grffile}
\usepackage{lipsum} % generate dummy text, don't use it in real document
\begin{document}
\lipsum
\textbf{Image is inserted here, but it will appear on the top of the next page if will be there also a some text.}
\begin{figure*}%[t] % <-- image is inserted on the first page
% but it will appear on the top of the second page
\centering
\subfloat[1]{
\includegraphics[width=0.3\textwidth]{example-image-duck}
}\hfill
\subfloat[2]{
\includegraphics[width=0.3\textwidth]{example-image-duck}
}\hfill
\subfloat[3]{
\includegraphics[width=0.3\textwidth]{example-image-duck}
}
\caption{A figure with three subfigures}
\label{fig:size}
\end{figure*}
\lipsum
\end{document}
即你将获得如下结果:
并使用您的图像代码:
\begin{figure*}
\centering
\subfloat[1]{
\missingfigure[figwidth=0.3\textwidth]{foo}
}
\subfloat[2]{
\missingfigure[figwidth=0.3\textwidth]{foo}
}
\subfloat[3]{
\missingfigure[figwidth=0.3\textwidth]{foo}
}
\caption{A figure with two subfigures}
\label{fig:size}
\end{figure*}
结果是:
结论:使用您的文档示例,无法重现您的问题。当然,如果您仅在第一页上有文本,那么图形将出现在下一页的中间,而不是插入后的两页。