Skip to content

Instantly share code, notes, and snippets.

@balos1
Last active July 25, 2017 01:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save balos1/649bcc79ee04fe9866ced8ec536a1d42 to your computer and use it in GitHub Desktop.
Save balos1/649bcc79ee04fe9866ced8ec536a1d42 to your computer and use it in GitHub Desktop.
Macros for writing mathematical documents in LaTex.
% Helpful math mode macros.
%
% (c) Cody Balos
\NeedsTeXFormat{LaTeX2e}[]
\ProvidesPackage{mathmacros}[2017/01/20 Math Macros]
\RequirePackage{amsmath}
\ProcessOptions\relax
% Integrals and Derivatives
\newcommand{\evalbar}[2]{\Bigr|_{#1}^{#2}}
\newcommand{\ddt}[1]{\frac{d#1}{dt}}
\newcommand{\dtwodt}[1]{\frac{d^2#1}{dt^2}}
\newcommand{\Lapl}[1]{\mathcal{L}\{#1\}}
% Fractions
\newcommand{\bigfrac}[2]{\frac{\displaystyle #1}{\displaystyle #2}}
% QED
% \renewcommand{\qed}{\tag*{$\blacksquare$}}
\endinput
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment