Skip to content

Commit

Permalink
make "cite" command for hyperlinking and footnoting
Browse files Browse the repository at this point in the history
  • Loading branch information
krzhang committed Jul 5, 2024
1 parent 28e7e10 commit 971575d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easy/src/intro.typ
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ classical cryptography can achieve:
- *Proofs*. An example of this is digital signature algorithms like RSA,
where Alice can do some protocol to prove to Bob that a message was sent by her.
A more complicated example might be a
#link("https://w.wiki/9fXW", "group signature scheme"),
#cite("https://w.wiki/9fXW", "group signature scheme"),
allowing one member of a group to sign a message on behalf of a group.

- *Hiding inputs*. For example, consider
#link("https://w.wiki/9fXQ", "Yao's millionaire problem"),
#cite("https://w.wiki/9fXQ", "Yao's millionaire problem"),
where Alice and Bob wants to know which of them has more money
without learning each other's incomes.

Expand Down
5 changes: 5 additions & 0 deletions easy/src/preamble.typ
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@
[#body]
)

#let cite(linktext, text) = {
link(linktext, text)
footnote(linktext)
}

#let green(body) = block(
fill: rgb("#aaeed9"),
inset: 8pt,
Expand Down

0 comments on commit 971575d

Please sign in to comment.