Hello everyone, I am new on the community, I was searching for a Latex but without outdated, complicated and undocumented stuffs to keep my mind at ease.
I am really grateful for the work on typst, that for now brang me all what I needed.
I did an outline that is fine to me, written like this :
#show outline.entry.where(
level: 1,
): it => {
set block(above: 1.2em)
// it.element.body.fields().values().first() == "Annexes"
if it.element.body.fields().values().first() == "Annexes" {
pagebreak()
text(weight: "bold", "Table des annexes")
} else { text(weight: "bold", it) }
}
#outline(title: outline_title, depth: 2)
It works fine, for having 2 outlines, one for appendices and the normal one.
But I found it really heavy to write and to find how to make this test it.element.body.fields().values().first() == “Annexes”.
So now for my questions, first is there easiest ways to get this same result ? Second, in general, how can I can compare easily text bodies and a value, and how can I navigate easily without having the feeling of retro enginnering the things for finding the fields and all.
Thank you in advance for your answers.