内联 LaTeX \input 命令
我正在寻找一个程序来递归内联 LaTeX 文件中的所有 \input{}
命令。我所说的“递归”是指迭代地进行内联,直到最终的 LaTeX 文件中不再有 \input{}
命令为止。
我已经遇到过 flatten 包。但是,由于某种原因,我的 TeXLive 发行版没有安装它。当我执行命令 sudo tlmgr show flatten
时,收到错误消息:tlmgr: 找不到 flatten
。因此,我正在寻找更标准且更易于安装的替代工具。
I'm looking a program to recursively inline all \input{}
commands in a LaTeX file. By "recursively", I mean doing the inlining iteratively until no \input{}
command remains in the final LaTeX file.
I've already come across the flatten package. But, for some reason, my TeXLive distribution doesn't install it. When I execute the command sudo tlmgr show flatten
, I get the error message: tlmgr: cannot find flatten
. So, I'm looking for alternative tools that are more standard and easier to install.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为什么不直接从 CTAN(您在问题中提供的链接)下载扁平化并手动安装?
编辑:应用以下补丁来修复构建错误。
Why don't you just download flatten from CTAN (the link you gave in the question) and install it manually?
EDIT: Apply the following patch to fix the build errors.
或者,您可以使用 FLaP。它内联
\input
和\include
指令,并支持使用\includeonly
。此外,它还移动图形文件,以便将生成的“合并”LaTeX 项目包含在单个平面目录中。它支持\graphicspath
、\includesvg
并处理 SVG、EPS 和 PDF 图像。Alternatively, you can use FLaP. It inlines
\input
and\include
directives, and supports the use of\includeonly
. Besides, it moves graphics files around so that the resulting "merged" LaTeX project is contained in a single flat directory. It supports\graphicspath
,\includesvg
and processes SVG, EPS and PDF images.