1
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.

LaTeX のギリシャ文字一覧表

Posted at

Greek Letters List

LaTeX でのギリシャ文字と立体のギリシャ文字を表にしてみた.

本記事では,ギリシャ文字の名前を明らかにするものではなく,見た目と提供される文字を明らかにする目的で作成している.

Upright Greek Letters

立体(Upright) のギリシャ文字に関してはいくつかの方法があるようだが,今回upgreek パッケージを利用している.

upgreek | CTAN

TX やPX フォントであっても立体のギリシャ文字を利用することが出来るようになるが,これらのパッケージを利用するとComputer Modern(CM) に変更を加えることになる.
単純に立体のギリシャ文字を追加して利用したいのでこのパッケージを採用している.

プリアンブルで以下のようにして導入するのみである.簡単.

\usepackage{upgreek}

オプションとして以下の3つがある.

Option
Euler Euler Roman/Bold (default)
Symbol Adobe Symbol
Symbolsmallscale Adobe Symbol, scaled down to 90% of its natural size. (New feature in version 2.0 !)

今回ではデフォルトのEuler を利用している.

Commands

ギリシャ文字のコマンドは以下のようになっている.

greek には頭文字が小文字のギリシャ文字名,
Greek には頭文字が大文字のギリシャ文字名を入れるものとする.

Computer Modern Greek Letters

Commands
Lowercase/ Regular \greek
Lowercase/ variant \vargreek
Uppercase/ Regular \Greek
Uppercase/ Italic \mathit{\Greek}, \varGreek

\varkappa はamssymb から提供されている.

また, \varGreek を利用するためにはamsmath を読み込む必要がある.(\mathit{\Greek} によるイタリック体の出力は可能)

Upright Greek Letters for upgreek

コマンドは以下のようになっており,意図的に\upGreek となっていないことに注意しておきたい.

Commands
Lowercases/ Regular \upgreek
Lowercases/ variant \upvargreek
Uppercase/ Regular \Upgreek

大文字のvariant は存在していない.また,これらのサンセリフや等幅もない.

Lists

Greek letters lists code for CM (折りたたみ)

下の表を作成するコード.使用するパッケージを変更したり,upgreek のオプションをSymbol に変更してみるとおもしろいだろう.

\documentclass[margin=1mm]{standalone}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{upgreek}

\newcommand{\columntitle}[1]{\textsc{#1}}
\newcommand{\columnsubtitle}[1]{\textsf{#1}}
\newcommand{\greekcmd}[1]{\textbackslash\texttt{#1}}
\newcommand{\textcmd}[2]{\textbackslash\texttt{#1}\{\textbackslash\texttt{#2}\}}
\newcommand{\greekbold}[1]{
  #1
  \quad
  \boldsymbol{#1}
}
\newcommand{\celltall}{\rule[0mm]{0mm}{5mm}}
\newcommand{\GreekTbl}[2]{
  \celltall
  \textsc{#2}
  & $ \greekbold{\csname#1\endcsname} $
  & $ \greekbold{\csname var#1\endcsname} $
  & $ \greekbold{\csname up#1\endcsname} $
  & $ \greekbold{\csname upvar#1\endcsname} $
  & $ \greekbold{\csname#2\endcsname} $
  & $ \greekbold{\csname var#2\endcsname} $
  & $ \greekbold{\mathsf{\csname#2\endcsname}} $
  & $ \greekbold{\mathtt{\csname#2\endcsname}} $
  & $ \greekbold{\csname Up#1\endcsname} $
  \\
}
\newcommand{\cmdname}{
  \textsc{Command}
  & \greekcmd{greek}
  & \greekcmd{vargreek}
  & \greekcmd{upgreek}
  & \greekcmd{upvargreek}
  & \greekcmd{Greek}
  & \greekcmd{varGreek}
  & \textcmd{mathsf}{Greek}
  & \textcmd{mathtt}{Greek}
  & \greekcmd{Upgreek}
  \\
}

%%%%% ----- BEGIN DOCUMENT ----- %%%%%
\begin{document}

\begin{tabular}{|c||cc|cc|cccc|c|} \hline
  [ \texttt{Computer Modern} ]
  & \multicolumn{4}{c|}{\columntitle{Lowercase}}
  & \multicolumn{5}{c|}{\columntitle{Uppercase}}
  \\
  \cline{2-10}
  
  & \multicolumn{2}{c|}{\columnsubtitle{Regular}}
  & \multicolumn{2}{c|}{\columnsubtitle{Upright} by \texttt{upgreek}}
  & \columnsubtitle{Regular}
  & \columnsubtitle{Italic}
  & \columnsubtitle{Sans-serif}
  & \columnsubtitle{Monospaced}
  & \multicolumn{1}{c|}{\columnsubtitle{Upright} by \texttt{upgreek}}
  \\
  \hline
  \GreekTbl{alpha}{Alpha}
  \GreekTbl{beta}{Beta}
  \GreekTbl{gamma}{Gamma}
  \GreekTbl{delta}{Delta}
  \GreekTbl{epsilon}{Epsilon}
  \GreekTbl{zeta}{Zeta}
  \GreekTbl{eta}{Eta}
  \GreekTbl{theta}{Theta}
  \GreekTbl{iota}{Iota}
  \GreekTbl{kappa}{Kappa}
  \GreekTbl{lambda}{Lambda}
  \GreekTbl{mu}{Mu}
  \GreekTbl{nu}{Nu}
  \GreekTbl{xi}{Xi}
  \GreekTbl{omicron}{Omicron}
  \GreekTbl{pi}{Pi}
  \GreekTbl{rho}{Rho}
  \GreekTbl{sigma}{Sigma}
  \GreekTbl{tau}{Tau}
  \GreekTbl{upsilon}{Upsilon}
  \GreekTbl{phi}{Phi}
  \GreekTbl{chi}{Chi}
  \GreekTbl{psi}{Psi}
  \GreekTbl{omega}{Omega}
  % \GreekTbl{sum}{Sum}
  % \GreekTbl{prod}{Prod}
  \hline\hline
  \cmdname
  \hline
\end{tabular}

\end{document}
%%%%% ----- END DOCUMENT ----- %%%%%

左に通常のギリシャ文字,右に\boldsymbol を用いた太字斜体を表している.

Greek List of ComputerModern

ブランクになっている文字はコマンドが用意されていない.
また,\varkappa とMonospaced は太字にすることが出来ないようだ.

Complement

いくつか空いている部分を埋めておいても良いだろう.それほど使用しないと思われるけど.

多くの場合,大文字ギリシャ文字は立体(ローマン) のアルファベットを代用する.
以下のように定義しておいても良いだろう.

%% Lowercase
\newcommand{\mathgreek}[1]{\mathrm{#1}}
  \newcommand{\omicron}{\mathgreek{o}}
%% Uppercase
\newcommand{\mathGreek}[1]{\mathrm{#1}}
  \newcommand{\Alpha}{\mathGreek{A}}
  \newcommand{\Beta}{\mathGreek{B}}
  \newcommand{\Epsilon}{\mathGreek{E}}
  \newcommand{\Zeta}{\mathGreek{Z}}
  \newcommand{\Eta}{\mathGreek{H}}
  \newcommand{\Iota}{\mathGreek{I}}
  \newcommand{\Kappa}{\mathGreek{K}}
  \newcommand{\Mu}{\mathGreek{M}}
  \newcommand{\Nu}{\mathGreek{N}}
  \newcommand{\Omicron}{\mathGreek{O}}
  \newcommand{\Rho}{\mathGreek{P}}
  \newcommand{\Tau}{\mathGreek{T}}
  \newcommand{\Chi}{\mathGreek{X}}

新たに定義した\mathgreek, \mathGreek コマンドを介して\mathrm を用いてローマンにしている.全体を変更したい際に非常に楽になるだろう.

これによって,Regular の大文字/ 小文字のギリシャ文字はすべて埋まる.また,大文字のサンセリフ,等幅に関しても同様に埋まることになるが,\mathsf{\mathrm{A}} となるためローマンが引き継がれることに注意したい.(上手な定義の方法があれば)

Greek letters for PX and TX

PX フォントやTX フォントを利用している場合には,upgreek パッケージを利用していなくても立体のギリシャ文字を利用することが出来る.

CM との違いは,以下の2点ある.

  • amssymb を利用していなくても\varkappa を利用することが出来る
  • 立体ギリシャ文字は\greekup となっている

また,upgreek は追加で利用することも出来る.

Greek letters list code for PX or TX (折りたたみ)

\mathfonts からpx またはtx とすれば切り替えることが出来る.

\documentclass[margin=1mm]{standalone}
\usepackage{amsmath}
\newcommand{\mathfonts}[1]{
  \usepackage{new#1text, new#1math}
  \newcommand{\xxfonts}[1]{
    [ \texttt{new#1math} ]
  }
}
% \mathfonts{px}: PX font
% \mathfonts{tx}: TX font
\mathfonts{px}

\newcommand{\columntitle}[1]{\textsc{#1}}
\newcommand{\columnsubtitle}[1]{\textsf{#1}}
\newcommand{\greekcmd}[1]{\textbackslash\texttt{#1}}
\newcommand{\textcmd}[2]{\textbackslash\texttt{#1}\{\textbackslash\texttt{#2}\}}
\newcommand{\greekbold}[1]{
  #1
  \quad
  \boldsymbol{#1}
}
\newcommand{\celltall}{\rule[0mm]{0mm}{5mm}}
\newcommand{\GreekTbl}[2]{
  \celltall
  \textsc{#2}
  & $ \greekbold{\csname#1\endcsname} $
  & $ \greekbold{\csname var#1\endcsname} $
  \celltall
  & $ \greekbold{\csname #1up\endcsname} $
  \celltall
  & $ \greekbold{\csname var#1up\endcsname} $
  \celltall
  & $ \greekbold{\csname#2\endcsname} $
  \celltall
  & $ \greekbold{\csname var#2\endcsname} $
  \celltall
  & $ \greekbold{\csname #2up\endcsname} $
  \celltall
  \\
}
\newcommand{\cmdname}{
  \textsc{Command}
  & \greekcmd{greek}
  & \greekcmd{vargreek}
  & \greekcmd{greekup}
  & \greekcmd{vargreekup}
  & \greekcmd{Greek}
  & \greekcmd{varGreek}
  & \greekcmd{Greekup}
  \\
}

%%%%% ----- BEGIN DOCUMENT ----- %%%%%
\begin{document}

\begin{tabular}{|c||cc|cc|ccc|} \hline
  \xxfonts{}
  & \multicolumn{4}{c|}{\columntitle{Lowercase}}
  & \multicolumn{3}{c|}{\columntitle{Uppercase}}
  \\
  \cline{2-8}
  
  & \multicolumn{2}{c|}{\columnsubtitle{Regular}}
  & \multicolumn{2}{c|}{\columnsubtitle{Upright}}
  & \columnsubtitle{Regular}
  & \columnsubtitle{Italic}
  & \columnsubtitle{Upright}
  \\
  \hline
  \GreekTbl{alpha}{Alpha}
  \GreekTbl{beta}{Beta}
  \GreekTbl{gamma}{Gamma}
  \GreekTbl{delta}{Delta}
  \GreekTbl{epsilon}{Epsilon}
  \GreekTbl{zeta}{Zeta}
  \GreekTbl{eta}{Eta}
  \GreekTbl{theta}{Theta}
  \GreekTbl{iota}{Iota}
  \GreekTbl{kappa}{Kappa}
  \GreekTbl{lambda}{Lambda}
  \GreekTbl{mu}{Mu}
  \GreekTbl{nu}{Nu}
  \GreekTbl{xi}{Xi}
  \GreekTbl{omicron}{Omicron}
  \GreekTbl{pi}{Pi}
  \GreekTbl{rho}{Rho}
  \GreekTbl{sigma}{Sigma}
  \GreekTbl{tau}{Tau}
  \GreekTbl{upsilon}{Upsilon}
  \GreekTbl{phi}{Phi}
  \GreekTbl{chi}{Chi}
  \GreekTbl{psi}{Psi}
  \GreekTbl{omega}{Omega}
%  \GreekTbl{sum}{Sum}
%  \GreekTbl{prod}{Prod}
  \hline\hline
  \cmdname
  \hline
\end{tabular}

\end{document}
%%%%% ----- END DOCUMENT ----- %%%%%

Greek letters list for TX font (画像折りたたみ)

Greek List of TX


Greek letters list for PX font (画像折りたたみ)

Greek List of PX


Finally

ギリシャ文字の表を作っておきたかっただけ.

1
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
1
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?