Skip to content

Commit

Permalink
解决编译 index 处的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
YanMing-lxb committed Feb 28, 2024
1 parent a36a315 commit 7f305b0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pytexmk.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
tex_name = "xelatex"
build_path = "./Build/"
# ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓

print('os.getcwd()')
# # 获取当前目录中所有以 .tex 结尾的文件列表
# files = [f for f in os.listdir() if f.endswith('.tex')]

Expand Down Expand Up @@ -110,7 +110,10 @@ def compile_index():
else:
if os.path.exists(f"{file_name}.toc"):
index_compile_tex_times = 1 # 目录需要额外编译 1 次
catalogs_print = "没有符号索引或使用 glossaries 或 nomencl 插入符号索引"
catalogs_print = "含有图\表\章节目录"
else:
index_compile_tex_times = 0
catalogs_print = "没有插入任何目录"

print(catalogs_print)

Expand Down

0 comments on commit 7f305b0

Please sign in to comment.