I am trying to compile a long document in which I must add a couple of paragraphs with text in Ancient Greek, to be compiled with XeLaTeX.
The way I am doing this now is
\usepackage[utf8]{inputenc}
\usepackage[polutonikogreek,english]{babel}
\newcommand{\greek}[1]{{\selectlanguage{polutonikogreek}#1}}
and then I have \greek{βάραθρον}
etc.
However, this is not producing any output with XeLaTeX. Using pdfLaTeX I do get the words in Ancient Greek in the text.
I have also noticed that a few words in French and Spanish I have don't show up properly either, regardless on whether I add spanish and french to the babel
options.
Unfortunately I must use XeLaTeX because of some complicated commands I have in the text.
inputenc
package, at all. Instead, you should be loading thefontspec
package and setting up the main text font via a\setmainfont
directive.texdoc gfsartemisia
.