Page 207 of the Users Guide [U21.3.9] instructs us on how to deal with the
"$" character if we wish to display a dollar sign and _not_ consider it the
marker for global macro expansion. We can either use the "\" character or
some smcl code: {c S|} immediately prior to the "$". These devices work
for -display-. But only the second, the smcl code, appears to work in text
placed on a graphic, eg using -title()- -ytitle()- -label()- etc.
I can't find a reference to this behaviour in the graphics manual (or any
discussion in the archives). Is there a reason for this inconsistency/feature?
Try:
====================
display "price in $US"
display "price in \$US"
display "price in {c S|}US"
sysuse auto
scatter price weight, ytitle("price in $US")
more
scatter price weight, ytitle("price in \$US")
more
scatter price weight, ytitle("price in {c S|}US")
====================
(using Stata Windows 18-May-2004 and latest ados)
Phil
Philip Ryan
Associate Professor,
Department of Public Health
Associate Dean (Information Technology)
Faculty of Health Sciences
University of Adelaide 5005
South Australia
tel 61 8 8303 3570
fax 61 8 8223 4075 http://www.public-health.adelaide.edu.au/
CRICOS Provider Number 00123M
-----------------------------------------------------------
This email message is intended only for the addressee(s)
and contains information that may be confidential and/or
copyright. If you are not the intended recipient please
notify the sender by reply email and immediately delete
this email. Use, disclosure or reproduction of this email
by anyone other than the intended recipient(s) is strictly
prohibited. No representation is made that this email or
any attachments are free of viruses. Virus scanning is
recommended and is the responsibility of the recipient.