1 %% This is file `fontspec-patched.sty'.
3 %% It is the file `fontspec.sty' (from the `fontspec' package provided by
4 %% CTAN) with modifications to load `fontspec-xelatex-patched.sty'.
6 %% This is a legal modification based on the LPPL license since the file
7 %% name has been changed.
9 %% The original source code files can be found at
11 %% http://ctan.org/pkg/fontspec
13 %% For reference, here the original copyright notice.
15 %% This is file `fontspec.sty',
16 %% generated with the docstrip utility.
18 %% The original source files were:
20 %% fontspec.dtx (with options: `fontspec,load')
21 %% ------------------------------------------------
22 %% The FONTSPEC package for XeLaTeX/LuaLaTeX
23 %% (C) 2004--2017 Will Robertson and Khaled Hosny
24 %% License information appended.
25 %% ------------------------------------------------
26 \RequirePackage{expl3
}
27 \RequirePackage{xparse
}
28 \ProvidesExplPackage{fontspec-patched
}%
29 {2017/
08/
07}{2.6c-patched
}{Font selection for XeLaTeX and LuaLaTeX
}
31 % to make LaTeX believe the `fontspec' package gets loaded
32 \expandafter\def\csname ver@fontspec.sty
\endcsname{2017/
08/
07}
34 \sys_if_engine_luatex:T
35 { \RequirePackage{luaotfload
}
36 \directlua{require("fontspec")}
37 \RequirePackageWithOptions{fontspec-luatex
} \endinput }
38 \sys_if_engine_xetex:T
39 { \RequirePackageWithOptions{fontspec-xetex-patched
} \endinput }
40 \msg_new:nnn
{fontspec
} {cannot-use-pdftex
}
42 The~ fontspec~ package~ requires~ either~ XeTeX~ or~ LuaTeX.\\\\
43 You~ must~ change~ your~ typesetting~ engine~ to,~ e.g.,~ "xelatex"~ or~ "lualatex" instead~ of~ plain~ "latex"~ or~ "pdflatex".
45 \msg_fatal:nn
{fontspec
} {cannot-use-pdftex
}
46 %% ------------------------------------------------
47 %% Copyright 2004--2017 Will Robertson <will.robertson@latex-project.org>
48 %% Copyright 2009--2013 Khaled Hosny <khaledhosny@eglug.org>
50 %% Distributable under the LaTeX Project Public License, version 1.3c or higher.
51 %% The latest version of this license is at: http://www.latex-project.org/lppl.txt
53 %% This work is "maintained" by Will Robertson.
54 %% It consists of the files: fontspec*.dtx, fontspec.cfg, fontspec*.tex.
55 %% And the derived files: fontspec*.sty,fontspec.lua, fontspec.pdf.
56 %% ------------------------------------------------
58 %% End of file `fontspec-patched.sty'.