diff --git a/libs/mscs/lib.typ b/libs/mscs/lib.typ index 56f013f..2daa728 100644 --- a/libs/mscs/lib.typ +++ b/libs/mscs/lib.typ @@ -15,8 +15,8 @@ set document(title: title) // Set the Fonts - let gothic = ("MS PGothic", "IPAexGothic", "Noto Sans CJK JP") - let mincho = ("MS PMincho", "IPAexMincho", "Noto Serif CJK JP") + let gothic = ("MS PGothic", "Hiragino Kaku Gothic Pro", "IPAexGothic", "Noto Sans CJK JP") + let mincho = ("MS PMincho", "Hiragino Mincho Pro", "IPAexMincho", "Noto Serif CJK JP") let english = ("Times New Roman", "New Computer Modern") // Configure the page. @@ -136,7 +136,7 @@ // Display bibliography. if bibliography != none { show std-bibliography: set text(9pt) - show regex("[0-9a-zA-Z]"): set text(font: "New Computer Modern") + show regex("[0-9a-zA-Z]"): set text(font: english) set std-bibliography(title: align(center, text(11pt)[参 考 文 献]), style: "sice.csl") bibliography } diff --git a/libs/rengo/lib.typ b/libs/rengo/lib.typ index ec3dba0..2356dbf 100644 --- a/libs/rengo/lib.typ +++ b/libs/rengo/lib.typ @@ -15,8 +15,8 @@ set document(title: title) // Set the Fonts - let gothic = ("MS PGothic", "IPAexGothic", "Noto Sans CJK JP") - let mincho = ("MS PMincho", "IPAexMincho", "Noto Serif CJK JP") + let gothic = ("MS PGothic", "Hiragino Kaku Gothic Pro", "IPAexGothic", "Noto Sans CJK JP") + let mincho = ("MS PMincho", "Hiragino Mincho Pro", "IPAexMincho", "Noto Serif CJK JP") let english = ("Times New Roman", "New Computer Modern") // Configure the page. @@ -136,7 +136,7 @@ // Display bibliography. if bibliography != none { show std-bibliography: set text(9pt) - show regex("[0-9a-zA-Z]"): set text(font: "New Computer Modern") + show regex("[0-9a-zA-Z]"): set text(font: english) set std-bibliography(title: align(center, text(11pt)[参 考 文 献]), style: "rengo.csl") bibliography } diff --git a/libs/rsj-conf/lib.typ b/libs/rsj-conf/lib.typ index bb4eeab..bf4114d 100644 --- a/libs/rsj-conf/lib.typ +++ b/libs/rsj-conf/lib.typ @@ -12,8 +12,9 @@ set document(title: title) // Set the Fonts - let gothic = ("MS PGothic", "IPAexGothic", "Noto Sans CJK JP", "Hiragino Kaku Gothic Pro") - let mincho = ("MS PMincho", "IPAexMincho", "Noto Serif CJK JP", "Hiragino Mincho Pro") + let gothic = ("MS PGothic", "Hiragino Kaku Gothic Pro", "IPAexGothic", "Noto Sans CJK JP") + let mincho = ("MS PMincho", "Hiragino Mincho Pro", "IPAexMincho", "Noto Serif CJK JP") + let english = ("Times New Roman", "New Computer Modern") // Configure the page. set page( @@ -22,7 +23,7 @@ ) set text(size: 10pt, font: mincho) - // show regex("[0-9a-zA-Z]"): set text(font: "New Computer Modern Math") + // show regex("[0-9a-zA-Z]"): set text(font: english) set par(leading: 0.55em, first-line-indent: 1em, justify: true) show par: set block(spacing: 0.55em) @@ -104,7 +105,7 @@ columns: (0.7cm, 1fr, 0.7cm), [], [ - #set text(10pt, font: "New Computer Modern") + #set text(10pt, font: english) #h(1em) #abstract ], [] @@ -121,7 +122,7 @@ // Display bibliography. if bibliography != none { show std-bibliography: set text(9pt) - show regex("[0-9a-zA-Z]"): set text(font: "New Computer Modern") + show regex("[0-9a-zA-Z]"): set text(font: english) set std-bibliography(title: align(center, text(11pt)[参 考 文 献]), style: "rsj-conf.csl") bibliography } diff --git a/main.typ b/main.typ index 4ca3d9c..7a13a8b 100644 --- a/main.typ +++ b/main.typ @@ -98,7 +98,7 @@ VS Code の拡張機能である Typst LSP と Typst Preview をインストー アブストラクトは左右に 0.7 cm 余白を取っています. フォントの設定は @tab:fonts の通りです. -ここで,ゴシック体とは "MS PGothic", "IPAexGothic", "Noto Sans CJK JP" のいずれか,明朝体とは "MS PMincho", "IPAexMincho", "Noto Serif CJK JP" のいずれかで見つかるものが採用されます. +ここで,ゴシック体とは "MS PGothic", "Hiragino Kaku Gothic Pro", "IPAexGothic", "Noto Sans CJK JP" のいずれか,明朝体とは ""MS PMincho", "Hiragino Mincho Pro", "IPAexMincho", "Noto Serif CJK JP" のいずれかで見つかるものが採用されます. これらのフォントがお使いのコンピュータになければインストールするか,代わりに使いたいフォントがあればソースコードの方に追加してください. 以下のコマンドで使用可能なフォント一覧を確認できます. #code( @@ -119,9 +119,9 @@ VS Code の拡張機能である Typst LSP と Typst Preview をインストー [フォント], ), table.hline(), - [#text(18pt, "タイトル", font: ("MS PGothic", "Noto Sans CJK JP", "IPAexGothic"))], [18], [ゴシック体], - [#text(12pt, "著者名", font: ("MS PGothic", "Noto Sans CJK JP", "IPAexGothic"))], [12], [ゴシック体], - [#text(12pt, "章タイトル", font: ("MS PGothic", "Noto Sans CJK JP", "IPAexGothic"))], [12], [ゴシック体], + [#text(18pt, "タイトル", font: ("MS PGothic", "Hiragino Kaku Gothic Pro", "IPAexGothic", "Noto Sans CJK JP"))], [18], [ゴシック体], + [#text(12pt, "著者名", font: ("MS PGothic", "Hiragino Kaku Gothic Pro", "IPAexGothic", "Noto Sans CJK JP"))], [12], [ゴシック体], + [#text(12pt, "章タイトル", font: ("MS PMincho", "Hiragino Mincho Pro", "IPAexMincho", "Noto Serif CJK JP"))], [12], [ゴシック体], [節,小節,本文], [10], [明朝体], [#text(9pt, "参考文献")], [9], [明朝体], )