How can we insert the \
symbol in math mode for LaTeX and MathJax without loading any package that is required to achieve this symbol?
I tried
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\$
\end{document}
but the program gives errors, also with ${\}$
, \text{\}
etc. fails. In MathJax I use $\$
and it produces error.
The context of the problem is I want to represent the (missing) \
symbol inside a formula (not in SE). The solution is add that symbol, so I want to alert the user "Hey, you forgot to add $\$
in ${1,2,3}$
. It should be $\{1,2,3\}$
" (of course the site does not have single quotes (`)).
Thanks!!
\textbackslash
in text mode. But what do you need that symbol for?\backslash
in math mode.amsmath
!