Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Can Stata underline?


From   Michael Norman Mitchell <Michael.Norman.Mitchell@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Can Stata underline?
Date   Wed, 24 Feb 2010 19:28:18 -0800

Greetings

It happens that the "Stata Tidbit of the Week" is about graphing symbols and fonts in Stata 11. If you are interested in seeing more examples, I would invite you to see...

  http://www.michaelnormanmitchell.com/

Next week's tidbit will go into more details about selecting different fonts.

Best regards,

Michael N. Mitchell
See the Stata tidbit of the week at...
http://www.MichaelNormanMitchell.com
Visit me on Facebook at...
http://www.facebook.com/MichaelNormanMitchell

On 2010-02-24 12.13 PM, Eric Booth wrote:

I just upgraded to 11, but I can't find this text formatting feature
anywhere.
Yes, Stata can underline--just not in graph text.  That is, Stata can underline via the SMCL tag {ul:} in the viewer and results windows (i.e.,  the help files) , but from the graph_text help file your referenced it appears that not all of the SMCL tags are legal in graphs.

While you can use the {it:} tag for italics, as in the example the help file gives:

scatter mpg weight, title("This is {it:italics} in a graph title")

if you substitute the {ul:} tag, it doesnt work:

scatter mpg weight, title("This is {ul:underline} in a graph title")

(if you use {bf:} it does create boldface type in graph text, but it doesn't appear that {hi:} works with graphs either)

However, you can format text elsewhere to have underlining, for example:

****
sysuse auto, clear

di `"Not Underlined,  {ul:Underlined Text Goes Here}, or {stata `"desc"':Stata Command Goes {ul:HERE}}"'
***
((note: the -di- command above may wrap in email format, be sure to unwrap it in your command line/do-file))

~ Eric
__
Eric A. Booth
Public Policy Research Institute
Texas A&M University
ebooth@ppri.tamu.edu
Office: +979.845.6754



On Feb 24, 2010, at 1:28 PM, Craig, Benjamin M. wrote:

I just upgraded to 11, but I can't find this text formatting feature
anywhere.

The Stata 11 announcement states "You can now include multiple fonts in
regular, bold, and italics; the full Greek alphabet in upper- and
lowercase; and over 70 mathematical symbols anywhere that text appears
in graphs." (Page 3, top)  Ironically, the online Stata manual is full
of underlines. For examples, see
http://www.stata.com/help.cgi?graph_text.

Hopefully, someone knows how to underline in Stata. I need this feature,
because underline is a formatting requirement for a certain psychometric
instrument(SF-36).

Given Stata's use of underline, maybe it will be added in their next
release.

Cheers,
Ben







This transmission may be confidential or protected from disclosure and is only for review and use by the intended recipient. Access by anyone else is unauthorized. Any unauthorized reader is hereby notified that any review, use, dissemination, disclosure or copying of this information, or any act or omission taken in reliance on it, is prohibited and may be unlawful. If you received this transmission in error, please notify the sender immediately. Thank you.

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index