diff --git a/Readme.md b/Readme.md index 0a65d4e..6547d85 100644 --- a/Readme.md +++ b/Readme.md @@ -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书籍模板”的早期版本。 diff --git a/compile.bat b/book/compile.bat similarity index 65% rename from compile.bat rename to book/compile.bat index 6759aad..0e53ac7 100644 --- a/compile.bat +++ b/book/compile.bat @@ -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