Skip to content

Instantly share code, notes, and snippets.

@poltak
Last active August 29, 2015 14:01
Show Gist options
  • Save poltak/6ed59e8f30c9c399143f to your computer and use it in GitHub Desktop.
Save poltak/6ed59e8f30c9c399143f to your computer and use it in GitHub Desktop.
Personal LaTeX Macros
\ProvidesPackage{poltakmacros}
\RequirePackage[utf8]{inputenc} % Used for correct fromatting of unicode symbol § in output.
% Personal macros.
\newcommand{\vs}[2]{#1 \emph{vs.}\ #2}
\newcommand{\etal}{\emph{et al.}\ }
\newcommand{\ie}{\emph{i.e.}\ }
\newcommand{\eg}{\emph{e.g.}\ }
\newcommand{\sectref}[1]{§\ref{#1}}
\newcommand{\figref}[1]{Figure~\ref{#1}}
\newcommand{\tabref}[1]{Table~\ref{#1}}
\newcommand{\equref}[1]{Equation~\ref{#1}}
\newcommand{\algoref}[1]{Algorithm~\ref{#1}}
\newcommand{\appref}[1]{\textbf{Appendix~\ref{#1}}}
\newcommand{\listref}[1]{(\ref{#1})}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment