\documentclass{article}


\usepackage{amsmath}

\begin{document}

\newcommand{\frac}[2]{\genfrac{}{}{}{}{#1}{#2}}
\newcommand{\dfrac}[2]{\genfrac{}{}{}0{#1}{#2}}
\newcommand{\tfrac}[2]{\genfrac{}{}{}1{#1}{#2}}
\newcommand{\binom}[2]{\genfrac(){0pt}{}{#1}{#2}}
\newcommand{\dbinom}[2]{\genfrac(){0pt}0{#1}{#2}}
\newcommand{\tbinom}[2]{\genfrac(){0pt}1{#1}{#2}}

\end{document}
