diff --git a/src/lib.typ b/src/lib.typ index fca7dee..7affc70 100644 --- a/src/lib.typ +++ b/src/lib.typ @@ -293,6 +293,7 @@ fill: white, stroke: 0.5pt + black, numbers: true, + radius: 0pt, display-name: false, display-icon: false, ) @@ -314,7 +315,7 @@ } show raw.where(block: true): codly.new - show: codly.set_(number-enabled: opts.numbers) + show: codly.set_(number-enabled: opts.numbers, radius: opts.radius) show: codly.line-set_(fill: opts.fill, stroke: opts.stroke) show: codly.lang-set_( display-name: opts.display-name, @@ -523,6 +524,7 @@ /// - `fill` (paint): Background of code lines. Defaults to `white`. /// - `stroke` (stroke | none): Outline around the code block. Defaults to `0.5pt + black`; `none` removes it. /// - `numbers` (bool): Show line numbers. Defaults to `true`. +/// - `radius` (length): Corner radius of the outline. Defaults to `0pt` (square corners). /// - `display-name` (bool): Show the language name badge. Defaults to `false`. /// - `display-icon` (bool): Show the language icon badge. Defaults to `false`. #let ktu-paper( diff --git a/template/ataskaita.typ b/template/ataskaita.typ index 189e692..46d3a9e 100644 --- a/template/ataskaita.typ +++ b/template/ataskaita.typ @@ -13,13 +13,14 @@ figureKinds: ( veryCustomKind: (supplement: "komanda", ref-name: "komanda"), ), - // Code blocks, optional, `code: none` disables styling + // Code blocks, `code: none` to disable styling code: ( font: "Hack", spacing: 80%, fill: white, stroke: 0.5pt + black, numbers: true, + radius: 0pt, display-name: false, display-icon: false, ), @@ -156,4 +157,4 @@ Naudotojai tai pat gali apibrėžti savo figūras, pavyzdžiui, komandų fragmen #pagebreak() = Išvados -#lorem(50) \ No newline at end of file +#lorem(50)