XeTeX
XeTeX Logo.svg
Developer(s) Jonathan Kew
Stable release 0.9997.4 / September 2010
Operating system Cross-platform
Type Typesetting
License MIT License
Website scripts.sil.org/xetex

XeTeX (English pronunciation "zee-TeX"[1] i.e. /ˈziːtɛx/ or often /ˈziːtɛk/; see also Pronouncing and writing "TeX") is a TeX typesetting engine using Unicode and supporting modern font technologies such as OpenType or Apple Advanced Typography (AAT). It is written and maintained by Jonathan Kew and distributed under the X11 free software license.[2]

Initially developed for Mac OS X only, it is now available for all major platforms. It natively supports Unicode and the input file is assumed to be in UTF-8 encoding by default. XeTeX can use any fonts installed in the operating system without configuring TeX font metrics, and can make direct use of advanced typographic features of OpenType, AAT and Graphite technologies such as alternative glyphs and swashes, optional or historic ligatures, and variable font weights. Support for OpenType local typographic conventions (locl tag) is also present. XeTeX even allows raw OpenType feature tags to be passed to the font. Microtypography is also supported. XeTeX also supports typesetting mathematics using Unicode fonts that contain special mathematical features, such as Cambria Math or Asana Math as an alternative to the traditional mathematical typesetting based on TeX font metrics.

Contents

Mode of operation [link]

Rendering of ligatures in XeTeX using an OpenType font (Hoefler Text).

XeTeX processes input in two stages. In the first stage XeTeX outputs an extended DVI (xdv) file, which is then converted to PDF by a driver. In the default operating mode the xdv output is piped directly to the driver without producing any user-visible intermediate files. It is possible to run just the first stage of XeTeX and save the xdv, although as of July 2008 there are no viewers capable of displaying the intermediate format.

Two backend drivers are available to generate PDF from an xdv file:

  • xdv2pdf, which uses AAT, and only works on Mac OS X.
  • xdvipdfmx, a modified version of dvipdfmx, which in turn uses a modified version of ICU on top of standard FreeType and fontconfig. This driver works on all platforms.

Starting from version 0.997, the default driver is xdvipdfmx on all platforms.

XeTeX works well with both LaTeX and ConTeXt macro packages. Its LaTeX counterpart is invoked as xelatex. It is usually used with the fontspec package, which provides a configurable interface for font selection, and allows complex font choices to be named and later reused.[3]

XeTeX is bundled with the TeX Live 2010, MacTeX 2010 and MiKTeX 2.8 distributions.

Example [link]

The following is an example of XeLaTeX source and rendered output. The typeface used is OFL-licensed font Linux Libertine. The text is to be processed by the command xelatex.

<source lang="latex"> \documentclass[11pt]{article} \usepackage{xltxtra} \setmainfont[Mapping=tex-text]{Linux Libertine O} \begin{document} \section{Unicode support}

\subsection{English} All human beings are born free and equal in dignity and rights.

\subsection{Íslenska} Hver maður er borinn frjáls og jafn öðrum að virðingu og réttindum.

\subsection{Русский} Все люди рождаются свободными и равными в своем достоинстве и правах.

\subsection{Tiếng Việt} Tất cả mọi người sinh ra đều được tự do và bình đẳng về nhân phẩm và quyền lợi.

\subsection{Ελληνικά} Ὅλοι οἱ ἄνθρωποι γεννιοῦνται ἐλεύθεροι καὶ ἴσοι στὴν ἀξιοπρέπεια καὶ τὰ δικαιώματα.

\section{Legacy syntax} When he goes---``Hello World!\\ She replies—“Hello dear!”

\section{Ligatures} \fontspec[Ligatures={Common, Historical}]{Linux Libertine O Italic} \fontsize{12pt}{18pt}\selectfont Questo è strano assai!

\section{Numerals} \fontspec[Numbers={OldStyle}]{Linux Libertine O}Old style: 1234567\\ \fontspec[Numbers={Lining}]{Linux Libertine O}Lining: 1234567

\end{document} </source>

The rendered output.

History [link]

XeTeX was initially released for Mac OS X only in April 2004 with built-in AAT and Unicode support. In 2005 support for OpenType layout features was first introduced. During BachoTeX 2006 a version for Linux was announced, which was ported to Microsoft Windows by Akira Kakuto a few months later, and finally included into TeX Live 2007 for all major platforms. XeTeX is also shipped with MiKTeX since version 2.7. As of the inclusion in TeX Live, XeTeX supports most macro packages written for LaTeX, OpenType, TrueType and PostScript fonts without any specific setup procedure. As of 2007,[4] future directions in XeTeX development include:

  • modular, Unicode-based Babel replacement for advanced hyphenation;
  • better integration with TeX editors such as TeXShop;
  • MathML support using Unicode math fonts.

The upcoming 0.998 version announced at BachoTeX 2008 will support Unicode normalization via the \XeTeXinputnormalization command.

See also [link]

References [link]

  1. ^ Kew, Jonathan (2007-04-03). Interview with Dave Walden. TUG. https://tug.org/interviews/interview-files/jonathan-kew.html. Retrieved 2009-11-20. 
  2. ^ "XeTeX downloads". https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=xetex_download. Retrieved 2007-04-02. 
  3. ^ Robertson, Will (2008-08-09). "The fontspec package" (PDF). https://www.ctan.org/tex-archive/macros/xetex/latex/fontspec/fontspec.pdf. Retrieved 2009-01-08. 
  4. ^ Kew, Jonathan (2007-07-20). "XeTeX Live". TUG 2007: The 28th Annual Meeting of the TeX Users Group. San Diego, California. https://www.river-valley.tv/conferences/tug2007/media/Jonathan_Kew_2/qt/. Retrieved 2008-07-25. 

Further reading [link]

External links [link]


https://wn.com/XeTeX

Podcasts:

PLAYLIST TIME:
×