This repository has been archived by the owner on Sep 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbraceMnSymbol.sty
105 lines (94 loc) · 3.46 KB
/
braceMnSymbol.sty
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
\ProvidesPackage{braceMnSymbol}[2007/01/21 v1.4 Underbraces from MnSymbol]
\DeclareFontFamily{OMX}{MnSymbolE}{}
\DeclareSymbolFont{largesymbolsX}{OMX}{MnSymbolE}{m}{n}
\DeclareFontShape{OMX}{MnSymbolE}{m}{n}{
<-6> MnSymbolE5
<6-7> MnSymbolE6
<7-8> MnSymbolE7
<8-9> MnSymbolE8
<9-10> MnSymbolE9
<10-12> MnSymbolE10
<12-> MnSymbolE12}{}
\DeclareMathSymbol{\downbrace} {\mathord}{largesymbolsX}{'251}
\DeclareMathSymbol{\downbraceg} {\mathord}{largesymbolsX}{'252}
\DeclareMathSymbol{\downbracegg} {\mathord}{largesymbolsX}{'253}
\DeclareMathSymbol{\downbraceggg} {\mathord}{largesymbolsX}{'254}
\DeclareMathSymbol{\downbracegggg}{\mathord}{largesymbolsX}{'255}
\DeclareMathSymbol{\upbrace} {\mathord}{largesymbolsX}{'256}
\DeclareMathSymbol{\upbraceg} {\mathord}{largesymbolsX}{'257}
\DeclareMathSymbol{\upbracegg} {\mathord}{largesymbolsX}{'260}
\DeclareMathSymbol{\upbraceggg} {\mathord}{largesymbolsX}{'261}
\DeclareMathSymbol{\upbracegggg} {\mathord}{largesymbolsX}{'262}
\DeclareMathSymbol{\braceld} {\mathord}{largesymbolsX}{'263}
\DeclareMathSymbol{\bracelu} {\mathord}{largesymbolsX}{'264}
\DeclareMathSymbol{\bracerd} {\mathord}{largesymbolsX}{'265}
\DeclareMathSymbol{\braceru} {\mathord}{largesymbolsX}{'266}
\DeclareMathSymbol{\bracemd} {\mathord}{largesymbolsX}{'267}
\DeclareMathSymbol{\bracemu} {\mathord}{largesymbolsX}{'270}
\DeclareMathSymbol{\bracemid} {\mathord}{largesymbolsX}{'271}
\DeclareMathOperator*{\argmax}{arg\,max}
\DeclareMathOperator*{\argmin}{arg\,min}
\def\horiz@expandable#1#2#3#4#5#6#7#8{%
\@mathmeasure\z@#7{#8}%
\@tempdima=\wd\z@
\@mathmeasure\z@#7{#1}%
\ifdim\noexpand\wd\z@>\@tempdima
$\m@th#7#1$%
\else
\@mathmeasure\z@#7{#2}%
\ifdim\noexpand\wd\z@>\@tempdima
$\m@th#7#2$%
\else
\@mathmeasure\z@#7{#3}%
\ifdim\noexpand\wd\z@>\@tempdima
$\m@th#7#3$%
\else
\@mathmeasure\z@#7{#4}%
\ifdim\noexpand\wd\z@>\@tempdima
$\m@th#7#4$%
\else
\@mathmeasure\z@#7{#5}%
\ifdim\noexpand\wd\z@>\@tempdima
$\m@th#7#5$%
\else
#6#7%
\fi
\fi
\fi
\fi
\fi}
\def\overbrace@expandable#1#2#3{\vbox{\m@th\ialign{##\crcr
#1#2{#3}\crcr\noalign{\kern2\p@\nointerlineskip}%
$\m@th\hfil#2#3\hfil$\crcr}}}
\def\underbrace@expandable#1#2#3{\vtop{\m@th\ialign{##\crcr
$\m@th\hfil#2#3\hfil$\crcr
\noalign{\kern2\p@\nointerlineskip}%
#1#2{#3}\crcr}}}
\def\overbrace@#1#2#3{\vbox{\m@th\ialign{##\crcr
#1#2\crcr\noalign{\kern2\p@\nointerlineskip}%
$\m@th\hfil#2#3\hfil$\crcr}}}
\def\underbrace@#1#2#3{\vtop{\m@th\ialign{##\crcr
$\m@th\hfil#2#3\hfil$\crcr
\noalign{\kern2\p@\nointerlineskip}%
#1#2\crcr}}}
\def\bracefill@#1#2#3#4#5{$\m@th#5#1\leaders\hbox{$#4$}\hfill#2\leaders\hbox{$#4$}\hfill#3$}
\def\downbracefill@{\bracefill@\braceld\bracemd\bracerd\bracemid}
\def\upbracefill@{\bracefill@\bracelu\bracemu\braceru\bracemid}
\def\upbrace@expandable{%
\horiz@expandable
\upbrace
\upbraceg
\upbracegg
\upbraceggg
\upbracegggg
\upbracefill@}
\def\downbrace@expandable{%
\horiz@expandable
\downbrace
\downbraceg
\downbracegg
\downbraceggg
\downbracegggg
\downbracefill@}
\DeclareRobustCommand{\overbrace}[1]{\mathop{\mathpalette{\overbrace@expandable\downbrace@expandable}{#1}}\limits}
\DeclareRobustCommand{\underbrace}[1]{\mathop{\mathpalette{\underbrace@expandable\upbrace@expandable}{#1}}\limits}