diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..57333ef57b4aa0fb14f7f0be6455a050e5379f47 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 孟祥瑞 + +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. diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..d9d65fc280319ed78ba8ef76766f0871da9359e0 --- /dev/null +++ b/README.md @@ -0,0 +1,35 @@ +# Typst 参考手册 · 中文编译版 + +一份把 Typst 官方参考文档逐章转成 Typst 源码的中文手册,共 12 章,编译后约 1452 页。原始文本来自 Typst 官方文档,这里保留的是转换后的 `.typ` 源码与主题文件。 + +## 结构 + +| 文件 | 内容 | +|---|---| +| `main.typ` | 入口:导入 `theme.typ` 与 `@preview/theorion`,按顺序 `include` 12 章 | +| `chp01.typ` … `chp12.typ` | 各章正文;章节之间用 `