XeTeX: Difference between revisions

From SMC Wiki
(Created page with "== XeTeX == XeTeX is an extension of TeX with built-in support for Unicode and OpenType. For more details see http://scripts.sil.org/xetex === Creating documents using XeTeX ...")
 
Line 5: Line 5:


# Install TeX Live
# Install TeX Live
Install latex and xetex. For ease of installation and configuration, we suggest to use a TeXLive version 2012 or above - either standalone TeXLive distribution or install from your distribution's package manager. Windows and OSX versions are also available.
Install latex and xetex. For ease of installation and configuration, we suggest to use a TeXLive version 2012 or above - either standalone TeXLive distribution or install from your distribution's package manager. Windows and OSX versions are also available.
In Fedora, you can install the packages texlive-latex and texlive-xetex.
In Fedora, you can install the packages texlive-latex and texlive-xetex.
# Install Fontspec and Hyphenation packages
# Install Fontspec and Hyphenation packages
Install polyglossia and Indic hyphenation rules. In Fedora, the packages are texlive-fontspec, texlive-polyglossia and texlive-hyphen-indic
Install polyglossia and Indic hyphenation rules. In Fedora, the packages are texlive-fontspec, texlive-polyglossia and texlive-hyphen-indic
# Install the fonts
# Install the fonts
For Malayalam, let us try to use Rachana. In Fedora, the package is smc-rachana-fonts.
For Malayalam, let us try to use Rachana. In Fedora, the package is smc-rachana-fonts.
# Create your tex document
# Create your tex document
An example document is:
An example document is:
------------------8<----------------
 
  \documentclass{article}
  \documentclass{article}
  \usepackage{fontspec}
  \usepackage{fontspec}
Line 19: Line 19:
  \setdefaultlanguage{malayalam}
  \setdefaultlanguage{malayalam}
  \setmainfont[Script=Malayalam]{Rachana}
  \setmainfont[Script=Malayalam]{Rachana}
  \begin{document}
  \begin{document}
  സീടെക്കിൽ മലയാളം ടൈപ്പ്സെറ്റ് ചെയ്തത്.
  സീടെക്കിൽ മലയാളം ടൈപ്പ്സെറ്റ് ചെയ്തത്.
  \end{document}
  \end{document}
------------------8<-----------------
 
# Compile the document using XeTeX
# Compile the document using XeTeX
  xelatex yourdocument.tex
# xelatex yourdocument.tex

Revision as of 09:46, 13 April 2013

XeTeX

XeTeX is an extension of TeX with built-in support for Unicode and OpenType. For more details see http://scripts.sil.org/xetex

Creating documents using XeTeX

  1. Install TeX Live
  2. Install latex and xetex. For ease of installation and configuration, we suggest to use a TeXLive version 2012 or above - either standalone TeXLive distribution or install from your distribution's package manager. Windows and OSX versions are also available.

In Fedora, you can install the packages texlive-latex and texlive-xetex.

  1. Install Fontspec and Hyphenation packages
  2. Install polyglossia and Indic hyphenation rules. In Fedora, the packages are texlive-fontspec, texlive-polyglossia and texlive-hyphen-indic
  3. Install the fonts
  4. For Malayalam, let us try to use Rachana. In Fedora, the package is smc-rachana-fonts.
  5. Create your tex document

An example document is:

\documentclass{article}
\usepackage{fontspec}
\usepackage{polyglossia}
\setdefaultlanguage{malayalam}
\setmainfont[Script=Malayalam]{Rachana}
\begin{document}
സീടെക്കിൽ മലയാളം ടൈപ്പ്സെറ്റ് ചെയ്തത്.
\end{document}
  1. Compile the document using XeTeX
  2. xelatex yourdocument.tex