From aaafe2a7970973c2a159b8cea754546ff20aca4a Mon Sep 17 00:00:00 2001 From: binary-husky Date: Wed, 22 Jan 2025 01:49:53 +0800 Subject: [PATCH] fix xelatex font problem in all-cap image --- crazy_functions/latex_fns/latex_actions.py | 2 +- docs/GithubAction+AllCapacity | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/crazy_functions/latex_fns/latex_actions.py b/crazy_functions/latex_fns/latex_actions.py index ebf7a598..8ee420df 100644 --- a/crazy_functions/latex_fns/latex_actions.py +++ b/crazy_functions/latex_fns/latex_actions.py @@ -373,7 +373,7 @@ def 编译Latex(chatbot, history, main_file_original, main_file_modified, work_f # 根据编译器类型返回编译命令 def get_compile_command(compiler, filename): compile_command = f'{compiler} -interaction=batchmode -file-line-error {filename}.tex' - logger.info('Latex 编译指令: ', compile_command) + logger.info('Latex 编译指令: ' + compile_command) return compile_command # 确定使用的编译器 diff --git a/docs/GithubAction+AllCapacity b/docs/GithubAction+AllCapacity index af2ab6b8..00cec29c 100644 --- a/docs/GithubAction+AllCapacity +++ b/docs/GithubAction+AllCapacity @@ -5,6 +5,9 @@ FROM fuqingxu/11.3.1-runtime-ubuntu20.04-with-texlive:latest # edge-tts需要的依赖,某些pip包所需的依赖 RUN apt update && apt install ffmpeg build-essential -y +RUN apt-get install -y fontconfig +RUN ln -s /usr/local/texlive/2023/texmf-dist/fonts/truetype /usr/share/fonts/truetype/texlive +RUN fc-cache -fv RUN apt-get clean # use python3 as the system default python