Skip to content

Commit

Permalink
docs: demo minor update (#160)
Browse files Browse the repository at this point in the history
* fix: use `\keywords` for keywords

* docs: minor update

* ci: update texlive-action

* ci: update safe.directory
  • Loading branch information
LogCreative authored Dec 26, 2023
1 parent 768a943 commit 62e901b
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 17 deletions.
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/[email protected]
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

0 comments on commit 62e901b

Please sign in to comment.