如何在乳胶中将图形单独放在页面顶部?
当其中一个图形与其他文本不匹配时,该图形会出现在页面中间(单独)。如何让它显示在新页面的顶部?
One of the figures appear in the middle of a page (on its own) when the figure does not fit the other text. How to show it on top of the new page?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果所有其他方法都失败,只需将
\vspace*{3in}
添加到图形底部\caption
下方。然后通过反复试验更改3in
尺寸,直到获得所需的外观。这当然是纯粹的蛮力,但有时这比尝试让 LaTeX 以“正确”的方式做事要容易得多。If all else fails, just add
\vspace*{3in}
to the bottom of your figure below the\caption
. Then by trial and error change the3in
dimension until you get the look you want. This is of course pure brute force, but sometimes that's a lot easier than trying to get LaTeX to do things the "right" way.我想我误解了你的问题。您是否在问“如何让页面上的浮动元素本身位于页面顶部,而不是垂直居中?”?
如果是这样,以下是如何自定义浮动页面。从 source2e 开始,粘合被插入到页面的顶部和底部以及页面上的每个浮动之间。这种插入的胶水由以下参数给出:
只需重新定义这些参数即可获得您喜欢的输出。例如,对于顶部和底部对齐的浮动:(未经测试)
I think I misunderstood your question. Are you asking "how do I get floats on pages by themselves to be at the top of the page, rather than vertically centred?"?.
If so, here's how to customise the float page. From source2e, glue is inserted at the top and bottom of the page, and between each float on the page. This inserted glue is given by the following parameters:
Simply redefine these to get the output you like. For example, for top- and bottom- aligned floats: (untested)
您可以通过
\clearpage
或\newpage
插入分页符,然后在figure
环境中使用t
选项:You can insert a pagebreak via
\clearpage
or\newpage
, then use thet
option on thefigure
environment:如果没有地方可以容纳该图形,那么它会单独放在一页上。有关如何设置的更多信息,请参阅有关浮动的常见问题解答自定义此行为。
If there's nowhere for the figure to fit then it will go on a page by itself. See the FAQ answer on floats for more information on how to customise this behaviour.