1

On defining a new command, and using it, LaTeX throws an error that Missing \begin{document}. What is the issue here?

\documentclass[12pt]{article}
\newcommand{details}[2]{
#1 \hspace{2cm} : #2
}
\begin{document}
\details{name}{test}
\end{document} 
  • 1
    You mean \newcommand{\details}[2]{....} ;-) – user31729 Aug 6 '14 at 6:06

Browse other questions tagged or ask your own question.