#Template

3 messages · Page 1 of 1 (latest)

little mulch
#

Hi, I'm a typst beginer. I try to do a template.
I've done my best with the documentation but it didn't works...

First file : lib.typ

import "@preview/ctheorems:1.1.2": *
show: thmrules

let maincolor=rgb("#ED7008")

let definition = {
    thmbox("main", 
    "Definition",
    )
}

show heading.where(level: 1): set heading(numbering: a => text(fill: maincolor, numbering("I -", a)))
show heading.where(level: 2): set heading(numbering: (a, b) => text(fill: maincolor, numbering("1 -", b)))

body
}```


second file main.typ
```#import "lib.typ":*
#show:apply-template

= cssccscs

#text(maincolor)[kkoko]

#definition[fefefe]```

Only the headers are working.
Can you help me ?
little mulch
#

Nevermind, I solve my issue.

unkempt pivot
#

How did you solve it for others that may find this?