Skip to content

Instantly share code, notes, and snippets.

View te-lang-wakker's full-sized avatar
💭
moe

te lang wakker te-lang-wakker

💭
moe
View GitHub Profile
@te-lang-wakker
te-lang-wakker / info-box.typ
Last active March 18, 2024 09:19
Titled & stacking textbox for Typst
// todo: key this by the provided label or just use dependency injection
#let this-counter = counter("info-box")
#let info-box(
title: none,
sections: none,
label: none,
caption: none,
radius: 3pt,
inset: 16pt,
#import "tablex.typ": *
#let groupedx(data, results-start: none, gutter: auto, column-gutter: auto, row-gutter: auto, fill: none, align: horizon, stroke: black, inset: 5pt) = {
let datax = data.map(x => x.map(y => ()))
let number-of-columns = data.at(0).len()
let number-of-rows = data.len()
let skip = ()