Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Re: Tip - Special characters in labels, titles of graphs &c


From   Adrian Mander <[email protected]>
To   [email protected], <[email protected]>
Subject   Re: st: Re: Tip - Special characters in labels, titles of graphs &c
Date   Wed, 13 Dec 2006 09:39:35 +0000

A plug for some code I wrote that produces pretty output instead of the suggestion below

ssc install ascii

then just type

ascii

to see all the interesting characters available.

cheers
Ade

At 15:06 12/12/2006, Michael Blasnik wrote:

The char() function can return different results depending on your font (and therefore OS). You can get a quick listing of what is available by changing your font in the Stata results window to one that shows upper ASCII characters (rather than just ?) and then :

forval i=123(1)255 {
di "`i': " char(`i')
}

M Blasnik

----- Original Message ----- From: "David Airey" <[email protected]>
To: <[email protected]>
Sent: Tuesday, December 12, 2006 9:34 AM
Subject: re: st: Re: Tip - Special characters in labels, titles of graphs &c



The char(178) doesn't work on my Mac. Char(181) does.

local mu=char(181)
local squared=char(179)
sysuse auto
graph tw scatter weight mpg , ///
title("here is mu: `mu', here is mpg squared: mpg`squared'")
Oops. Neither does char(179) work.
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index