Skip to content

Commit 85a5ec5

Browse files
committed
chore(release):prepare for modern-sysu-touying:0.1.0
1 parent 3dbe449 commit 85a5ec5

File tree

8 files changed

+220
-0
lines changed

8 files changed

+220
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 SYSU Typst Thesis Template Authors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# modern-sysu-touying
2+
中山大学主题风格的 touying 幻灯片(slides),目前版本复用[北航(BUAA)模板][touying-buaa]。欢迎同学/校友们[贡献代码][pulls]/反馈问题([GitHub issue][issues])!
3+
4+
模板交流 QQ 群:[797942860](https://jq.qq.com/?_wv=1027&k=m58va1kd)
5+
6+
[touying-buaa]: https://typst.app/universe/package/touying-buaa
7+
[pulls]: https://github.com/sysu/modern-sysu-touying/pulls
8+
[issues]: https://github.com/sysu/modern-sysu-touying/issues

packages/preview/modern-sysu-touying/0.1.0/assets/vi/sysu_logo.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#import "@preview/touying:0.6.1": *
2+
#import themes.stargazer: *
3+
4+
#import "./utils/style.typ": *
5+
6+
#let sysu-theme(
7+
aspect-ratio: "16-9",
8+
lang: "en",
9+
font: ("Linux Libertine",),
10+
..args,
11+
body,
12+
) = {
13+
14+
set text(lang: lang, font: font)
15+
show: if lang == "zh" {
16+
import "@preview/cuti:0.3.0": show-cn-fakebold
17+
show-cn-fakebold
18+
} else {
19+
it => it
20+
}
21+
22+
show: stargazer-theme.with(
23+
aspect-ratio: aspect-ratio,
24+
config-info(
25+
logo: image("assets/vi/sysu_logo.svg"),
26+
),
27+
config-colors(
28+
primary: rgb(sysucolor.green),
29+
primary-dark: rgb(sysucolor.red),
30+
secondary: rgb("#ffffff"),
31+
tertiary: sysucolor.green,
32+
neutral-lightest: rgb("#ffffff"),
33+
neutral-darkest: rgb(sysucolor.red),
34+
),
35+
..args,
36+
)
37+
38+
body
39+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#import "@preview/touying:0.6.1": *
2+
3+
// 建议在正式编辑幻灯片时,采用 typst.app 中的已发布版本模板
4+
#import "@preview/modern-sysu-touying:0.0.1": *
5+
// #import "lib.typ": *
6+
7+
// Specify `lang` and `font` for the theme if needed.
8+
#show: sysu-theme.with(
9+
// lang: "zh",
10+
// font: (
11+
// (
12+
// name: "Linux Libertine",
13+
// covers: "latin-in-cjk",
14+
// ),
15+
// "Source Han Sans SC",
16+
// "Source Han Sans",
17+
// ),
18+
config-info(
19+
title: [Touying for SYSU: Customize Your Slide Title Here],
20+
subtitle: [Customize Your Slide Subtitle Here],
21+
author: [Authors],
22+
date: datetime.today(),
23+
institution: [Sun Yat-sen University],
24+
),
25+
)
26+
27+
#title-slide()
28+
29+
#outline-slide()
30+
31+
= The section I
32+
33+
== Slide I / i
34+
35+
Slide content.
36+
37+
== Slide I / ii
38+
39+
Slide content.
40+
41+
= The section II
42+
43+
== Slide II / i
44+
45+
Slide content.
46+
47+
== Slide II / ii
48+
49+
Slide content.
63.9 KB
Loading
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[package]
2+
name = "modern-sysu-touying"
3+
version = "0.0.1"
4+
entrypoint = "lib.typ"
5+
repository = "https://github.com/sysu/modern-sysu-touying"
6+
authors = ["Sunny Huang <@huangjj27>"]
7+
license = "MIT"
8+
description = "中山大学幻灯片 Typst 模板,A Typst template for SYSU presentation"
9+
keywords = ["SYSU", "touying", "typst"]
10+
categories = ["presentation"]
11+
12+
[template]
13+
path = "template"
14+
entrypoint = "touying.typ"
15+
thumbnail = "thumbnail.png"
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
#let 字号 = (
2+
初号: 42pt,
3+
小初: 36pt,
4+
一号: 26pt,
5+
小一: 24pt,
6+
二号: 22pt,
7+
小二: 18pt,
8+
三号: 16pt,
9+
小三: 15pt,
10+
四号: 14pt,
11+
中四: 13pt,
12+
小四: 12pt,
13+
五号: 10.5pt,
14+
小五: 9pt,
15+
六号: 7.5pt,
16+
小六: 6.5pt,
17+
七号: 5.5pt,
18+
小七: 5pt,
19+
)
20+
21+
#let 字体 = (
22+
// 宋体,属于「有衬线字体」,一般可以等同于英文中的 Serif Font
23+
// 这一行分别是「新罗马体(有衬线英文字体)」、「思源宋体(简体)」、「思源宋体」、「宋体(Windows)」、「宋体(MacOS)」
24+
宋体: (
25+
(name: "Times New Roman", covers: "latin-in-cjk"),
26+
"Source Han Serif SC",
27+
"Source Han Serif",
28+
"Noto Serif CJK SC",
29+
"SimSun",
30+
"Songti SC",
31+
"STSongti",
32+
),
33+
34+
// 黑体,属于「无衬线字体」,一般可以等同于英文中的 Sans Serif Font
35+
// 这一行分别是「Arial(无衬线英文字体)」、「思源黑体(简体)」、「思源黑体」、「黑体(Windows)」、「黑体(MacOS)」
36+
黑体: (
37+
(name: "Arial", covers: "latin-in-cjk"),
38+
"Source Han Sans HW SC",
39+
"Source Han Sans",
40+
"Noto Sans CJK SC",
41+
"SimHei",
42+
"Heiti SC",
43+
"STHeiti",
44+
),
45+
46+
// 楷体
47+
楷体: (
48+
(name: "Times New Roman", covers: "latin-in-cjk"),
49+
"KaiTi",
50+
"Kaiti SC",
51+
"STKaiti",
52+
"FZKai-Z03S",
53+
"Noto Serif CJK SC",
54+
),
55+
56+
// 仿宋
57+
仿宋: (
58+
(name: "Times New Roman", covers: "latin-in-cjk"),
59+
"FangSong",
60+
"FangSong SC",
61+
"STFangSong",
62+
"FZFangSong-Z02S",
63+
"Noto Serif CJK SC",
64+
),
65+
66+
// 等宽字体,用于代码块环境,一般可以等同于英文中的 Monospaced Font
67+
// 这一行分别是「Courier New(Windows 等宽英文字体)」、「思源等宽黑体(简体)」、「思源等宽黑体」、「黑体(Windows)」、「黑体(MacOS)」
68+
等宽: (
69+
(name: "Courier New", covers: "latin-in-cjk"),
70+
"Menlo",
71+
"IBM Plex Mono",
72+
"Source Han Sans HW SC",
73+
"Source Han Sans HW",
74+
"Noto Sans Mono CJK SC",
75+
"SimHei",
76+
"Heiti SC",
77+
"STHeiti",
78+
),
79+
)
80+
81+
// 定义中山大学规范颜色
82+
// 参考 http://home3.sysu.edu.cn/sysuvi/content/zaisheng/b/C-1-5.jpg
83+
#let sysucolor = (
84+
green: cmyk(100%, 0%, 100%, 60%),
85+
red: cmyk(30%, 100%, 100%, 50%),
86+
black: cmyk(0%, 0%, 0%, 100%),
87+
)

0 commit comments

Comments
 (0)