colorize external links
This commit is contained in:
6
Makefile
6
Makefile
@@ -2,9 +2,9 @@
|
|||||||
view_example: documentation.pdf
|
view_example: documentation.pdf
|
||||||
xdg-open $<
|
xdg-open $<
|
||||||
|
|
||||||
.PHONY: watch_example
|
.PHONY: watch_documentation
|
||||||
watch_example:
|
watch_documentation:
|
||||||
typst watch --font-path template/fonts example.typ & xdg-open documentation.pdf
|
typst watch --font-path template/fonts documentation.typ & xdg-open documentation.pdf
|
||||||
|
|
||||||
.PHONY: documentation
|
.PHONY: documentation
|
||||||
documentation: documentation.pdf
|
documentation: documentation.pdf
|
||||||
|
@@ -91,7 +91,7 @@ opravdu hodně vám to usnadní práci.
|
|||||||
|
|
||||||
// tohle je podnadpis :)
|
// tohle je podnadpis :)
|
||||||
#heading(
|
#heading(
|
||||||
level: 3,
|
level: 2,
|
||||||
range(1, 6).map((v) => range(1, v).map((_) => "pod").join("") + "nadpisy").join(", ") + ", ..."
|
range(1, 6).map((v) => range(1, v).map((_) => "pod").join("") + "nadpisy").join(", ") + ", ..."
|
||||||
)<chained_subheading>
|
)<chained_subheading>
|
||||||
|
|
||||||
|
@@ -76,6 +76,13 @@
|
|||||||
show raw.where(block: true): it => {
|
show raw.where(block: true): it => {
|
||||||
block(it, fill: rgb("#eee"), inset: 1em)
|
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%));
|
set highlight(fill: faculty_color.lighten(90%));
|
||||||
|
|
||||||
content
|
content
|
||||||
|
Reference in New Issue
Block a user