% -*- fill-column: 200; coding: utf-8 -*-
%
% Some notes on LaTeX during the CQF.
% Author: Martin Blais
%
% Copyright (C) 2009  Martin Blais
%

\documentclass[11pt]{article}
\usepackage{fullpage}
\usepackage{times}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{bm}
\usepackage[utf8]{inputenc}
\usepackage{units}
\usepackage{slashbox}
\usepackage{graphics}
\usepackage{nicefrac}
\usepackage{color}

\setlength{\parindent}{0in}

\title{Martin's Notes on \LaTeX for Math}
\author{Martin Blais $<$blais@furius.ca$>$}
\date{\today}


\begin{document}
\maketitle

Just some recent random notes on typesetting math using \LaTeX.
You will want to consult this document along with its source.


\paragraph{Useful macros for differentials}
\newcommand{\parfrac}[3][]{\dfrac{\partial^{#1}{#2}}{\partial{#3}^{#1}}}
\begin{displaymath}
   \parfrac{p}{t} = c^2 \parfrac[2]{p}{y}
\end{displaymath}

\paragraph{Large fractions, nice fractions}
\begin{displaymath}
   \dfrac{100}{33} = \nicefrac{100}{300} \hspace{2cm} e^{-\nicefrac{1}{2} \, r \delta t}
\end{displaymath}

\paragraph{Bold in math mode}
\begin{displaymath}
   \bm{A} = \bm{I} x \hspace{1in} \bm{1}^T = [ 1 1 1 1 1 1 ]
\end{displaymath}

\paragraph{Special capital letter}
\begin{align}
  & \mathbb{E}[x \le \epsilon] \\
  & E^\mathbb{P}[X] = E^\mathbb{Q}[X^2]
\end{align}

\paragraph{Slashing out through math terms}
\newcommand{\slashh}[1]{\rlap{\color{red}\slashbox{}}{#1}}
\begin{displaymath}
  \slashh{x} + y = z + \slashh{x}
\end{displaymath}



\section*{Thick Arrays}
Math arrays with high equations cause problems in arrays, like this:
\begin{equation}
  \begin{array}{lll}
    \Delta & = \parfrac{V}{t} & = \parop{S}(\psit S) = \psit \\
    \Gamma & = \parfrac[2]{V}{S} & = \parfrac[2]{C}{S} = \parop{S}(\Delta) = \parop{S}(\psit) = 0 \\
    \Theta & = \parfrac{V}{S} & = \parop{t}(\psit S) = S \parfrac{\psit}{t} \\
  \end{array}
\end{equation}
Here's how to deal with this:
\textbf{FIXME TODO}



\end{document}
