两栏布局的整页图片
我想将图片(图)插入到使用两列布局的文档中。但是,我希望它占据一整页,而不是集中在其中一列上。目前,如果我向图中添加 [p]
修饰符,整个图像将出现在最后一页,而不是文档的中间。
如何强制一个页面切换回单列布局并在那里插入一张大图片?
I'd like to insert a picture (figure) into a document which is using a two-column layout. However, I want it to take one whole page and not be centered on one of the columns. Currently if I add a [p]
modifier to the figure, the whole image lands on the last page, instead in the middle of the document.
How can I force one page to switch back to a single-column layout and insert a single big picture there?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
使用
figure*
环境。因此,您应该使用
这也适用于表(即
table*
)。考虑此链接 了解更多信息
Use the
figure*
environment. So instead ofyou should use
This also works for tables (i.e.
table*
).Consider this link for more information
它并不优雅,但是加载了
float
包后,您可以使用:但是您必须将这段代码放置在源代码中的确切位置。否则,您将在两列页面的任何位置出现分页符,然后使用图像图像进行分页。
It is not elegant, but with
float
package loaded you can use:But you have to place this piece of code to exact locetion in source code. Otherwise you'll get pagebreak anywhere in twocolumned page, then page with image image.
为了补充@Crowley的答案,避免实现后分页。
不要使用 \twocolumn,而是使用此包 \usepackage{multicol}。
然后,
这对我有用!
To supplement @Crowley's answer, to avoid pagebreak after implementation.
Instead of using \twocolumn, use this package instead \usepackage{multicol}.
Then,
This works for me!
为了以一列样式插入图形,图形之前和之后的文本必须保留为双列样式,您可以使用 cuted 包提供的 strip 命令
in order to insert a figure in one column style while , the text before and after the figure must remain in twocolumn style you can use the strip command provided by the cuted package
序言中的
\usepackage{multicol}
。那么
这又丑又脏。并且您将需要摆弄您认为的位置以使文本平衡,但这正是您所要求的。
\usepackage{multicol}
in your preamble.Then
This is ugly, and dirty. and you will need to fiddle with where you figure is in order to get the text balanced, but it is exactly what you asked for.