Skip to content

Commit

Permalink
init sysuthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
DapengFeng committed Jun 16, 2021
0 parents commit bb0db5a
Show file tree
Hide file tree
Showing 193 changed files with 182,121 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Contributor Covenant Code of Conduct

## Our Pledge

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.

## Our Standards

Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

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.

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.

## Scope

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.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. 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.

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.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
1 change: 1 addition & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
To be done
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: 报告 bug
about: 报告模板中的 bug

---

## 编译环境
编译的系统:macOS 10.14 / Windows 10 / Ubuntu 18.04 / Overleaf
TeX 发行版:TeX Live 2019 / MacTeX 2019 / MiKTeX 2.9.6753
模板版本:v5.5.2
模板类型:doctor / master / bachelor

## 描述问题
《研究生学位论文写作指南》第 xx 页要求……而模板编译的结果是……

截图:


复现上述问题的代码:
```TeX
\documentclass[degree=doctor]{thuthesis}
\begin{document}
abc
\end{document}
```
18 changes: 18 additions & 0 deletions .github/workflows/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM debian:buster
MAINTAINER Shengqi Chen <[email protected]>

ENV LANG=C.UTF-8
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update &&\
apt-get install -f -y --no-install-recommends ca-certificates curl fontconfig make perl zip &&\
update-ca-certificates &&\
apt-get clean -y &&\
rm -rf /var/lib/apt/lists/*

COPY install-texlive.sh install-packages.sh texlive.profile /tmp/
RUN /tmp/install-texlive.sh
RUN /tmp/install-packages.sh

ENV PATH="/opt/texlive/bin/x86_64-linux:${PATH}"
CMD /bin/bash
22 changes: 22 additions & 0 deletions .github/workflows/install-packages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
set -e

export PATH="/opt/texlive/bin/x86_64-linux:$PATH";

XETEX_PKGS="fontname fontspec l3packages xetex";
CTEX_PKGS="cjk ctex environ everysel trimspaces ulem xecjk zhnumber";
HYPERREF_PKGS="bitset letltxmacro pdfescape pdflscape";
BIBLATEX_PKGS="biber biblatex biblatex-apa biblatex-gb7714-2015 biblatex-mla xstring";
NOMENCL_PKGS="nomencl koma-script xkeyval";

BIN_PKGS="latexmk l3build";
REQUIRED_PKGS="$XETEX_PKGS $CTEX_PKGS bibunits caption enumitem etoolbox \
filehook footmisc notoccite pdfpages soul titlesec threeparttable unicode-math";
FONT_PKGS="fandol tex-gyre xits";
EXTRA_PKGS="algorithms apacite booktabs $HYPERREF_PKGS $BIBLATEX_PKGS $NOMENCL_PKGS ntheorem siunitx";
MARKDOWN_PKGS="markdown fancyvrb csvsimple gobble"
DOC_PKGS="hologo listings xcolor $MARKDOWN_PKGS";
EXAMPLE_PKGS="float fp metalogo multirow mwe"

tlmgr install $BIN_PKGS $REQUIRED_PKGS $FONT_PKGS $EXTRA_PKGS $DOC_PKGS \
$EXAMPLE_PKGS;
17 changes: 17 additions & 0 deletions .github/workflows/install-texlive.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
set -e

# download installer
REMOTE="http://mirror.ctan.org/systems/texlive/tlnet";
INSTALL="/tmp/install-texlive";

# install TeX Live & remove installer
mkdir -p "$INSTALL";
curl -sSL "$REMOTE/install-tl-unx.tar.gz" | tar -xz -C "$INSTALL" \
--strip-components=1;
"$INSTALL/install-tl" -no-gui -repository $REMOTE \
-profile /tmp/texlive.profile;
rm -rf "$INSTALL";

# add packages with tlmgr
export PATH="/opt/texlive/bin/x86_64-linux:$PATH";
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Test

on: [push, pull_request]

jobs:

test:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip')"
container: tunathu/thuthesis-test-env
steps:
- uses: actions/checkout@v2
- name: Install required packages
run: bash .github/workflows/install-packages.sh
- name: Test thesis
run: make thesis
8 changes: 8 additions & 0 deletions .github/workflows/texlive.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
selected_scheme scheme-basic
TEXDIR /opt/texlive
TEXMFLOCAL /opt/texlive/texmf-local
TEXMFSYSCONFIG /opt/texlive/texmf-config
TEXMFSYSVAR /opt/texlive/texmf-var
tlpdbopt_autobackup 0
tlpdbopt_install_docfiles 0
tlpdbopt_install_srcfiles 0
13 changes: 13 additions & 0 deletions .github/workflows/trigger_docker_update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Trigger Docker update

on:
schedule:
# every day at 00:00
- cron: '0 0 * * *'

jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Trigger hook
run: curl -X POST ${{ secrets.DOCKER_UPDATE_URL }}
Loading

0 comments on commit bb0db5a

Please sign in to comment.