Recently, I was trying to use Greek and English text in combination in Latex. The available options for doing so can be found here: http://www.eelvex.net/latex/greek-in-latex/. However, using Babel, Babel + inputenc and auto-greek options was not straightforward using pdflatex with my Mactex/Mac Os X Lion 10.8.1 setup, since I had some annoying encoding issues (like other users too, check url).

After some search I ended up to a very simple option that makes use of Xelatex and a normal UTF-8 encoding for the tex file. So, here it is a working example (I assume that you have installed Mactex):

Example

Create a filename that contains the following named greek_en.tex (or whatever else name you prefer).

greek_en.tex

  1. %!TEX TS-program = xelatex
  2. %!TEX encoding = UTF-8 Unicode
  3. \documentclass[10pt]{article}
  4. \usepackage{fontspec}
  5.  
  6. \setromanfont{Lucida Grande}
  7. \title{Ελληνικό και Αγγλικό κείμενο σε \LaTeX}
  8. \date{24 Μαρτίου, 2013}
  9. \begin{document}
  10. \maketitle
  11.  
  12. \section{Εισαγωγη (Introduction)}
  13.  
  14. Αυτό το παράδειγμα παρουσιάζει την χρήση Ελληνικών και Αγγλικών στο Xelatex.
  15.  
  16. \end{document}

Compile it using xelatex and view the PDF output:

  1. $ xelatex greek_en.tex
  2. $ open greek_en.pdf
Share →
This site is protected by Comment SPAM Wiper.