Announcement

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

  • Tilde character overhead in graph

    I want to create $\tilde{E}$ in a Stata graph and the only thing i've found is
    ytitle("`=ustrunescape("E\u0303")'"))
    but this produces a very narrow tilde.
    does anyone know something better?

  • #2
    Code:
    di ustrtohex("~")
    Res.:

    Code:
    . di ustrtohex("~")
    \u007e

    Comment


    • #3
      thanks. That produces a longer tilde for sure, but it doesn't allow it to be over the letter. In other words I want $\tilde{E}$ not $\ E tilde{}$.

      Comment


      • #4
        It could be the default font. If you have an example of the character, pass it through the function in #2 and see if you get the corresponding unicode string. The best I can do is

        Code:
        di ustrtohex("Ẽ")
        Res.:

        Code:
        . di ustrtohex("Ẽ")
        \u1ebc
        See if it is what you want.

        Comment


        • #5
          Doesn't quite deliver either. But thanks. It's good to know this ustrtohex command.

          Comment


          • #6
            Code:
            assert ustrunescape("\u1ebc") == ustrnormalize(ustrunescape("\u0045\u0303"),"nfc")
            When the character is displayed the width of the tilde depend on the font used.

            Comment

            Working...
            X