diff --git a/Makefile b/Makefile index d5c985c..ef2daa3 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,9 @@ view_example: documentation.pdf xdg-open $< -.PHONY: watch_example -watch_example: - typst watch --font-path template/fonts example.typ & xdg-open documentation.pdf +.PHONY: watch_documentation +watch_documentation: + typst watch --font-path template/fonts documentation.typ & xdg-open documentation.pdf .PHONY: documentation documentation: documentation.pdf diff --git a/documentation.typ b/documentation.typ index ad86889..cd0e363 100644 --- a/documentation.typ +++ b/documentation.typ @@ -91,7 +91,7 @@ opravdu hodně vám to usnadní práci. // tohle je podnadpis :) #heading( - level: 3, + level: 2, range(1, 6).map((v) => range(1, v).map((_) => "pod").join("") + "nadpisy").join(", ") + ", ..." ) diff --git a/template/classic/common.typ b/template/classic/common.typ index 045a07e..8ffba30 100644 --- a/template/classic/common.typ +++ b/template/classic/common.typ @@ -76,6 +76,13 @@ show raw.where(block: true): it => { block(it, fill: rgb("#eee"), inset: 1em) }; + show link: it => { + if type(it.dest) == label or type(it.dest) == location { + it; + } else { + text(it, fill: faculty_color); + } + } set highlight(fill: faculty_color.lighten(90%)); content