-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(latex/latex-font-kiwi-maru.md): KiwiMaruを追加した
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# キウイ丸したい(`KiwiMaru`) | ||
|
||
```console | ||
$ brew install --cask font-kiwi-maru | ||
``` | ||
|
||
Googleフォントにある[Kiwi Maru](https://fonts.google.com/specimen/Kiwi+Maru)を使います。 | ||
Homebrewでインストールできます。 | ||
|
||
```latex | ||
% プリアンブル | ||
\usepackage{luatexja-fontspec} | ||
% 欧文フォント | ||
\setmainfont{KiwiMaru-Light} | ||
\setsansfont{KiwiMaru-Medium} | ||
\setmonofont{KiwiMaru-Regular} | ||
% 和文フォントの設定 | ||
\setmainjfont{KiwiMaru-Light} | ||
\setsansjfont{KiwiMaru-Medium} | ||
\setmonojfont{KiwiMaru-Regular} | ||
``` | ||
|
||
3スタイルあるので、 | ||
見出しを`Medium`にし、本文を`Light`にしています。 | ||
|
||
:::{note} | ||
|
||
フォント名を設定するとき、ハイフンはあってもなくてもOKです。 | ||
|
||
```latex | ||
\setmainjfont{KiwiMaru-Light} % OK | ||
\setmainjfont{KiwiMaruLight} % これもOK | ||
``` | ||
|
||
::: |
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