From 60156860e5473169b6498b20d35b9af8dae15c21 Mon Sep 17 00:00:00 2001 From: JustAnyone Date: Thu, 29 Oct 2026 09:50:17 +0200 Subject: [PATCH] chore: update ataskaita.typ with a locally defined `todo` function --- template/ataskaita.typ | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/template/ataskaita.typ b/template/ataskaita.typ index 46d3a9e..73cca6e 100644 --- a/template/ataskaita.typ +++ b/template/ataskaita.typ @@ -26,12 +26,19 @@ ), ) +// Replace dots in equations with commas instead so 1.25 becomes 1,25. #show math.equation: it => { show regex("\d+\.\d+"): it => {show ".": {","+h(0pt)} it} it } +// To be used for writing purposes to mark TODOs in the document. They will be highlighted in yellow and have a dashed border. +#let todo(desc) = block( + width: 100%, inset: 10pt, stroke: (dash: "dashed"), fill: yellow.lighten(80%), + [*TODO:* #desc], +) + #ktu-heading-page-normal( faculty: highlight[Informatikos fakultetas], title: highlight[Laboratorinio darbo ataskaitos pavadinimas],