It seems that this is not so easy to do. With the help of itemize, you can do like this:
#import "@preview/itemize:0.2.0" as el
#let body-indent = .5em
#set enum(
numbering: "1.1.",
body-indent: body-indent,
)
#show: el.default-enum-list.with(
label-format: it => {
if it.level == 1 {
show: strong
[Question #it.body]
} else {
it.body
}
},
label-width: ((amount: -body-indent, style: "auto"), auto), // for level-1
)
+ Suppose two balanced coins are tossed. Assume equally likely outcomes.
+ List the sample space for this experiment.
+ Let $A $ denote the event that _exactly_ one head is observed. Let $B $ be the event _atleast_ one head is observed. List the sample points in $A $ and $B $.
+ Find $P(A)$, $P(B)$, $P(A union B)$, and $P(A inter B)$.
+ #lorem(2)
#lorem(10) // other text
+ #lorem(10)
+ #lorem(2)
+ #lorem(2)
For more details about label-width, see the package document.
If you need indent or other numbering for level 2 enums, then you can do like:
#import "@preview/itemize:0.2.0" as el
#let body-indent = .5em
#set enum(
numbering: "1.a.1.", // level 2: a
body-indent: body-indent,
)
#show: el.default-enum-list.with(
label-format: it => {
if it.level == 1 {
show: strong
[Question #it.body]
} else {
it.body
}
},
label-width: ((amount: -body-indent, style: "auto"), auto), // for level-1
indent: (auto, 1em, auto), // indent for level 2
)
+ Suppose two balanced coins are tossed. Assume equally likely outcomes.
+ List the sample space for this experiment.
+ Let $A $ denote the event that _exactly_ one head is observed. Let $B $ be the event _atleast_ one head is observed. List the sample points in $A $ and $B $.
+ Find $P(A)$, $P(B)$, $P(A union B)$, and $P(A inter B)$.
+ #lorem(2)
#lorem(10) // other text
+ #lorem(10)
+ #lorem(2)
+ #lorem(2)
Or define a function like Question:
#import "@preview/itemize:0.2.0" as el
#let Question(doc) = {
let body-indent = .5em
set enum(
numbering: "1.a.1.", // level 2: a
body-indent: body-indent,
)
show: el.default-enum-list.with(
label-format: it => {
if it.level == 1 {
show: strong
[Question #it.body]
} else {
it.body
}
},
label-width: ((amount: -body-indent, style: "auto"), auto), // for level-1
indent: (auto, 1em, auto), // indent for level 2
)
doc
}
#Question[
+ Some Question
+ Option 1
+ Option 2
Some text
+ Some Question
]