![如何在 TeX 中输入 ὅπερ ἔδει δεῖξαι?](https://linux22.com/image/268878/%E5%A6%82%E4%BD%95%E5%9C%A8%20TeX%20%E4%B8%AD%E8%BE%93%E5%85%A5%20%E1%BD%85%CF%80%CE%B5%CF%81%20%E1%BC%94%CE%B4%CE%B5%CE%B9%20%CE%B4%CE%B5%E1%BF%96%CE%BE%CE%B1%CE%B9%EF%BC%9F.png)
答案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}