From 4084960737be9ffbf1fcc5823bda824086f05225 Mon Sep 17 00:00:00 2001 From: servostar Date: Tue, 20 Aug 2024 14:17:50 +0200 Subject: [PATCH] add URL function (#42) --- src/lib.typ | 4 ++++ template/main.typ | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/lib.typ b/src/lib.typ index b2c0649..5496030 100644 --- a/src/lib.typ +++ b/src/lib.typ @@ -39,6 +39,10 @@ ) } +#let url(label, content) = { + link(label)[#underline(offset: 2pt, stroke: 0.5pt + blue, text(fill: blue, content))] +} + // start of template pages and styles #let dhbw-template(config, body) = [ #let config = validate-config(config) diff --git a/template/main.typ b/template/main.typ index 6b830a6..2765dc8 100644 --- a/template/main.typ +++ b/template/main.typ @@ -68,6 +68,10 @@ $ lorem(200), ) +#url("https://github.com", "text (github.com)") + +#lorem(50) + #figure( table( columns: 3,