grelin_templates/tech-report/README.md
MORRO 5c1039c62d Simplify tech-report body layer and remove glossary.
Replace metropole-grelin with body.typ, merge styling into md.typ, drop glossary support, and clean unused theme tokens.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-08 16:53:50 +08:00

50 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tech Report · 技术报告模板
GreLin 技术报告 Typst 模板:**封面**与**目录**见 `data/cover.typ`、`data/toc.typ`**正文**见 `data/body.typ`
## 快速开始
1. 编辑 [`content/report.md`](content/report.md)
2. 打开 [`report.typ`](report.typ) 预览或导出 PDF
```bash
typst compile tech-report/report.typ tech-report/sample.pdf --root .
```
## 目录结构
| 文件 | 说明 |
|------|------|
| [`content/report.md`](content/report.md) | **主编辑入口**YAML 元数据 + 正文 |
| [`content/assets/`](content/assets/) | 图片资源 |
| [`data/config.typ`](data/config.typ) | 默认公司名、标题等 |
| [`data/theme.typ`](data/theme.typ) | 字号、行距、GreLin 品牌色 |
| [`data/cover.typ`](data/cover.typ) | 封面装饰与版式 |
| [`data/body.typ`](data/body.typ) | 正文版式(标题、表格、代码、页脚) |
| [`report.typ`](report.typ) | 编译入口 |
## YAML 元数据
```yaml
---
title: 某某矿山智能分选技术报告
brand: GreLin
company: 西安高岭绿能科技有限公司
date: 2026-06-22
version: v1.0
summary: |
摘要正文……
---
```
## 依赖
| 包 | 用途 |
|----|------|
| [cmarker](https://typst.app/universe/package/cmarker) | Markdown → Typst |
| [codly](https://typst.app/universe/package/codly) | 代码块高亮 |
## 样式参考
封面与目录样式见 `data/cover.typ`、`data/toc.typ`;正文样式见 `data/body.typ`、`data/theme.typ`。