TeX Live から選択した OpenType フォントのサンプル

TeX Live から選択した OpenType フォントのサンプル

こんにちは。私は Sharelatex を使用しており、ギリシャ語で記述できるようにするためにプリアンブルでこれらのコマンドを使用しています。

\usepackage{xltxtra}
\usepackage{xgreek}
\setmainfont[Mapping=tex-text]{GFSDidot.otf}
\setsansfont[Mapping=tex-text]{GFSDidot.otf}

フォントを変更するにはどうすればいいですか?

編集I:

\documentclass[12pt]{article}

\usepackage{xltxtra}
\usepackage{xgreek}
\setmainfont[Mapping=tex-text]{GFSDidot.otf}
\setsansfont[Mapping=tex-text]{GFSDidot.otf}

\begin{document}

Text Here!

Κείμενο εδώ!

\end{document}

答え1

LaTeX フォントカタログTeX パッケージでサポートされているさまざまなフォントのサンプルと説明を提供します。

セリフ- まずは GFS を始めようとしている人を探してください。GFS はギリシャ フォント協会です。

サンズ- 繰り返しになりますが、GFS には 1 つのフォントが用意されています。(セリフとサンセリフの両方に同じフォントが必要なことはないと思います。)

もちろん他のフォントもギリシャ語をサポートしています。XeLaTeXまたはLuaLaTeXを使用しているので、システムにインストールされているギリシャ語をサポートするフォントであればどれでも使用できます。LaTeXフォントカタログまたはCTANOpenType または TrueType 形式で使用できるフォントを探します。

ドキュメントの詳細や、何をしようとしているのかを知らなければ、役に立つことを言うのは難しいでしょう。

TeX Live には、OpenType 形式でギリシャ フォント協会が提供する次のコンテンツが含まれています。

  • GFS アルテミシア
  • GFS バスカービル
  • GFS ボドニ
  • GFS コンプルトゥム
  • GFS ディド
  • GFS ネオヘレニック
  • GFS ポルソン
  • GFS ソロモス

さらに、Iwona、Kurier、AntykwaTorunska、cm-unicode、EBGaramond12、Libertine、GNU FreeFont、Stix、OldStandard、Philokalia、PlayFairなどもギリシャ文字をサポートしています。これを確認するには、

otfinfo -s <fontfile>

TeX Live から選択した OpenType フォントのサンプル

ギリシャ語のサンプル

\documentclass[12pt,twocolumn]{article}

\usepackage{xltxtra}
\usepackage{xgreek}

\begin{document}

\setmainfont[
  Mapping=tex-text,
  BoldFont=GFSArtemisiaBold.otf]{GFSArtemisia.otf}
\section{GFS Artemisia}
Text Here!

Κείμενο εδώ!

\setmainfont[
  Mapping=tex-text,
  BoldFont=LibreBaskerville-Bold.otf]{LibreBaskerville-Regular.otf}
\section{Libre/GFS Baskerville}
Text Here!

\setmainfont[
  Mapping=tex-text]{GFSBaskerville.otf}
Κείμενο εδώ!

\setmainfont[
  Mapping=tex-text,
  BoldFont=GFSBodoniBold.otf]{GFSBodoni.otf}
\section{GFS Bodoni}

Text Here!

Κείμενο εδώ!

\section{GFS Complutum}

\setmainfont[
  Mapping=tex-text]{GFSPolyglot.otf}
Κείμενο εδώ!

\setmainfont[
  Mapping=tex-text,
  BoldFont=GFSDidotBold.otf]{GFSDidot.otf}
\section{GFS Didot}

Text Here!

Κείμενο εδώ!

\setsansfont[
  Mapping=tex-text,
  BoldFont=GFSNeohellenicBold.otf]{GFSNeohellenic.otf}
\section{\textsf{GFS Neohellenic}}
{\sffamily
Text Here!

Κείμενο εδώ!}

\section{GFS Porson}

\setmainfont[
  Mapping=tex-text]{GFSPorson.otf}
Κείμενο εδώ!

\section{\sffamily GFS Solomos}

\setmainfont[
  Mapping=tex-text]{GFSSolomos.otf}
Κείμενο εδώ!

\setmainfont[
  Mapping=tex-text,
  BoldFont=STIX-Bold.otf]{STIX-Regular.otf}
\section{STIX}
Text Here!

Κείμενο εδώ!

\setsansfont[
  Mapping=tex-text,
  BoldFont=Iwona-Bold.otf]{Iwona-Regular.otf}
\section{\sffamily Iwona}
{\sffamily
Text Here!

Κείμενο εδώ!}

\setsansfont[
  Mapping=tex-text,
  BoldFont=Kurier-Bold.otf]{Kurier-Regular.otf}
\section{\sffamily Kurier}
{\sffamily
Text Here!

Κείμενο εδώ!}

\end{document}

関連情報