From cdd7966abb5843d6f1ebe01a8faecf1deb88b48f Mon Sep 17 00:00:00 2001 From: Xphi Date: Thu, 25 Feb 2021 19:12:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E7=BC=96=E8=AF=91=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=20=E7=8E=B0=E5=9C=A8Compile.bat=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E5=9C=A8indows=E4=B8=8B=E6=AD=A3=E5=B8=B8=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Readme.md | 5 ++++- compile.bat => book/compile.bat | 14 +++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) rename compile.bat => book/compile.bat (65%) 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