% Fonts, language and markup shared by all the variants. % Load after \documentclass and \geometry. \usepackage{iftex} \ifPDFTeX \usepackage[OT1,LGR]{fontenc} \usepackage{gfsporson} \renewcommand\rmdefault{porson} \DeclareFontFamily{OT1}{porson}{}% Latin characters: Computer Modern \DeclareFontShape{OT1}{porson}{m}{n}{<->ssub*cmr/m/n}{} \DeclareFontShape{OT1}{porson}{b}{n}{<->ssub*cmr/bx/n}{} \newcommand\latin{\fontencoding{OT1}\fontfamily{cmr}\selectfont} % in LGR the ASCII ";" is the ano teleia; the question mark is another glyph \begingroup\lccode`~=`;\lowercase{\endgroup\def~{\texterotimatiko}} \AtBeginDocument{\catcode`;=\active} \DeclareUnicodeCharacter{27E8}{\ensuremath{\langle}}% ⟨ ⟩: the editor's addition \DeclareUnicodeCharacter{27E9}{\ensuremath{\rangle}} \DeclareUnicodeCharacter{2014}{\textemdash\penalty\exhyphenpenalty\hskip0pt}% closed-up dash: a break may follow it \else \usepackage{fontspec} \setmainfont{GFS Porson} \newfontfamily\latin{Latin Modern Roman} \usepackage{newunicodechar} \newunicodechar{·}{\char"0387\relax}% ano teleia: the font's glyph \newunicodechar{⟨}{\ensuremath{\langle}}% ⟨ ⟩: the editor's addition \newunicodechar{⟩}{\ensuremath{\rangle}} \newunicodechar{—}{\kern0pt\char"2014\penalty\exhyphenpenalty\hskip0pt}% closed-up dash: a break may follow it \fi \usepackage[greek.ancient]{babel} \raggedbottom \setlength\emergencystretch{1.5em} % Stephanus reference in the margin \newcommand\st[1]{\leavevmode\marginpar{\footnotesize\latin\bfseries #1}} % title page followed by a blank page \newcommand\frontpage{% \thispagestyle{empty}\vspace*{\stretch{1}}% \begin{center}\LARGE ΠΛΑΤΩΝΟΣ\\ ΑΠΟΛΟΓΙΑ ΣΩΚΡΑΤΟΥΣ\end{center}% \vspace*{\stretch{2}}\newpage \thispagestyle{empty}\null\newpage} % title of the dialogue \newcommand\heading{% \begin{center}\Large ΑΠΟΛΟΓΙΑ ΣΩΚΡΑΤΟΥΣ\end{center}}