How do you escape a $ character in pweave?

93 views Asked by At

I'm using pweave to write an HTML document. I would like to express a $ sign in text, for example:

Bob has $1, Sally has $2

However pweave thinks that 1, Sally has should be formatted as maths. If I use \$ then it stops the math environment but keeps the \.

2

There are 2 answers

0
Trollipop On

Your example works for me, but Bob has $1, Sally has$ 2 doesn't work...

You could try {\$}, \{\$\}, \textdollar or $\textdollar$.

2
Cramer On

For HTML output at least,   produces a $ without the junk. Unsure of the fix if targeting LaTeX.