$% Simple macros / shorthands for LaTeX,
% ... compatible with MathJax
% ... loaded before 'mathjax.tex'
%
% Generics
\newcommand{\mbb}[1]{\mathbb{#1}}
\newcommand{\mrm}[1]{\mathrm{#1}}
\newcommand{\mcal}[1]{\mathcal{#1}}
\newcommand{\mscr}[1]{\mathscr{#1}}
\newcommand{\mfrak}[1]{\mathfrak{#1}}
\newcommand{\tup}[1]{\textup{#1}}
\newcommand{\mop}[1]{\operatorname{#1}}
%
% Utils
\newcommand{\idty}{\mathds{1}}
\newcommand{\proj}[1]{\mop{proj_{\mathit{#1}}}}
\newcommand{\textbox}[1]{\fbox{#1}}
\newcommand{\rvec}[1]{\overrightarrow{#1}}
\newcommand{\lvec}[1]{\overleftarrow{#1}}
\newcommand{\sidenote}[1]{\textcolor{purple}{#1}}
\newcommand{\mquote}[1]{\text{``$#1$''}}
\newcommand{\thinmspace}{\mspace{\thinmuskip}}
\newcommand{\moppower}[2]{\mop{ {#1}^{#2} }\!}
%
% Physics
\newcommand{\DD}{\mscr{D}}
\newcommand{\normorder}[1]{
\mspace{.2\thinmuskip}%
{\mathopen {:}}%
{\thinmspace #1\thinmspace}%
{\mathclose {:}}%
\mspace{.5\thinmuskip}%
}
%
% Differential Geometry
\newcommand{\hodgedual}{\mop{\star}}
\newcommand{\cdd}{\mop{D}\!}
\newcommand{\pdd}[1]{\partial_{#1}}
\newcommand{\cdv}[1]{\mop{\nabla_{\!\mathnormal{#1}\!}}}
\newcommand{\ldv}[1]{\mop{\mcal{L}_{\mathnormal{#1}\!}}}
\newcommand{\ric}[1]{\mop{Ric}\pqty{#1}}
\newcommand{\ad}{\mop{ad}}
\newcommand{\pd}{\partial}
\newcommand{\pdbar}{\bar{\partial}}
%
% Algebra
\newcommand{\subsetnormal}{\mathrel{\triangleleft}}
%
% QED
\newcommand{\qed}[1][]{\hfill\ensuremath{ %
\square\mathrlap{_{\,#1}}%
}}
\newcommand{\qedfull}[1][]{\hfill\ensuremath{ %
\blacksquare\mathrlap{_{\,#1}}%
}}
$
$% MathJax supplementary macros,
% ... as substitutes for LaTeX pkgs,
% ... loaded after 'macros.tex'
%
% mathtools
\newcommand{\abs}[1]{\left|#1\right|}
\newcommand{\norm}[1]{\left\|#1\right\|}
\newcommand{\aqty}[1]{\left\langle#1\right\rangle}
\let\ave\aqty
%
% physics
\newcommand{\pqty}[1]{\left(#1\right)}
\newcommand{\dd}[1]{\operatorname{d} #1}
\newcommand{\dv}[2]{\frac{\dd{#1}}{\dd{#2}}}
\newcommand{\pdv}[2]{\frac{\partial{#1}}{\partial{#2}}}
%
% more & hacks
\newcommand{\mathds}[1]{\mathbf{#1}} % when without dsfont
\newcommand{\mathnormal}[1]{\mathit{#1}} % when without mathnormal
$
2018
-
05月06日
-
04月12日
-
03月06日
-
02月15日
-
01月17日
2016
-
08月29日
-
02月14日
-
02月13日
-
02月08日