I want to write the $ symbol in my LaTeX file. I tried
\$ and also
\textdollar. In both cases the dollar sign is printed but I am getting an alert.
I am using Sharelatex to compile the code.
Sorry but the problem was not the
$, its a
_ symbol. Problem solved by adding
\ before each