Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\big\Vert is the same size as \Big\Vert and is inconsistent with e.g. \big\vert #159

Open
rohitagr opened this issue Jun 23, 2020 · 5 comments
Assignees
Labels
MATH table Problems with the OpenType MATH table
Milestone

Comments

@rohitagr
Copy link

rohitagr commented Jun 23, 2020

The command \big\Vert command produces output which is the same size as \Big\Vert, which results in output inconsistent with other delimiters like \vert, as shown below:
\vert and \Vert in increasing sizes, with \big\Vert and \Big\Vert the same

This was produced by compiling the following with LuaLaTeX (from TeX Live 2020)

\documentclass{article}
\usepackage{unicode-math}
\setmainfont{STIX Two Text}
\setmathfont{STIX Two Math}
\begin{document}
\[
\begin{array}{ccccc}
\vert & \big\vert & \Big\vert & \bigg\vert & \Bigg\vert\\
\Vert & \big\Vert & \Big\Vert & \bigg\Vert & \Bigg\Vert
\end{array}
\]
\end{document}
@rohitagr rohitagr changed the title \big\Vert is the same size as \Big\Vert \big\Vert is the same size as \Big\Vert and is inconsistent with e.g. \big\vert Jun 25, 2020
@rohitagr
Copy link
Author

rohitagr commented Aug 5, 2020

I'm not familiar with OpenType, but looking at the MATH table "Vert. Construction" in FontForge, it looks like U+2016 (double vertical line, corresponding to \Vert) and U+007C (vertical line, corresponding to \vert) have different parameters. If I change the value for U+2016 to match the one for U+007C, that seems to fix this issue, but I don't know if it's the correct fix.

@tiroj
Copy link
Contributor

tiroj commented Aug 6, 2020

Thanks for the analysis. I'll investigate this in the new build.

@xsrvmy
Copy link

xsrvmy commented Jan 29, 2021

Actually there are two distinct issues:

  1. \Vert is too tall when requesting a medium sized bar. This issue stops at around \bBigg@{1.7}.
  2. \vert and \Vert both use stacked bars to form their characters starting at \big instead of at a much larger size. This causes inconsistent sizes between brackets and absolute value bars.

Issue 1 requires a fix in the font or a luatex patch.
Issue 2 can be fixed by changing the math table, adding larger bar characters into the font, or calling \bBigg@.

@davidmjones davidmjones added the MATH table Problems with the OpenType MATH table label Jan 29, 2021
@tiroj tiroj self-assigned this Mar 22, 2021
@tiroj tiroj added this to the v2.20 milestone Mar 22, 2021
@tiroj
Copy link
Contributor

tiroj commented Oct 8, 2021

For 2.20 I have adjusted the height of the math bar characters to be consistent and have added full sets of growing forms and assemblies. Assemblies should also work for the ASCII bar U+007C, but for math it is recommended to use U+2016 (and corresponding multi-bar characters from the 2000 block).

@tiroj tiroj closed this as completed Oct 8, 2021
@tiroj
Copy link
Contributor

tiroj commented Aug 16, 2022

Updated sources and fonts delivered to STI Pub for testing. Issue reopened pending public release.

@tiroj tiroj reopened this Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MATH table Problems with the OpenType MATH table
Projects
None yet
Development

No branches or pull requests

4 participants