Skip to content

Commit a102b5c

Browse files
committed
fix: use Noto CJK fonts for cross-platform userguide PDF build, update CI workflow
1 parent 4f513a6 commit a102b5c

2 files changed

Lines changed: 17 additions & 5 deletions

File tree

‎.github/workflows/compile-userguide.yml‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,21 @@ jobs:
1818
with:
1919
fetch-depth: 0
2020

21-
- name: Compile userguide PDF
21+
- name: Install CJK fonts
22+
run: |
23+
apt-get update -qq
24+
apt-get install -y -qq fonts-noto-cjk
25+
26+
- name: Compile userguide PDF (pass 1)
2227
working-directory: userguide
23-
run: xelatex -interaction=nonstopmode userguide.tex
28+
run: xelatex -interaction=nonstopmode userguide.tex || true
29+
30+
- name: Compile userguide PDF (pass 2 — for TOC)
31+
working-directory: userguide
32+
run: xelatex -interaction=nonstopmode userguide.tex || true
33+
34+
- name: Verify PDF was produced
35+
run: test -f userguide/userguide.pdf
2436

2537
- name: Commit updated PDF
2638
run: |

‎userguide/userguide.tex‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
\documentclass[10pt,aspectratio=169,utf8]{beamer}
22

33
\usepackage{ctex}
4-
\setCJKmainfont{Songti SC}
5-
\setCJKsansfont{Heiti SC}
6-
\setCJKmonofont{Heiti SC}
4+
\setCJKmainfont{Noto Serif CJK SC}
5+
\setCJKsansfont{Noto Sans CJK SC}
6+
\setCJKmonofont{Noto Sans CJK SC}
77

88
\usepackage{graphicx}
99
\usepackage{xcolor}

0 commit comments

Comments
 (0)