Skip to content

Instantly share code, notes, and snippets.

@zr-tex8r
Created June 11, 2023 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zr-tex8r/d4bff4b0a292c4f2263492060c91ab43 to your computer and use it in GitHub Desktop.
Save zr-tex8r/d4bff4b0a292c4f2263492060c91ab43 to your computer and use it in GitHub Desktop.
Typst:NabeAzzする文書
#import "zrsimple.typ"
#show: zrsimple.doc.with(
paper: "a5",
title: "NabeAzz with Typst",
author: "ZR"
)
#let aho-font = "Allura"
#let nabeazz(lmt) = {
range(1, lmt+1).map(n => {
if calc.rem(n, 3) == 0 or "3" in str(n) {
text(size: 2em, font: aho-font, str(n))
} else {
str(n)
}
}).join([ ])
}
#nabeazz(40)
#let doc(title: "", author: "", paper: "a4", body) = {
set document(author: author, title: title)
set page(paper: paper, numbering: "1", number-align: center)
set text(font: "Linux Libertine", size: 12pt, lang: "en")
align(center)[
#block(text(weight: 700, 1.75em, title))
#v(1em, weak: true)
#text(1.25em, author)
]
set par(justify: true)
body
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment