The following definition of \sp throws a "Missing $" error, I cant see any possible reason for this! Could somebody please explain?
\documentclass{amsart}
\providecommand{\sp}[1][10]{\par \vspace{#1 pt} \noindent\ignorespaces}
\begin{document}
line
\sp
line
\end{document}
\documentclass{amsart}twice?? – skpblack Jul 18 '17 at 03:27\spis the superscript operator and\providecommandwill not override the original definition. – Henri Menke Jul 18 '17 at 03:37\spfor other. (\spalready exists) – skpblack Jul 18 '17 at 03:43\providecommandhas its uses, I'd discourage using it for personal commands: use\newcommand, which would warn you in case you're trying to define an existing command. – egreg Jul 18 '17 at 07:49\newcommand,\renewcommand, and\providecommanddo, and how do they differ? – Werner Jul 30 '17 at 08:26