1

I need to type a right triangle symbol, whose unicode is U+22BF or U+25FF, see

http://www.fileformat.info/info/unicode/char/25ff/index.htm

What I get in the template I used is

\RequirePackage[T1]{fontenc}            
\RequirePackage[utf8]{inputenc}     
\RequirePackage{lmodern}                

I don't want to change to utf8x.

The engine I use is pdflatex.

I can't figure out how to make it work. Is there a way to type the unicode code to obtain the unicode symbol in output?

  • You need a font that has this character, and some files to use it with (pdf)latex. I don't think Latin Modern has. – Bernard Sep 28 '15 at 19:22
  • Do you need the symbol in math and scalable in superscripts/subscripts? – egreg Sep 28 '15 at 21:06
4

Picture mode to the rescue:

\documentclass{article}
\usepackage{pict2e}

\DeclareRobustCommand{\lowerrighttriangle}{%
  \begingroup
  \setlength{\unitlength}{1ex}%
  \begin{picture}(1,1)
  \polyline(1,0)(0,0)(1,1)(1,0)(.5,0)
  \end{picture}%
  \endgroup
}

\begin{document}

x \lowerrighttriangle{} y

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.