多列环境中跨越两列的非浮动图形
我正在使用 multicol 包,有两列,并且需要一个数字来跨越两列。 我知道 \begin{figure*}
,但我不希望该数字浮动。 我已经用谷歌搜索了大约一个小时,但没有结果。 任何帮助都会很棒。
I am using the multicol package, with two columns, and need a figure to span both columns. I am aware of \begin{figure*}
, but I do not want the figure to float. I have been googling for about an hour, to no avail. Any help would be great.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看一下 nonfloat 包(它是 TeXlive 的一部分,因此您很可能已经拥有它)。 以下示例取自 nonfloat 手册,展示了如何获得带有标题的非浮动图形:
nonfloat 包提供了可以在浮动之外使用的 \figcaption 命令。 为了将其与 multicol 结合起来,我认为您必须 \end{multicols},输入数字,然后 \begin{multicols}{2}。
Have a look at the package nonfloat (it is part of TeXlive so there is a good chance you already have it). The following example taken from the manual of nonfloat shows how you can have a non-floating figure with caption:
The nonfloat package provides the \figcaption command that can be used outside floats. In order to combine this with multicol I think you have to \end{multicols}, put the figure, and then \begin{multicols}{2}.
不完全偏离主题, http://www.deesaster.org/latex-magazinerstellung.php< /a> 有一篇示例文章,展示了如何使用 Latex 制作杂志(请参阅示例 LaTeX-Magazinerstellung-Artikel.pdf),该文章使用 multicol 并且图片跨越多个列。 我认为这很有趣,不幸的是源代码和指南是德语的,但我认为他用 \parbox 来做到这一点......
Not completely off-topic, http://www.deesaster.org/latex-magazinerstellung.php has an example article showing how to make magazines with latex (see the example LaTeX-Magazinerstellung-Artikel.pdf) which uses multicol and has pictures spanning more than one column. This, I think, is interesting, unfortunately the source code and guide are in German, but I think he does it with a \parbox ...
好吧,LaTeX 中的浮动图形可能具有挑战性......但据我记得,它的核心是图形始终是浮动的,除了不使用图形而是直接包含图形之外没有其他方法可以改变这一点。
话虽如此,“LaTeX 指南”中的第 9 章“浮动表格和图形”提到了一些可能对您有帮助的内容(按提到的顺序列出):
Well, floating figures in LaTeX can be challenging... But as far as I remember, the core of it is that a figure always is floating and there is no way to change that other than not using a figure but includegraphics directly.
Having that said, chapter 9 "Floating tables and figures" in "Guide to LaTeX" mentions some things that might help you (listed in order mentioned):