1

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}
Johannes_B
  • 24,235
  • 10
  • 93
  • 248
Leo Simon
  • 2,199

1 Answers1

1

I don't know how to accept the answer in a comment, but if I knew I would accept @HenriMenke's comment, which is clearly the best practice. On the other hand, while I should never have used \sp in the first place, I've been using it for years and it's hard to change. The following does work, i.e., overrides the default definition of \sp

\let\sp\undefined
\newcommand{\sp}[1][10]{\par\vspace{#1pt}\noindent\ignorespaces}

bad practice as it is.

Leo Simon
  • 2,199