1
0

feat: initialize project

This commit is contained in:
2026-05-21 20:00:47 +08:00
parent 1b207f3880
commit eeef944785
11 changed files with 412 additions and 4 deletions

View File

@@ -30,7 +30,7 @@ BaGu Thesis是一个专精于将LaTeX论文转换到DOCX格式转换的工具。
使用以下命令将LaTeX格式转换为XThesis格式
```bash
uv run latex2xthesis.py --in example.tex --out example.xml --config latex2xthesis.toml --resource-path /path/to/your/example
uv run latex2xthesis.py --in example.tex --out example.xml --config latex2xthesis.toml --resource-dir /path/to/your/example
```
**参数说明**
@@ -38,7 +38,7 @@ uv run latex2xthesis.py --in example.tex --out example.xml --config latex2xthesi
- `--in``-i`:指定输入的 LaTeX 文件路径(必选)
- `--out``-o`:指定输出的 XThesis XML 文件路径(必选)
- `--config``-c`:指定配置文件路径,用于控制转换过程中的各种选项(必选)
- `--resource-path``-r`指定资源文件路径用于查找图片、参考文献等在你LaTeX文件中引用的外部资源。通常是你LaTeX文件所在的文件夹必选
- `--resource-dir``-r`指定资源文件路径用于查找图片、参考文献等在你LaTeX文件中引用的外部资源。通常是你LaTeX文件所在的文件夹必选
### XThesis转DOCX格式
@@ -59,7 +59,7 @@ uv run xthesis2docx.py --in example.xml --out example.docx --config xthesis2docx
如果你不需要中间文件可以直接使用以下命令将LaTeX格式转换为DOCX格式
```bash
uv run baguthesis.py --in example.tex --out example.docx --frontend-config latex2xthesis.toml --backend-config xthesis2docx.toml --resource-path /path/to/your/example
uv run baguthesis.py --in example.tex --out example.docx --frontend-config latex2xthesis.toml --backend-config xthesis2docx.toml --resource-dir /path/to/your/example
```
**参数说明**
@@ -68,7 +68,7 @@ uv run baguthesis.py --in example.tex --out example.docx --frontend-config latex
- `--out``-o`:指定输出的 DOCX 文件路径(必选)
- `--frontend-config`指定前端配置文件路径即LaTeX转XThesis的配置文件必选
- `--backend-config`指定后端配置文件路径即XThesis转DOCX的配置文件必选
- `--resource-path``-r`指定资源文件路径用于查找图片、参考文献等在你LaTeX文件中引用的外部资源。通常是你LaTeX文件所在的文件夹必选
- `--resource-dir``-r`指定资源文件路径用于查找图片、参考文献等在你LaTeX文件中引用的外部资源。通常是你LaTeX文件所在的文件夹必选
## 许可证