LaTeX 全球声明
所以,我在 LaTeX 艺术方面自学成才,这意味着有一些非常简单的事情我只是还没有弄清楚。我一直想知道的一件事是如何添加到一种全局序言中,我可以在其中添加自定义声明等,这些声明将在我渲染文档时自动包含在内。有什么想法吗?
So, I'm self-taught in the art of LaTeX, which means there are some really simple things that I just haven't ever figured out. One thing that I've always wanted to know was how to add to a sort of global preamble where I can add custom declarations and the like that will automatically be included when I render a document. Any thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以创建自己的包以使用 \usepackage 加载。您可以在其中声明常用的函数。如果它位于源代码所在的目录中,则可以直接包含它,否则,如果您想将它用于所有文档,请将其放入您的 Latex 分发文件夹中并运行 texhash ,以便编译器可以找到它。
可以在 LaTeX Wikibook 或我确信的其他地方找到说明。我也是一名自学的 LaTeXer,维基教科书教会了我大部分我需要的东西,还有 short-math-guide 和一些软件包手册(特别是 TikZ/PGF 和 Beamer)。
You can create your own package to load with \usepackage. In it you can declare functions that you use commonly. If it is in the directory with your source it can be included directly, otherwise if you want to use it for all your documents, put in in your latex distibution folder and run
texhash
so that the compiler can find it.Directions can be found in the LaTeX Wikibook or other places I'm sure. I also was a self taught LaTeXer and the Wikibook taught me most of what I needed, along with the short-math-guide and a few package manuals (especially for TikZ/PGF and Beamer).