答案1
使用pdfTeX
(即使用latex
或pdflatex
编译)和‘古’希腊语的音译:
\documentclass[12pt]{article}
\parindent0pt
\useackage[T1]{fontenc}%
\usepackage[utf8]{inputenc}%
\usepackage[polutonikogreek,latin,english]{babel}
% switch to language environments
\newcommand{\latin}[1]{%
\foreignlanguage{latin}{#1}}
\newcommand{\grk}[1]{%
\foreignlanguage{polutonikogreek}{#1}}
\begin{document}
English: That which had to be demonstrated.
Latin: \latin{Quod erat demonstrandum.}
% transliteration of ὅπερ ἔδει δεῖξαι
Greek: \grk{<'oper >edei de~ixai.}
\end{document}
或者,使用XeTeX
引擎(命令xelatex
:):
\documentclass[12pt]{article}
\parindent0pt
\usepackage{fontspec}
\setmainfont{DejaVu Serif}% <-- pick a font with Greek characters
\usepackage{polyglossia}
\setdefaultlanguage{english}
\setotherlanguages{latin,greek}
\begin{document}
English: That which had to be demonstrated.
Latin: \textlatin{Quod erat demonstrandum.}
Greek: \textgreek{ὅπερ ἔδει δεῖξαι.}
\end{document}