From ad4611f3d51203f92f02d407eae7052e61c32dac Mon Sep 17 00:00:00 2001 From: Yi-Ting Shih Date: Sat, 12 Apr 2025 23:15:23 +0800 Subject: [PATCH] Initial commit --- styles.typ | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 styles.typ diff --git a/styles.typ b/styles.typ new file mode 100644 index 0000000..2a5a801 --- /dev/null +++ b/styles.typ @@ -0,0 +1,43 @@ +#let document( + title: "This is title", + content, +) = { + // Content default + set page( + paper: "a4", + margin: (x: 1.8cm, y: 1.5cm), + ) + set text( + font: "Libertinus serif", + size: 10pt, + ) + set par( + leading: 0.6em, + ) + + // Heading default + show heading: set text( + font: "Noto sans", + ) + + // Section title default + show heading.where(level: 1): set heading( + numbering: "1." + ) + + // Code section default + show raw: set text( + font: "Consolas", + size: 8pt + ) + + { // Title + set align(center) + set text( + size: 20pt, + weight: "bold", + ) + pad(y: 10pt, title) + } + content +}