Andrew
October 1, 2024, 9:15pm
3
This is a know issue:
opened 03:06PM - 02 Apr 23 UTC
bug
layout
Not sure if this a bug or actually an expected behavior. It seems the width of a… numbered list is not always 100% but instead restricted to the maximum width of its lines.
Therefore, if you don't have a long (>=100%) line in a numbered list, your math blocks in that list will not be placed at the horizontal center of the page. These math blocks are instead centered relative to the the parent numbered list. This is some what conterintuitive (at least from a previous LaTeX user's perspective).
With a long line:
![](https://user-images.githubusercontent.com/41495669/229360499-58408e1e-e126-490d-8d4f-36f5cc95f179.png)
Without a long line:
![](https://user-images.githubusercontent.com/41495669/229360573-c7c74075-eb5d-489b-b1af-aacc0b8f7ee7.png)
To reproduce:
```
= Question 1
+ #set enum(numbering: "(a)")
+ The constructed sequent is given as follows:
$ q arrow p, r arrow not p, q and r tack.long ((p and q) arrow not r) or ((p and r) arrow not q) $
//The constructed sequent has assumptions $X={A_1,A_2,A_3}$ and a conclusion $C$ where:
Without the long line:
$ A_1 &= q arrow p\
A_2 &= r arrow not p\
A_3 &= q and r\
C space &= ((p and q) arrow not r) or ((p and r) arrow not q)
$
```
In the comments, there are a few workarounds.
Here is one:
#show math.equation.where(block: true): block.with(width: 100%)
- This is my first equation: $ a + b + c = 100 $
- This is my second: $ d + e + f = 1 $
But I would personally put the equation on a separate line, like I would do with a regular text:
#show math.equation.where(block: true): block.with(width: 100%)
- This is my first equation:
$ a + b + c = 100 $
- This is my second:
$ d + e + f = 1 $
- First paragraph
Second paragraph
Edit:
I guess this is a better solution:
#show math.equation.where(block: true): eq => {
block(width: 100%, inset: 0pt, align(center, eq))
}
Since the previous solution apparently breaks lists in automatically sized containers .