在 Latex 中处理大数字
我有一个大数字出现在文档的末尾,而不是我想要的部分。即使 \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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这里是浮动放置的小教程。您要做的是将
\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.使用
afterpage
包可能是一个很好的解决方案。然而,使用here
选项你试图告诉LaTeX你想把图像放在哪里。相反,您需要告诉 LaTeX 将图像放置在哪里:\begin{figure}[tb]
来表示适合带有文本的页面的图形(例如,文本高度的一半)对于图形,另一半用于文本)\begin{figure}[p]
对于足够大以需要专用页面的浮动。设置正确的选项可以增加将图像放置在几乎您想要的位置的机会,同时具有良好的页面布局。
如果图形仍然距离应放置的页面太远,您可以使用包 placeins 或 afterpage(已经提到过)。
Using the
afterpage
package can be a good solution. However, using the optionhere
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:\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)\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).
我忘记是
float
还是array
包提供了这个功能,但是,大写的 H 会将数字准确地放在代码中的位置。
i forget if it's the
float
orarray
package that provides this, but,The upper case H will put the figure exactly where it is in your code.