Skip to content

Commit

Permalink
fuzzy-cnoi-statement:0.1.3 (#1808)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wallbreaker5th authored Feb 24, 2025
1 parent cee6bd0 commit f684b0a
Show file tree
Hide file tree
Showing 8 changed files with 829 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/preview/fuzzy-cnoi-statement/0.1.3/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
MIT No Attribution
Copyright © 2024 Wallbreaker5th

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
50 changes: 50 additions & 0 deletions packages/preview/fuzzy-cnoi-statement/0.1.3/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Fuzzy CNOI Statement

Fuzzy CNOI Statement is a template for CNOI(Olympiad in Informatics in China)-style statements for competitive programming.

Fuzzy CNOI Statement 是一个 CNOI 题面排版风格的 Typst 模板。

It is mainly designed to mimic the appearance of official CNOI-style statements, which are usually generated by [TUACK](https://gitee.com/mulab/oi_tools).

其主要模仿国内 NOI 系列比赛官方题面的外观。这些题面一般由 [TUACK](https://gitee.com/mulab/oi_tools) 生成。

This template is not affiliated with the China Computer Federation (CCF) or the NOI Committee. When using this template, it is recommended to indicate the unofficial nature of the contest to avoid misunderstandings.

该模板与中国计算机学会(CCF)、NOI 委员会官方无关。在使用该模板时,建议标明比赛的非官方性质,以免造成误解。

## Usage
Here are the fonts that this template will use, you can change the font by passing parameters:\
以下是该模板会用到的字体,你可以通过传入参数的方式更换字体:
- Consolas
- New Computer Modern
- 方正书宋(FZShuSong-Z01S)
- 方正黑体(FZHei-B01S)
- 方正仿宋(FZFangSong-Z02S)
- 方正楷体(FZKai-Z03S)

```typ
// Define your contest information and problem list
// 定义比赛信息和题目列表
#let (init, title, problem-table, next-problem, filename, current-filename, current-sample-filename, data-constraints-table-args) = document-class(
contest-info,
prob-list,
)
#show: init
#title()
#problem-table()
*注意事项(请仔细阅读)*
+ ...
#next-problem()
== 题目描述
...
```

Refer to `main.typ` for a complete example.

`main.typ` 提供了一个完整的示例。
Loading

0 comments on commit f684b0a

Please sign in to comment.