$ \gdef\vec#1{\mathbf{#1}} \gdef\d{d} $

For tutorial notes go to the Archive

Blog
Archive
Github