Git Product home page Git Product logo

Comments (3)

jcsalomon avatar jcsalomon commented on May 27, 2024

Test case from amsmath-testmath:

% !TEX TS-program = xelatex 
% !TEX encoding = UTF-8
\documentclass{minimal}

\usepackage{amsmath}
\usepackage{unicode-math}
\setmathfont{Cambria Math}

\begin{document}
\begin{align*}
    \overrightarrow{\psi_\delta(t) E_t h}&
    =\underrightarrow{\psi_\delta(t) E_t h}\\
    \overleftarrow{\psi_\delta(t) E_t h}&
    =\underleftarrow{\psi_\delta(t) E_t h}\\
    \overleftrightarrow{\psi_\delta(t) E_t h}&
    =\underleftrightarrow{\psi_\delta(t) E_t h}
\end{align*}
\end{document}

The \over***arrows are not extended, and \underrightarrow & \underleftarrow are invisible. Only \underleftrightarrow is correctly sized & positioned, and it is made up of \relbar parts. (The PDF display in TeXworks has a bug that makes this sort of thing visible.)

Changing the font to Asana Math, \overrightarrow, \overleftarrow, & underleftrightarrow are correct; \overleftrightarrow is not extended; and \underleftarrow & \underrightarrow are drawn overlapping the cross-bar of the ‘t’.

With XITS Math, \overleftrightarrow is not extended; \overrightarrow & \overleftarrow have their heads centered over the {…}; and \underleftarrow & \underrightarrow are again drawn at cross-bar height—but they are all single glyphs. Only (the correctly-positioned) underleftrightarrow is made of \relbar parts.

STIXGeneral expands only underleftrightarrow (with \relbar), and positions all but \underleftarrow & \underrightarrow correctly; those are again drawn a bit above mid-line.

I tried a test file on all of these fonts with Windows Notepad:
U+20D7 ◌⃗ U+20EF ◌⃯
U+20D6 ◌⃖ U+20EE ◌⃮
U+20E1 ◌⃡ U+034D ◌͍
Whether the font implements these characters does not seem to bear on how the TeX constructions display.

This is very odd.

from unicode-math.

phst avatar phst commented on May 27, 2024

In LuaTeX, under and over arrows should use \Uunderdelimiter and \Uoverdelimiter like ConTeXt.

from unicode-math.

khaledhosny avatar khaledhosny commented on May 27, 2024

Fixed using over and under accents with both engines.

from unicode-math.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.