TeX Live 中選定的 opentype 字型範例

TeX Live 中選定的 opentype 字型範例

您好,我正在使用 Sharelatex,並且我在序言中使用這些命令以便能夠用希臘語編寫。

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

我怎樣才能改變字體?

編輯一:

\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 提供一項服務。 (我懷疑你想要襯線和無襯線使用相同的字體。)

顯然其他字體也支持希臘語。由於您使用的是 XeLaTeX 或 LuaLaTeX,因此您可以使用系統上安裝的任何支援希臘語的字體。在 LaTeX 字型目錄中或CTAN,尋找 opentype 或 truetype 格式可用的字型。

如果不了解更多有關您的文件或您想要做什麼的信息,就很難說出任何非常有用的內容。

TeX Live 包括以下開放式格式的 Greek Font Society 產品:

  • 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}

相關內容