在 Latex 中处理大数字

发布于 2024-09-04 16:57:55 字数 100 浏览 3 评论 0原文

我有一个大数字出现在文档的末尾,而不是我想要的部分。即使 \begin{figure}[h] 也没有帮助。在不缩小规模的情况下,如何将其放在我想要的部分的末尾?

I have a large figure that appears at the end of my document rather than in the section that I want to be in. Even \begin{figure}[h] doesn't help. Without scaling it down, how can I put it at the end of the section I want it in?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

残花月 2024-09-11 16:57:55

这里是浮动放置的小教程。您要做的是将 \afterpage{\clearpage} 命令放在该部分的末尾。这将在当前页面之后创建一个附加页面,并将队列中剩余的浮动元素放置在那里。如果浮动仍然没有放置,您必须调整它的大小。如果您确实不想调整它的大小并且它应该适合页面,那么您可以尝试暂时更改边距和文本区域(即仅针对该页面)并查看是否可以放置浮动。

Here is a small tutorial for float placement. The thing you want to do is put an \afterpage{\clearpage} command at the end of the section. This will create an additional page after the current one and place the floats that are left in the queque there. If the float still doesn't get placed, you have to resize it. If you really don't want to resize it and it should fit on the page, then you could try changing the margins and text area temporarily (i.e. just for that one page) and see if that lets the float get placed.

百思不得你姐 2024-09-11 16:57:55

使用 afterpage 包可能是一个很好的解决方案。然而,使用here选项你试图告诉LaTeX你想把图像放在哪里。相反,您需要告诉 LaTeX 将图像放置在哪里:

  • 使用 \begin{figure}[tb] 来表示适合带有文本的页面的图形(例如,文本高度的一半)对于图形,另一半用于文本)
  • 使用 \begin{figure}[p] 对于足够大以需要专用页面的浮动。

设置正确的选项可以增加将图像放置在几乎您想要的位置的机会,同时具有良好的页面布局。

如果图形仍然距离应放置的页面太远,您可以使用包 placeinsafterpage(已经提到过)。

Using the afterpage package can be a good solution. However, using the option here you are trying to tell LaTeX where you want to put the image. Instead, you need to tell LaTeX where the image is good to be put:

  • use \begin{figure}[tb] for figures that fit well in a page with text (say, half of the text height for the figure and the other half for the text)
  • use \begin{figure}[p] for floats large enough to require a dedicated page.

Setting a proper option increase your chances to have the image almost where you want, having at the same time a good page layout.

If the figure is still too far from the page where it should be placed, you can set some "barriers" for floats positioning with the packages placeins or afterpage (already mentioned).

败给现实 2024-09-11 16:57:55

我忘记是 float 还是 array 包提供了这个功能,但是,

\begin{figure}[H]
...
\end{figure}

大写的 H 会将数字准确地放在代码中的位置。

i forget if it's the float or array package that provides this, but,

\begin{figure}[H]
...
\end{figure}

The upper case H will put the figure exactly where it is in your code.

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