sphinx+reStructuredText+latex生成pdf

安装sphinx

pip install sphinx

安装texlive

在清华大学开源软件镜像站下载镜像文件:https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/texlive2018-20180414.iso

创建sphinx项目

在项目文件夹中shift+鼠标右键,打开命令窗口。
输入创建项目命令,并且选择项目配置,大部分直接回车选择默认配置即可。

G:\test>sphinx-quickstart
> Separate source and build directories (y/n) [n]:
> Name prefix for templates and static dir [_]:
> Project name: pdftest		# 输入项目名称
> Author name(s): 123  	    # 作者
> Project release []:
> Project language [en]:
> Source file suffix [.rst]:
> Name of your master document (without suffix) [index]:
> autodoc: automatically insert docstrings from modules (y/n) [n]: y  # 重要,输入y
> doctest: automatically test cod
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值