7

I am looking for a MathJax equivalent of the Unicode symbol called WHITE RIGHT-POINTING POINTER:

It is a little bit longer than \triangleright, which looks like this:

A screenshot of <code>\triangleright</code>

Also, I wasn't able to find it using http://detexify.kirelabs.org/.


Thanks to marmot I was able to find the LaTeX equivalent: it is called \whitepointerright. It does not work in MathJax, though.

Mateusz Piotrowski
  • 357
  • 1
  • 5
  • 16

3 Answers3

4

MathJax is generally considered off-topic here, but you can use \rhd in LaTeX or in MathJax to get something close to \whitepointerright. The following image is taken from Safari using MathJax:

enter image description here

The code renders on Chrome, Firefox, Safari:

\[
A\triangleright B\rhd C
\]

with <head> code:

<script type="text/x-mathjax-config">
  MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
</script>
<script type="text/javascript"
  src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>

and also works in LaTeX using the amsfonts package:

enter image description here

Sandy G
  • 42,558
4

I used these commands. You don't need document commands to use these commands:

A\triangle B\\
A\blacktriangle B\\
A\triangledown B\\
A\blacktriangledown B\\
A\triangleleft B\\
A\blacktriangleleft B\\
A\triangleright B\\
A\blacktriangleright B

triangles in action

3

The glyph you're looking for seems to be U+25BB WHITE RIGHT-POINTING POINTER which is available in the STIX fonts as \whitepointerright.

The easiest way is to import it as a “text symbol”:

\documentclass{article}
\usepackage{amsmath}

\DeclareFontFamily{U}{stixscr}{}
\DeclareFontShape{U}{stixscr}{m}{n}{<-> s*[1.1] stix-mathscr}{}
\DeclareRobustCommand{\pointright}{%
  \mathrel{\text{\usefont{U}{stixscr}{m}{n}\symbol{"D2}}}%
}

\begin{document}

$A\pointright B$

\end{document}

The 1.1 magnification factor is used just by way of example. Experiment until finding the right size.

enter image description here

With pict2e:

\documentclass{article}
\usepackage{amsmath}
\usepackage{pict2e,xfp}

\makeatletter
\DeclareRobustCommand{\pointright}{%
  \mathrel{\mathpalette\point@right\relax}%
}
\newcommand{\point@right}[2]{%
  \vcenter{\hbox{\point@@right{#1}}}%
}
\newcommand{\point@@right}[1]{%
  \sbox\z@{$\m@th#1\triangleright$}%
  \setlength{\unitlength}{\ht\z@}%
  \setlength{\dimen@}{\wd\z@}%
  \linethickness{%
    \ifx#1\displaystyle 0.09\unitlength
    \else\ifx#1\textstyle 0.09\unitlength
    \else\ifx#1\scriptstyle 0.11\unitlength
    \else 0.13\unitlength\fi\fi\fi
  }%
  \edef\point@wd{\fpeval{2*(\dimen@/\unitlength)}}%
  \begin{picture}(\point@wd,1)
  \roundjoin
  \polyline(0,0.5)(0,0)(\point@wd,0.5)(0,1)(0,0.2)
  \end{picture}%
}
\makeatother

\begin{document}

$A\pointright B \triangleright C$

$\pointright\triangleright$

$\scriptstyle\pointright\triangleright$

$\scriptscriptstyle\pointright\triangleright$

\end{document}

enter image description here

egreg
  • 1,121,712