We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 252fb21 commit 084fe53Copy full SHA for 084fe53
easy/src/preamble.typ
@@ -67,16 +67,6 @@
67
// we will see no blue text but will see subscriipt instead)
68
// and false if we are just doing a pdf
69
#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
80
#let green(body) = block(
81
fill: rgb("#aaeed9"),
82
inset: 8pt,
@@ -94,6 +84,16 @@
94
84
#let url(s) = {
95
85
link(s, text(font:fonts.mono, s))
96
86
}
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))
+ }
+}
97
#let pmod(x) = $space (mod #x)$
98
99
// Main entry point to use in a global show rule
0 commit comments