diff --git a/.gitattributes b/.gitattributes index d11fe21..f0048fd 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,3 @@ -*.eps linguist-vendored \ No newline at end of file +*.eps linguist-vendored +*.sh text eol=lf +Makefile text eol=lf diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml new file mode 100644 index 0000000..c6eb1b6 --- /dev/null +++ b/.github/workflows/build-deploy.yml @@ -0,0 +1,30 @@ +name: Build LaTeX Document and Deploy +on: + push: + branches: + - master + workflow_dispatch: # allows you to run the workflow manually from the Actions tab + +jobs: + build_latex: + runs-on: ubuntu-latest + steps: + - name: Set up Git repository + uses: actions/checkout@v2 + - name: Compile LaTeX document + uses: dante-ev/latex-action@latest + with: + working_directory: Thesis + root_file: tjumain.tex + args: -xelatex -latexoption=-file-line-error -latexoption=-interaction=nonstopmode + - name: Create Public Dir + run: mkdir -p public + - name: Copy PDF to Public Dir + run: cp Thesis/tjumain.pdf Thesis/index.html public/ + - name: Deploy to GitHub Pages + uses: crazy-max/ghaction-github-pages@v4 + with: + target_branch: gh-pages + build_dir: public + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml new file mode 100644 index 0000000..64bbe49 --- /dev/null +++ b/.github/workflows/test-build.yml @@ -0,0 +1,14 @@ +name: Test Build LaTeX Document +on: [pull_request] +jobs: + build_latex: + runs-on: ubuntu-latest + steps: + - name: Set up Git repository + uses: actions/checkout@v2 + - name: Compile LaTeX document + uses: dante-ev/latex-action@latest + with: + working_directory: Thesis + root_file: tjumain.tex + args: -xelatex -latexoption=-file-line-error -latexoption=-interaction=nonstopmode \ No newline at end of file diff --git a/Thesis/appendix/acknowledgements.tex b/Thesis/appendix/acknowledgements.tex index c5da205..341a448 100644 --- a/Thesis/appendix/acknowledgements.tex +++ b/Thesis/appendix/acknowledgements.tex @@ -1,4 +1,4 @@ -\addcontentsline{toc}{chapter}{致\quad 谢} % 添加到目录中 -\chapter*{致\quad 谢} +\addcontentsline{toc}{chapter}{\texorpdfstring{致\quad 谢}{致谢}} % 添加到目录中 +\chapter*{\texorpdfstring{致\quad 谢}{致谢}} 致谢应以简短的文字对课题研究与论文撰写过程中曾直接给予帮助的人员(例如指导教师)表示谢意。“致谢”两字之间空一个全角空格或两个半角空格,采用不编号章标题样式;内容应采用正文样式。 diff --git a/Thesis/appendix/appendix.tex b/Thesis/appendix/appendix.tex index c58ec80..0a59e5e 100644 --- a/Thesis/appendix/appendix.tex +++ b/Thesis/appendix/appendix.tex @@ -1,6 +1,6 @@ -\addcontentsline{toc}{chapter}{附\quad 录} +\addcontentsline{toc}{chapter}{\texorpdfstring{附\quad 录}{附录}} %\setcounter{page}{1} % 如果需要从该页开始从 1 开始编页,则取消该注释 -\chapter*{附\quad 录} +\chapter*{\texorpdfstring{附\quad 录}{附录}} 附录的有无,根据毕业设计(论文)情况而定,内容一般包括正文内不便列出的冗长公式推导、辅助性数学工具、符号说明(含缩写)、计算程序及说明等。附录另起一页。附录依序用大写正体A、B、C、…编序号,如:附录A。附录中的图、表、公式、参考文献等另行编序号,与正文分开,也一律用阿拉伯数字编码,但在数码前冠以附录序码,如:图A01、表B-2、公式(B-3)、文献[A5]等。“附录”两字之间空一个全角空格或两个半角空格,采用不编号章标题样式;内容应采用正文样式。 diff --git a/Thesis/index.html b/Thesis/index.html new file mode 100644 index 0000000..4d39f25 --- /dev/null +++ b/Thesis/index.html @@ -0,0 +1,26 @@ + + +
+ + +