
\ifdefined \XeTeXOTcountscripts \else \makeatletter
  \@latex@error{^^J*** The fontspec documentation can only be typeset with XeTeX at present! ***\@gobble}\@ehc
\fi

\documentclass[a4paper]{ltxdoc}
\usepackage{fontspec-doc-style}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\EnableCrossrefs
\CodelineIndex
\RecordChanges
%\OnlyDescription
\begin{document}

\GetFileInfo{fontspec.dtx}

\title{The \textsf{fontspec} package\\Font selection for \XeLaTeX\ and \LuaLaTeX}
\author{
   \textsc{Will Robertson} and \textsc{Khaled Hosny}\\
   \url{http://wspr.io/fontspec/}
}
\date{\filedate \qquad \fileversion}

\maketitle
\tableofcontents
\newpage

\include{fontspec-doc-intro}
\include{fontspec-doc-fontsel}
\include{fontspec-doc-featset}
\include{fontspec-doc-opentype}
\include{fontspec-doc-enc}
\include{fontspec-doc-luatex}
\include{fontspec-doc-xetex}
\include{fontspec-doc-api}

\providecommand\ENDDOCUMENT{\end{document}}
\ENDDOCUMENT
