0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

多言語Overleaf覚え書き(一部だけ違うフォントを使用したいとき)

Last updated at Posted at 2020-06-16

Overleafで多言語出力

Overleafで多言語出力をするためのレシピ

  • XeLaTeXをコンパイラに指定
  • fontspecパッケージを使用
  • 今回はチベット語フォントJomolhariを題材に

使用できるフォント一覧についてはパッケージのドキュメントを参照。
新しいフォントを入れたい場合には以下のように\newfontfamily\コマンド名{フォント名}で指定してあげる。

example.tex
\usepackage{fontspec}
\newfontfamily\Tibetanfont{Jomolhari}
%\setmainfont{Times New Roman} -> デフォルトのフォントの指定をしたい場合。

出力したい文字列を{\コマンド名 文字列}で任意のフォントで文字を出力することができます。

example2.tex
{\Tibetanfont ཚུགས་} means ``be able to do".

Future work

  • fontspecpolyglossiaパッケージ併用している場面をよくみるが、ほんとうに必要なのかを調べたい。
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?