summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/fontspec/fontspec.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/fontspec/fontspec.dtx')
-rw-r--r--Master/texmf-dist/source/latex/fontspec/fontspec.dtx71
1 files changed, 58 insertions, 13 deletions
diff --git a/Master/texmf-dist/source/latex/fontspec/fontspec.dtx b/Master/texmf-dist/source/latex/fontspec/fontspec.dtx
index add007bb14b..84abbe7aae2 100644
--- a/Master/texmf-dist/source/latex/fontspec/fontspec.dtx
+++ b/Master/texmf-dist/source/latex/fontspec/fontspec.dtx
@@ -1,6 +1,10 @@
%%^^A%% fontspec.dtx -- part of FONTSPEC <wspr.io/fontspec>
-% \iffalse
+% \section{Package declaration}
+%
+% List all \texttt{dtx} files for running the \texttt{ins} file
+% and typesetting the code.
+% \begin{macrocode}
%<*dtx>
\gdef\FONTSPECDTX{
\DTX{fontspec.dtx}
@@ -27,33 +31,72 @@
\DTX{fontspec-patches.dtx}
}
%</dtx>
-%<*driver>
+% \end{macrocode}
+%
+% Now exit if we're using plain \TeX; this would usually be the case when
+% loading this file with \texttt{fontspec.ins}.
+% \begin{macrocode}
+%<*dtx>
\def\tmpa{plain}
\ifx\tmpa\fmtname\expandafter\endinput\fi
-%</driver>
+%</dtx>
+% \end{macrocode}
+%
+% Metadata for documentation; the official title and authors of the package.
+% \begin{macrocode}
+%<*dtx>
+\title{
+ The \textsf{fontspec} package\\
+ Font selection for \XeLaTeX\ and \LuaLaTeX
+}
+\author{
+ \textsc{Will Robertson}\\
+ With contributions by Khaled Hosny,\\
+ Philipp Gesang, Joseph Wright, and others.\\
+ \url{http://wspr.io/fontspec/}
+}
+%</dtx>
+% \end{macrocode}
+%
+% Declare the package version and date for each of the \texttt{.sty} files generated.
+% In addition, declare the version and date for this \texttt{.dtx} file.
+% \begin{macrocode}
%<fontspec>\RequirePackage{xparse}
%<fontspec&load>\ProvidesExplPackage{fontspec}%
-%<fontspec&xetexx>\ProvidesExplPackage{fontspec-xetex}%
-%<fontspec&luatex>\ProvidesExplPackage{fontspec-luatex}%
-%<*driver>
+%<fontspec&XE>\ProvidesExplPackage{fontspec-xetex}%
+%<fontspec&LU>\ProvidesExplPackage{fontspec-luatex}%
+%<*dtx>
\RequirePackage{xparse}
\ProvidesExplFile{fontspec.dtx}
-%</driver>
+%</dtx>
%<*fontspec>
- {2017/11/05}{2.6f}{Font selection for XeLaTeX and LuaLaTeX}
+ {2017/11/09}{2.6g}{Font selection for XeLaTeX and LuaLaTeX}
%</fontspec>
+% \end{macrocode}
+%
+% Here the version and date are setup for typesetting the documentation.
+% \begin{macrocode}
+%<*dtx>
+\GetFileInfo{fontspec.dtx}
+\date{\filedate \qquad \fileversion}
+%</dtx>
+% \end{macrocode}
+%
+% \subsection{\textsf{Lua} header}
+%
+% \begin{macrocode}
%<lua>fontspec = fontspec or {}
%<lua>local fontspec = fontspec
%<lua>fontspec.module = {
%<lua> name = "fontspec",
-%<lua> version = "2.6f",
-%<lua> date = "2017/11/05",
+%<lua> version = "2.6g",
+%<lua> date = "2017/11/09",
%<lua> description = "Font selection for XeLaTeX and LuaLaTeX",
%<lua> author = "Khaled Hosny, Philipp Gesang, Will Robertson",
%<lua> copyright = "Khaled Hosny, Philipp Gesang, Will Robertson",
-%<lua> license = "LPPL"
+%<lua> license = "LPPL v1.3c"
%<lua>}
-% \fi
+% \end{macrocode}
\endinput
@@ -62,7 +105,9 @@
% The FONTSPEC package <wspr.io/fontspec>
% ------------------------------------------------
% Copyright 2004-2017 Will Robertson, LPPL "maintainer"
-% Copyright 2009-2013 Khaled Hosny
+% Copyright 2009-2015 Khaled Hosny
+% Copyright 2013 Philipp Gesang
+% Copyright 2013-2016 Joseph Wright
% ------------------------------------------------
% This package is free software and may be redistributed and/or modified under
% the conditions of the LaTeX Project Public License, version 1.3c or higher