Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using SMCL in Stata Graphs

    Is there comprehensive documentation of which SMCL tags do and do not work as intended when producing Stata graphs? In
    Code:
    help graph text
    one finds
    text elements in Stata graphs support the use of certain SMCL markup directives, or tags, to affect how they appear on the screen
    "certain" appears to be the key word here.

    For instance, beyond what is documented in help graph text some trial and error suggests that
    Code:
    {dup #: text}
    and
    Code:
    {space #}
    have the desired effects, while many others do not.

    Context: This question was prompted by my attempts to use SMCL to create a "beta-hat" symbol in axis labels and graph titles. I've thusfar failed in that attempt. If anyone has suggestions how to do that (whether or not SMCL is used) they would be appreciated.

  • #2
    In theory you should be able to do it Unicode with a Combining Diacritical Mark:
    Code:
    twoway scatter weight mpg, title(`=ustrunescape("\u03B2\u0302")')
    How do I add a caret over a Greek letter in graph text? - Statalist , but in practice I have not found a suitable Windows font to achieve this; you may have different fonts that work

    Comment


    • #3
      Thanks Martyn.

      Comment

      Working...
      X