summaryrefslogtreecommitdiff
path: root/docs/typ/cheatsheet-a4.typ
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-30 17:35:06 -0300
committerGabriel Schneider <[email protected]>2026-10-30 17:35:06 -0300
commit6d8da8721141284cf33bb901168b26135893eb86 (patch)
tree791d63401d4e85fbca1d597a8ce0326e70efd545 /docs/typ/cheatsheet-a4.typ
parentefd43a3a2cf03bb741366331158b368abf9ac583 (diff)
parentbf6810a8f9d6cc82050e7d9c0cfb06358301b574 (diff)
downloadpardes-6d8da8721141284cf33bb901168b26135893eb86.tar.gz
pardes-6d8da8721141284cf33bb901168b26135893eb86.zip
Merge latest upstream into the macOS branch for Zig 0.17
Retain the macOS branch history and local Acme selection color while adopting upstream's current core and platform changes. Pin Zig and ZLS to 0.17.0, and fetch the existing zstbi compatibility commit through upstream after its original fork was removed.
Diffstat (limited to 'docs/typ/cheatsheet-a4.typ')
-rw-r--r--docs/typ/cheatsheet-a4.typ40
1 files changed, 40 insertions, 0 deletions
diff --git a/docs/typ/cheatsheet-a4.typ b/docs/typ/cheatsheet-a4.typ
new file mode 100644
index 00000000..7694382f
--- /dev/null
+++ b/docs/typ/cheatsheet-a4.typ
@@ -0,0 +1,40 @@
+// The printable cheatsheet: one A4 side, three columns. The facts are in
+// cheatsheet.typ and the elements' look in style.typ; this is page,
+// type and headings only.
+// typst compile --ignore-system-fonts docs/typ/cheatsheet-a4.typ
+#import "style.typ": palette, mono, density, tagline
+
+#set page(paper: "a4", fill: palette.paper, margin: (x: 9mm, y: 8mm), columns: 3)
+#set columns(gutter: 4.5mm)
+#set text(font: "Libertinus Serif", size: 8.6pt, fill: palette.ink, lang: "en")
+#set par(leading: 0.42em, spacing: 0.55em, justify: false)
+#set list(indent: 0pt, body-indent: 3pt, spacing: 0.42em, marker: text(fill: palette.grip)[▸])
+#set terms(separator: h(0.5em), spacing: 0.42em, hanging-indent: 0.8em)
+#set table(stroke: none, inset: (x: 1.5pt, y: 1.6pt))
+#show raw: set text(font: mono, size: 0.92em)
+#show strong: set text(fill: palette.tag-name)
+
+// The title is the page's, not the content's: a level-1 heading in the
+// content is not drawn here.
+#show heading.where(level: 1): none
+#place(top + left, float: true, scope: "parent",
+ block(width: 100%, inset: (bottom: 2pt), stroke: (bottom: 0.6pt + palette.grip), {
+ text(size: 15pt, weight: "bold", fill: palette.tag-name)[pardes]
+ h(1fr)
+ text(size: 9pt, style: "italic", fill: palette.tag-fg, tagline)
+ }))
+#show heading.where(level: 2): it => block(
+ width: 100%, fill: palette.tag-bg, inset: (x: 2pt, y: 2pt), above: 0.75em, below: 0.4em,
+ sticky: true,
+ {
+ box(fill: palette.col-grip, width: 0.55em, height: 0.75em, baseline: 0.1em)
+ h(3pt)
+ text(size: 9pt, weight: "bold", fill: palette.tag-name, it.body)
+ },
+)
+
+#show heading.where(level: 3): it => block(above: 0.6em, below: 0.35em, sticky: true,
+ text(size: 8.4pt, weight: "bold", fill: palette.grip, it.body))
+
+#density.update("tight")
+#include "cheatsheet.typ"