Skip to content

satshi/typst-jp-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typst の日本語テンプレートの例

概要

Typstで、とりあえず日本語で書き始めるためのテンプレートである。pLaTeXでのjarticle風のものを目指した。

使い方

同じフォルダにtemplate.typをおいて、次のように書いていく。

#import "template.typ": *
#show: jarticle

こんにちは、世界。

補助的なものとして次のものを定義している。

  • 年月日: 日付の表示の仕方で、◯年◯月◯日の形のものを定義した。例えば

    #datetime.today().display(年月日)

    とすると、(今日の日付で)「2024年4月8日」のように表示される。同様に「日」を入れない年月も定義している。

  • appendix: LaTeXでいうところの \appendixみたいなもの。通常節の番号は「1.1」みたいな感じだが

    #show: appendix

    とするとその後は「A.1」みたいな感じになる。

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published