Recently, Jonathan Kew introduced XeTeX and XeLaTeX. These programs can use Macintosh fonts directly within a TeX document. XeTeX and XeLaTeX require unicode source and thus can deal with any unicode character; for example, with them you can type Arabic or Hebrew in the source document and later see Arabic or Hebrew in the output. TeXShop's editor will correctly input these characters from right to left. XeTeX is not part of the standard TeX distribution from Gerben Wierda, but it can be obtained using Wierda's i-Installer as an optional install directly from Jonathan Kew. For additional details, consult

  http://scripts.sil.org/xetex

To understand how this works, here is a brief XeLaTeX source document, and the resulting output. The Arabic and Hebrew characters were obtained by accessing the International Panel in System Preferences, selecting the Input Menu tab, and checking Arabic and Hebrew; a small flag appeared on the menu bar and a user could switch keyboards by selecting an appropriate flag.

TeXShop now supports XeTeX and XeLaTeX:

- XeTeX and XeLaTeX are available in the pull-down typesetting menu on the source window
- A user can make XeTeX or XeLaTeX the default typesetting option in preferences
- If one of the first twenty lines of the source has the form
    % !TEX encoding = UTF-8 Unicode
  then that source will be loaded and saved with UTF-8 Unicode encoding regardless of the default encoding setting in preferences
- If one of the first twenty lines of the source has the form
    % !TEX TS-program = xetex or % !TEX TS-program = xelatex
  then the appropriate program will be used regardless of the typesetting option chosen in the menu

Advanced Help
XeTeX and XeLaTeX