Skip to content

Commit

Permalink
PR: #11 from Eternal-Night-Archer/fix-ci
Browse files Browse the repository at this point in the history
Close #8
  • Loading branch information
skyleaworlder committed Jun 12, 2022
2 parents 33cad78 + cdfa3b0 commit b8be42e
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 9 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
on:
push:
branches:
- main
- fix-ci
pull_request:
branches:
- main

name: test

jobs:
build-xelatex:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: compile LaTeX document
uses: xu-cheng/texlive-action/full@v1
with:
run: "latexmk -xelatex -interaction=nonstopmode -file-line-error -halt-on-error -shell-escape main"
- name: upload pdf
uses: actions/upload-artifact@v2
with:
name: document output
path: main.pdf

build-lualatex:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: compile LaTeX document
uses: xu-cheng/texlive-action/full@v1
with:
run: "latexmk -lualatex -interaction=nonstopmode -file-line-error -halt-on-error -shell-escape main"
- name: upload pdf
uses: actions/upload-artifact@v2
with:
name: document output
path: main.pdf
2 changes: 1 addition & 1 deletion sections/frontcover.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
\thesisadvisor{中中}
\thesisdate{2021}{07}{15}

\MakeFrontCover
\MakeCover
13 changes: 5 additions & 8 deletions style/tongjithesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@
\zihao{-3}\oldtabular[#1]
}{\renewcommand{\arraystretch}{1.2}\endoldtabular
}
\RequirePackage{ulem}
\newcommand{\ulinecentered}[1]{\uline{\makebox[20em][c]{#1}}}


Expand All @@ -247,7 +248,10 @@
\newcommand{\thesistitleeng}[2]{\def\tongjithesistitleeng{#1}\def\tongjithesissubtitleeng{#2}}
\newcommand{\thesisadvisor}[1]{\def\tongjithesisadvisor{#1}}
\newcommand{\thesisdate}[3]{\def\tongjithesisyear{#1}\def\tongjithesismonth{#2}\def\tongjithesisday{#3}}
\newcommand{\MakeFrontCover}{


% 设置封面
\newcommand{\MakeCover}[0]{
\begin{titlepage}
\begin{center}
\thisfancyput(-0.75cm,-13cm){}
Expand Down Expand Up @@ -328,10 +332,3 @@
}
\par
}


%%% custom information %%%
\renewcommand{\maketitle}{%
\MakeFrontCover
\frontmatter
}

0 comments on commit b8be42e

Please sign in to comment.