Skip to content

Commit

Permalink
refactor(typesetting): adjust scale and line spacing parameters
Browse files Browse the repository at this point in the history
- reduce scale decrement from 0.1 to 0.05 for finer control
- set line spacing to 1.5 instead of 1.7 after resetting
  • Loading branch information
awwaawwa committed Jan 22, 2025
1 parent 294215b commit b813e4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yadt/document_il/midend/typesetting.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,13 +581,13 @@ def retypeset(
line_spacing -= 0.1
else:
# 行距已经最小,减小缩放因子
scale -= 0.1
scale -= 0.05
line_spacing = 1.7 # 重置行距

if scale < 0.7 and min_line_spacing > 1.1:
min_line_spacing = 1.1
scale = 1.0
line_spacing = 1.7
line_spacing = 1.5

def create_typesetting_units(
self,
Expand Down

0 comments on commit b813e4f

Please sign in to comment.