Skip to content

Commit

Permalink
add dependencies and subcontent subfolder
Browse files Browse the repository at this point in the history
change clean options
  • Loading branch information
mengchaoheng committed Dec 2, 2024
1 parent c953635 commit 185dd88
Show file tree
Hide file tree
Showing 21 changed files with 24 additions and 40 deletions.
2 changes: 1 addition & 1 deletion chapter02.tex
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ \section{主文件}
scutthesis.tex文件相当于主函数,调用各章的内容。\LaTeX{}源代码以一个\textbackslash{}documentclass 命令作为开头,它指定了文档使用的文档类。文档类规定了\LaTeX{}源代码所要生成的文档的性质——普通文章、书籍、演示文稿、个人简
历等等。
\begin{lstlisting}
\documentclass[options⟩]{⟨class-name}
\documentclass[<options>]{<class-name>}
\end{lstlisting}
其中class-name为文档类的名称,如\LaTeX{}提供的article, book, report,可在其基础上派
生的一些文档类或者有其它功能的一些文档类。\LaTeX{}提供的基础文档类见文献\parencite{_c}。还可以自定义文档类,如华南理工大学硕博士论文文档类scutthesis,其实现保存在后缀名为.cls的文件中。可选参数options 为文档类指定选项。
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion scutthesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
%% 加载几个常用的sty packages
\RequirePackage{ifpdf}
\RequirePackage{ifthen}
\RequirePackage{doc}
% \RequirePackage{doc} % delete for Package hypdoc Warning: hyperref has been loaded before with option 'hyperindex' enabled.
\RequirePackage{keyval}
\RequirePackage[dvipsnames]{xcolor}
\RequirePackage{indentfirst}
Expand Down
Binary file modified scutthesis.pdf
Binary file not shown.
32 changes: 16 additions & 16 deletions scutthesis.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
\usepackage{enumitem}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%——by MCH
%编译范围
% \includeonly{chapter04}
% \includeonly{subcontent/chapter04}
%参考文献设置
\usepackage[backend=biber,style=gb7714-2015,gbalign=gb7714-2015,gbpub=false,gbnamefmt = lowercase]{biblatex}
\addbibresource[location=local]{MyLibrary.bib} % 如果在其他盘,改为相对路径。比如F盘,改为:F/MyLibrary.bib
\addbibresource[location=local]{mybibfile2.bib} % 无论什么来源的bib文件,只要由参考文献的BibTeX组成,都可以使用此模板。参考文献的BibTeX获取方法可百度
\addbibresource[location=local]{dependencies/MyLibrary.bib} % 如果在其他盘,改为相对路径。比如F盘,改为:F/MyLibrary.bib
\addbibresource[location=local]{dependencies/mybibfile2.bib} % 无论什么来源的bib文件,只要由参考文献的BibTeX组成,都可以使用此模板。参考文献的BibTeX获取方法可百度
%页眉页脚设置
\usepackage{fancyhdr}
\usepackage{listings}
Expand Down Expand Up @@ -55,7 +55,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\maketitle
\frontmatter %此后为罗马数字页码,页面类型为plain
\include{abstract} % 中英文摘要
\include{subcontent/abstract} % 中英文摘要
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 目录、表格目录、插图目录这几个字本身的大纲级别是一级的,即和章名有相同的字号字体。目录表的内容通过titletoc宏包在。cls文件设置了。
%\cleardoublepage % pdfbookmark可能需要这一条才能正常工作
Expand All @@ -76,8 +76,8 @@
\endgroup

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{symbols} % 符号对照表(可选)
\include{abbreviation} % 缩略词
\include{subcontent/symbols} % 符号对照表(可选)
\include{subcontent/abbreviation} % 缩略词

\mainmatter %此后为阿拉伯数字页码

Expand All @@ -87,17 +87,17 @@
} % 每章的第一页会默认使用plain,没有页眉。通过重定义plain为fancy解决
\pagestyle{fancy} %设置页眉页脚为fancy
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%分章节,结合导言区的\includeonly命令可仅编译部分章节,编译时不用切换界面,直接在相应章节编译即可。
\include{chapter01}%第一章
\include{chapter02}%第二章
\include{chapter03}%第三章
\include{chapter04}
\include{subcontent/chapter01}%第一章
\include{subcontent/chapter02}%第二章
\include{subcontent/chapter03}%第三章
\include{subcontent/chapter04}
% 自行根据需要添加章节。

\backmatter %章节不编号但页码继续
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 微调,使得后续章节的页眉不带章号——by MCH
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{conclusion} %结论
\include{subcontent/conclusion} %结论
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% bibtex参考文献设置 (原版)
%% \bibliographystyle{scutthesis}
%% \bibliography{F:/MyLibrary}
Expand All @@ -109,11 +109,11 @@
\printbibliography % 参考文献著录
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 只有一个附录
% \include{appendix}
% \include{subcontent/appendix}
% 有多个附录
\include{appendix1} %附录1
\include{appendix2} %附录2
\include{subcontent/appendix1} %附录1
\include{subcontent/appendix2} %附录2
%%%%%%%%%%%%%%%%%%%
\include{pub} %成果
\include{ack} %致谢
\include{subcontent/pub} %成果
\include{subcontent/ack} %致谢
\end{document}
28 changes: 6 additions & 22 deletions settings_files/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,28 +137,12 @@
} //类似还可以写很多编译链。
],
// 设置编译完成后要清除掉的辅助文件类型,若无特殊需求,无需进行更改。
//似乎clean up auxiliary files不能删除掉所有辅助文件,这点待改进
"latex-workshop.latex.clean.fileTypes": [
"*.aux",
"*.bbl",
"*.blg",
"*.idx",
"*.ind",
"*.lof",
"*.lot",
"*.out",
"*.toc",
"*.acn",
"*.acr",
"*.alg",
"*.glg",
"*.glo",
"*.gls",
"*.ist",
"*.fls",
"*.log",
"*.fdb_latexmk"
],
"latex-workshop.latex.clean.fileTypes": [ "*.aux", "*.bbl", "*.blg", "*.idx", "*.ind", "*.lof", "*.lot", "*.out", "*.toc", "*.acn", "*.acr", "*.alg", "*.glg", "*.glo", "*.gls", "*.fls", "*.log", "*.fdb_latexmk", "*.snm", "*.synctex(busy)", "*.synctex.gz(busy)", "*.nav" , "*.bcf", "*.ilg", "*.xdv", "*.hd"],
//递归删除子目录里的配置文件
"latex-workshop.latex.clean.subfolder.enabled": true,
// "glob": Clean all the files located in latex-workshop.latex.outDir and matching the glob patterns listed in latex-workshop.latex.clean.fileTypes.
// "command": Run latex-workshop.latex.clean.command to clean temporary files. (default value)
"latex-workshop.latex.clean.method": "glob",
// 这条命令是设置什么时候对上文设置的辅助文件进行清除。其变量有:
// 1. onBuilt : 无论是否编译成功,都选择清除辅助文件;
// 2. onFailed : 当编译失败时,清除辅助文件;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed xCJKnumb.tar.gz
Binary file not shown.

0 comments on commit 185dd88

Please sign in to comment.