From 5bd0a6cd21c48f1f0f5ea3831166697c77afe16e Mon Sep 17 00:00:00 2001 From: inky Date: Sun, 19 May 2024 18:50:36 -0500 Subject: [PATCH] tex: fix image output --- latex/convert2latex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/latex/convert2latex.py b/latex/convert2latex.py index 32900e9c..4f677a17 100644 --- a/latex/convert2latex.py +++ b/latex/convert2latex.py @@ -83,11 +83,11 @@ def link(self, text=None, url=None, title=None): # 不支持 title return ' \\href{'+url+'}' + '{'+(text or url)+'} ' - def image(self, src, url="", title=None): + def image(self, text, url="", title=None): """ image(self, text: str, url: str, title: Optional[str] = None) -> str: """ - _, fname = os.path.split(src) + _, fname = os.path.split(url) fname = fname[0:5] ltx_fig = """