Skip to content

moyashi170607/TypstDialyTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typst 絵日記テンプレート

このリポジトリは、Typstで絵日記を簡単に組版できるテンプレートです。

使い方

  1. dialy_template.typ をプロジェクトにコピーします。
  2. サンプルとして sample/dialy.typ を参考に、以下のように記述します。
#import "../dialy_template.typ": enikki

#enikki(
  date:datetime(year: 2025, month: 6, day: 30),
  title:"タイトル",
  picture:[#image("sample.png")],
  body:[
    ここに本文を書きます。
  ],
  main_size:1.0em//本文のフォントサイズ。デフォルトは1.0em
)
  • datetime には日付を指定します。
  • "タイトル" には日記のタイトルを記入します。
  • #image("sample.png") で画像を挿入します

PNGとしてタイプセットする手順

  1. Typst CLIをインストールしていない場合は、公式サイトからインストールしてください。

  2. ターミナルで sample ディレクトリに移動します。

    cd sample
  3. 以下のコマンドでPNGとして出力します。

    typst compile dialy.typ out.png
    • out.png の部分は任意のファイル名に変更できます。

License

MIT License

About

Typst用、絵日記テンプレート

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages