2

I'm trying to use STIX 2.0 fonts and typeset a file using lualatex. I faced an issue on the \overleftrightarrow as it is not responsive correctly.

This is the code I use:

\documentclass{article}
\usepackage{unicode-math}
\setmainfont{STIX2Text-Regular.otf}
\setmathfont[StylisticSet=8]{STIX2Math.otf}

\begin{document}
$\overleftrightarrow{ABC}$
\end{document}

And here is the output:

enter image description here

I expected the output to be like this:

enter image description here

Are there any solution for this issue?

1

1 Answer 1

2

Apparently, U+020E1 is not extensible in STIX2, whereas it is in STIX (v. 1) and in XITS Math.

Workaround:

\documentclass{article}
\usepackage{amsmath}
\usepackage{unicode-math}
\setmainfont{STIX Two Text}
\setmathfont[StylisticSet=8]{STIX Two Math}
\setmathfont[range=\overleftrightarrow]{XITS Math}

\begin{document}

$\overleftrightarrow{ABC}+\overleftarrow{ABC}+\overrightarrow{ABC}$

\end{document}

enter image description here

2
  • i assume that you were the one who reportrd the problem on github. thanks. Jan 14, 2018 at 14:38
  • @barbarabeeton No, I found a bug report about the issue and added some information.
    – egreg
    Jan 14, 2018 at 14:46

You must log in to answer this question.

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