271 11

Useful commands for math in LaTeX

If in your document you use a lot of partial derivatives, matrices, etc.. these commands can be useful
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
\newcommand{\fratop}[2]{\genfrac{}{}{0pt}{}{#1}{#2}} \newcommand{\mx}[1]{\mathbf{\bm{#1}}} % Matrix symbol \newcommand{\vc}[1]{\mathbf{\bm{#1}}} % Vector symbol \newcommand{\degree}{\ensuremath{^\circ}} % define the degree symbol \newcommand{\pder}[2]{\frac{\partial#1}{\partial#2}} % partial derivative \newcommand{\refframe}[1]{\mbox{\textless#1\textgreater}} % to denote a reference frame \DeclareMathOperator*{\argmin}{\arg\!\min} % argmin \DeclareMathOperator*{\argmax}{\arg\!\max} % argmax \DeclareMathOperator*{\dif}{\mathrm{d}} % d \DeclareMathOperator*{\half}{\frac{1}{2}} % one half \newcommand{\mat}[1]{\ensuremath{\begin{bmatrix}#1\end{bmatrix}}} % matrix \newcommand{\rank}[1]{\text{rank}(#1)} % rank \newcommand{\diag}[1]{\text{diag}(#1)} % diag \newcommand{\x}{\ensuremath{\times}}
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus