summaryrefslogtreecommitdiff
path: root/macros/unicodetex/latex/unicode-math/um-code-msg.dtx
blob: c93809cf4f451ac7b6b9feebed10e46138445bf4 (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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
%%^^A%% um-code-msg.dtx -- part of UNICODE-MATH <wspr.io/unicode-math>
%%^^A%% Definitions of error, warning, and log messages.

% \section{Error messages}
% \seclabel{codemsg}
%
%    \begin{macrocode}
%<*package>
%    \end{macrocode}
%
%    \begin{macrocode}
\char_set_catcode_space:n {32}
%    \end{macrocode}
%
%    \begin{macrocode}
\@@_msg_new:nn {no-tfrac}
{
  Small fraction command \protect\tfrac\ not defined.\\
  Load amsmath or define it manually before loading unicode-math.
}
\@@_msg_new:nn {default-math-font}
{
  Defining the default maths font as '\l_@@_fontname_tl'.
}
\@@_msg_new:nn {setup-implicit}
{
  Setup alphabets: implicit mode.
}
\@@_msg_new:nn {setup-explicit}
{
  Setup alphabets: explicit mode.
}
\@@_msg_new:nn {alph-initialise}
{
  Initialising \@backslashchar math#1.
}
\@@_msg_new:nn {setup-alph}
{
  Setup alphabet: #1.
}
\@@_msg_new:nn {no-alphabet}
{
  I am trying to set up alphabet"#1" but there are no configuration settings for it.
  (See source file "unicode-math-alphabets.dtx" to debug.)
}
\@@_msg_new:nn {no-named-range}
 {
  I am trying to define new alphabet "#2" in range "#1", but range "#1" hasn't been defined yet.
 }
\@@_msg_new:nn {missing-alphabets}
 {
  Missing math alphabets in font "\fontname\g_@@_curr_font_cmd_tl" \\ \\
  \seq_map_function:NN \l_@@_missing_alph_seq \@@_print_indent:n
 }
\cs_new:Nn \@@_print_indent:n { \space\space\space\space #1 \\ }
\@@_msg_new:nn {macro-expected}
{
  I've expected that #1 is a macro, but it isn't.
}
\@@_msg_new:nn {wrong-meaning}
{
  I've expected #1 to have the meaning #3, but it has the meaning #2.
}
\@@_msg_new:nn {patch-macro}
{
  I'm going to patch macro #1.
}
\@@_msg_new:nn {mathtools-overbracket} {
  Using \token_to_str:N \overbracket\ and
         \token_to_str:N \underbracket\ from
	 `mathtools' package.\\
  \\
  Use \token_to_str:N \Uoverbracket\ and
       \token_to_str:N \Uunderbracket\ for
       original `unicode-math' definition.
}
\@@_msg_new:nn {mathtools-colon} {
  I'm going to overwrite the following commands from
  the `mathtools' package: \\ \\
  \ \ \ \ \token_to_str:N \dblcolon,
  \token_to_str:N \coloneqq,
  \token_to_str:N \Coloneqq,
  \token_to_str:N \eqqcolon. \\ \\
  Note that since I won't overwrite the other colon-like
  commands, using them will lead to inconsistencies.
}
\@@_msg_new:nn {colonequals} {
  I'm going to overwrite the following commands from
  the `colonequals' package: \\ \\
  \ \ \ \ \token_to_str:N \ratio,
          \token_to_str:N \coloncolon,
          \token_to_str:N \minuscolon, \\
  \ \ \ \ \token_to_str:N \colonequals,
          \token_to_str:N \equalscolon,
          \token_to_str:N \coloncolonequals. \\ \\
  Note that since I won't overwrite the other colon-like
  commands, using them will lead to inconsistencies.
  Furthermore, changing \token_to_str:N \colonsep \c_space_tl
  or \token_to_str:N \doublecolonsep \c_space_tl won't have
  any effect on the re-defined commands.
}
\@@_msg_new:nn {bad-cs-in-range}
  {
    Command `#1` in math range is not recognised as a maths symbol.
    Check file "unicode-math-table.tex" for allowable commands.
  }
\@@_msg_new:nn {legacy-char-not-supported}
  {
    Command `#1` is a legacy maths symbol that is not supported by unicode-math.
  }
\@@_msg_new:nn {range-not-bf-sf}
  {
    Range alphabets cannot include alphabets referring to `bf`, `sf`, or `bfsf`
    since they relate to input commands not output glyphs.
    Use `bfit` or `bfup` (etc.) to specify which.
  }
\@@_msg_new:nn {no-main-font}
  {
    No main maths font has been set up yet.\\If you simply want ‘the default’, use: \\
    \iow_indent:n {\token_to_str:N\setmathfont{latinmodern-math.otf}}
  }
\@@_msg_new:nn {not-ot-math}
  {
    The first font loaded by unicode-math must be an OpenType Math font (with script=math).
    If you simply want ‘the default’ before loading supplementary fonts over the top for certain
    ranges, use: \\
    \iow_indent:n {\token_to_str:N\setmathfont{latinmodern-math.otf}}
  }
%    \end{macrocode}
%
%    \begin{macrocode}
\char_set_catcode_ignore:n {32}
%    \end{macrocode}
%
%    \begin{macrocode}
%</package>
%    \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
% ------------------------------------------------
%
% ©/