1

The following MWE produces a blank document, as the default font does not contain .

\documentclass{article}

\usepackage{polyglossia}
\usepackage{fontspec}

\begin{document}
\(⟿\)
\end{document}

Adding \usepackage{unicode-math} solves the issue:

Unicode-math

How can I get this arrow without using unicode-math? I could prefix the character with \fontspec{some font}, but I don't know which font gives this particular look; other fonts that I tried looked rather different (for example with Asana Math):

Asana math

How do I get the curly arrow pictured above without loading unicode-math?

EDIT: Explicitly selecting Latin Modern Math gives me a blank document:

\documentclass{article}

\usepackage{polyglossia}
\usepackage{fontspec}

\begin{document}
\fontspec{Latin Modern Math}⟿
\end{document}
9
  • If you don't specify any math font, the default Latin Modern Math is used.
    – egreg
    Sep 24, 2015 at 20:48
  • @egreg That's surprising: why would unicode-math make a difference then? Why do I get a blank document when I don't load it?
    – Clément
    Sep 24, 2015 at 21:06
  • Because if you don't load unicode-math, the standard math fonts are used and corresponds to nothing.
    – egreg
    Sep 24, 2015 at 21:15
  • I don't understand: wouldn't explicitly selecting the Latin Modern Math font load it?
    – Clément
    Sep 24, 2015 at 21:46
  • 1
    Conflicting copies of the font, maybe.
    – egreg
    Sep 25, 2015 at 16:58

1 Answer 1

6

You can use a Unicode Math font just like any ordinary font. On my system, the character is present in several fonts.

\documentclass{article}

\usepackage{fontspec}

\newfontface{\applesymbols}{Apple Symbols}
\newfontface{\asanamath}{Asana Math}
\newfontface{\dejavusans}{DejaVu Sans}
\newfontface{\dejavuserif}{DejaVu Serif}
\newfontface{\fdsymbol}{FdSymbol}
\newfontface{\freeserif}{FreeSerif}
\newfontface{\latinmodernmath}{Latin Modern Math}
\newfontface{\mdsymbol}{MdSymbol}
\newfontface{\STIX}{STIX} % also Math
\newfontface{\symbola}{Symbola}
\newfontface{\texgyremath}{TeX Gyre Bonum Math}
\newfontface{\texgyremath}{TeX Gyre DejaVu Math}
\newfontface{\texgyremath}{TeX Gyre Pagella Math}
\newfontface{\texgyremath}{TeX Gyre Schola Math}
\newfontface{\texgyremath}{TeX Gyre Termes Math}
\newfontface{\XITS}{XITS} % also Math

\begin{document}
\begin{tabular}{ll}
\applesymbols ⟿  & Apple Symbols \\
\asanamath ⟿  & Asana Math \\
\dejavusans ⟿  & DejaVu Sans \\
\dejavuserif ⟿  & DejaVu Serif \\
\fdsymbol ⟿  & FdSymbol \\
\freeserif ⟿  & FreeSerif \\
\latinmodernmath ⟿  & Latin Modern Math \\
\mdsymbol ⟿  & MdSymbol \\
\STIX ⟿  & STIX \\ % also Math
\symbola ⟿  & Symbola \\
\texgyremath ⟿  & TeX Gyre Bonum Math \\
\texgyremath ⟿  & TeX Gyre DejaVu Math \\
\texgyremath ⟿  & TeX Gyre Pagella Math \\
\texgyremath ⟿  & TeX Gyre Schola Math \\
\texgyremath ⟿  & TeX Gyre Termes Math \\
\XITS ⟿  & XITS \\ % also Math
\end{tabular}

\end{document}

enter image description here

Choose the one you prefer. Once you have chosen the best one for your taste, you can do something like

\documentclass{article}

\usepackage{fontspec}
\usepackage{newunicodechar}

\newfontface{\squigglefont}{Apple Symbols}[Scale=1.5]

\newunicodechar{⟿}{{\squigglefont⟿}}

\begin{document}

Here is the squiggle ⟿ in a different font
than the main one.

\end{document}

enter image description here

3
  • Thanks. Turned out that this arrow was added semi-recently to Latin Modern Math, and I had multiple conflicting copies of the font (as you guessed a while ago).
    – Clément
    Oct 3, 2016 at 3:51
  • Btw, did you really mean to declare \texgyremath five times in your example?
    – Clément
    Oct 3, 2016 at 3:52
  • @Clément No, I forgot to add suffixes. I'll fix.
    – egreg
    Oct 3, 2016 at 6:12

You must log in to answer this question.

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