# LaTeX Bra-ket notation without importing the physics package
There are lot's of nice markdown editors and js packages that allows noting taking in markdown and latex, but it's often quite a hassle to import the physics package. To solve this, we can define \bra and \ket with latex \newcommand
$$
\newcommand{\bra}[1]{\langle#1|} % Bra
\newcommand{\ket}[1]{|#1\rangle} % Ket
\newcommand{\braket}[2]{ \langle #1 | #2 \rangle} %Inner Product
$$
$$
\bra{1}
$$
$$
\ket{1}
$$
$$
\braket{2}{4}
$$
```latex
$$
\newcommand{\bra}[1]{\langle#1|} % Bra
\newcommand{\ket}[1]{|#1\rangle} % Ket
\newcommand{\braket}[2]{ \langle #1 | #2 \rangle} %Inner Product
$$
$$
\bra{1}
$$
$$
\ket{1}
$$
$$
\braket{2}{4}
$$
```