6

With pdflatex, this

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[main=british,polutonikogreek]{babel}
\begin{document}
{\selectlanguage{polutonikogreek}
οὔ μοι τὰ Γύγεω τοῦ πολυχρύσου μέλει,}
he said
\end{document}

yields the expected, and I suppose the Greek font is cbgreek. But with lualatex, the Greek disappears. What must I change to get the same output with lualatex as with pdflatex?

8

For small inserts in Greek, assuming you don't need correct hyphenation, the workaround of changing inputenc into luainputenc might do.

For more intensive usage of Greek, you should consider switching to fontspec. The CM-Unicode fonts incorporate the CB Greek fonts.

\documentclass{article}

\usepackage{fontspec}
\usepackage[main=british,greek.polutoniko]{babel}

\setmainfont{CMU Serif}

\begin{document}

\foreignlanguage{greek}{οὔ μοι τὰ Γύγεω τοῦ πολυχρύσου μέλει},
he said

\end{document}

enter image description here

2

Using \usepackage[utf8]{luainputenc} with LuaLaTeX.

enter image description here

\documentclass{article}
\usepackage[main=british,polutonikogreek]{babel}
\usepackage[utf8]{luainputenc}
\usepackage{lipsum}
\begin{document}
\lipsum[1]

{\selectlanguage{polutonikogreek}
οὔ μοι τὰ Γύγεω τοῦ πολυχρύσου μέλει,}
\end{document}
  • I would explain the use of the luainputenc and fontenc package – Moriambar Mar 31 '17 at 8:05
  • 2
    Remove the call to inputenc, that does nothing – egreg Mar 31 '17 at 8:06
  • @ilFuria luainputenc and fontenc – Sebastiano Mar 31 '17 at 8:10
  • 4
    Note that while this does make greek letters appear using 8-bt fonts with luatex is generally not the recommended approach (and will give incorrect hyphenation without more work) – David Carlisle Mar 31 '17 at 8:11
  • @Sebastiano yes, of course one can look up the documentation, I just thought it would be nice to have (directly in the answer) the explanation on why one has to use them to obtain the result. – Moriambar Mar 31 '17 at 8:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.