Skip to content

Commit

Permalink
tex: fix image output
Browse files Browse the repository at this point in the history
  • Loading branch information
inkydragon committed May 19, 2024
1 parent 4e61c07 commit 5bd0a6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions latex/convert2latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = """
Expand Down

0 comments on commit 5bd0a6c

Please sign in to comment.