PyLaTeX LaTeX 的 Python 库 项目简介
PyLaTeX 是一个用来创建和编译 LaTeX 文件的 Python 库。特性:Document generation and compilation Section, table, math, figure and package classes A matrix class that can compile NumPy ndarrays and matrices to LaTeX Very exstensible base classes that you can use to easily add new features Contextmanager style class hierarchy Functionality to escape special LaTeX characters Bold, italic and verbatim functions Every class has a dump method, which writes the output to a filepointer this way you can use snippets in in normal LaTeX files using \input依赖:Python 3.x or Python 2.7 ordered-set安装:pip install pylatex