Skip to content

Commit aaafe2a

Browse files
committed
fix xelatex font problem in all-cap image
1 parent 286f730 commit aaafe2a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

crazy_functions/latex_fns/latex_actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def check_if_need_xelatex(tex_path):
373373
# 根据编译器类型返回编译命令
374374
def get_compile_command(compiler, filename):
375375
compile_command = f'{compiler} -interaction=batchmode -file-line-error {filename}.tex'
376-
logger.info('Latex 编译指令: ', compile_command)
376+
logger.info('Latex 编译指令: ' + compile_command)
377377
return compile_command
378378

379379
# 确定使用的编译器

docs/GithubAction+AllCapacity

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ FROM fuqingxu/11.3.1-runtime-ubuntu20.04-with-texlive:latest
55

66
# edge-tts需要的依赖,某些pip包所需的依赖
77
RUN apt update && apt install ffmpeg build-essential -y
8+
RUN apt-get install -y fontconfig
9+
RUN ln -s /usr/local/texlive/2023/texmf-dist/fonts/truetype /usr/share/fonts/truetype/texlive
10+
RUN fc-cache -fv
811
RUN apt-get clean
912

1013
# use python3 as the system default python

0 commit comments

Comments
 (0)