
LaTeX指南与模板 涵盖基础与高级技巧
LaTeX Cookbook项目提供全面的LaTeX指南和模板,涵盖基础和高级应用。特色包括Unicode支持、自动编译、索引生成、符号排版等功能,以及复杂图表绘制、化学方程式排版和代码高亮等进阶技巧。项目配备Docker环境,保证编译成功且独立于本地系统。适合各级LaTeX用户学习和参考。项目还包括完整的工具链支持,如Makefile便于跨平台使用,以及用于PDF测试的Python脚本。文档采用lualatex编译,支持高质量字体排版和全Unicode字符。对于学术写作,项目提供了全面的引用、缩略语和符号表管理功能。
This repo contains a LaTeX document, usable as a cookbook (different "recipes" to achieve various things in LaTeX) as well as as a template. The resulting PDF covers LaTeX-specific topics and instructions on compiling the LaTeX source.
See the releases page for more downloads.
[!IMPORTANT] This project is not archived, and issues are still addressed. However, the document is regarded as "done" and no new feature development actively happens. As LaTeX is a glacially slow-moving target, the document should be useful, valid and buildable for many years to come still.
There is a fork maintained by former coworkers of the author, at the research institute this template originated from as well. Active development is still happening there.
After installing Docker (and git), building works out of the box:
Bash:
$ git clone git@github.com:alexpovel/latex-cookbook.git $ cd latex-cookbook $ docker run --rm --volume $(pwd):/tex alexpovel/latex $ xdg-open cookbook.pdf
PowerShell:
PS> git clone git@github.com:alexpovel/latex-cookbook.git PS> cd latex-cookbook PS> docker run --rm --volume ${PWD}:/tex alexpovel/latex PS> Invoke-Item cookbook.pdf
The entrypoint is
latexmk, which when given no arguments (as
done here) runs on all found *.tex files, which in this case is only the root's main
file.
[!NOTE] Should this fail to compile (this is a bug, please report!), feel free to try other images. When
alexpovel/latexwas built,texlive/texlivedid not exist yet. That image is strongly recommended, as it is actively maintained by the actual authors of TeXLive. If tools are missing, likeinkscape, build your own imageFROM texlive/texlive, then install required software.Alternatively, there is a fork for the image as well, accompanying the template fork.
The PDF itself has much more to say on this and is meant to speak for itself, visually. The following is simply a brief overview of the features contained in this repo.
accompanying Visual Studio Code environment configuration.
If you open this repository in Visual Studio Code, it should automatically put you into the correct Docker container environment for development, and just work™. See here for more info.
in the image, pandoc is available with the Eisvogel template, allowing beautiful PDFs to be generated from Markdown (like this README: download it from the latest Actions artifacts; it currently looks lackluster because this README is mainly PNGs)
make file.pdf work locally as well as in CI pipelines)full Unicode support through lualatex, the successor to the obsolete pdflatex.
This also affords beautiful font typesetting through unicode-math.
High-quality fonts like TeX Gyre Pagella have all desirable font shapes available:

automatic compilation using latexmk, ensuring the PDF is built fully, running all steps necessary (generation of the bibliography, glossaries, ...) automatically as needed
comprehensive support for:
made possible through glossaries-extra.
structured and commented source code, explaining rationales and providing context
showcasing plotting and data display (floats):
computing more complicated plots (in this example, a contour plot) directly in LaTeX, with no explicit outside tools used (gnuplot is used by LaTeX in the background):

ingesting a CSV directly, and plotting it (so we can skip matlab2tikz etc.).
The below style is inspired by Tufte:

typesetting more complex tables, with footnotes, decimal alignment and more:

using tikz:
for annotating bitmap graphics:

for drawing diagrams (this template contains a (basic) pgf/tikz library for energy systems/thermodynamics/hydraulics/... symbols like pipes, compressors, valves, ...) and 3D sketches.
For a much better and comprehensive collection of TikZ examples, see here.

back-referencing of citations, using the excellent biblatex:

support for elaborate chemical reaction equations, using chemmacros:

comprehensive code syntax highlighting, thanks to minted and pygments:

quick and structural switching of language contexts, provided by polyglossia:

of course, support for enhanced mathematical typesetting, like highlighted equations or premade macros. The blue color are hyperlinks, turning those symbols into links to the glossary (this can be toggled off).




免费创建高清无水印Sora视频
Vora是一个免费创建高清无水印Sora视频的AI工具


最适合小白的AI自动化工作流平台
无需编码,轻松生成可复用、可变现的AI自动化工作流

大模型驱动的Excel数据处理工具
基于大模型交互的表格处理系统,允许用户通过对话方式完成数据整理和可视化分析。系统采用机器学习算法解析用户指令,自动执行排序、公式计算和数据透视等操作,支持多种文件格式导入导出。数据处理响应速度保持在0.8秒以内,支持超过100 万行数据的即时分析。


AI辅助编程,代码自动修复
Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。


AI论文写作指导平台
AIWritePaper论文写作是一站式AI论文写作辅助工具,简化了选题、文献检索至论文撰写的整个过程。通过简单设定,平台可快速生成高质量论文大纲和全文,配合图表、参考文献等一应俱全,同时提供开题报告和答辩PPT等增值服务,保障数据安全,有效提升写作效率和论文质量。


AI一键生成PPT,就用博思AIPPT!
博思AIPPT,新一代的AI生成PPT平台,支持智能生成PPT、AI美化PPT、文本&链接生成PPT、导入Word/PDF/Markdown文档生成PPT等,内置海量精美PPT模板,涵盖商务、教育、科技等不同风格,同时针对每个页面提供多种版式,一键自适应切换,完美适配各种办公场景。


AI赋能电商视觉革命,一站式智能商拍平台
潮际好麦深耕服装行业,是国内AI试衣效果最好的软件。使用先进AIGC能力为电商卖家批量提供优质的、低成本的商拍图。合作品牌有Shein、Lazada、安踏、百丽等65个国内外头部品牌,以及国内10万+淘宝、天猫、京东等主流平台的品牌商家,为卖家节省将近85%的出图成本,提升约3倍出图效率,让品牌能够快速上架。


企业专属的AI法律顾问
iTerms是法大大集团旗下法律子品牌,基于最先进的大语言模型(LLM)、专业的法律知识库和强大的智能体架构,帮助企业扫清合规障碍,筑牢风控防线,成为您企业专属的AI法律顾问。


稳定高效的流量提升解决方案,助力品牌曝光
稳定高效的流量提升解决方案,助力品牌曝光


最新版Sora2模型免费使用,一键生成无水印视频
最新版Sora2模型免费使用,一键生成无水印视频
最新AI工具、AI资讯
独家AI资源、AI项目落地

微信扫一扫关注公众号