Last active
January 17, 2023 12:00
-
-
Save sakurawald/b83c75851c0c1e3f34f5a8abc0fa0d50 to your computer and use it in GitHub Desktop.
My Katex Macro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$$ \boxed{@} | |
% Color % | |
\newcommand\c[2]{\textcolor{#1}{#2}} | |
\newcommand\r[1]{\textcolor{red}{#1}} | |
\newcommand\g[1]{\textcolor{green}{#1}} | |
\newcommand\b[1]{\textcolor{blue}{#1}} | |
\newcommand\red[1]{\textcolor{red}{#1}} | |
\newcommand\blue[1]{\textcolor{blue}{#1}} | |
\newcommand\green[1]{\textcolor{green}{#1}} | |
\newcommand\black[1]{\textcolor{black}{#1}} | |
\newcommand\white[1]{\textcolor{white}{#1}} | |
\newcommand\cyan[1]{\textcolor{cyan}{#1}} | |
\newcommand\magenta[1]{\textcolor{magenta}{#1}} | |
\newcommand\yellow[1]{\textcolor{yellow}{#1}} | |
\newcommand\orange[1]{\textcolor{orange}{#1}} | |
\newcommand\lime[1]{\textcolor{lime}{#1}} | |
\newcommand\pink[1]{\textcolor{pink}{#1}} | |
\newcommand\darkgray[1]{\textcolor{darkgray}{#1}} | |
\newcommand\gray[1]{\textcolor{gray}{#1}} | |
\newcommand\lightgray[1]{\textcolor{lightgray}{#1}} | |
\newcommand\brown[1]{\textcolor{brown}{#1}} | |
\newcommand\olive[1]{\textcolor{olive}{#1}} | |
\newcommand\purple[1]{\textcolor{purple}{#1}} | |
\newcommand\teal[1]{\textcolor{teal}{#1}} | |
\newcommand\violet[1]{\textcolor{violet}{#1}} | |
\newcommand\hotpink[1]{\textcolor{hotpink}{#1}} | |
\newcommand\blueviolet[1]{\textcolor{blueviolet}{#1}} | |
\newcommand\navyblue[1]{\textcolor{navyblue}{#1}} | |
\newcommand\peach[1]{\textcolor{Peach}{#1}} | |
\newcommand\orangeRed[1]{\textcolor{OrangeRed}{#1}} | |
\newcommand\salmon[1]{\textcolor{Salmon}{#1}} | |
\newcommand\skyblue[1]{\textcolor{SkyBlue}{#1}} | |
\newcommand\springreen[1]{\textcolor{SpringGreen}{#1}} | |
\newcommand\aqua[1]{\textcolor{aqua}{#1}} | |
\newcommand\navy[1]{\textcolor{navy}{#1}} | |
\newcommand\silver[1]{\textcolor{silver}{#1}} | |
\newcommand\fuchsia[1]{\textcolor{fuchsia}{#1}} | |
\newcommand\maroon[1]{\textcolor{maroon}{#1}} | |
\definecolor{luo}{RGB}{102,204,255} | |
\definecolor{miku}{RGB}{57,197,187} | |
\newcommand\luo[1]{\textcolor{luo}{#1}} | |
\newcommand\miku[1]{\textcolor{miku}{#1}} | |
% Typography % | |
\newcommand\a[1]{\begin{aligned}#1\end{aligned}} | |
\newcommand\t[1]{\text{#1}} | |
\newcommand\lb[1]{\left{\begin{aligned} #1 \end{aligned}\right.} | |
\newcommand\rb[1]{\left.\begin{aligned} #1 \end{aligned}\right}} | |
\newcommand\env[2]{\begin{#1}#2\end{#1}} | |
% Misc % | |
\newcommand\s[1]{{#1}} | |
\newcommand\qed{\quad\square} | |
\newcommand\define{\dot{=}} | |
\newcommand\then{\implies} | |
\newcommand\rounddown[1]{\lfloor{#1}\rfloor} | |
\newcommand\roundup[1]{\lceil{#1}\rceil} | |
\newcommand\graph[4]{#1 = (#2, #3) \quad |#2| = #4} | |
\newcommand\G{G = (V, E) \quad |V| = n} | |
\newcommand\so{\therefore} | |
\newcommand\comment[1]{\quad\text{(#1)}} | |
\newcommand\note[1]{\quad\text{(#1)}} | |
\newcommand\bt[1]{\boxed{\text{#1}}} | |
\newcommand\max[1]{\textbf{ max } {#1} } | |
\newcommand\min[1]{\textbf{ min } {#1} } | |
\newcommand\IF{\textbf{ IF }} | |
\newcommand\if{\textbf{ if }} | |
\newcommand\IS{\textbf{ IS }} | |
\newcommand\is{\textbf{ is }} | |
\newcommand\but{\textbf{ but }} | |
\newcommand\however{\textbf{ however }} | |
\newcommand\AND{\textbf{ AND }} | |
\newcommand\OR{\textbf{ OR }} | |
\newcommand\NOT{\textbf{ NOT }} | |
\newcommand\THEN{\textbf{ THEN }} | |
\newcommand\IN{\textbf{ IN }} | |
\newcommand\NOTIN{\textbf{ NOT-IN }} | |
\newcommand\assume{\textbf{ Assuming that: }} | |
\newcommand\contradictory{\textbf{ Thus lead to contradiction }} | |
\newcommand\proof{\textbf{Proof: }} | |
\newcommand\st{\text{ such that }} | |
\newcommand\hold{\text{ holds }} | |
\newcommand\lhs{\text{ LHS }} | |
\newcommand\rhs{\text{ RHS }} | |
\newcommand\wlg{\text{ Without loss of generality }} | |
\newcommand\nb{\text{ nota bene }} | |
\newcommand\analogously{\text{ analogously }} | |
\newcommand\viceversa{\textbf{ viceversa }} | |
\newcommand\let{\textbf{ let }} | |
\newcommand\as{\textbf{ as }} | |
\newcommand\for{\textbf{ As for }} | |
\newcommand\select{\textbf{ SELECT }} | |
\newcommand\m[1]{\mathit{#1}} | |
\newcommand+[1]{\mathcal{#1}} | |
\newcommand\warnning[1]{\colorbox{Blue}{\textcolor{Yellow}{#1}}} | |
\newcommand\error[1]{\colorbox{Black}{\textcolor{White}{#1}}} $$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment