7

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.

Error

I am using Sharelatex to compile the code.

Edit: Sorry but the problem was not the $, its a \foodnote with _ symbol. Problem solved by adding \ before each _ symbol.

closed as off-topic by CarLaTeX, user31729, egreg, Stefan Pinnow, Torbjørn T. Jan 31 '17 at 21:51

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 4
    Have you checked the line the error is referring to. If you've also tried \$ and \textdollar it maybe something else that's triggering the error for example _ or ^ – Nicola Talbot Jan 31 '17 at 20:31
  • 5
    If I use \$ both in text or in math, I get the symbol and no warning. – egreg Jan 31 '17 at 20:40
  • @NicolaTalbot you are right, the problem was not the $ but a _ symbol. – user3235881 Jan 31 '17 at 20:59
  • 7
    I'm voting to close this question as off-topic because it has already solved as the OP said in his/her edit. – CarLaTeX Jan 31 '17 at 21:12

Browse other questions tagged or ask your own question.