I'm using TeXshop on Mac. I'm writing an article in french using Xelatex and I need to type some sentences in ancient greek, so i tried :








but it does not work. Here's what I get:

Package fontspec Warning: Font "SPIonic" does not contain requested Script
(fontspec)                "Greek".

(./essai.aux) (/usr/local/texlive/2018/texmf-dist/tex/latex/tipa/t3cmr.fd)
Overfull \hbox (6.95477pt too wide) in paragraph at lines 20--21
\TU/lmr/m/n/12 différent, soit à un seul centre, soit à plusieurs (épicycle). [
]\TU/SPIonic(0)/m/n/12 metabasis
[1] [2] [3] (./essai.aux)
xdvipdfmx:fatal: Cannot proceed without the font: /Library/Fonts/SPIonic

Output file removed.
(see the transcript file for additional information)
Error 256 (driver return code) generating output;
file essai.pdf may not be valid.
SyncTeX written on essai.synctex.gz.
Transcript written on essai.log.

I guess I have to chose another font but I don't know which font I can use to type in greek. I thought polyglossia and fontspec packages would do the job automatically.

  • Welcome to TeX SX! The ebgaramond font has a Greek Extended section. I guess it should work. – Bernard Mar 23 '19 at 14:26
  • I entered " \newfontfamily\greekfont[Script=Greek]{ebgaramond}" but the log fil says "package fontspec error The font "ebgaramond" cannot be found. I had already got a similar message with my previous attemps to type in greek, so there must be a problem with Tex access to fonts – happybobby Mar 23 '19 at 14:33
  • The name of the font family is EBGaramond. Did you install the font? – Bernard Mar 23 '19 at 14:39
  • TeXLive says the package is installed... Do have I to do something else to get it installed ? – happybobby Mar 23 '19 at 14:56
  • I don't think so (personally, I am under MiKTeX). Did you try changing the name for the exact name of the family? – Bernard Mar 23 '19 at 15:10

Coming back to xelatex, I found an easy solution to my problem by switching my french keyboard to a greek one in unicode when needed. As Xelatex is made for unicode, it works perfectly fine. I keep in my preambule

\setmainfont{Times New Roman}

And I use the command \textgreek[variant=ancient]{}. It's very simple, actually.

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.