Skip to content

Commit b7eb71b

Browse files
authored
may:0.1.1 (#3098)
1 parent 20a977b commit b7eb71b

File tree

14 files changed

+635
-0
lines changed

14 files changed

+635
-0
lines changed

packages/preview/may/0.1.1/LICENSE

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 Carlos-Mero
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: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# May
2+
3+
A simple and elegant document template for multiple daily tasks.
4+
5+
## Usage
6+
7+
This is my personal typst template designedfor homework, report or some other documents. You can obtain the same styles of this template by simply adding the follows two lines at the top of your document:
8+
9+
```typst
10+
#import "@preview/may:0.1.1": *
11+
#show: may-sans
12+
// ...
13+
// Your typst documents here
14+
```
15+
16+
Alternatively you can also initialize a project with _may_ by running the following command:
17+
18+
```sh
19+
typst init @preview/may
20+
```
21+
22+
This will create a new folder named `may` in the current path, along with a sample file `main.typ` as the start point.
23+
24+
## Touying Slides Template
25+
26+
We also provide a touying theme that is great for presentations! You can create slides in may theme as simple as adding these lines at the top:
27+
28+
```typst
29+
#import "@preview/may:0.1.1": *
30+
31+
#show: may-pre.with(
32+
config-info(
33+
title: [Welcome to May!],
34+
subtitle: [Demo of Touying Slides Template May],
35+
author: [Carlos Mel],
36+
date: datetime.today(),
37+
institution: [Qiuzhen College, Tsinghua University]
38+
),
39+
)
40+
```
41+
42+
You can modify the parameters in `config-info` to anything you prefer, and you can also customize the footer of this template by explicitly passing a footer to `may-pre` function. After the `show` command, `may-pre` will automatically create new sections and slides according to your 1st headers and 2nd headers. There are also some functions to create special slides in this theme, they are `title-slide`, `focus-slide` and `image-slide`. For more concreate usages you can refer to `slides.typ` template generated by `typst init @preview/may` and our showcases.
43+
44+
## Tips
45+
46+
It is recommanded to use this template along with to following fonts.
47+
48+
* [Libertinus](https://github.com/alerque/libertinus) for latin main body.
49+
* [Maple Mono](https://github.com/subframe7536/maple-font) for codeblocks.
50+
* [霞鹜文楷](https://github.com/lxgw/LxgwWenKai) for Chinese characters.
51+
52+
These are all open-sourced fonts of high quality. You can also use other fonts you prefer, by simply adding this line after the `show` command:
53+
54+
```typst
55+
#set text(font: "FontName")
56+
```
57+
58+
You are welcomed to create new PRs to this repository and help improve this template.
59+
60+
## Show Case
61+
62+
**Document Preview**
63+
64+
![thumbnail of may_sans template](./thumbnail.png)
65+
66+
**Slides Template Preview**
67+
68+
![showcase for may slides](showcases/slides.jpg)
69+
![showcase for may slides](showcases/slides1.jpg)
70+
![showcase for may slides](showcases/slides2.jpg)
71+
![showcase for may slides](showcases/slides3.jpg)
72+
![showcase for may slides](showcases/slides4.jpg)
73+
![showcase for may slides](showcases/slides5.jpg)
74+
75+
## Dependencies
76+
77+
This template pre-includes these typst packages along with it. they are [physica](https://typst.app/universe/package/physica/), [touying](https://typst.app/universe/package/touying/). So you can directly access the functionalities without explicit importing them in you project with may.

0 commit comments

Comments
 (0)