Skip to content

Commit

Permalink
fix: Only apply spacing to block math
Browse files Browse the repository at this point in the history
Closes #1
  • Loading branch information
augustebaum committed Jul 3, 2024
1 parent 25065a9 commit 8333062
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Binary file modified example/main.pdf
Binary file not shown.
6 changes: 5 additions & 1 deletion example/main/ch3_math.typ
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ $
)
$

#lorem(100)
#lorem(70)

a hopefully inline math equation: $h = 3$

#lorem(30)

$
macron(I_f)(arrow(r))
Expand Down
2 changes: 1 addition & 1 deletion src/lib.typ
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ long } }
numbering("(1.1)", h1, n)
})

show math.equation: it => {
show math.equation.where(block: true): it => {
set align(left)
// Indent
pad(left: 2em, it)
Expand Down

0 comments on commit 8333062

Please sign in to comment.