Debian Codegraph @

texmf-dist/doc/latex/mathsemantics/mathsemantics-documentation.tex

raw
1 \documentclass[english,a4paper,DIV=12,parskip=full,oneside]{scrartcl}
2 \usepackage{mathsemantics-documentation-local}
3 \date{\today, v\,1.0.0}
4 \author{%
5 Ronny Bergmann\\[.25\baselineskip]%
6 \small\href{mailto:[email protected]}{[email protected]}\\[.125\baselineskip]
7 \small Department of Mathematical Sciences\\%
8 \small NTNU, Trondheim, Norway.%
9 \and
10 Roland Herzog\\[.25\baselineskip]%
11 \small\href{mailto:[email protected]}{[email protected]}\\[.125\baselineskip]
12 \small Interdisciplinary Center for Scientific Computing\\%
13 \small Heidelberg University, Germany.%
14 }
15 % Roland Herzog, Interdisciplinary Center for Scientific Computing, Heidelberg University, Germany
16 % Ronnny Bergmann, Department of Mathematical Sciences, NTNU, Trondheim, Norway
17 \title{MathSemantics.sty – Semantic Math Commands}
18 \begin{document}
19 \maketitle
20 \tableofcontents
21 \section{Introduction}
22 This package aims to provide semantic commands for ease of use in mathematics
23 to see better \emph{what} you semantically mean which should be distinct/split
24 from \emph{how} it is realised in \LaTeX.
25
26 The package is a spin-off and developed in the suite of packages from the former numapde-group in Chemnitz,
27 see the original repository at \url{https://gitlab.hrz.tu-chemnitz.de/numapde-public/numapde-latex}.
28
29 Throughout this documentation most commands are directly illustrated by examples, which are
30 both displayed as code (\faIcon{code} or \faIcon{code}$_{\hspace{-.5ex}\text{\color{TolMutedGreen}\faIcon{dollar-sign}}}$ for math examples) and its rendered result in \LaTeX\ (\faEye[regular]).
31 Two examples are\\
32 \mathCodeExample{\bbR}\\
33 and\\
34 \codeExample{\eg}
35
36 The aim is to first ease the use of some often used letters and low-level formats like
37 bold face letters \mathCodeExample{\bbR}, but also to provide high level commands that
38 make typing mathematics easier, for example using \mathCodeExample{\abs{\frac{1}{2}}} and \mathCodeExample{\abs[Big]{\frac{1}{2}}}
39 This is the main goal in \cref{sec:syntax} about syntactical commands for mathematics.
40 A next more support/helping section about abbreviations and names is \cref{sec:abbreviations}.
41
42 The first main part on general semantic commands is \cref{sec:semantic}.
43
44 While all these are loaded by default. The next part, \cref{sec:semantics-by-topic},
45 introduces semantic commands for specific topics.
46 These are given in separate sub-packages and can be loaded if you work in this area and want to use the commands.
47
48 The package should be loaded late, since it might overwrite a few commands,
49 currently most prominently \codeCommand{\d} which is overwritten by \mintinline{LaTeX}|cleveref| in case \mintinline{LaTeX}|minted| is loaded.
50 So for more flexibility, there is the alternative command \codeCommand{\dInt}.
51
52
53
54 \section{Package Options}
55 \label{sec:package-options}
56 \begin{commandlist}
57 \item[shortbb] use shorter notations for the blackboard-bold math letters \codeCommand{\C, \K, \N, \Q, \R, \Z}
58 \end{commandlist}
59
60 \section{Required Packages}
61 \label{sec:required-packages}
62 \begin{description}
63 \item[amssymb.sty] defines mathematical symbol fonts
64 \item[ifthen.sty] facilitates the definition of conditional commands
65 \item[ifxetex.sty] provides a way to check if a document is being processed by \XeTeX{} and company
66 \item[mathtools.sty] provides lots of improvements for math typesetting (includes \file{amsmath.sty})
67 \item[xifthen.sty] extends \file{ifthen.sty} by adding new boolean conditions
68 \item[xparse.sty] provides a high-level interface to define new commands
69 \item[xspace.sty] adds space depending on context
70 \end{description}
71
72
73 \section{Syntax}
74 \label{sec:syntax}
75
76 The \file{mathsemantics-syntax.sty} package provides mainly symbols and short commands, which can be used in semantic definitions for ease of notation.
77 They usually are rather simple commands without too many parameters.
78
79
80 \subsection{Letters}
81 \label{subsec:letters}
82
83 \begin{commandlist}
84 \item[ba\ldots bz] lower-case \textbf{b}old-face letters \mathCodeExample{\br, \bf}
85 \item[bA\ldots bZ] upper-case \textbf{b}old-face letters \mathCodeExample{\bR, \bF}
86 \item[balpha\ldots bomega] lower-case \textbf{b}old-face Greek letters \mathCodeExample{\balpha,\boldeta} (the latter being an exception)
87 \item[bAlpha\ldots bOmega] upper-case \textbf{b}old-face Greek letters \mathCodeExample{\bGamma,\bDelta}
88 \item[bnull] \textbf{b}old-face zero \mathCodeExample{\bnull}
89 \item[bone] \textbf{b}old-face one \mathCodeExample{\bone}
90 \item[cA\ldots cZ] upper-case \textbf{c}alligraphic letters \mathCodeExample{\cM, \cN}\\
91 \item[fA\ldots fZ] upper-case \textbf{f}raktur letters \mathCodeExample{\fM, \fN, \fX}\\
92 \item[sA\ldots sZ] upper-case \textbf{s}cript letters \mathCodeExample{\sM, \sN, \sX}\\
93 \item[va\ldots vz] lower-case letters with a \textbf{v}ector accent \mathCodeExample{\va,\vb}
94 \item[vA\ldots vZ] upper-case letters with a \textbf{v}ector accent \mathCodeExample{\vA,\vB}
95 \item[valpha\ldots vomega] lower-case Greek letters with a \textbf{v}ector accent \mathCodeExample{\valpha,\vbeta}
96 \item[vAlpha\ldots vOmega] upper-case Greek letters with a \textbf{v}ector accent \mathCodeExample{\vGamma,\vDelta}
97 \item[vnull] vector zero \mathCodeExample{\vnull}
98 \item[vone] vector one \mathCodeExample{\vone}
99 \item[bbA,...,bbZ] blackboard-bold uppercase letters\par\mathCodeExample{\bbC,\bbK,\bbN,\bbQ,\bbR,\bbS,\bbZ}
100 \\[.5\baselineskip] use the package option \codeCommand{shortbb} to introduce\\
101 \mathCodeExample{\C,\K,\N,\Q,\R,\Z} if not already defined elsewhere (\ie they are not redefined, only \emph{provided}.
102 \end{commandlist}
103
104 \subsection{Syntax Helpers}\label{subsec:syntax_helpers}
105
106 \begin{commandlist}
107 \item[enclspacing] provides spacing after the opening and before the closing delimiters for \codeCommand{\enclose}.
108 This is by default set to be empty.
109 \item[enclose] is a command which encloses some content in scaled delimiters.
110 It is meant as a helper to facilitate the definition of other commands.
111 Its syntax is \codeCommand{\enclose[#1]{#2}{#3}{#4}}.
112 The first (optional) argument is used to scale the delimiters to the standard amsmath sizes.%
113 \footnote{\mintinline{LaTeX}|big|, \mintinline{LaTeX}|Big|, \mintinline{LaTeX}|bigg|, \mintinline{LaTeX}|Bigg| or \mintinline{LaTeX}|auto|, which uses \mintinline{LaTeX}|left| and \mintinline{LaTeX}|right| as well as \mintinline{LaTeX}|none| to easily deactivate brackets.\label{footnote:amsmath_sizes}}
114 The second and fourth arguments specify the opening and closing delimiters, respectively.
115 The third argument is the content to be enclosed.
116 \par\mathCodeExample{\enclose{[}{\dfrac{1}{2}}{]}} % chktex 9
117 \par\mathCodeExample{\enclose[Big][{\dfrac{1}{2}}]} % chktex 9
118 \par\mathCodeExample{\enclose[auto]{[}{\dfrac{1}{2}}{]}} % chktex 9
119 \par\mathCodeExample{\enclose[none]{[}{\dfrac{1}{2}}{]}} % chktex 9
120
121 \textbf{Note 1.} \mintinline{LaTeX}|none| is merely meant for testing when having arguments
122 in brackets whether it is useful to omit them. You can also deactivate the absolute value
123 vertical lines this way, so \emph{use this option with care}.
124
125 \textbf{Note 2.} This command should normally be used only in the definition of other commands.
126 For instance, \codeCommand{\abs} is using it internally. See \codeCommand{\paren} for the nicer command to use
127 \item[enclspacingSet] provides spacing before and after the center delimiter \codeCommand{\encloseSet}.
128 This is by default set to \codeCommand{\,}.
129 \item[encloseSet] is a command which encloses some content in scaled delimiters.
130 It is meant as a helper to facilitate the definition of other commands.
131 Its syntax is \codeCommand{\encloseSet#1]{#2}{#3}{#4}{#5}{#6}}.
132 The first (optional) argument is used to scale the delimiters including the center one to the standard amsmath sizes.\cref{footnote:amsmath_sizes}
133 The second and sixth arguments specify the opening and closing delimiters, respectively.
134 The fourth argument specifies the center delimiter and
135 The third and fifth argument are the content to be enclosed.
136 \par\mathCodeExample{\encloseSet[big]{\{}{x\in\bbR}{|}{x>5}{\}}} % chktex 9
137 \par\mathCodeExample{\encloseSet[auto]{\{}{x\in\bbR}{|}{x>\dfrac{1}{2}}{\}}} % chktex 9
138 \\
139 \textbf{Note.} This command should normally be used only in the definition of other commands.
140 For instance, \codeCommand{\setDef} is using it internally.
141 \item[paren] is an alternative to \codeCommand{\enclose}, with a different ordering of arguments.
142 Its syntax is \codeCommand{\paren[#1]{#2}{#3}{#4}}, which is simply mapped to \codeCommand{\enclose[#1]{#2}{#4}{#3}}.
143 \par\mathCodeExample{\paren[Big]{[}{]}{\dfrac{1}{2}}}
144 \par\mathCodeExample{\paren[Big][]{\dfrac{1}{2}}}
145 \par\mathCodeExample{\paren[auto]{[}{]}{\dfrac{1}{2}}}
146 \end{commandlist}
147
148 \subsection{Spacing Helpers}\label{subsec:spacing_helpers}
149
150 \begin{commandlist}
151 \item[clap] complements the standard \LaTeX\ commands \codeCommand{\llap} and \codeCommand{\rlap}.
152 These commands horizontally smash their arguments.
153 \par\codeExample{Let us \llap{smash} something.}
154 \par\codeExample{Let us \clap{smash} something.}
155 \par\codeExample{Let us \rlap{smash} something.}
156 \item[mathllap] corresponds to \codeCommand{\llap} in math mode.
157 \par\mathCodeExample{\sum_{\mathllap{1\le i\le j\le n}} X_{ij}}
158 \item[mathclap] corresponds to \codeCommand{\clap} in math mode.
159 \par\mathCodeExample{\sum_{\mathclap{1\le i\le j\le n}} X_{ij}}
160 \item[mathrlap] corresponds to \codeCommand{\rlap} in math mode.
161 \par\mathCodeExample{\sum_{\mathrlap{1\le i\le j\le n}} X_{ij}}
162 \item[mrep] stands for \emph{math replace} and it typesets an argument while reserving the space for another.
163 Its syntax is \codeCommand{\mrep[#1]{#2}{#3}}
164 The first (optional) argument is one of \codeCommand{{l,c,r}} and it is used to define the alignment.
165 \codeCommand{c} is the default.
166 \par\mathCodeExample{\mrep[l]{1}{-1}-1}
167 \par\mathCodeExample{\mrep[c]{1}{-1}-1}
168 \par\mathCodeExample{\mrep[r]{1}{-1}-1}
169 \end{commandlist}
170
171 \section{Abbreviations}
172 \label{sec:abbreviations}
173 \subsection{English}
174 \begin{commandlist}
175 \item[aa] almost all \codeExample{\aa}
176 \item[ale] almost everywhere \codeExample{\ale}
177 \item[eg] exempli gratia (for example) \codeExample{\eg}
178 \item[etc] et cetera (and so on) \codeExample{\etc}
179 \item[ie] id est (id est) \codeExample{\ie}
180 \item[iid] independent and identically distributed \codeExample{\iid}
181 \item[spd] symmetric positive definite \codeExample{\spd}
182 \item[st] such that or subject to \codeExample{\st}
183 \item[wrt] with respect to \codeExample{\wrt}
184 \end{commandlist}
185 \subsection{German}
186 \begin{commandlist}
187 \item[bspw] beispielsweise (for example) \codeExample{\bspw}
188 \item[bzgl] bezüglich (with regard to) \codeExample{\bzgl}
189 \item[bzw] beziehungsweise (respectively) \codeExample{\bzw}
190 \item[Dah] Das heißt (That is, beginning of phrase) \codeExample{\Dah}
191 \item[dah] das heißt (that is) \codeExample{\dah}
192 \item[evtl] eventuell (possibly) \codeExample{\evtl}
193 \item[fs] fast sicher \codeExample{\fs}
194 \item[fue] fast überall \codeExample{\fue}
195 \item[IA] Im Allgemeinen (beginning of phrase) \codeExample{\IA}
196 \item[iA] im Allgemeinen \codeExample{\iA}
197 \item[idR] in der Regel \codeExample{\idR}
198 \item[IdR] In der Regel (beginning of phrase) \codeExample{\IdR}
199 \item[iW] im Wesentlichen \codeExample{\iW}
200 \item[IW] Im Wesentlichen (beginning of phrase) \codeExample{\IW}
201 \item[mE] meines Erachtens \codeExample{\mE}
202 \item[oBdA] ohne Beschränkung der Allgemeinheit \codeExample{\oBdA}
203 \item[OBdA] ohne Beschränkung der Allgemeinheit (beginning of phrase) \par\codeExample{\OBdA}
204 \item[og] oben genannt \codeExample{\og}
205 \item[oae] oder ähnliche \codeExample{\oae}
206 \item[so] siehe oben \codeExample{\so}
207 \item[ua] unter anderem \codeExample{\ua}
208 \item[Ua] Unter anderem (beginning of phrase) \codeExample{\Ua}
209 \item[ug] unten genannt \codeExample{\ug}
210 \item[usw] und so weiter (and so on) \justCodeExample{\usw}
211 \item[uU] unter Umständen \codeExample{\uU}
212 \item[UnU] Unter Umständen (beginning of phrase) \codeExample{\UnU}
213 \item[vgl] vergleiche (compare) \codeExample{\vgl}
214 \item[zB] zum Beisiel \codeExample{\zB}
215 \item[ZB] Zum Beispiel (beginning of phrase) \codeExample{\ZB}
216 \item[zHd] zu Händen \codeExample{\zHd}
217 \end{commandlist}
218
219 \section{Names}
220 \begin{commandlist}
221 \item[adimat] \justCodeExample{\adimat}
222 \item[ampl] \justCodeExample{\ampl}
223 \item[BibTeX] \justCodeExample{\BibTeX}
224 \item[BibLaTeX] \justCodeExample{\BibLaTeX}
225 \item[cg] \justCodeExample{\cg}
226 \item[cpp] \justCodeExample{\cpp}
227 \item[cppmat] \justCodeExample{\cppmat}
228 \item[dolfin] \justCodeExample{\dolfin}
229 \item[dolfinplot] \justCodeExample{\dolfinplot}
230 \item[dolfinadjoint] \justCodeExample{\dolfinadjoint}
231 \item[doxygen] \justCodeExample{\doxygen}
232 \item[femorph] \justCodeExample{\femorph}
233 \item[fenics] \justCodeExample{\fenics}
234 \item[ffc] \justCodeExample{\ffc}
235 \item[fmg] \justCodeExample{\fmg}
236 \item[fortran] \justCodeExample{\fortran}
237 \item[gitlab] \justCodeExample{\gitlab}
238 \item[gmres] \justCodeExample{\gmres}
239 \item[gmsh] \justCodeExample{\gmsh}
240 \item[ipopt] \justCodeExample{\ipopt}
241 \item[libsvm] \justCodeExample{\libsvm}
242 \item[liblinear] \justCodeExample{\liblinear}
243 \item[macmpec] \justCodeExample{\macmpec}
244 \item[manifoldsjl] \justCodeExample{\manifoldsjl}
245 \item[manopt] \justCodeExample{\manopt}
246 \item[manoptjl] \justCodeExample{\manoptjl}
247 \item[mathematica] \justCodeExample{\mathematica}
248 \item[matlab] \justCodeExample{\matlab}
249 \item[maple] \justCodeExample{\maple}
250 \item[maxima] \justCodeExample{\maxima}
251 \item[metis] \justCodeExample{\metis}
252 \item[minres] \justCodeExample{\minres}
253 \item[mshr] \justCodeExample{\mshr}
254 \item[mvirt] \justCodeExample{\mvirt}
255 \item[numpy] \justCodeExample{\numpy}
256 \item[paraview] \justCodeExample{\paraview}
257 \item[pdflatex] \justCodeExample{\pdflatex}
258 \item[perl] \justCodeExample{\perl}
259 \item[petsc] \justCodeExample{\petsc}
260 \item[pymat] \justCodeExample{\pymat}
261 \item[python] \justCodeExample{\python}
262 \item[scikit] \justCodeExample{\scikit}
263 \item[scikitlearn] \justCodeExample{\scikitlearn}
264 \item[scipy] \justCodeExample{\scipy}
265 \item[sphinx] \justCodeExample{\sphinx}
266 \item[subgmres] \justCodeExample{\subgmres}
267 \item[subminres] \justCodeExample{\subminres}
268 \item[superlu] \justCodeExample{\superlu}
269 \item[svmlight] \justCodeExample{\svmlight}
270 \item[tritetmesh] \justCodeExample{\tritetmesh}
271 \item[ufl] \justCodeExample{\ufl}
272 \item[uqlab] \justCodeExample{\uqlab}
273 \item[viper] \justCodeExample{\viper}
274 \item[xml] \justCodeExample{\xml}
275 \end{commandlist}
276
277 \section{Semantic Commands}
278 \label{sec:semantic}
279 Build upon Syntax from \cref{sec:syntax} this part provides semantic mathematical commands.
280
281 \begin{commandlist}
282 \item[abs] absolute value.
283 Its syntax is \codeCommand{\abs[#1]{#2}}.
284 The first (optional) argument is used to scale the delimiters enclosing the arguments to the standard amsmath sizes.\cref{footnote:amsmath_sizes}
285 The second argument denotes the argument.
286 \par\mathCodeExample{\abs{a}}
287 \par\mathCodeExample{\abs[Big]{\dfrac{1}{2}}}
288 \par\mathCodeExample{\abs[auto]{\dfrac{1}{2}}}
289 \item[aff] affine hull \mathCodeExample{\aff}
290 \item[arcosh] area hyperbolic cosine \mathCodeExample{\arcosh}
291 \item[arcoth] area hyperbolic cotangens \mathCodeExample{\arcoth}
292 \item[argmax] maximizer of a function
293 \mathCodeExample{\argmax_{x \in \bbR} f(x)} % chktex 6
294 \item[Argmax] set of maximizers of a function
295 \mathCodeExample{\Argmax_{x \in \bbR} f(x)} % chktex 6
296 \item[argmin] minimizer of a function
297 \mathCodeExample{\argmin_{x \in \bbR} f(x)} % chktex 6
298 \item[Argmin] set of minimizers of a function
299 \mathCodeExample{\Argmin_{x \in \bbR} f(x)} % chktex 6
300 \item[arsinh] area hyperbolic cotangens \mathCodeExample{\arsinh}
301 \item[artanh] area hyperbolic tangens \mathCodeExample{\artanh}
302 \item[bdiv] bold (meaning: vector) divergence of a matrix-valued function \mathCodeExample{\bdiv}
303 \item[ceil] integer larger or equal to input.
304 Its syntax is \codeCommand{\ceil[#1]{#2}}.
305 The first (optional) argument is used to scale the delimiters enclosing the arguments to the standard amsmath sizes.\cref{footnote:amsmath_sizes}
306 The second argument denotes the argument.
307 \par\mathCodeExample{\ceil{a}}
308 \par\mathCodeExample{\ceil[Big]{\dfrac{1}{2}}}
309 \item[clconv] closure of the convex hull of a set \mathCodeExample{\clconv M}
310 \item[closure] closure of a set \mathCodeExample{\closure M}
311 \item[cofac] cofactor matrix \mathCodeExample{\cofac(A)}
312 \item[compactly] compact embedding of topological spaces \mathCodeExample{\compactly}
313 \item[cone] conic hull \mathCodeExample{\cone}
314 \item[conv] convex hull of a set \mathCodeExample{\conv M}
315 \item[corresponds] binary operator for correspondence \mathCodeExample{A\corresponds B}
316 \item[cov] covariance \mathCodeExample{\cov}
317 \item[curl] the curl operator \mathCodeExample{\curl}
318 \item[d, dInt] integral symbol with prepended space, as in
319 \par\mathCodeExample{\int_\bbR \exp(-x^2) \d x}
320 \\Since \codeCommand{\d} is often overridden, \codeCommand{\dInt} is the safe alternative
321 \item[dev] deviator of a matrix \mathCodeExample{\dev A}
322 \item[diag] diagonal matrix composed of entries in a vector, or diagonal of a matrix
323 \par\mathCodeExample{\diag(a)}
324 \par\mathCodeExample{\diag(A)}
325 \item[diam] diameter \mathCodeExample{\diam(M)}
326 \item[distOp] the mathematical operator denoting the distance
327 \par\mathCodeExample{\distOp}
328 \item[dist] distance from a point to a set.
329 Its syntax is \codeCommand{\dist[#1]{#2}{#3}} or \codeCommand{\dist[#1]{#2}}.
330 The first (optional) argument is used to scale the parentheses enclosing the argument to the standard amsmath sizes.\cref{footnote:amsmath_sizes}
331 The second argument denotes the set.
332 The third argument denotes the point; it can be omitted.
333 The command \codeCommand{\distOp} is used to typeset the operator.
334 \par\mathCodeExample{\dist[Big]{\cC}{\dfrac{x}{2}}}
335 \par\mathCodeExample{\dist{\cC}}
336 \par\mathCodeExample{\dist}
337 \item[div] divergence \mathCodeExample{\div}
338 \item[Div] (row-wise) divergence \mathCodeExample{\Div}
339 \item[dom] domain \mathCodeExample{\dom}
340 \item[dotcup] distinct union \mathCodeExample{\dotcup}
341 \item[dprod] double contraction of matrices $A \dprod B = \sum_{i,j} A_{ij} B_{ij} = \trace(A^\transp B)$
342 \par\mathCodeExample{A \dprod B}
343 \item[dual] duality pairing.
344 Its syntax is \codeCommand{\dual[#1]{#2}{#3}}.
345 The first (optional) argument is used to scale the delimiters enclosing the arguments to the standard amsmath sizes.\cref{footnote:amsmath_sizes}
346 The second argument denotes the first factor.
347 The third argument denotes the second factor.
348 \par\mathCodeExample{\dual{x^*}{x}}
349 \par\mathCodeExample{\dual[Big]{x^*}{\dfrac{1}{2}}}
350 \item[e] Euler's number \mathCodeExample{\e}
351 \item[embed] embedding of topological spaces \mathCodeExample{\embed}
352 \item[embeds] synonym of \codeCommand{\embed} \mathCodeExample{\embeds}
353 \item[epi] epigraph \mathCodeExample{\epi}
354 \item[eR] extended real line \mathCodeExample{\eR = \bbR \cup \{\pm \infty\}}
355 \item[essinf] essential infimum \par \mathCodeExample{\displaystyle\essinf_{x \in \bbR} f(x)} % chktex 1 chktex 6
356 \item[esssup] essential supremum \par \mathCodeExample{\displaystyle\esssup_{x \in \bbR} f(x)} % chktex1 chktex 6
357 \item[file] typesets a file name (using \codeCommand{nolinkurl})
358 \par\codeExample{\file{test.txt}}
359 \item[floor] integer less or equal to input.
360 Its syntax is \codeCommand{\floor[#1]{#2}}.
361 The first (optional) argument is used to scale the delimiters enclosing the arguments to the standard amsmath sizes.\cref{footnote:amsmath_sizes}
362 The second argument denotes the argument.
363 \par\mathCodeExample{\floor{a}}
364 \par\mathCodeExample{\floor[Big]{\dfrac{1}{2}}}
365 \item[grad] gradient (of a function) \mathCodeExample{\grad F} %chktex 1
366 \item[Graph] graph of a function \mathCodeExample{\Graph}
367 \item[id] identity operator \mathCodeExample{\id}
368 \item[image] image of a function \mathCodeExample{\image}
369 \item[inj] injectivity (radius) \mathCodeExample{\inj}
370 \item[inner] inner product.
371 Its syntax is \codeCommand{\inner[#1]{#2}{#3}}.
372 The first (optional) argument is used to scale the parentheses enclosing the arguments to the standard amsmath sizes.\cref{footnote:amsmath_sizes}
373 The second argument denotes the first factor.
374 The third argument denotes the second factor.
375 \par\mathCodeExample{\inner{a}{b}}
376 \par\mathCodeExample{\inner[Big]{a}{\dfrac{b}{2}}}
377 \item[interior] \mathCodeExample{\interior}
378 \item[jump] jump of a quantity, \eg, across a finite element facet.
379 Its syntax is \codeCommand{\jump[#1]{#2}}.
380 The first (optional) argument is used to scale the delimiters enclosing the arguments to the standard amsmath sizes.\cref{footnote:amsmath_sizes}
381 The second argument denotes the argument.
382 \par\mathCodeExample{\jump{a}}
383 \par\mathCodeExample{\jump[Big]{\dfrac{1}{2}}}
384 \item[laplace] the Laplace operator \mathCodeExample{\laplace u} %chktex 1
385 \item[lin] linear hull of a set of vectors \mathCodeExample{\lin\{v_1,v_2\}}
386 \item[norm] norm of a vector.
387 Its syntax is \codeCommand{\norm[#1]{#2}}.
388 The first (optional) argument is used to scale the delimiters enclosing the arguments to the standard amsmath sizes.\cref{footnote:amsmath_sizes}
389 The second argument denotes the argument.
390 \par\mathCodeExample{\norm{a}}
391 \par\mathCodeExample{\norm[Big]{\dfrac{c}{2}}}
392 \par\mathCodeExample{\norm[auto]{\dfrac{c}{2}}}
393 %
394 \item[projOp] the mathematical operator denoting the projection \mathCodeExample{\projOp}
395 \par\mathCodeExample{\projOp}
396 \item[proj] projection onto a set.
397 Its syntax is \codeCommand{\proj[#1]{#2}(#3)} or \codeCommand{\proj[#1]{#2}}.
398 The first (optional) argument is used to scale the parentheses enclosing the argument to the standard amsmath sizes.\cref{footnote:amsmath_sizes}
399 The second argument denotes the set and can also be left out.
400 The third argument denotes the point; it can be omitted.
401 The command \codeCommand{\projOp} is used to typeset the operator.
402 \par\mathCodeExample{\proj}
403 \par\mathCodeExample{\proj(x)}
404 \par\mathCodeExample{\proj{\cC}}
405 \par\mathCodeExample{\proj{\cC}(x)}
406 \par\mathCodeExample{\proj[Big](\dfrac{x}{2})}
407 \par\mathCodeExample{\proj[Big]{\cC}(\dfrac{x}{2})}
408 \item[proxOp] the mathematical operator denoting the proximal map
409 \par\mathCodeExample{\proxOp}
410 \item[prox] the proximal operator of a function.
411 Its syntax is \codeCommand{\prox[#1]{#2}(#3)} or \codeCommand{\prox[#1]{#2}}.
412 The first (optional) argument is used to scale the parentheses enclosing the argument to the standard amsmath sizes.\cref{footnote:amsmath_sizes}
413 The second argument denotes the set.
414 The third argument denotes the point; it can be omitted.
415 The command \codeCommand{\proxOp} is used to typeset the operator.
416 \par\mathCodeExample{\prox}
417 \par\mathCodeExample{\prox{\lambda F}} % chktex 1
418 \par\mathCodeExample{\prox{\lambda F}(x)} % chktex 1
419 \par\mathCodeExample{\prox[auto]{\lambda F}(\dfrac{x}{2})} %chktex 1
420 \item[rank] rank (of a matrix) \mathCodeExample{\rank}
421 \item[range] range of some operator \mathCodeExample{\range}
422 \item[restr] restriction/evaluation.
423 Its syntax is \codeCommand{\restr[#1]{#2}{#3}}.
424 The first (optional) argument is used to scale the deliminters enclosing the arguments to the standard amsmath sizes.\cref{footnote:amsmath_sizes}
425 The second argument denotes the argument to be restricted/evaluated.
426 The third argument denotes the restriction set/evaluation point.
427 \par\mathCodeExample{\restr[auto]{\frac{\d}{\d t}(f \circ \gamma)(t)}{t=0}}
428 \item[ri] relative interior \mathCodeExample{\ri}
429
430
431 \item[setDef] define a set, where \codeCommand{\setMid} serves as the center divider.
432 Its syntax is \codeCommand{\setDef[#1]{#2}{#3}}.
433 The first (optional) argument is used to scale the parentheses enclosing the argument and the center divider to the standard amsmath sizes.\cref{footnote:amsmath_sizes}
434 The second argument denotes the left part of the definition, naming the potential elements of the set being defined.
435 The third argument denotes the condition to include the elements in the set.
436 \par\mathCodeExample{\setDef{x\in\bbR}{x>5}}\\
437 \par\mathCodeExample{\setDef[Big]{x\in\bbR}{x>\dfrac{1}{2}}}
438 \item[setMid] divider within \codeCommand{\setDef} (set definitions).
439 \\This defaults to \mathCodeExample{\setMid}.
440 \item[sgn] sign \mathCodeExample{\sgn}
441 \item[Sgn] sign (set valued) \mathCodeExample{\Sgn}
442 \item[supp] support (of a function) \mathCodeExample{\supp F} % chktex 1
443 \item[sym] symmetric part (of a matrix) \mathCodeExample{\sym A} % chktex 1
444 \item[trace] trace (of a matrix) \mathCodeExample{\trace A} % chktex 1
445 \item[transp] transpose of a vector or matrix.
446 \par\mathCodeExample{A^\transp}
447 \item[transposeSymbol] symbol to use for the transpose
448 \par\mathCodeExample{\transposeSymbol}
449 \item[var] variance \mathCodeExample{\var}
450 \item[weakly] weak convergence of a sequence \mathCodeExample{\weakly}
451 \item[weaklystar] weak star convergence of a sequence \mathCodeExample{\weaklystar}
452 \end{commandlist}
453
454 \section{Additional Semantics by Topic}\label{sec:semantics-by-topic}
455
456 While semantic commands might be suitable for all mathematical topics, the following subsections collect commands which are most useful in one particular mathematical area and hence might clutter the general semantic file.
457 Any semantic topic files should always build on \file{mathsemantics-semantic.sty}.
458
459
460 \subsection{Manifolds: \texorpdfstring{\file{mathsemantics-manifolds.sty}}{mathsemantics-manifolds.sty}}\label{subsec:manifolds}
461
462 The semantic file \file{mathsemantics-manifolds.sty} collects definitions and notations for Riemannian manifolds.
463 \begin{commandlist}
464 \item[bitangentSpace] the bi tangent space.
465 Its syntax is \codeCommand{\bitangent{#1}[#2]}.
466 The first argument denotes the base point.
467 The second (optional) argument denotes the manifold, which defaults to $\cM$.
468 \par\mathCodeExample{\bitangentSpace{p}}
469 \par\mathCodeExample{\bitangentSpace{q}[\cN]}
470 \item[bitangentSpaceSymbol] the symbol used within \codeCommand{\bitangentSpace}.
471 \par\mathCodeExample{\bitangentSpaceSymbol}
472 \item[cotangentSpace] the cotangent space.
473 Its syntax is \codeCommand{\cotangentSpace{#1}[#2]}.
474 The first argument denotes the base point.
475 The second (optional) argument denotes the manifold, which defaults to $\cM$.
476 \par\mathCodeExample{\cotangentSpace{p}}
477 \par\mathCodeExample{\cotangentSpace{q}[\cN]}
478 \item[cotangentBundle] the cotangent bundle.
479 Its syntax is \codeCommand{\cotangentBundle[#1]}.
480 The (optional) argument denotes the manifold, which defaults to $\cM$.
481 \par\mathCodeExample{\cotangentBundle}
482 \par\mathCodeExample{\cotangentBundle[\cN]}
483 \item[cotangentSpaceSymbol] the symbol used within \codeCommand{\cotangent}.
484 \par\mathCodeExample{\cotangentSpaceSymbol}
485 \item[covariantDerivative] is the covariant derivative.
486 Its syntax is \codeCommand{\covariantDerivative{#1}[#2]}.
487 The first argument is the vector (or vector field) determining the direction of differentiation.
488 The second (optional) argument denotes the tensor field being differentiated.
489 \par\mathCodeExample{\covariantDerivative{X}{Y}}
490 \item[covariantDerivativeSymbol]\hspace{4em}the symbol used for the covariant derivative \codeCommand{\covariantDerivative}.
491 \par\mathCodeExample{\covariantDerivativeSymbol}
492 \item[exponential] the exponential map.
493 Its syntax is \codeCommand{\exponential[#1]{#2}(#3)}.
494 The first argument can be used to scale the third.
495 The second argument denotes the base point and is mandatory.
496 The third argument denotes the tangent vector, which is optional, but if provided, the argument is put in brackets.
497 The first following example illustrates the case, where no brackets are put.
498 Note that the space is mandatory.
499 \par\mathCodeExample{\exponential{p}X}
500 \par\mathCodeExample{\exponential{p}(X)}
501 \par\mathCodeExample{\exponential[Big]{p}(\frac{X}{2})}
502 \item[expOp] the symbol used within the \codeCommand{\exponential}.
503 \par\mathCodeExample{\expOp}
504 \item[geodesic] a geodesic.
505 Its syntax is \codeCommand{\geodesic|#1|<#2>[#3]{#4}{#5}(#6)}.% chktex 6
506 The first argument can be used to use a different symbol (locally) for the geodesic
507 The second (optional) argument is used to modify the style of the geodesic (\codeCommand{s}ymbol, \codeCommand{l}ong, \codeCommand{a}rc or \codeCommand{p}lain, where the last is the default)
508 The third (optional) argument is used to scale the parentheses enclosing the argument to the standard amsmath sizes.\cref{footnote:amsmath_sizes}
509 It is ignored when the sixth argument is not given.
510 The fourth argument denotes the initial point (at $t = 0$).
511 The fifth argument denotes either the final point (at $t = 1$) for types~\codeCommand{l} and \codeCommand{a}, or the initial tangent vector for type~\codeCommand{p}.
512 The sixth (optional) argument denotes the evaluation point.
513 The command \codeCommand{\geodesicSymbol} is used to typeset the geodesic symbol default (i.e. globally)
514 % \begin{itemize}
515 % \item a style might be given in \lstinline!<>! as first, optional argument
516 % \item the second argument in \lstinline![]! is again scaling of the argument (ignored for \lstinline!s! or if the last is not given)
517 % \item the third and fourth in usual curly braces are also optional and refer to either start and end point or start point and tangent,
518 % \item the argument of the geodesic is given in \lstinline!()! as fifth argument
519 % \end{itemize}
520 % Note that omitting the third and fourth might lead to undesired print, especially for \lstinline!l!ong.
521 \par\mathCodeExample{\geodesic<s>}
522 \par\mathCodeExample{\geodesic<s>(t)} %chktex 36
523 \par\mathCodeExample{\geodesic<l>{p}{q}}
524 \par\mathCodeExample{\geodesic<l>{p}{q}(t)} %chktex 36
525 \par\mathCodeExample{\geodesic<a>{p}{q}}
526 \par\mathCodeExample{\geodesic<a>[Big]{p}{q}(\dfrac{t}{2})} %chktex 36
527 \par\mathCodeExample{\geodesic<p>{p}{X}}
528 \par\mathCodeExample{\geodesic<p>{p}{X}(t)} %chktex 36
529 \par\mathCodeExample{\geodesic<p>[Big]{p}{X}(\dfrac{t}{2})} %chktex 36
530 \par\mathCodeExample{\geodesic[big]{p}{X}((1-t)t)} %chktex 36
531 \par\mathCodeExample{\geodesic|\dot\gamma|{p}{X}(t)} %chktex 36
532 \item[geodesicSymbol] symbol to use for the geodesic in \codeCommand{\geodesic}
533 \par\mathCodeExample{\geodesicSymbol}
534 \item[inverseRetract] use an inverse retraction, the arguments are similar to \codeCommand{\logarithm} but use the \codeCommand{\retractionSymbol}
535 \par\mathCodeExample{\inverseRetract{p}q}
536 \par\mathCodeExample{\inverseRetract{p}(q)}
537 \par\mathCodeExample{\inverseRetract[Big]{p}(q)}
538 \item[logarithm] the logarithmic map.
539 Its syntax is \codeCommand{\logarithm[#1]{#2}(#3)}.
540 The first argument can be used to scale the third.
541 The second argument denotes the base point and is mandatory.
542 The third argument denotes another point, which is optional, but
543 if provided, the argument is put in brackets. The first following example
544 illustrates the case, where no brackets are put. Note that the space is
545 mandatory.
546 \par\mathCodeExample{\logarithm{p}q}
547 \par\mathCodeExample{\logarithm{p}(q)}
548 \par\mathCodeExample{\logarithm[Big]{p}(q)}
549 \item[logOp] the symbol used within the \codeCommand{\logarithm}.
550 \par\mathCodeExample{\logOp}
551 \item[parallelTransport] the parallel transport.\\
552 Its syntax is \codeCommand{\parallelTransport[#1]{#2}{#3}(#4){5}}.
553 The first (optional) argument is used to scale the parentheses enclosing the argument \#4.\cref{footnote:amsmath_sizes}
554 The second argument is the start point of parallel transport on a manifold.
555 The third argument is the end point of parallel transport on a manifold.
556 The fourth (optional) argument is the tangent vector that is transported.
557 Putting it in brackets enables the scaling by the first argument.
558 The fifth (optional) argument specifies an exponent, for example to parallel transport along a curve $c$
559 \par\mathCodeExample{\parallelTransport{p}{q}X}
560 \par\mathCodeExample{\parallelTransport{p}{q}(X)}
561 \par\mathCodeExample{\parallelTransport[big]{p}{q}(X)}
562 \par\mathCodeExample{\parallelTransport{p}{q}(X)[c]}
563 \par\mathCodeExample{\parallelTransport{p}{q}[c]}
564 \item[parallelTransportDir] similar to \codeCommand{\parallelTransport}, but the third
565 argument is a direction to transport into. This can be rewritten to the classical notation
566 applying an exponential map from the base point (\#2) to th direction (\#3).
567 The fifth (optional) argument specifies an exponent, for example to parallel transport along a curve $c$
568 \par\mathCodeExample{\parallelTransportDir{p}{Y}X}
569 \par\mathCodeExample{\parallelTransportDir{p}{Y}(X)}
570 \par\mathCodeExample{\parallelTransportDir[big]{p}{Y}(X)}
571 \par\mathCodeExample{\parallelTransportDir{p}{Y}(X)[c]}
572 \par\mathCodeExample{\parallelTransportDir{p}{Y}[c]}
573 \item[parallelTransportSymbol]\hspace*{2em}the symbol to use within \codeCommand{\parallelTransport} and \codeCommand{\parallelTransportDir}
574 \par\mathCodeExample{\parallelTransportSymbol}
575 \item[retract] a retraction.\\
576 Its syntax is \codeCommand{\retract[#1]{#2}{#3}}.
577 The first argument can be used to scale the third.
578 The second argument denotes the base point.
579 The third argument denotes the tangent vector, which is optional, but
580 if provided, the argument is put in brackets. The first following example
581 illustrates the case, where no brackets are put. Note that the space is
582 mandatory.
583 \par\mathCodeExample{\retract{p}X}
584 \par\mathCodeExample{\retract{p}(X)}
585 \par\mathCodeExample{\retract[Big]{p}(\frac{X}{2})}
586 \item[retractionSymbol] symbol to use for a retraction and an inverse retraction,
587 see \codeCommand{\retract} and \codeCommand{\inverseRetract}.
588 \par\mathCodeExample{\retractionSymbol}
589 \item[riemannian] the Riemannian metric (family of inner products on the tangent spaces).
590 Its syntax is \codeCommand{\riemannian[#1]{#2}{#3}[#4]}.
591 The first (optional) argument is used to scale the parentheses enclosing the argument to the standard amsmath sizes.\cref{footnote:amsmath_sizes}
592 The second argument denotes the first factor.
593 The third argument denotes the second factor.
594 The fourth (optional) argument denotes the base point of the tangent space.
595 \par\mathCodeExample{\riemannian{X_1}{X_2}}
596 \par\mathCodeExample{\riemannian{Y_1}{Y_2}[q]}
597 \par\mathCodeExample{\riemannian[Big]{\dfrac{1}{2}X_1}{X_2}[p]}
598 \item[riemanniannorm] the norm induced by the Riemannian metric.\\
599 Its syntax is \codeCommand{\riemanniannorm[#1]{#2}[#3]}.
600 The first (optional) argument is used to scale the parentheses enclosing the argument to the standard amsmath sizes.\cref{footnote:amsmath_sizes}
601 The second argument denotes the argument.
602 The third (optional) argument denotes the base point of the tangent space.
603 \par\mathCodeExample{\riemanniannorm{X}}
604 \par\mathCodeExample{\riemanniannorm{Y}[p]}
605 \par\mathCodeExample{\riemanniannorm[Big]{\dfrac{1}{2}X}[p]}
606 \item[secondCovariantDerivative]\hspace*{3em}is the second-order covariant derivative.\\
607 Its syntax is \codeCommand{\secondCovariantDerivative{#1}{#2}[#3]}.
608 The first argument is the vector (or vector field) determining the first direction of differentiation.
609 The second argument is the vector (or vector field) determining the second direction of differentiation.
610 The third (optional) argument denotes the tensor field being differentiated.
611 \par\mathCodeExample{\secondCovariantDerivative{X}{Y}{T}}
612 \item[secondCovariantDerivativeSymbol]\hspace*{6em} the symbol used for the second covariant derivative.\\
613 This is used within \codeCommand{\secondCovariantDerivative}.
614 \par\mathCodeExample{\secondCovariantDerivativeSymbol}
615 \item[tangentSpace] the tangent space.
616 Its syntax is \codeCommand{\tangentSpace{#1}[#2]}.
617 The first argument denotes the base point.
618 The second (optional) argument denotes the manifold, which defaults to $\cM$.
619 \par\mathCodeExample{\tangentSpace{p}}
620 \par\mathCodeExample{\tangentSpace{q}[\cN]}
621 \item[tangentBundle] the tangent bundle.
622 Its syntax is \codeCommand{\tangentBundle[#1]}.
623 The (optional) argument denotes the manifold, which defaults to $\cM$.
624 \par\mathCodeExample{\tangentBundle}
625 \par\mathCodeExample{\tangentBundle[\cN]}
626 \item[tangentSpaceSymbol] the symbol used within \codeCommand{\tangent}.
627 \par\mathCodeExample{\tangentSpaceSymbol}
628 \item[tensorBundle] the tensor bundle.
629 Its syntax is \codeCommand{\tensorBundle{#1}{#2}[#3]}.
630 The first argument denotes the number $r$ of elements of the cotangent space the tensors accept.
631 The second argument denotes the number $s$ of elements of the tangent space the tensors accept.
632 The third (optional) argument denotes the manifold, which defaults to $\cM$.
633 \par\mathCodeExample{\tensorBundle{r}{s}}
634 \par\mathCodeExample{\tensorBundle{r}{s}[\cN]}
635 \item[tensorSpace] a tensor space over a vector space~$V$.
636 Its syntax is \codeCommand{\tensorSpace{#1}{#2}[#3]}.
637 The first argument denotes the number $r$ of elements of the dual space~$V^*$ the tensors accept.
638 The second argument denotes the number $s$ of elements of the space~$V$ the tensors accept.
639 The third (optional) argument denotes the vector space, which defaults to empty.
640 \par\mathCodeExample{\tensorSpace{r}{s}}
641 \par\mathCodeExample{\tensorSpace{r}{s}[V]}
642 \item[tensorSpaceSymbol] the symbol used within \codeCommand{\tensorSpace} and \codeCommand{\tensorBundle}.
643 \par\mathCodeExample{\tensorSpaceSymbol}
644 \item[vectorTransport] a vector transport.\\
645 Its syntax is \codeCommand{\vectorTransport[#1]{#2}{#3}(#4)[#5]}.
646 The first (optional) argument is used to scale the parentheses enclosing the argument \#4.\cref{footnote:amsmath_sizes}
647 The second argument is the start point of vector transport on a manifold.
648 The third argument is the end point of vector transport on a manifold.
649 The fourth (optional) argument is the tangent vector that is transported.
650 Putting it in brackets enables the scaling by the first argument.
651 Finally a retraction symbol can be added in the exponent to distinguish vector transports as \#5.
652 \par\mathCodeExample{\vectorTransport{p}{q}X}
653 \par\mathCodeExample{\vectorTransport{p}{q}(X)}
654 \par\mathCodeExample{\vectorTransport[big]{p}{q}(X)}
655 \par\mathCodeExample{\vectorTransport{p}{q}(X)[\retractionSymbol]}
656 \item[vectorTransportDir] similar to \codeCommand{\vectorTransport}, but the third
657 argument is a direction to transport into. This can be rewritten to the classical notation
658 applying an retraction from the base point (\#2) to th direction (\#3).
659 \par\mathCodeExample{\vectorTransportDir{p}{Y}X}
660 \par\mathCodeExample{\vectorTransportDir{p}{Y}(X)}
661 \par\mathCodeExample{\vectorTransportDir[big]{p}{Y}(X)}
662 \par\mathCodeExample{\vectorTransportDir{p}{Y}(X)[\retractionSymbol]}
663 \item[vectorTransportSymbol]\hspace*{2em}the symbol to use within \codeCommand{\vectorTransport} and \codeCommand{\vectorTransportDir}
664 \par\mathCodeExample{\vectorTransportSymbol}
665 \end{commandlist}
666
667
668 \subsection{Optimization: \texorpdfstring{\file{mathsemantics-optimization.sty}}{mathsemantics-optimization.sty}}\label{subsec:optimization}
669
670 The semantic file \file{mathsemantics-optimization.sty} collects definitions and notations related to optimization.
671 \begin{commandlist}
672 \item[linearizingcone] the linearizing cone.
673 Its syntax is \codeCommand{\linearizingcone[#1]{#2}{#3}}.
674 The first (optional) argument is used to scale the parentheses enclosing the argument to the standard amsmath sizes.\cref{footnote:amsmath_sizes}
675 The second argument denotes the set.
676 The third argument denotes the base point.
677 \par\mathCodeExample{\linearizingcone{A}{x}}
678 \par\mathCodeExample{\linearizingcone{A}{x^2}}
679 \par\mathCodeExample{\linearizingcone[big]{A}{x^2}}
680
681 \item[normalcone] the normal cone.
682 Its syntax is \codeCommand{\normalcone[#1]{#2}{#3}}.
683 The first (optional) argument is used to scale the parentheses enclosing the argument to the standard amsmath sizes.\cref{footnote:amsmath_sizes}
684 The second argument denotes the set.
685 The third argument denotes the base point.
686 \par\mathCodeExample{\normalcone{A}{x}}
687 \par\mathCodeExample{\normalcone{A}{x^2}}
688 \par\mathCodeExample{\normalcone[big]{A}{x^2}}
689
690 \item[polarcone] the polar cone of a set \mathCodeExample{\polarcone{A}}
691
692 \item[radialcone] the radial cone.
693 Its syntax is \codeCommand{\radialcone[#1]{#2}{#3}}.
694 The first (optional) argument is used to scale the parentheses enclosing the argument to the standard amsmath sizes.\cref{footnote:amsmath_sizes}
695 The second argument denotes the set.
696 The third argument denotes the base point.
697 \par\mathCodeExample{\radialcone{A}{x}}
698 \par\mathCodeExample{\radialcone{A}{x^2}}
699 \par\mathCodeExample{\radialcone[big]{A}{x^2}}
700
701 \item[tangentcone] the tangent cone.
702 Its syntax is \codeCommand{\tangentcone[#1]{#2}{#3}}.
703 The first (optional) argument is used to scale the parentheses enclosing the argument to the standard amsmath sizes.\cref{footnote:amsmath_sizes}
704 The second argument denotes the set.
705 The third argument denotes the base point.
706 \par\mathCodeExample{\tangentcone{A}{x}}
707 \par\mathCodeExample{\tangentcone{A}{x^2}}
708 \par\mathCodeExample{\tangentcone[big]{A}{x^2}}
709 \end{commandlist}
710 \end{document}