Skip to content

Commit

Permalink
Merge pull request #10 from ACaiCat/caitest
Browse files Browse the repository at this point in the history
工作流:PDF纸张大小改为B5
  • Loading branch information
ACaiCat authored May 3, 2024
2 parents 2c8aed7 + 8e04a52 commit 6b4dd0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DocHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


def md_to_pdf(file_name):
os.system(f"pandoc --pdf-engine=xelatex -V mainfont=LXGWWenKaiMono-Regular.ttf -V geometry:margin=0.5in --template eisvogel.tex {file_name} -o {file_name.replace('.md', '.pdf')}")
os.system(f"pandoc --pdf-engine=xelatex -V mainfont=LXGWWenKaiMono-Regular.ttf -V geometry:margin=0.5in geometry:b5paper --template eisvogel.tex {file_name} -o {file_name.replace('.md', '.pdf')}")

if __name__ == '__main__':
print(f"🚀 开始执行打包脚本...(By Cai 😋)")
Expand Down

0 comments on commit 6b4dd0f

Please sign in to comment.