Recently I inherited some LaTeX code for a CV that contained an e-mail address typed with \verb}john.smith@uni.org}
. This snippet was in the middle of an multicol environment (so it was within several nested curly brackets) and it took me some time to figure out why this would compile but \verb{john.smith@uni.org}
wouldn't. I've since learned how \verb
works (and that one should use other symbols as delimiters), but I am baffled about a LaTeX function that doesn't follow the syntax \name[...]{...}
. So my question is as follows:
Are there other LaTeX commands that have surprisingly (sic) inconsistent syntax compared to the more often used commands? And, was
\verb
originally contained in TeX or was it added later on?
EDIT: Thank you for your answers, I'd select both of your answers as an accepted answer if I could. I liked the comparison with the TeX primitives, and for me the fact that \verb|...|
is usually used for displaying LaTeX source code is a good explanation why it differs from the syntax most other functions use.
\verb
is very consistent: the material to be rendered verbatim must be enclosed between two identical characters (not appearing inside, of course).\verb|...|
, since there is no left/right sense to|
as opposed to{
and}
.