summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/unicode-math/unicode-math.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/unicode-math/unicode-math.dtx')
-rw-r--r--Master/texmf-dist/source/latex/unicode-math/unicode-math.dtx188
1 files changed, 64 insertions, 124 deletions
diff --git a/Master/texmf-dist/source/latex/unicode-math/unicode-math.dtx b/Master/texmf-dist/source/latex/unicode-math/unicode-math.dtx
index eae42605dc7..38c525202f3 100644
--- a/Master/texmf-dist/source/latex/unicode-math/unicode-math.dtx
+++ b/Master/texmf-dist/source/latex/unicode-math/unicode-math.dtx
@@ -1,136 +1,76 @@
-% \iffalse
-% !TEX TS-program = XeLaTeX
-% ^^A %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% ^^A SELF-EXTRACTION BEGINS HERE
-% ^^A %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%<*internal>
-\begingroup
-\input l3docstrip.tex\relax\keepsilent
-\declarepreamble\defaultpreamble
+%%^^A%% unicode-math.dtx -- part of UNICODE-MATH <wspr.io/unicode-math>
-Copyright 2006-2017 Will Robertson <will.robertson@latex-project.org>
-Copyright 2010-2013 Philipp Stephani <st_philipp@yahoo.de>
-Copyright 2012-2015 Khaled Hosny <khaledhosny@eglug.org>
-
-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
-(your choice): <http://www.latex-project.org/lppl/>.
-
-This work is "maintained" by Will Robertson.
-\endpreamble
-\nopostamble
-\askforoverwritefalse
-\ifx\UMDEBUG\undefined\def\UMDEBUG{}\else\def\UMDEBUG{,debug}\fi
-\gdef\DTXFILES{%
- \DTX{unicode-math.dtx}%
- \DTX{unicode-math-preamble.dtx}%
- \DTX{unicode-math-pkgopt.dtx}%
- \DTX{unicode-math-msg.dtx}%
- \DTX{unicode-math-usv.dtx}%
- \DTX{unicode-math-setchar.dtx}%
- \DTX{unicode-math-mathtext.dtx}%
- \DTX{unicode-math-main.dtx}%
- \DTX{unicode-math-fontopt.dtx}%
- \DTX{unicode-math-fontparam.dtx}%
- \DTX{unicode-math-mathmap.dtx}%
- \DTX{unicode-math-mathtext.dtx}%
- \DTX{unicode-math-epilogue.dtx}%
- \DTX{unicode-math-primes.dtx}%
- \DTX{unicode-math-sscript.dtx}%
- \DTX{unicode-math-compat.dtx}%
- \DTX{unicode-math-alphabets.dtx}%
-}
-\generate{\file{unicode-math.sty}{\from{unicode-math.dtx}{preamble,load}}}
-\def\DTX#1{\from{#1}{package,XE\UMDEBUG}}
-\generate{\file{unicode-math-xetex.sty}{\DTXFILES}}
-\def\DTX#1{\from{#1}{package,LU\UMDEBUG}}
-\generate{\file{unicode-math-luatex.sty}{\DTXFILES}}
-\def\tempa{plain}\ifx\tempa\fmtname\endgroup\expandafter\bye\fi
-\endgroup
-\ProvidesFile{unicode-math.dtx}
-%</internal>
-%<package&!XE&!LU>\ProvidesPackage{unicode-math}
-%<package&XE>\ProvidesPackage{unicode-math-xetex}
-%<package&LU>\ProvidesPackage{unicode-math-luatex}
-%<*package>
- [2017/10/09 v0.8h Unicode maths in XeLaTeX and LuaLaTeX]
-%</package>
-%<*internal>
-\input{unicode-math-doc}
-%</internal>
-% \fi
-%
-% \clearpage
-% \part{Package implementation}
-% \parttoc
+% \section{Package declaration}
%
-% \section{The \texttt{unicode-math.sty} loading file}
-%
-% The prefix for \pkg{unicode-math} is \texttt{um}:
-% \begin{macrocode}
-%<@@=um>
-% \end{macrocode}
-%
-% The plain sty file is a stub which loads necessary packages and then bifurcates into
-% a XeTeX- or LuaTeX-specific version of the package.
-%
-% \begin{macrocode}
-%<*load>
-% \end{macrocode}
-% Bail early if necessary.
+% List all \texttt{dtx} files for
+% (a) the \texttt{ins} file and~(b) typesetting the code.
% \begin{macrocode}
-\ifdefined\XeTeXversion
- \ifdim\number\XeTeXversion\XeTeXrevision in<0.9998in%
- \PackageError{unicode-math}{%
- Cannot run with this version of XeTeX!\MessageBreak
- You need XeTeX 0.9998 or newer.%
- }\@ehd
- \fi
-\else\ifdefined\luatexversion
- \ifnum\luatexversion<64%
- \PackageError{unicode-math}{%
- Cannot run with this version of LuaTeX!\MessageBreak
- You need LuaTeX 0.64 or newer.%
- }\@ehd
- \fi
-\else
- \PackageError{unicode-math}{%
- Cannot be run with pdfLaTeX!\MessageBreak
- Use XeLaTeX or LuaLaTeX instead.%
- }\@ehd
-\fi\fi
+%<*dtx>
+\def\DTXFILES{
+ \DTX{unicode-math.dtx}
+ \DTX{um-code-base.dtx}
+ \DTX{um-code-opening.dtx}
+ \DTX{um-code-variables.dtx}
+ \DTX{um-code-api.dtx}
+ \DTX{um-code-ui.dtx}
+ \DTX{um-code-pkgopt.dtx}
+ \DTX{um-code-msg.dtx}
+ \DTX{um-code-usv.dtx}
+ \DTX{um-code-setchar.dtx}
+ \DTX{um-code-mathtext.dtx}
+ \DTX{um-code-main.dtx}
+ \DTX{um-code-fontopt.dtx}
+ \DTX{um-code-fontparam.dtx}
+ \DTX{um-code-mathmap.dtx}
+ \DTX{um-code-epilogue.dtx}
+ \DTX{um-code-primes.dtx}
+ \DTX{um-code-sscript.dtx}
+ \DTX{um-code-compat.dtx}
+ \DTX{um-code-alphabets.dtx}
+}
+%</dtx>
% \end{macrocode}
%
-% \paragraph{Packages}
-% Assuming people are running up-to-date packages.
-% \begin{macrocode}
-\RequirePackage{expl3,xparse,l3keys2e}
-\RequirePackage{fontspec}
-\RequirePackage{ucharcat}
-\RequirePackage{fix-cm} % avoid some warnings (still necessary? check...)
-\RequirePackage{filehook}
-% \end{macrocode}
-% \paragraph{Bifurcate}
+% Now exit if we're using plain \TeX; this would usually be the case when
+% loading this file with \texttt{unicode-math.ins}.
% \begin{macrocode}
-\ExplSyntaxOn
-\sys_if_engine_luatex:T { \RequirePackageWithOptions{unicode-math-luatex} }
-\sys_if_engine_xetex:T { \RequirePackageWithOptions{unicode-math-xetex} }
-\ExplSyntaxOff
+%<*dtx>
+\def\tmpa{plain}
+\ifx\tmpa\fmtname\expandafter\endinput\fi
+%</dtx>
% \end{macrocode}
%
+% Declare the package version and date. For loading this file directly
+% as a \texttt{dtx} file, \cs{fileversion} and \cs{filedate} will be set
+% correctly when using \cs{GetFileInfo} without having to load the package
+% directly.
% \begin{macrocode}
-%</load>
+%<base>\ProvidesPackage{unicode-math}
+%<package&XE>\ProvidesPackage{unicode-math-xetex}
+%<package&LU>\ProvidesPackage{unicode-math-luatex}
+%<*dtx>
+\ProvidesFile{unicode-math.dtx}
+%</dtx>
+%<*base|package>
+ [2017/11/18 v0.8i Unicode maths in XeLaTeX and LuaLaTeX]
+%</base|package>
% \end{macrocode}
-%
-% That's the end of the base package. The subsequent packages are derived from
-% the following ordered list of \texttt{dtx} files:
-% \begin{multicols}{3}
-% \begin{enumerate}
-% \def\DTX#1{\item \texttt{#1}}
-% \DTXFILES
-% \end{enumerate}
-% \end{multicols}
-%
-\endinput
+\endinput
+% /©
+%
+% ------------------------------------------------
+% The UNICODE-MATH package <wspr.io/unicode-math>
+% ------------------------------------------------
+% 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
+% (your choice): <http://www.latex-project.org/lppl/>.
+% ------------------------------------------------
+% Copyright 2006-2017 Will Robertson, LPPL "maintainer"
+% Copyright 2010-2017 Philipp Stephani
+% Copyright 2011-2017 Joseph Wright
+% Copyright 2012-2015 Khaled Hosny
+% ------------------------------------------------
+%
+% ©/