Skip to content

Commit 831aaba

Browse files
committed
Add output effect in README and README_zh
1 parent 8000f44 commit 831aaba

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

.assets/en-word-1.jpg

181 KB
Loading

.assets/en-word-2.jpg

163 KB
Loading

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ This project provides a Python script that uses Pandoc and Pandoc-Crossref tools
1212
- Outputs Word documents in a specified format
1313
- Supports Chinese language
1414

15+
The effect is as follows, for more results please see `tests`:
16+
17+
<p align="center">
18+
<img src=".assets/en-word-1.jpg" width="200"/>
19+
<img src=".assets/en-word-2.jpg" width="200"/>
20+
</p>
21+
1522
## Quick Start
1623

1724
Ensure all dependencies such as Pandoc and Pandoc-Crossref are properly installed, see [Installing Dependencies](#installing-dependencies). Execute the following command in the command line:

README_zh.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111
- 支持按照指定格式输出 Word
1212
- 支持中文
1313

14+
效果如下,更多的结果请看 `tests`
15+
16+
<p align="center">
17+
<img src=".assets/en-word-1.jpg" width="200"/>
18+
<img src=".assets/en-word-2.jpg" width="200"/>
19+
</p>
20+
21+
1422
## 快速使用
1523

1624
确保已正确安装 Pandoc 和 Pandoc-Crossref 等依赖,详见[安装依赖](#安装依赖)。在命令行中执行以下命令:
@@ -95,8 +103,10 @@ converter.convert()
95103

96104
1. 多子图相对位置与原始 tex 文件编译结果不同,如以下两张图
97105

98-
![](.assets/raw_multifig_multi-L-charge-equalization.png)
99-
![](.assets/modified_multifig_multi-L-charge-equalization.png)
106+
<p align="center">
107+
<img src=".assets/raw_multifig_multi-L-charge-equalization.png" width="200"/>
108+
<img src=".assets/modified_multifig_multi-L-charge-equalization.png" width="200"/>
109+
</p>
100110

101111
可能是因为原始 tex 文件重新定义了页面尺寸等参数,需要将相关 tex 代码添加到 `MULTIFIG_TEXFILE_TEMPLATE` 变量中。以下为一个示例,请根据实际情况修改:
102112
```python
@@ -134,7 +144,7 @@ converter = tex2docx.LatexToWordConverter(**config)
134144
converter.convert()
135145
```
136146

137-
2. 输出 Word 文件的格式仍不满足需求
147+
1. 输出 Word 文件的格式仍不满足需求
138148

139149
利用 Word 的样式管理,修改 `my_temp.docx` 文件中的样式。
140150

0 commit comments

Comments
 (0)