-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from fkcptlst/master
- Loading branch information
Showing
7 changed files
with
94 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
*.eps linguist-vendored | ||
*.eps linguist-vendored | ||
*.sh text eol=lf | ||
Makefile text eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
\addcontentsline{toc}{chapter}{致\quad 谢} % 添加到目录中 | ||
\chapter*{致\quad 谢} | ||
\addcontentsline{toc}{chapter}{\texorpdfstring{致\quad 谢}{致谢}} % 添加到目录中 | ||
\chapter*{\texorpdfstring{致\quad 谢}{致谢}} | ||
|
||
致谢应以简短的文字对课题研究与论文撰写过程中曾直接给予帮助的人员(例如指导教师)表示谢意。“致谢”两字之间空一个全角空格或两个半角空格,采用不编号章标题样式;内容应采用正文样式。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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]等。“附录”两字之间空一个全角空格或两个半角空格,采用不编号章标题样式;内容应采用正文样式。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Thesis</title> | ||
<style> | ||
body, html { | ||
margin: 0; | ||
padding: 0; | ||
height: 100%; | ||
width: 100%; | ||
} | ||
object { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<object data="tjumain.pdf" type="application/pdf"> | ||
<p>Your browser does not support PDFs. | ||
<a href="tjumain.pdf">Download the PDF</a>.</p> | ||
</object> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters