在 LaTeX 中使用子浮点导入图像
我使用 subfloats 在图中导入 2 个 .png 文件以基本上生成子图。当我编译它时,数字之间没有空格。如何在它们之间添加一些空白?是否可以使用 LaTeX 将它们转换为黑白?
I am using subfloats to import 2 .png files in a figure to basically generate subfigures. There's no space between the figures when I compile it. How do I put some white space in between them? And is it possible to convert them to black and white using LaTeX?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试在数字之间使用
\vskip 1em
。如果这不起作用,请发布您的非工作图形代码,以便我们了解发生了什么情况。Try
\vskip 1em
between the figures. If this doesn't work, post your nonworking figure code so we can see what's going on.要在它们之间添加空白,您可以在图形内的子浮点之间添加
\quad
(或任何构成空白的内容)。据我所知,转换为灰度不在graphicx包中;所有关于它的文献都说要使用外部程序。我的第一反应是探索 TikZ(一个 LaTeX 包),因为它太强大了,但我不知道它是否可以对外部图形做任何事情。 此页面 处理编译时选项以指定灰度或彩色版本。例如,如果您将所有彩色图像都放在一个文件夹中,则可以将它们批量转换为灰度图像,并将它们放在具有相同文件名的单独文件夹中。然后,在编译时,指定从哪个文件夹获取图像。请参阅graphicspath
实现的注释。To put white space in between them, you can throw a
\quad
—or anything that makes whitespace—in between the subfloats within the figure. Converting to grayscale is not in the graphicx package as far as I can see; all the literature on it says to use an external program. My first instinct is to explore TikZ (a LaTeX package) just because it is so powerful, but I have no idea if it can do anything with external graphics. This Page deals with compile time options to specify a grayscale or color version. For example, if you have all the color images in one folder, you batch convert them to grayscale and put them in a separate folder with identical filenames. Then, at compile time, specify from which folder to get the images. See the comments for thegraphicspath
implementation.