Skip to content

Commit

Permalink
fix xelatex font problem in all-cap image
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-husky committed Jan 21, 2025
1 parent 286f730 commit aaafe2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crazy_functions/latex_fns/latex_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def check_if_need_xelatex(tex_path):
# 根据编译器类型返回编译命令
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

# 确定使用的编译器
Expand Down
3 changes: 3 additions & 0 deletions docs/GithubAction+AllCapacity
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aaafe2a

Please sign in to comment.