feat: initialize project
This commit is contained in:
@@ -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文件所在的文件夹(必选)
|
||||
|
||||
## 许可证
|
||||
|
||||
|
||||
Reference in New Issue
Block a user