-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.tex
50 lines (42 loc) · 1.95 KB
/
style.tex
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
% \sectionfont{\color{BlueViolet}\sffamily}
% \subsectionfont{\color{BrickRed}\sffamily}
% \subsubsectionfont{\sffamily}
\renewcommand{\bfdefault}{bx} % https://tex.stackexchange.com/questions/27843/level-of-boldness-changeable
\renewcommand{\sfdefault}{xcmss} % https://ctan.tetaneutral.net/fonts/sansmathfonts/sansmathfonts.pdf
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% https://tex.stackexchange.com/questions/88281/how-to-change-font-for-the-integral-symbol
\makeatletter
\def\upintkern@{\mkern-7mu\mathchoice{\mkern-3.5mu}{}{}{}}
\def\upintdots@{\mathchoice{\mkern-4mu\@cdots\mkern-4mu}%
{{\cdotp}\mkern1.5mu{\cdotp}\mkern1.5mu{\cdotp}}%
{{\cdotp}\mkern1mu{\cdotp}\mkern1mu{\cdotp}}%
{{\cdotp}\mkern1mu{\cdotp}\mkern1mu{\cdotp}}}
\newcommand{\upiint}{\DOTSI\protect\UpMultiIntegral{2}}
\newcommand{\upiiint}{\DOTSI\protect\UpMultiIntegral{3}}
\newcommand{\upiiiint}{\DOTSI\protect\UpMultiIntegral{4}}
\newcommand{\upidotsint}{\DOTSI\protect\UpMultiIntegral{0}}
\newcommand{\UpMultiIntegral}[1]{%
\edef\ints@c{\noexpand\upintop
\ifnum#1=\z@\noexpand\upintdots@\else\noexpand\upintkern@\fi
\ifnum#1>\tw@\noexpand\upintop\noexpand\upintkern@\fi
\ifnum#1>\thr@@\noexpand\upintop\noexpand\upintkern@\fi
\noexpand\upintop
\noexpand\ilimits@
}%
\futurelet\@let@token\ints@a
}
\makeatother
\DeclareFontFamily{OMX}{mdbch}{}
\DeclareFontShape{OMX}{mdbch}{m}{n}{ <->s * [0.8] mdbchr7v }{}
\DeclareFontShape{OMX}{mdbch}{b}{n}{ <->s * [0.8] mdbchb7v }{}
\DeclareFontShape{OMX}{mdbch}{bx}{n}{<->ssub * mdbch/b/n}{}
\DeclareSymbolFont{uplargesymbols}{OMX}{mdbch}{m}{n}
\SetSymbolFont{uplargesymbols}{bold}{OMX}{mdbch}{b}{n}
\DeclareMathSymbol{\upintop}{\mathop}{uplargesymbols}{82}
\makeatletter
\newcommand{\upint}{\DOTSI\upintop\ilimits@}
\makeatother
\let\int\upint
\let\idotsint\upidotsint
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% https://tex.stackexchange.com/questions/124049/applying-options-to-already-loaded-package