Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: demo minor update #160

Merged
merged 4 commits into from
Dec 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ jobs:
steps:
- uses: actions/checkout@v4
name: checkout code
- uses: xu-cheng/texlive-action/full@v1
- uses: xu-cheng/texlive-action@v2
with:
scheme: full
run: .github/ci/build_test_variants.sh -halt-on-error -time -quiet -xelatex
name: build test variants with XeLaTeX
- uses: xu-cheng/texlive-action/full@v1
- uses: xu-cheng/texlive-action@v2
with:
scheme: full
run: .github/ci/gen_cover.sh -halt-on-error -time -xelatex
name: build cover with XeLaTeX
- run: cat build/build-*.log
Expand All @@ -45,12 +47,14 @@ jobs:
steps:
- uses: actions/checkout@v4
name: checkout code
- uses: xu-cheng/texlive-action/full@v1
- uses: xu-cheng/texlive-action@v2
with:
scheme: full
run: .github/ci/build_test_variants.sh -halt-on-error -time -quiet -lualatex
name: build test variants with LuaLaTeX
- uses: xu-cheng/texlive-action/full@v1
- uses: xu-cheng/texlive-action@v2
with:
scheme: full
run: .github/ci/gen_cover.sh -halt-on-error -time -quiet -lualatex
name: build cover with LuaLaTeX
- run: cat build/*.log
Expand All @@ -68,8 +72,9 @@ jobs:
steps:
- uses: actions/checkout@v4
name: checkout code
- uses: xu-cheng/texlive-action/full@v1
- uses: xu-cheng/texlive-action@v2
with:
scheme: full
run: |
export diffexe="diff -U 3"
apk add zip diffutils
Expand All @@ -94,11 +99,12 @@ jobs:
steps:
- uses: actions/checkout@v4
name: checkout code
- uses: xu-cheng/texlive-action/full@v1
- uses: xu-cheng/texlive-action@v2
with:
scheme: full
run: |
apk add diffutils findutils git make
git config --global --add safe.directory /github/workspace
git config --global --add safe.directory /home/runner/work/SJTUBeamer/SJTUBeamer
make format-dev
- name: check if generated files are of latest version
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/contrib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ jobs:
uses: juliangruber/read-file-action@v1.0.0
with:
path: ./contrib.txt
- uses: xu-cheng/texlive-action/full@v1
- uses: xu-cheng/texlive-action@v2
with:
scheme: full
run: |
apk add ghostscript imagemagick gnupg
sed -i "s|<policy domain=\"coder\" rights=\"none\" pattern=\"PDF\" />|<policy domain=\"coder\" rights=\"read\|write\" pattern=\"PDF\" />|g" /etc/ImageMagick-*/policy.xml
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,23 @@ jobs:
steps:
- uses: actions/checkout@v4
name: checkout code
- uses: xu-cheng/texlive-action/full@v1
- uses: xu-cheng/texlive-action@v2
with:
scheme: full
run: |
apk add zip diffutils
tlmgr update --self
tlmgr update l3build
make build-dev
name: build package with XeLaTeX
- uses: xu-cheng/texlive-action/full@v1
- uses: xu-cheng/texlive-action@v2
with:
scheme: full
run: .github/ci/build_all_variants.sh -halt-on-error -time -quiet -xelatex
name: build all variants with XeLaTeX
- uses: xu-cheng/texlive-action/full@v1
- uses: xu-cheng/texlive-action@v2
with:
scheme: full
run: .github/ci/gen_cover.sh -halt-on-error -time -quiet -xelatex
name: build cover with XeLaTeX
- run: cat build/*.log
Expand Down
14 changes: 8 additions & 6 deletions main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,14 @@
\usepackage[backend=biber,style=gb7714-2015]{biblatex}
\addbibresource{ref.bib}

% 该行指定了图像的额外搜索路径
\graphicspath{{figures/}}

\hypersetup{
pdfcopyright = {Licensed under CC-BY-SA 4.0. Some rights reserved.},
pdflicenseurl = {http://creativecommons.org/licenses/by-sa/4.0/},
unicode = true,
psdextra = true,
pdfcopyright = {Licensed under CC-BY-SA 4.0. Some rights reserved.},
pdflicenseurl = {http://creativecommons.org/licenses/by-sa/4.0/},
unicode = true,
psdextra = true,
pdfdisplaydoctitle = true
}

Expand All @@ -70,9 +71,9 @@
\newcommand{\XeLaTeX}{\hologo{Xe}\kern-.13em\LaTeX{}}
\newcommand{\pdfLaTeX}{pdf\LaTeX{}}
\newcommand{\LuaLaTeX}{Lua\LaTeX{}}

\def\TeXLive{\TeX{} Live}
\let\TL=\TeXLive

\newcommand{\SJTUThesis}{\textsc{SJTUThesis}}
\newcommand{\SJTUThesisVersion}{2.0.3}
\newcommand{\SJTUThesisDate}{2023/9/25}
Expand Down Expand Up @@ -119,7 +120,8 @@
\author{Alexara Wu}
\institute[SJTUG]{上海交通大学 Linux 用户组}
\date{\the\year 年 \the\month 月}
\subject{LaTeX, 论文排版, SJTUThesis}
\subject{上海交通大学图书馆专题培训讲座}
\keywords{LaTeX, 论文排版, SJTUThesis}

\title[\SJTUBeamer 示例文档] % 页脚显示标题
{\textbf{如何使用 \LaTeX{} 排版论文}} % 首页标题
Expand Down