I took a piece of code from here to indicate the steps taken in my software. However, while using $\triangleright$ it shows like this:

enter image description here

It didn't do that before so somewhere along the way I made some changes with unintended consequences. I wrote a bunch of packages and a document class to get here which I can't really share with you, so I hope it suffices to mention that I use XeLaTeX and the segoe ui font from here. I read here and there that it requires the latexsym package, but I didn't need that before.

EDIT: as I was writing the question I realized I could try to comment out the font selection, and I did, and it worked. So my question still stands and indeed it should suffice to mention that I use the segoe ui font as posted in that link.

ANOTHER EDIT: Using $\rhd$ instead works, but is kinda ugly. Are there other triangle-pointing-right symbols that I could use?

  • 3
    Exactly which code? Please provide a full but minimal example which on your system generated the image you provided.
    – daleif
    Apr 7, 2022 at 15:53
  • 1
    That will be your font's notdef character which it shows if you request a character not in the font. No font has every unicode character. Apr 7, 2022 at 16:10
  • There are several \triangleright symbols defined by various packages. See ctan.org/pkg/comprehensive?lang=en Apr 7, 2022 at 17:05
  • I knew no font has all characters, but I thought \triangleright was one of the basic characters
    – Steven
    Apr 8, 2022 at 13:45

1 Answer 1


You could design your own symbol with TikZ:

enter image description here

This is a comparison between \triangleright and the new symbol \newtr in the standard font. Of course, you can adjust the tikz picture any way you want. Since your font doesn't have the \triangleright glyph, adjust however looks good to you.

More information on designing your own symbol can be found here.



\newcommand{\newtr}{\mathrel{\tikz{\draw[line join=round] (0:.6ex)--(120:.6ex)--(240:.6ex)--cycle;}}}


$a\triangleright b\newtr c$

$a\newtr b\triangleright c$

  • Thank you, it's a simple enough solution and it allowed me to customize it such that it fits better with the font.
    – Steven
    Apr 8, 2022 at 13:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .