summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/unicode-math/unicode-math.dtx
blob: 1253cab5d496a5f7c51e3bedf31d6d5819477e03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
%%^^A%% unicode-math.dtx -- part of UNICODE-MATH <wspr.io/unicode-math>
%%^^A%% Metadata for the package code, including files and versioning

% \section{Package metadata}
%
% List all \texttt{dtx} files for (a) the \texttt{ins} file and~(b) typesetting the code.
%    \begin{macrocode}
%<*dtx>
\def\DTXFILES{
  \DTX{unicode-math.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-sym-commands.dtx}
  \DTX{um-code-alphabets.dtx}
  \DTX{um-code-primes.dtx}
  \DTX{um-code-sscript.dtx}
  \DTX{um-code-compat.dtx}
  \DTX{um-code-amsmath.dtx}
  \DTX{um-code-epilogue.dtx}
}
%</dtx>
%    \end{macrocode}
%
% Now exit if we're using plain \TeX\ when loading this file with \texttt{unicode-math.ins}.
%    \begin{macrocode}
%<*dtx>
\ifx\plainoutput\undefined\else\expandafter\endinput\fi
%</dtx>
%    \end{macrocode}
%
% Metadata for documentation; the title and authors of the package.
%    \begin{macrocode}
%<*dtx>
\title{
  Experimental Unicode mathematical typesetting:
  The \pkg{unicode-math} package
}
\author{
  \scshape Will Robertson\\
  \itshape Philipp Stephani, Joseph Wright, Khaled Hosny, and others\\
  \url{http://github.com/wspr/unicode-math}
}
%</dtx>
%    \end{macrocode}
%
% Declare the package version and date.
%    \begin{macrocode}
%<base>\RequirePackage{expl3}
%<base>\ProvidesExplPackage{unicode-math}
%<package&XE>\ProvidesExplPackage{unicode-math-xetex}
%<package&LU>\ProvidesExplPackage{unicode-math-luatex}
%<base|package>  {2020/01/31} {0.8q} {Unicode maths in XeLaTeX and LuaLaTeX}
%    \end{macrocode}
%
% Here the version and date are setup for typesetting the documentation.
%    \begin{macrocode}
%<*dtx>
\date{
  \def\filedate{2020/01/31}
  \def\fileversion{0.8q}
  \filedate \qquad \fileversion
}
%</dtx>
%    \end{macrocode}
%
% \section{The \texttt{unicode-math.sty} loading file}
%
% The \texttt{unicode-math.sty} file is a stub which loads necessary packages
% and then splits into a XeTeX- or LuaTeX-specific version of the package.
%
%    \begin{macrocode}
%<base>\sys_if_engine_luatex:T
%<base>  {
%<base>    \RequirePackageWithOptions{unicode-math-luatex}
%<base>    \endinput
%<base>  }
%<base>\sys_if_engine_xetex:T
%<base>  {
%<base>    \RequirePackageWithOptions{unicode-math-xetex}
%<base>    \endinput
%<base>  }
%<base>\msg_new:nnn {unicode-math} {unsupported-engine}
%<base>  { Cannot~ be~ run~ with~ \c_sys_engine_str!\\ Use~ XeLaTeX~ or~ LuaLaTeX~ instead. }
%<base>\msg_error:nn {unicode-math} {unsupported-engine}
%<base>\endinput
%    \end{macrocode}

\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-2019  Will Robertson, LPPL "maintainer"
% Copyright 2010-2017  Philipp Stephani
% Copyright 2011-2017  Joseph Wright
% Copyright 2012-2015  Khaled Hosny
% ------------------------------------------------
%
% ©/