Skip to content

Commit bb0db5a

Browse files
committed
init sysuthesis
0 parents  commit bb0db5a

File tree

193 files changed

+182121
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+182121
-0
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at xueruini@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

.github/CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
To be done

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: 报告 bug
3+
about: 报告模板中的 bug
4+
5+
---
6+
7+
## 编译环境
8+
编译的系统:macOS 10.14 / Windows 10 / Ubuntu 18.04 / Overleaf
9+
TeX 发行版:TeX Live 2019 / MacTeX 2019 / MiKTeX 2.9.6753
10+
模板版本:v5.5.2
11+
模板类型:doctor / master / bachelor
12+
13+
## 描述问题
14+
《研究生学位论文写作指南》第 xx 页要求……而模板编译的结果是……
15+
16+
截图:
17+
18+
19+
复现上述问题的代码:
20+
```TeX
21+
\documentclass[degree=doctor]{thuthesis}
22+
\begin{document}
23+
abc
24+
\end{document}
25+
```

.github/workflows/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM debian:buster
2+
MAINTAINER Shengqi Chen <shengqi.chen@tuna.tsinghua.edu.cn>
3+
4+
ENV LANG=C.UTF-8
5+
ENV DEBIAN_FRONTEND=noninteractive
6+
7+
RUN apt-get update &&\
8+
apt-get install -f -y --no-install-recommends ca-certificates curl fontconfig make perl zip &&\
9+
update-ca-certificates &&\
10+
apt-get clean -y &&\
11+
rm -rf /var/lib/apt/lists/*
12+
13+
COPY install-texlive.sh install-packages.sh texlive.profile /tmp/
14+
RUN /tmp/install-texlive.sh
15+
RUN /tmp/install-packages.sh
16+
17+
ENV PATH="/opt/texlive/bin/x86_64-linux:${PATH}"
18+
CMD /bin/bash

.github/workflows/install-packages.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
set -e
3+
4+
export PATH="/opt/texlive/bin/x86_64-linux:$PATH";
5+
6+
XETEX_PKGS="fontname fontspec l3packages xetex";
7+
CTEX_PKGS="cjk ctex environ everysel trimspaces ulem xecjk zhnumber";
8+
HYPERREF_PKGS="bitset letltxmacro pdfescape pdflscape";
9+
BIBLATEX_PKGS="biber biblatex biblatex-apa biblatex-gb7714-2015 biblatex-mla xstring";
10+
NOMENCL_PKGS="nomencl koma-script xkeyval";
11+
12+
BIN_PKGS="latexmk l3build";
13+
REQUIRED_PKGS="$XETEX_PKGS $CTEX_PKGS bibunits caption enumitem etoolbox \
14+
filehook footmisc notoccite pdfpages soul titlesec threeparttable unicode-math";
15+
FONT_PKGS="fandol tex-gyre xits";
16+
EXTRA_PKGS="algorithms apacite booktabs $HYPERREF_PKGS $BIBLATEX_PKGS $NOMENCL_PKGS ntheorem siunitx";
17+
MARKDOWN_PKGS="markdown fancyvrb csvsimple gobble"
18+
DOC_PKGS="hologo listings xcolor $MARKDOWN_PKGS";
19+
EXAMPLE_PKGS="float fp metalogo multirow mwe"
20+
21+
tlmgr install $BIN_PKGS $REQUIRED_PKGS $FONT_PKGS $EXTRA_PKGS $DOC_PKGS \
22+
$EXAMPLE_PKGS;

.github/workflows/install-texlive.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# download installer
5+
REMOTE="http://mirror.ctan.org/systems/texlive/tlnet";
6+
INSTALL="/tmp/install-texlive";
7+
8+
# install TeX Live & remove installer
9+
mkdir -p "$INSTALL";
10+
curl -sSL "$REMOTE/install-tl-unx.tar.gz" | tar -xz -C "$INSTALL" \
11+
--strip-components=1;
12+
"$INSTALL/install-tl" -no-gui -repository $REMOTE \
13+
-profile /tmp/texlive.profile;
14+
rm -rf "$INSTALL";
15+
16+
# add packages with tlmgr
17+
export PATH="/opt/texlive/bin/x86_64-linux:$PATH";

.github/workflows/test.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
7+
test:
8+
runs-on: ubuntu-latest
9+
if: "!contains(github.event.head_commit.message, 'ci skip')"
10+
container: tunathu/thuthesis-test-env
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Install required packages
14+
run: bash .github/workflows/install-packages.sh
15+
- name: Test thesis
16+
run: make thesis

.github/workflows/texlive.profile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
selected_scheme scheme-basic
2+
TEXDIR /opt/texlive
3+
TEXMFLOCAL /opt/texlive/texmf-local
4+
TEXMFSYSCONFIG /opt/texlive/texmf-config
5+
TEXMFSYSVAR /opt/texlive/texmf-var
6+
tlpdbopt_autobackup 0
7+
tlpdbopt_install_docfiles 0
8+
tlpdbopt_install_srcfiles 0
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Trigger Docker update
2+
3+
on:
4+
schedule:
5+
# every day at 00:00
6+
- cron: '0 0 * * *'
7+
8+
jobs:
9+
update:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Trigger hook
13+
run: curl -X POST ${{ secrets.DOCKER_UPDATE_URL }}

0 commit comments

Comments
 (0)