Package Information
- Last Updated
- Minimum Typst Version
- 0.14.0
- Authors
- Lyrics
- Categories
- presentation
- Dependencies
- @preview/numbly:0.1.0@preview/touying:0.6.1
Preview
1. Get the package
Download the package using the TPIX CLI:
tpix get @preview/buaa-unofficial-gradient:0.1.02. Initialize from template
Create a new project from this template:
typst init @preview/buaa-unofficial-gradient:0.1.0buaa-unofficial-gradient
| 目录 | 章节 |
|---|---|
| 内容 | 结束 |
|---|---|
简介
本项目旨在为BUAAers提供一个易用, 美观的幻灯片模板.
特性
美观与简洁:
- 使用渐变, 校徽, 分块等使页面内容不过分单调与扁平.
- 仅在封边, 目录, 章节切换处添加较多元素. 内容页面尽可能保持简单, 不干扰内容输出.
- 集成了一些方便排版的小工具.
BUAA视觉形象:
- 将北航校徽元素融入页面排版中.
- 本模板配色来自北航色彩规范, 具体颜色如下:
#let buaa-blue = rgb(0, 91, 172)
#let star-blue = rgb(0, 61, 166)
#let sky-blue = rgb(0, 155, 222)
#let chinese-red = rgb(195, 13, 35)
#let quality-grey = rgb(135, 135, 135)
#let pro-gold = rgb(210, 160, 95)
#let pro-silver = rgb(209, 211, 211)
快速开始
创建一个typst文件, 在文件开头使用#import "@preview/buaa-unofficial-gradient:0.1.0": *导入该模板. 使用#show: buaa-theme.with()设置基本信息与初始化幻灯片.
#import "@preview/buaa-unofficial-gradient:0.1.0": *
#show: buaa-theme.with(
config-info(
title: [Buaa in Touying: Customize Your Slide Title Here],
subtitle: [Customize Your Slide Subtitle Here],
author: [Authors],
date: datetime.today(),
institution: [Institution],
),
)
#title-slide()
#outline-slide()
= Section 1
== Slide 1
#end-slide()
小工具
根据自身需求开发了一些小工具.
颜色文本块
基于北航配色的颜色文本块.
示例:
== Section 2.1
#lorem(20)
#tblock(title: [Title])[#lorem(20)]
#rblock(title: [Title])[#lorem(20)]
== Section 2.2
#lorem(20)
#gblock(title: [Title])[#lorem(20)]
#sblock(title: [Title])[#lorem(20)]
文献信息页
基于文献汇报需求, #article-title()可以快速创建一个展示文献信息的页面.
示例:
== Article title
#let example-article-fig = block(
stroke: 1pt,
height: 100%,
width: 50%,
[Article Figure],
)
#article-title(
article-fig: example-article-fig,
journal: [Science],
impf: [45.8],
pub-date: [20XX-XX-XX],
quartile: [中科院 综合性期刊1区],
core-research: [#lorem(10)],
authors: [#lorem(10)],
institution: [#lorem(10)],
)
内容并排
#horz-block()会自动将传入的内容块 (#horz-block()[Content 1][Content 2]) 使用线框包裹, 并排展示在幻灯片中.
示例:
== Section 3.1
#lorem(10)
#horz-block()[
#image("./figures/bar_chart.svg")
#lorem(10)
][
#image("./figures/heatmap_field.svg")
#lorem(10)
][
#image("./figures/line_comparison.svg")
#lorem(10)
]
== Section 3.1
#lorem(20)
#horz-block()[
#image("./figures/bar_chart.svg")
#lorem(10)
][
#image("./figures/bar_chart.svg")
#lorem(10)
][
#image("./figures/bar_chart.svg")
#lorem(10)
][
#image("./figures/bar_chart.svg")
#lorem(10)
]
许可证
本项代码目采用 GPL-3.0 许可证。详见 LICENSE 文件。
本项目包含的北航校徽及相关标识,其版权及商标权归北京航空航天大学所有,不属于本项目的开源授权范围。仅限于展示与学术交流等非商业用途, 严禁用于商业用途。
致谢
- 本模板基于 typst 和 touying 实现.
- 本模板参考 sdu-touying-simpl 和 diatypst.