XeTeXGreek letters in different font

Information and discussion about XeTeX, an alternative for pdfTeX based on e-Tex
Post Reply
Laurentius
Posts: 132
Joined: Wed Feb 11, 2009 11:38 pm

Greek letters in different font

Post by Laurentius »

(In XeLaTeX) I use a roman font which does not have greek letters. Can I fix it so that when I write something in Greek, I do not manually have to change font each time? This is especially desireable, because I think it would be preferable to use one single set of interpunction marks. I am currently using a simple \gr{} command, but even this is cumbersome. Thanks in advance!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Greek letters in different font

Post by AleCes »

There should be a function in the fontspec package that allows you to define fonts according to the language/script in use.
I'm going to read up on this so that I can provide you with more accurate information.
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Greek letters in different font

Post by AleCes »

You've got to use the Polyglossia package. Then write this code to your prologue:

Code: Select all

\newfontfamily\greekfont[Script=Greek]{Type here your font}
Hope it'll help.
Post Reply