Created
June 11, 2023 04:28
-
-
Save zr-tex8r/d4bff4b0a292c4f2263492060c91ab43 to your computer and use it in GitHub Desktop.
Typst:NabeAzzする文書
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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