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, \bigg et al macros #308

Closed
hvoss49 opened this issue Oct 6, 2017 · 9 comments
Closed

\big, \bigg et al macros #308

hvoss49 opened this issue Oct 6, 2017 · 9 comments

Comments

@hvoss49
Copy link

hvoss49 commented Oct 6, 2017

There is some funny behaviour with all \big, \bigg and so on macros. For example:

\documentclass{article}
%\usepackage{fontspec}
\begin{document}
$\begin{array}{*{17}c}
() & [\,] & <> & /|\backslash & \lmoustache\,\rmoustache & \arrowvert\vert & \Vert\,\Arrowvert & 
\uparrow\downarrow & \updownarrow & \Uparrow\Downarrow & \Updownarrow & \langle\rangle & 
\lbrace\rbrace & \lceil\,\rceil & \lfloor\,\rfloor & \lgroup\rgroup & \bracevert  \\
%
\Bigg(\Bigg) & \Bigg[\,\Bigg] & \Bigg<\Bigg> & \Bigg/\Bigg|\Bigg\backslash & 
\Bigg\lmoustache\,\Bigg\rmoustache & \Bigg\arrowvert\Bigg\vert & \Bigg\Vert\,\Bigg\Arrowvert & 
\Bigg\uparrow\Bigg\downarrow & \Bigg\updownarrow & \Bigg\Uparrow\Bigg\Downarrow & 
\Bigg\Updownarrow & \Bigg\langle\Bigg\rangle & \Bigg\lbrace\Bigg\rbrace & 
\Bigg\lceil\,\Bigg\rceil & \Bigg\lfloor\,\Bigg\rfloor & \Bigg\lgroup\Bigg\rgroup & 
\Bigg\bracevert
\end{array}$
\end{document}

The output with Computer Modern Math looks ok. Using Latin Modern Math (uncommenting package fontspec) gives different wrong results for XeLaTeX and for LuaLaTeX. I am using up-to-date TL2017 and Linux (Ubuntu)

@eg9
Copy link

eg9 commented Oct 6, 2017

I tried, but cannot reproduce the issue. I have updated my TeX Live (MacTeX) to the last possible minute. I just added [4ex] to your array in order to space the rows and geometry not to have an overfull box.

\documentclass{article}
\usepackage[a4paper,margin=2cm]{geometry}
\usepackage{ifxetex,ifluatex}

\ifxetex
  \usepackage{fontspec}
\else
  \ifluatex
    \usepackage{fontspec}
  \fi
\fi

\begin{document}
\ifxetex
  XeTeX
\else
  \ifluatex
    LuaTeX
  \else
    pdftex
  \fi
\fi

\bigskip

$\begin{array}{*{17}c}
() & [\,] & <> & /|\backslash & \lmoustache\,\rmoustache & \arrowvert\vert & \Vert\,\Arrowvert & 
\uparrow\downarrow & \updownarrow & \Uparrow\Downarrow & \Updownarrow & \langle\rangle & 
\lbrace\rbrace & \lceil\,\rceil & \lfloor\,\rfloor & \lgroup\rgroup & \bracevert  \\[4ex]
%
\Bigg(\Bigg) & \Bigg[\,\Bigg] & \Bigg<\Bigg> & \Bigg/\Bigg|\Bigg\backslash & 
\Bigg\lmoustache\,\Bigg\rmoustache & \Bigg\arrowvert\Bigg\vert & \Bigg\Vert\,\Bigg\Arrowvert & 
\Bigg\uparrow\Bigg\downarrow & \Bigg\updownarrow & \Bigg\Uparrow\Bigg\Downarrow & 
\Bigg\Updownarrow & \Bigg\langle\Bigg\rangle & \Bigg\lbrace\Bigg\rbrace & 
\Bigg\lceil\,\Bigg\rceil & \Bigg\lfloor\,\Bigg\rfloor & \Bigg\lgroup\Bigg\rgroup & 
\Bigg\bracevert
\end{array}$
\end{document}

Compiling with pdflatex, xelate and lualatex gives the following results

screen shot 2017-10-06 at 13 30 23
screen shot 2017-10-06 at 13 30 44
screen shot 2017-10-06 at 13 31 03

@hvoss49
Copy link
Author

hvoss49 commented Oct 6, 2017

Confirmed, on MacOSX it works fine, but my examples were created under Linux. Under MAC lualatex/xelatex still uses the cmm, but not the lmm. Load unicode-math instead of fontspec and you'll see that it is different. Here the output with MacOSX:

screenshot 5

screenshot 6

@u-fischer
Copy link
Member

u-fischer commented Oct 6, 2017

I don't understand the remarks about computer modern math and latin modern math: fontspec doesn't change the math setup (at least not the delimiters) and you are not loading unicode-math, so I would expect that your example use the standard cmm fonts (cmex10.pfb etc) and this is what happens for me on windows. (I would not expect the wrong glyphs and I don't get them on windows). You can force lmm-fonts by loading lmodern before fontspec.

@hvoss49
Copy link
Author

hvoss49 commented Oct 6, 2017

As I already wrote when running under Linux with loading fontspec, latex uses lmm and not cmm.With cmm all is fine.

@u-fischer
Copy link
Member

It doesn't for me. Can you show the log-file of a lualatex compilation of the example with fontspec?

@hvoss49
Copy link
Author

hvoss49 commented Oct 6, 2017

FOO.log

@davidcarlisle
Copy link
Member

davidcarlisle commented Oct 6, 2017 via email

@u-fischer
Copy link
Member

You are loading unicode-math, and with it I can reproduce the issue.

@u-fischer
Copy link
Member

With unicode-math the issue is easy to explain: \lmoustache and \rmoustache are not in the font, \arrowvert and the other "curious" outputs are not defined by unicode-math and so you get whatever the old mathcodes points to. The issue should be moved to the unicode-math issue tracker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants