修正编译脚本

现在Compile.bat可以在indows下正常执行
tmp/2387f5b0b63e5e559086632dd5280c76/head
Xphi 4 years ago
parent 8ebb36e1c9
commit cdd7966abb

@ -23,12 +23,13 @@
建议使用Python的包管理工具进行安装。Pygments可以在各种操作系统下运行。
``` shell
$ pip install Pygments
pip install Pygments
```
1. Windows 环境下推荐使用最新版TeX Live套件然后在工程目录下运行以下命令编译
``` shell
cd book
compile.bat
```
@ -36,6 +37,8 @@ $ pip install Pygments
3. Linux 环境下推荐使用最新版TeX Live套件然后编译。
由于实验指导书较长,从头开始进行一次编译需要几分钟时间,请耐心等待。
## 4. 说明
项目主要结构参考了“Q-book LaTeX书籍模板”的早期版本。

@ -42,19 +42,27 @@ goto :EOF
:instr
echo Compile...
latexmk -xelatex -shell-escape --halt-on-error -silent books\instructions >nul 2>nul
latexmk -xelatex -shell-escape --halt-on-error -silent instructions >nul 2>nul
goto :EOF
:clean
echo Clean files...
latexmk -c -silent 2>nul
del tex\*.aux >nul 2>nul
del instructions.bbl >nul 2>nul
del instructions.listing >nul 2>nul
del instructions.xdv >nul 2>nul
del instructions.run.xml >nul 2>nul
rmdir /S /Q _minted-instructions >nul 2>nul
goto :EOF
:cleanall
echo Clean files...
latexmk -C -silent 2>nul
del tex\*.aux >nul 2>nul
del instructions.bbl >nul 2>nul
del instructions.listing >nul 2>nul
del instructions.xdv >nul 2>nul
del instructions.run.xml >nul 2>nul
rmdir /S /Q _minted-instructions >nul 2>nul
if exist instructions.pdf (
echo Close the file: instructions.pdf!
pause
Loading…
Cancel
Save