Skip to content

Commit

Permalink
fix -- in section title
Browse files Browse the repository at this point in the history
  • Loading branch information
astonzhang committed Aug 16, 2023
1 parent 003f46d commit 71a56dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion static/post_latex/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ def _get_replaced(s):
if not found_end:
i += 1
i += 1


# \section{Encoder--Decoder} -> \section{Encoder\(-\)Decoder}
for i, l in enumerate(lines):
if l.startswith('\\chapter{') or l.startswith('\\section{'):
lines[i] = lines[i].replace('--', '\(-\)')

# Remove date
def _edit_titlepage(pdf_dir):
Expand Down

0 comments on commit 71a56dd

Please sign in to comment.