添加修复 Typst 的选项(好像很垃圾)
This commit is contained in:
20
README.md
20
README.md
@ -9,6 +9,7 @@
|
||||
├── templates/ # Typst 模板文件
|
||||
├── scripts/ # Python 脚本
|
||||
│ ├── img2typ.py # 图片转 typst 格式
|
||||
│ ├── fix_typ.py # 修复 typst 语法
|
||||
│ ├── solve.py # AI 答题
|
||||
│ ├── gen_index.py # 生成 index.typ
|
||||
│ └── common.py # 共用模块
|
||||
@ -76,14 +77,27 @@ IMG2TYP_MODEL=qwen-vl-plus
|
||||
### 3. 运行
|
||||
|
||||
```bash
|
||||
just img2typ # 图片转题目
|
||||
just solve # AI 答题
|
||||
just generate # 生成 index.typ
|
||||
just img2typ # 图片转题目
|
||||
just solve # AI 答题
|
||||
just generate # 生成 index.typ
|
||||
typst compile index.typ index.pdf
|
||||
```
|
||||
|
||||
如需修复 .typ 文件语法(可选):
|
||||
```bash
|
||||
just fix
|
||||
```
|
||||
|
||||
## 命令行参数
|
||||
|
||||
### fix_typ.py
|
||||
```bash
|
||||
-f, --file # 指定单个 .typ 文件
|
||||
--dry-run # 干跑,不调用 AI 或写入文件
|
||||
--verbose # 调试日志
|
||||
-n N # 并发数(默认 3)
|
||||
```
|
||||
|
||||
### img2typ.py
|
||||
```bash
|
||||
-f, --file # 指定单个图片文件
|
||||
|
||||
Reference in New Issue
Block a user