From d4af0bb98fc5d008132119a670311a1e3aa999aa Mon Sep 17 00:00:00 2001 From: New Future Date: Sat, 11 May 2024 17:33:01 +0000 Subject: [PATCH] reorder --- .vscode/settings.json | 51 +++++++++++++++++++ build.cmd | 6 +-- main.tex | 41 +++++++-------- tex/{abstract.tex => 0_abstract.tex} | 0 tex/{introduction.tex => 1_introduction.tex} | 0 tex/{relatedwork.tex => 2_relatedwork.tex} | 0 tex/{method.tex => 3_method.tex} | 0 tex/{discussion.tex => 4_discussion.tex} | 0 tex/{summary.tex => 5_summary.tex} | 0 tex/{references.tex => A1_references.tex} | 0 ...ledgements.tex => A2_acknowledgements.tex} | 0 tex/{appendices.tex => A3_appendices.tex} | 0 tex/{resume.tex => A4_resume.tex} | 0 13 files changed, 75 insertions(+), 23 deletions(-) create mode 100644 .vscode/settings.json rename tex/{abstract.tex => 0_abstract.tex} (100%) rename tex/{introduction.tex => 1_introduction.tex} (100%) rename tex/{relatedwork.tex => 2_relatedwork.tex} (100%) rename tex/{method.tex => 3_method.tex} (100%) rename tex/{discussion.tex => 4_discussion.tex} (100%) rename tex/{summary.tex => 5_summary.tex} (100%) rename tex/{references.tex => A1_references.tex} (100%) rename tex/{acknowledgements.tex => A2_acknowledgements.tex} (100%) rename tex/{appendices.tex => A3_appendices.tex} (100%) rename tex/{resume.tex => A4_resume.tex} (100%) diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..9e0e6fe --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,51 @@ +{ + "latex-workshop.latex.autoClean.run": "onFailed", + "latex-workshop.latex.search.rootFiles.include": [ + "main.tex" + ], + "latex-workshop.latex.tools": [ + { + "name": "xelatex", + "command": "xelatex", + "args": [ + "-output-directory=%OUTDIR%", + "-synctex=1", + "-interaction=nonstopmode", + "-file-line-error", + "-halt-on-error", + "main.tex" + ], + }, + { + "name": "biber", + "command": "biber", + "args": [ + "main" + ] + } + ], + "latex-workshop.linting.chktex.enabled": true, + "latex-workshop.latex.recipes": [ + { + "name": "xelatex", + "tools": [ + "xelatex" + ] + }, + { + "name": "xelatex -> biber -> xelatex* 2", + "tools": [ + "xelatex", + "biber", + "xelatex", + "xelatex" + ] + }, + { + "name": "biber", + "tools": [ + "biber" + ] + } + ] +} \ No newline at end of file diff --git a/build.cmd b/build.cmd index c37195d..3c1642f 100755 --- a/build.cmd +++ b/build.cmd @@ -2,10 +2,10 @@ rm -rf *.aux *.log *.bbl *.blg *.bcf *.toc *.fls *.nav *.out *.snm *.fdb_latexmk *.vrb *.gz *.run.xml main-blx.bib tex/*.aux )&( ( - xelatex -interaction=nonstopmode -halt-on-error main + xelatex -interaction=nonstopmode -halt-on-error main.tex ) && biber main && ( - xelatex -interaction=nonstopmode -halt-on-error main + xelatex -interaction=nonstopmode -halt-on-error main.tex ) && ( - xelatex -interaction=nonstopmode main + xelatex -interaction=nonstopmode main.tex ) ) diff --git a/main.tex b/main.tex index b97903e..20950b5 100644 --- a/main.tex +++ b/main.tex @@ -3,6 +3,7 @@ % !BIB program = biber % !TEX TS-program = xelatex % !BIB TS-program = biber +% !TEX root = ./main.tex %% %% 本模板方式编译: XeLaTeX + biber %% @@ -33,16 +34,16 @@ % \makeatother \includeonly{ - ./tex/abstract, - ./tex/introduction, - ./tex/relatedwork, - ./tex/method, - ./tex/discussion, - ./tex/summary, - ./tex/references, - ./tex/acknowledgements, - ./tex/appendices, - ./tex/resume + ./tex/0_abstract, + ./tex/1_introduction, + ./tex/2_relatedwork, + ./tex/3_method, + ./tex/4_discussion, + ./tex/5_summary, + ./tex/A1_references, + ./tex/A2_acknowledgements, + ./tex/A3_appendices, + ./tex/A4_resume } \begin{document} @@ -88,7 +89,7 @@ % 论文开始部分 %%%%%%%%%%%%%%%%%%%%%%%%%%%% % 摘要 -\include{./tex/abstract} +\include{./tex/0_abstract} % 论文目录 \tableofcontents % 列出图表目录,如果需要可取消注释 @@ -97,18 +98,18 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%% % 论文主体章节 %%%%%%%%%%%%%%%%%%%%%%%%%%%% -\include{./tex/introduction} -\include{./tex/relatedwork} -\include{./tex/method} -\include{./tex/discussion} -\include{./tex/summary} +\include{./tex/1_introduction} +\include{./tex/2_relatedwork} +\include{./tex/3_method} +\include{./tex/4_discussion} +\include{./tex/5_summary} %%%%%%%%%%%%%%%%%%%%%%%%%%%% % 论文其他信息 %%%%%%%%%%%%%%%%%%%%%%%%%%%% -\include{./tex/references} -\include{./tex/acknowledgements} -\include{./tex/appendices} -\include{./tex/resume} +\include{./tex/A1_references} +\include{./tex/A2_acknowledgements} +\include{./tex/A3_appendices} +\include{./tex/A4_resume} \end{document} diff --git a/tex/abstract.tex b/tex/0_abstract.tex similarity index 100% rename from tex/abstract.tex rename to tex/0_abstract.tex diff --git a/tex/introduction.tex b/tex/1_introduction.tex similarity index 100% rename from tex/introduction.tex rename to tex/1_introduction.tex diff --git a/tex/relatedwork.tex b/tex/2_relatedwork.tex similarity index 100% rename from tex/relatedwork.tex rename to tex/2_relatedwork.tex diff --git a/tex/method.tex b/tex/3_method.tex similarity index 100% rename from tex/method.tex rename to tex/3_method.tex diff --git a/tex/discussion.tex b/tex/4_discussion.tex similarity index 100% rename from tex/discussion.tex rename to tex/4_discussion.tex diff --git a/tex/summary.tex b/tex/5_summary.tex similarity index 100% rename from tex/summary.tex rename to tex/5_summary.tex diff --git a/tex/references.tex b/tex/A1_references.tex similarity index 100% rename from tex/references.tex rename to tex/A1_references.tex diff --git a/tex/acknowledgements.tex b/tex/A2_acknowledgements.tex similarity index 100% rename from tex/acknowledgements.tex rename to tex/A2_acknowledgements.tex diff --git a/tex/appendices.tex b/tex/A3_appendices.tex similarity index 100% rename from tex/appendices.tex rename to tex/A3_appendices.tex diff --git a/tex/resume.tex b/tex/A4_resume.tex similarity index 100% rename from tex/resume.tex rename to tex/A4_resume.tex