LaTeX - 自动缩小区域,以便在页面太大时将其包含在页面内?
我正在用 LaTeX 制作一个文档。它包括一组连续的图像。一小部分相当宽,会拉伸并推离页面。如果我缩小所有图像序列,那么大多数图像看起来都会太小。然而,要弄清楚哪些集合会太大并不容易。我想要一些自动的方法来调整这些集合的大小。
无论如何,是否有一个命令可以将某些东西包围起来,将其缩小到足以适合页面的宽度?如果它已经比页面窄,那么就不需要缩小?
I'm making a document in LaTeX. It includes a set of images in a row. A small percentage are quite wide and will stretch and push off the page. If I shrink all the image sequences then most of them will look too small. However it's not easy to figure out what sets are going to be too large. I'd like some automatic way to resize these sets.
Is there anyway to surround something with a command which will shrink it enough so that it fits within the width of the page? If it's already narrower than the page, then no shrinking is necessary?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你可以做类似的事情
或者
you can do something like
or
您可以尝试以下宏:
\maxsizebox{}{}{}
它仅在内容的自然大小大于给定的或 < 时才调整内容大小height〉,但不改变纵横比。
它是 adjustbox 包的一部分。因此,您需要附加到文档的序言中:
您可以在此处进一步阅读相关内容。
You may try the following macro:
\maxsizebox{〈width〉}{〈height〉}{〈content〉}
It only resizes the content if its natural size is larger than the given 〈width〉 or 〈height〉, but does not change the aspect ratio.
It is part of the adjustbox package. So you need to append to the preamble of your document:
You can further read about it here.
缩小大数字的最佳方法是这样
The best way to scale down a big figure is this