#PROBLEM INDEX

15 messages · Page 1 of 1 (latest)

knotty lion
#

My problem is in the index, I want that when doing it, the titles with the highest hierarchy (Those that say "CAPITULO n") do not have any digits in the index.
As can be seen on the printed sheets, in the index, those with "CAPITULO n" are not listed

crisp copper
#

instead of writing CAPITULO I. manually, use a numbering function:

#set heading(numbering: (..args) => {
  let nums = args.pos()
  let level = nums.len()
  if level == 1 {
    [CAPITULO #numbering("I.", ..nums)]
  } else {
    numbering("1.1.", ..nums)
  }
})
#

then you can write

= a
== b
=== c

like usual

knotty lion
#

Thank so much PgSuper, but when I place "PROLOGO" or any title that has the same priority as those that say "CHAPTER" the word CHAPTER is placed the same. In the picture i show you my titles, Black words are the highest priority and should not be listed in the index.Another question, and I apologize for the inconvenience, I see that the subtopics are very separated in the index, that is, with respect to the left side, subtopic 2.1 Hello is very separated from the left, could you help me with that and thank you very much for the help Greetings from Campeche, Mexico

crisp copper
#

use #heading(level: 1, numbering: none)[PROLOGO/INTRODUCCION] for those

#

instead of = PROLOGO etc

knotty lion
#

Thank so much, Can I modify the font and the size for the index? Can you help me please.
#outline(indent: auto)

#set heading(numbering: (..args) => {
let nums = args.pos()
let level = nums.len()
if level == 1 {
[CAPITULO #numbering("I.", ..nums)]
} else {
numbering("1.1.", ..nums)
}
})

#pagebreak()
#heading(level: 1, numbering: none)[PROLOGO]
#heading(level: 1, numbering: none)[INTRODUCCION]
= DESCRIPCION DE LA EMPRESA
== EMPRESA SYMETRIX MARINE
== ¿QUIEN ES SYMETRIX MARINE?
=== DISPLAY, ANTENAS ABIERTAS Y DE DOMO
== LUGARES DONDE SYMETRIX MARINE TRABAJA}

crisp copper
#

yeah sure. you can use #show outline: set text(font: "X", 13pt) for example

#

also btw

#

you may want to try using a fixed-size indent for the outline

#

instead of auto

#

e.g. #outline(indent: 5pt)

#

it might provide more consistent results

knotty lion
#

Thank you very much, I honestly feel that some things about typst are simpler than latex, I thank you in advance, I am a content creator and I would like to continue learning about typst.