2023-10-15 13:25:06 +08:00
|
|
|
# Manually generate PDF documents
|
2020-07-29 14:31:44 +08:00
|
|
|
-------
|
|
|
|
|
2023-10-15 13:25:06 +08:00
|
|
|
OS: Debian 9.x (or deepin 20.x)
|
2020-07-29 14:31:44 +08:00
|
|
|
|
2023-10-15 13:25:06 +08:00
|
|
|
## Install dependencies
|
2020-08-15 18:37:39 +08:00
|
|
|
```shell
|
|
|
|
sudo apt install texlive-lang-chinese texlive-lang-cjk texlive-xetex \
|
2023-10-15 13:25:06 +08:00
|
|
|
latexmk texlive-latex-extra texlive-latex-recommended python-pip \
|
|
|
|
texlive-latex-base texlive-plain-extra texlive-fonts-recommended \
|
|
|
|
texlive-generic-recommended
|
2020-08-15 18:37:39 +08:00
|
|
|
```
|
|
|
|
|
2023-10-15 13:25:06 +08:00
|
|
|
## Python dependencies
|
2020-08-15 18:37:39 +08:00
|
|
|
|
|
|
|
```shell
|
2020-11-18 17:19:05 +08:00
|
|
|
sudo pip install Sphinx commonmark sphinx-rtd-theme
|
2020-08-15 18:37:39 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
if download is too slow, try use local mirror
|
|
|
|
|
|
|
|
```shell
|
2023-10-15 13:25:06 +08:00
|
|
|
sudo pip install Sphinx commonmark sphinx-rtd-theme -i https://mirrors.aliyun.com/pypi/simple/
|
2020-08-15 18:37:39 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
# Generate PDF
|
|
|
|
|
|
|
|
```shell
|
|
|
|
make latex
|
|
|
|
make latexpdf
|
|
|
|
```
|
|
|
|
|
|
|
|
# Q & A
|
|
|
|
|
|
|
|
1. If occuring XXX file missing
|
|
|
|
|
|
|
|
use follow url relace REPLACE-MISSING-FILE-NAME to you want find and install missing package
|
|
|
|
|
|
|
|
https://packages.debian.org/search?searchon=contents&keywords=RELACE-MISSING-FILE-NAME&mode=path&suite=oldstable&arch=any
|
|
|
|
|