Skip to content

Commit 084fe53

Browse files
committed
Print URL's in blue monospace
They're also clickable in the actual PDF, but that's moot
1 parent 252fb21 commit 084fe53

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

easy/src/preamble.typ

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,6 @@
6767
// we will see no blue text but will see subscriipt instead)
6868
// and false if we are just doing a pdf
6969
#let print_flag = true
70-
71-
#let cite(linktext, text) = {
72-
if (print_flag == true) {
73-
text
74-
footnote(linktext)
75-
} else {
76-
link(linktext, text)
77-
}
78-
}
79-
8070
#let green(body) = block(
8171
fill: rgb("#aaeed9"),
8272
inset: 8pt,
@@ -94,6 +84,16 @@
9484
#let url(s) = {
9585
link(s, text(font:fonts.mono, s))
9686
}
87+
88+
#let cite(target_url, plaintext) = {
89+
if (print_flag == true) {
90+
plaintext
91+
footnote(url(target_url))
92+
} else {
93+
link(target_url, text(font:fonts.mono, plaintext))
94+
}
95+
}
96+
9797
#let pmod(x) = $space (mod #x)$
9898

9999
// Main entry point to use in a global show rule

0 commit comments

Comments
 (0)