View Issue Details

IDProjectCategoryView StatusLast Update
0000983luatexluatex bugpublic2016-08-28 14:54
Reportermbod Assigned ToHans Hagen  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
PlatformLinuxOSdebianOS Versionstable
Product Version0.79.1 
Summary0000983: wrong spacing for integral sub/superscripts in conjunction with libertine fonts
DescriptionWhen using
\usepackage{libertine}
\usepackage[libertine]{newtxmath}
lualatex puts the sub/superscripts for integrals in math mode too far to the right. To much white space. The issue is the same for lualatex 0.79 and 0.95 (versions found in debian stable and testing). pdflatex does not have this issue.
Steps To Reproduce\documentclass[a4paper,12pt]{article}
\usepackage{libertine}
\usepackage[libertine]{newtxmath}
\usepackage{amsmath}
\usepackage{esint}
\begin{document}
\noindent This is almost trivial to prove:
\begin{equation}
\int_{-\infty}^{\infty}e^{-x^{2}}\,dx=\sqrt{\pi}
\end{equation}
And here are the other integral symbols:
\begin{equation}
\int\quad\iint\quad\iiint\quad\oint\quad\oiint
\end{equation}
\end{document}
Additional InformationSee the attached picture showing PDF screenshots for lualatex (left) and pdflatex (right). Titles of the windows show which is which.
TagsNo tags attached.

Activities

mbod

2016-08-26 22:35

reporter  

Hans Hagen

2016-08-27 12:57

manager   ~0001629

(1) it's not a minimal test (we're not going to check out large packages only plain examplex)

(2) from the code it looks like you use tx fonts so better switch to texgyre alternatives

(3) such spacing issues are most likely either a font issue or a macro package issue (mixed opentype / traditional math fonts)

mbod

2016-08-27 15:25

reporter   ~0001630

Last edited: 2016-08-27 15:27

I can reproduce the issue even with a minimal TeX document like this:
\documentclass[a4paper,12pt]{article}
\usepackage{libertine}
\begin{document}
\noindent This is almost trivial to prove:
$$
\int_{-\infty}^{\infty}e^{-x^{2}}\,dx=\sqrt{\pi}
$$
\end{document}

I understand from your comment that you recommend not to use Libertine fonts with lualatex? Is that correct?

Secondly, if it is a fonts issue like you suggest why is pdflatex not affected?

Hans Hagen

2016-08-27 23:36

manager   ~0001632

We do testign with context mostly and trhere it seems to work ok. I csn't do recommendations for latex as it depends on what fonts gets distributed, how they are loaded, what math fonts get used. I think that libertinus is the follow up on libertine.

It can be that for pdftex different fonts are used than for luatex so a comparison might be irrelevant then. Opentype math is different from 8 bit math.

Just use fonts that look ok and for others wait till their configuration or properties are okay in the syetem you use.

(this discussion is not for a bug tracker btw)

mbod

2016-08-28 11:21

reporter   ~0001633

You are pointing to the right direction. I checked the log files: pdflatex is using type1 fonts (like /usr/share/texlive/texmf-dist/fonts/type1/public/libertine/LinLibertineT.pfb) while lualatex is using opentype (like (/usr/share/fonts/opentype/linux-libertine/LinLibertine_R.otf). When I force type1 fonts in lualatex with \usepackage{libertine-type1} the output is correct. Thank you!

Issue History

Date Modified Username Field Change
2016-08-26 22:35 mbod New Issue
2016-08-26 22:35 mbod File Added: Bildschirmfoto vom 2016-08-26 22:35:47.png
2016-08-27 12:57 Hans Hagen Note Added: 0001629
2016-08-27 15:25 mbod Note Added: 0001630
2016-08-27 15:27 mbod Note Edited: 0001630
2016-08-27 23:36 Hans Hagen Note Added: 0001632
2016-08-28 11:21 mbod Note Added: 0001633
2016-08-28 14:54 Hans Hagen Status new => closed
2016-08-28 14:54 Hans Hagen Assigned To => Hans Hagen
2016-08-28 14:54 Hans Hagen Resolution open => no change required