We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 541fe48 commit 33600cdCopy full SHA for 33600cd
src/equate.typ
@@ -208,9 +208,6 @@
208
}
209
210
211
- // Start of equation block.
212
- let x-start = here().position().x
213
-
214
// Resolve number width.
215
let number-width = if number-width == auto {
216
measure(number).width
@@ -236,7 +233,11 @@
236
233
let gap = 0.5em
237
234
238
235
layout(bounds => {
239
- let space = if equation-align == center {
+ let space = if bounds.width.pt().is-infinite() {
+ // If we're in an unbounded container, the number is placed right next to
+ // the equation body, with only the `gap` as spacing.
+ 0pt
240
+ } else if equation-align == center {
241
bounds.width - line-width - 2 * number-width
242
} else {
243
bounds.width - line-width - number-width
0 commit comments