Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions packages/preview/modern-jnu-lab-report/0.1.0/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 LENCELG

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, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

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.
62 changes: 62 additions & 0 deletions packages/preview/modern-jnu-lab-report/0.1.0/README-en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
**English** | [简体中文](./README.md) |

# JiNan University lab typst template

## Quick Start

```typst
#import "@preview/modern-jnu-lab-report:0.1.0": jnu-report

show: jnu-report.with(
course: "模拟电子技术实验",
lab-name: "晶体管共射极单管放大器",
instructor: "李四",
author: "张三",
student-id: "2020101234",
year: "2026", month: "10", day: "16", ampm: "上",
end-month: "10", end-day: "16", end-ampm: "下",
)

```

Compile:

```sh
typst compile main.typ
```

## Parameters

| Parameter | Meaning |
| --- | --- |
| `course` | Course name |
| `grade` | Grade |
| `lab-name` | Experiment name |
| `instructor` | Instructor |
| `lab-id` | Experiment number |
| `lab-type` | Experiment type |
| `site` | Location |
| `author` | Student name |
| `student-id` | Student ID |
| `college` | College |
| `department` | Department |
| `major` | Major |

The experiment-time row is structured as `__年__月__日__午 ~ __月__日__午 温度__℃ 湿度__`.

| Parameter | Meaning |
| --- | --- |
| `year` / `month` / `day` / `ampm` | Start year / month / day / half-day (use `上` for morning, `下` for afternoon) |
| `end-month` / `end-day` / `end-ampm` | End month / day / half-day |
| `temperature` | Temperature (the `℃` unit is pre-printed on the form) |
| `humidity` | Humidity |

## Additional Configuration

| Parameter | Default | Meaning |
| --- | --- | --- |
| `title` | `"暨南大学本科实验报告专用纸"` | Cover title |
| `appendix-title` | `"暨南大学本科实验报告专用纸"` | Appendix letterhead main title |
| `appendix-suffix` | `"(附页)"` | Letterhead suffix |
| `show-appendix-header` | `true` | Show the appendix letterhead |
| `show-header-rule` | `true` | Draw the rule under the letterhead title |
62 changes: 62 additions & 0 deletions packages/preview/modern-jnu-lab-report/0.1.0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
[English](./README-en.md) | **简体中文** |

# 暨南大学实验报告 Typst 模板

## 快速开始

```typst
#import "@preview/modern-jnu-lab-report:0.1.0": jnu-report

#show: jnu-report.with(
course: "模拟电子技术实验",
lab-name: "晶体管共射极单管放大器",
instructor: "李四",
author: "张三",
student-id: "2020101234",
year: "2026", month: "10", day: "16", ampm: "上",
end-month: "10", end-day: "16", end-ampm: "下",
)

```

编译:

```sh
typst compile main.typ
```

## 参数

| 参数 | 含义 |
| --- | --- |
| `course` | 课程名称 |
| `grade` | 成绩评定 |
| `lab-name` | 实验项目名称 |
| `instructor` | 指导教师 |
| `lab-id` | 实验项目编号 |
| `lab-type` | 实验项目类型 |
| `site` | 实验地点 |
| `author` | 学生姓名 |
| `student-id` | 学号 |
| `college` | 学院 |
| `department` | 系 |
| `major` | 专业 |

表单结构为 `__年__月__日__午 ~ __月__日__午 温度__℃ 湿度__`。

| 参数 | 含义 |
| --- | --- |
| `year` / `month` / `day` / `ampm` | 起始 年 / 月 / 日 / 午 |
| `end-month` / `end-day` / `end-ampm` | 结束 月 / 日 / 午 |
| `temperature` | 温度(单位 ℃) |
| `humidity` | 湿度 |

## 额外配置

| 参数 | 默认值 | 含义 |
| --- | --- | --- |
| `title` | `"暨南大学本科实验报告专用纸"` | 封面标题 |
| `appendix-title` | `"暨南大学本科实验报告专用纸"` | 附页报头主标题 |
| `appendix-suffix` | `"(附页)"` | 报头后缀 |
| `show-appendix-header` | `true` | 是否显示附页报头 |
| `show-header-rule` | `true` | 报头标题下是否画横线 |
Loading
Loading