多列环境中跨越两列的非浮动图形

发布于 2024-07-30 13:49:00 字数 123 浏览 9 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

云淡风轻 2024-08-06 13:49:00

看一下 nonfloat 包(它是 TeXlive 的一部分,因此您很可能已经拥有它)。 以下示例取自 nonfloat 手册,展示了如何获得带有标题的非浮动图形:

\begin{minipage}{\linewidth} 
\centering% 
\includegraphics[width=0.8\linewidth,clip=]{input.eps}% 
\figcaption{Caption}% 
\label{fig:input.eps}% 
\end{minipage} 

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:

\begin{minipage}{\linewidth} 
\centering% 
\includegraphics[width=0.8\linewidth,clip=]{input.eps}% 
\figcaption{Caption}% 
\label{fig:input.eps}% 
\end{minipage} 

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}.

无声静候 2024-08-06 13:49:00

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 ...

神仙妹妹 2024-08-06 13:49:00

好吧,LaTeX 中的浮动图形可能具有挑战性......但据我记得,它的核心是图形始终是浮动的,除了不使用图形而是直接包含图形之外没有其他方法可以改变这一点。

话虽如此,“LaTeX 指南”中的第 9 章“浮动表格和图形”提到了一些可能对您有帮助的内容(按提到的顺序列出):

\suppressfloats
package flafter
package float
package here
package floatflt

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):

\suppressfloats
package flafter
package float
package here
package floatflt
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文