清理你的乳胶文件
blacktex的Python项目详细描述
清理乳胶文件。
blacktex是一个小工具,帮助编辑乳胶的文章。它移除了所有 来自给定文件的注释并更正some common anti-patterns。例如, 使用
blacktex in.tex out.tex
输入文件
Because of $$a+b=c$$ ({\it Pythogoras}), % @johnny remember to insert name and $y=2^ng$ with $n=1,...,10$, we have ${\Gamma\over2}=8.$
转换为
Because of \[a+b = c\] (\textit{Pythogoras}), and $y =2^n g$ with $n =1,\dots,10$, we have $\frac{\Gamma}{2} =8$.
安装
blacktex是available from the Python Package Index,因此使用
pip install -U blacktex
您可以安装/升级。
测试
要运行测试,只需签出此存储库并运行
pytest
许可证
blacktex在MIT license下发布。