Formatting text in Stata figures

This is not really new, but still comes in handy when formatting text in Stata figures. With a relatively simple code, you can make write text bold, in italics, and even greek letters

This special text is entered in curly brackets “{…}”:

  • Greek letters: {&alpha}, {&beta}, etc.
  • Text in italics: {it:Text in italics}
  • Text in bold: {bf: Text in bold}
  • Operators: {&le} (less than or equal to), {&ne} (unequal)
  • Subscripts and superscripts: e.g., write y{sup:2}{sup:ij}