Last active
June 8, 2023 14:22
-
-
Save zr-tex8r/69cf8a5262b9871a64f7278e7df68648 to your computer and use it in GitHub Desktop.
Typst:日本語入力に対応したテンプレート(※ただし画期的)
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: "", body) = { | |
set document(author: author, title: "☃") | |
set page(paper: "a5", numbering: none) | |
set text(size: 320pt) | |
v(2fr) | |
align(center)[#emoji.snowman.snow] | |
v(3fr) | |
} |
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 "scjaart0.typ" | |
#show: scjaart0.doc.with( | |
title: "Typstで日本語文書したいね", | |
author: "某ZR" | |
) | |
= 吾輩は猫である | |
吾輩は猫である。名前はまだ無い。 | |
どこで生れたかとんと見当がつかぬ。何でも薄暗いじめじめした所でニャーニャー泣いていた事だけは記憶している。吾輩はここで始めて人間というものを見た。しかもあとで聞くとそれは書生という人間中で一番獰悪な種族であったそうだ。この書生というのは時々我々を捕えて煮て食うという話である。しかしその当時は何という考もなかったから別段恐しいとも思わなかった。ただ彼の掌に載せられてスーと持ち上げられた時何だかフワフワした感じがあったばかりである。掌の上で少し落ちついて書生の顔を見たのがいわゆる人間というものの見始であろう。この時妙なものだと思った感じが今でも残っている。第一毛をもって装飾されべきはずの顔がつるつるしてまるで薬缶だ。その後猫にもだいぶ逢ったがこんな片輪には一度も出会わした事がない。のみならず顔の真中があまりに突起している。そうしてその穴の中から時々ぷうぷうと煙を吹く。どうも咽せぽくて実に弱った。これが人間の飲む煙草というものである事はようやくこの頃知った。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
日本語が入力される場合、特に何も対策しないと日本語を出力する必要が生じるが、現状のTypstではそれをマトモに実行する方法は知られていない。scjaart0では「出力を本質的なもの:snowman_with_snow:に全面的に変更する」ことによりこの問題を回避している。