Simplifying and automating LaTeX with tchdr.sty

Using LaTeX has a number of big benefits when writing papers:

  • it separates content (your words) and format (how they are laid out on a page)
  • it is stored in plaintext, which is useful for version control
  • it is extendable, a huge base of helpful packages exists
  • it keeps track of references, bibliography citations, links
  • it is currently the only decent option for typesetting math
  • it makes professional-looking papers by default
  • it is basically required by every conference/journal in ML/stats

But it also has a number of drawbacks.

Verbosity in text

For example, to make a list of items, you need to type

\begin{itemize}
\item Here is one 
\item Here is another
\end{itemize}
\bitems
\item Here is an item
\item Here is another
\eitems

Verbosity in math

\begin{align}
X_n &\in \mathcal{X}\\
X_n &\overset{\text{p}}{\to} X\\
\mathbb{E}\left[X\right] &= \int_0^1 6\frac{\mathrm{d} 4y^2}{\mathrm{d} y}\mathrm{d}y\\
\mathbb{P}\left(X_n \in \mathcal{A}\right) \leq 
X_n \sim \mathcal{N}(\hat{\mu}, \hat{\sigma}).
\end{align}
\[
X_n &\in \mcX\\
X_n &\convp X\\
\EE\left[X\right] &= \int_0^1 6\der{4y^2}{y}\dee y\\
X_n \dist \distNorm(\hmu, \hSigma)
\]

Untyped references

references require you to add type explicitly, e.g. Figure \ref{fig1} and Theorem \ref{thm}

Equation numbering

equation numbering is manual

The tchdr.sty style

TODO