Don't treat \$ as the beginning of a tex formula.