summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/mathsemantics/mathsemantics-optimization.sty
blob: fecbf027d7983946ebd7300e07bf6744a1abb414 (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
% This LaTeX package provides numerous commands relevant to typesetting
% material related to manifolds and differential geometry.
\ProvidesPackage{mathsemantics-optimization}[2022/05/06]

% Resolve the dependencies of this package
\RequirePackage{mathsemantics-semantic}

% Define some symbols
\newcommand{\normalCone}{\cN}
\newcommand{\radialCone}{\cK}
\newcommand{\tangentCone}{\cT}
\newcommand{\linearizingCone}{\cT^{\textup{lin}}}

% Define a command for the radial cone
% The optional argument [#1] scales the delimiters
% Argument {#2} is the set
% Argument {#3} is the base point
\NewDocumentCommand{\radialcone}{ O{} m m }{\radialCone_{#2}\enclose[#1]{(}{#3}{)}}

% Define a command for the tangent cone
% The optional argument [#1] scales the delimiters
% Argument {#2} is the set
% Argument {#3} is the base point
\NewDocumentCommand{\tangentcone}{ O{} m m }{\tangentCone_{#2}\enclose[#1]{(}{#3}{)}}

% Define a command for the linearizing cone
% The optional argument [#1] scales the delimiters
% Argument {#2} is the set
% Argument {#3} is the base point
\NewDocumentCommand{\linearizingcone}{ O{} m m }{\linearizingCone_{#2}\enclose[#1]{(}{#3}{)}}

% Define a command for the normal cone
% The optional argument [#1] scales the delimiters
% Argument {#2} is the set
% Argument {#3} is the base point
\NewDocumentCommand{\normalcone}{ O{} m m }{\normalCone_{#2}\enclose[#1]{(}{#3}{)}}

% Define a command for the polar cone
% Argument {#1} is the set
\NewDocumentCommand{\polarcone}{ m }{#1^\circ}