linkShowableShowable functions can be customized with
Link to a URL or another location in the document.
The link function makes its positional
body argument clickable and links
it to the destination specified by the
dest argument. By default, links
are not styled any different from normal text. However, you can easily apply
a style of your choice with a show rule.
#show link: underline \ #link("https://example.com") \ #link("https://example.com")[ See example.com ]
This function also has dedicated syntax: Text that starts with
https:// is automatically turned into a link.
ParametersParameters are the inputs to a function. They are specified in parentheses after the function name.
The destination the link points to.
To link to web pages,
destshould be a valid URL string. If the URL is in the
tel:scheme and the
bodyparameter is omitted, the email address or phone number will be the link's body, without the scheme.
To link to another part of the document,
destmust contain a dictionary with a
pagekey of type
ycoordinates of type
length. Pages are counted from one, and the coordinates are relative to the page's top left corner.
#link("mailto:firstname.lastname@example.org") \ #link((page: 1, x: 0pt, y: 0pt))[ Go to top ]
bodycontentPositionalPositional parameters are specified in order, without names.
The content that should become a link. If
dest is an URL string, the
parameter can be omitted. In this case, the URL will be shown as the link.