Announcement

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

  • How to type Greek letters with putdocx command?

    Dear Statalisters, I know that we can put Greek Letters in Stata Graphs (in titles etc.) using something like {\&Alpha}. But I am unable to figure out if we can also put Greek Letters (and may be other Mathematics symbols) within .docx files created using the -putdocx- command. Is it doable?

  • #2
    Have you tried Unicode? Here is a list of Unicode characters representing Greek letters.

    Code:
    putdocx begin
    putdocx paragraph
    putdocx text ("`=ustrunescape("\u03b1 \u03b2 \u03b3 \u03b4")'")
    putdocx describe
    putdocx save test.docx, replace
    Res.:

    Code:
     
    . putdocx describe
    
      --------------------+-----------------------
      No. of tables       |  0
      No. of paragraphs   |  1
    Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	9.3 KB
ID:	1734733

    Comment

    Working...
    X