0

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 \.

Cramer
  • 1,785
  • 1
  • 12
  • 20

2 Answers2

0

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

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

Trollipop
  • 41
  • 3
0

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

Cramer
  • 1,785
  • 1
  • 12
  • 20
  • Good to know, although I'm not writing a latex document at the moment. I've updated the question to reflect that. The bounty was placed before I found this solution obviously, but the bounty is there and I can't remove it. – Cramer Jan 23 '18 at 05:31
  • Yeah, bounties can't be removed. You can either award the bounty to someone or let it vanish. – Angel Politis Jan 23 '18 at 06:06