Pandoc过滤器提供Minted支持(github.com/nick ulle/pandoc minted)
pandoc-minted的Python项目详细描述
潘多克铸币
提供Minted支持的Pandoc过滤器(github.com/nick ulle/pandoc minted)
使用量
除了安装minted,您还必须将其包含在模板或标记头元数据中,如下所示:
--- title: Test author: Author Name header-includes: - \usepackage{minted} ---
pandoc在一个临时文件中为minted生成tex,因此您将遇到此错误read more
! Package minted Error: Missing Pygments output; \inputminted was probably given a file that does not exist--otherwise, you may need the outputdir package option, or may be using an incompatible build tool.
因此,您需要使用以下命令:
pandoc -F pandoc-minted -s myfile.md -o myfile.tex pdflatex --shell-escape myfile.tex
许可证
- 自由软件:麻省理工学院许可证
- 文档:https://pandoc-minted.readthedocs.io。
学分
这个包是用Cookiecutter和audreyr/cookiecutter-pypackage项目模板创建的。
历史记录
0.1.0(2017-01-17)
- pypi上的第一个版本。