两栏文章中跨越整个页面宽度的图
在 IEEEtran Latex 模板中,我试图放置一个跨越页面整个宽度的图形。 我正在做,
\begin{figure*}[h]
\centering
\setlength\fboxsep{0pt}
\setlength\fboxrule{0.25pt}
\fbox{\includegraphics[width=6.2in]{Figure7}}
\caption{Figure}
\label{f7}
\end{figure*}
这会将图像放置在文章末尾的新页面上。我该如何将其放置在应该的位置? 谢谢
In a IEEEtran latex template, I am trying to put a figure spanning full width of the page.
I am doing,
\begin{figure*}[h]
\centering
\setlength\fboxsep{0pt}
\setlength\fboxrule{0.25pt}
\fbox{\includegraphics[width=6.2in]{Figure7}}
\caption{Figure}
\label{f7}
\end{figure*}
This places the image on a new page at the end of the article. How do I place it where it should be?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于初学者,我可能会尝试将
figure*
块放在文档中更靠前的位置,只是为了检查 LaTeX 是否出于逻辑原因将其放置在那里。如果这不起作用,我将删除figure*块中的所有无关命令,以确保它们不会引起问题。
最后,我可能会尝试使用不需要调整大小的图形,或者使用
[width=0.9\linewidth]
只是为了检查;有时“太大”的数字可能会被放到文档的末尾。编辑:您也可以尝试(暂时)使用不同的模板。例如,我知道
revtex4-1
有一个figure*
环境,其行为符合预期,以检查ieeetran
是否是问题所在,或者可能是如果这是他们风格的一部分。For starters I might try to put the
figure*
block further up in the document, just to check that LaTeX isn't placing it there for a logical reason.If that doesn't work, I would remove all extraneous commands in the figure* block to be sure they aren't causing problems.
Finally I might try using a figure that doesn't need resizing, or use
[width=0.9\linewidth]
just to check; sometimes figures that are "too big" can get bumped to the end of the document.Edit: You may also try using (temporarily) a different template. For example I know that
revtex4-1
has afigure*
environment that behaves the way to want, to check ifieeetran
is the problem or perhaps if that is part of their style.问题是[h]。
摆脱它,它会起作用。
the problem is the [h].
get rid of that, it'll work.