Hello!
Suppose I have:
#list(marker: "◼",
[Foundations],
[Calculate],
[Construct],
[Data Loading],
)
How do I add text to for example describe “Foundations”?
Kind regards
Hello!
Suppose I have:
#list(marker: "◼",
[Foundations],
[Calculate],
[Construct],
[Data Loading],
)
How do I add text to for example describe “Foundations”?
Kind regards
Maybe either of the following works for you?
#[
#set list(marker: "◼")
- Foundations
Texts like this?
- Calculate
- Construct
- Data Loading
]
#list(marker: "◼", tight: false,
[
Foundations
Texts like this?
],
[Calculate],
[Construct],
[Data Loading],
)
That makes sense, I ended up with this:
#list(
marker: "◼", tight: true,
[
Foundations #linebreak() #h(1em)
The basic principles and concepts.
],
[
Calculate #linebreak() #h(1em)
Methods for performing calculations.
],
[
Construct #linebreak() #h(1em)
Techniques for building structures.
],
[
Data Loading #linebreak() #h(1em)
Procedures for importing data.
]
)
In case it’s interesting to you, this has the same output but uses a bit more markdown-like syntax:
#set list(marker: "◼", tight: true)
- Foundations\ #h(1em)
The basic principles
- Calculate\ #h(1em)
Methods for performing calculations.
- Construct\ #h(1em)
Techniques for building structures.
- Data Loading\ #h(1em)
Procedures for importing data.
Putting a backslash with a space after "\
" is shorthand for adding a linebreak.
This also has the side effect that all lists after this have the same marker. This can be avoided by putting all of this inside of its own code block:
#[
#set list(marker: "◼", tight: true)
- Foundations\ #h(1em)
The basic principles
- Calculate\ #h(1em)
Methods for performing calculations.
- Construct\ #h(1em)
Techniques for building structures.
- Data Loading\ #h(1em)
Procedures for importing data.
]