LuaLaTeX + unicode-math results in wrong mkern and mskip

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite












In a personal package I tested mkern and mskip for different values using pdfLaTeX and LuaLaTeX, I discovered that the spacing using mkern0mu and mskip0mu seems to leave a negative space of -1.1mu. This is shown in the mwe below. Removing unicode-math gives the correct space. However using XeLaTeX with and without unicode-math gives the correct space, same for pdfLaTeX and amsmath. Is this a bug?



documentclassarticle
usepackageamsmath
usepackageunicode-math

begindocument

$partial mkern 1.1mu t = partial t neq partial mkern 0mu t$

enddocument


enter image description here










share|improve this question





















  • comparison with showoutput of xelatex and lualatex shows that in former case there is always after the partial a kern0.63 which however in the latter engine disappears as soon as one uses mkern.
    – jfbu
    2 hours ago










  • I would guess the kern0.63 is an italic correction.
    – jfbu
    1 hour ago














up vote
3
down vote

favorite












In a personal package I tested mkern and mskip for different values using pdfLaTeX and LuaLaTeX, I discovered that the spacing using mkern0mu and mskip0mu seems to leave a negative space of -1.1mu. This is shown in the mwe below. Removing unicode-math gives the correct space. However using XeLaTeX with and without unicode-math gives the correct space, same for pdfLaTeX and amsmath. Is this a bug?



documentclassarticle
usepackageamsmath
usepackageunicode-math

begindocument

$partial mkern 1.1mu t = partial t neq partial mkern 0mu t$

enddocument


enter image description here










share|improve this question





















  • comparison with showoutput of xelatex and lualatex shows that in former case there is always after the partial a kern0.63 which however in the latter engine disappears as soon as one uses mkern.
    – jfbu
    2 hours ago










  • I would guess the kern0.63 is an italic correction.
    – jfbu
    1 hour ago












up vote
3
down vote

favorite









up vote
3
down vote

favorite











In a personal package I tested mkern and mskip for different values using pdfLaTeX and LuaLaTeX, I discovered that the spacing using mkern0mu and mskip0mu seems to leave a negative space of -1.1mu. This is shown in the mwe below. Removing unicode-math gives the correct space. However using XeLaTeX with and without unicode-math gives the correct space, same for pdfLaTeX and amsmath. Is this a bug?



documentclassarticle
usepackageamsmath
usepackageunicode-math

begindocument

$partial mkern 1.1mu t = partial t neq partial mkern 0mu t$

enddocument


enter image description here










share|improve this question













In a personal package I tested mkern and mskip for different values using pdfLaTeX and LuaLaTeX, I discovered that the spacing using mkern0mu and mskip0mu seems to leave a negative space of -1.1mu. This is shown in the mwe below. Removing unicode-math gives the correct space. However using XeLaTeX with and without unicode-math gives the correct space, same for pdfLaTeX and amsmath. Is this a bug?



documentclassarticle
usepackageamsmath
usepackageunicode-math

begindocument

$partial mkern 1.1mu t = partial t neq partial mkern 0mu t$

enddocument


enter image description here







luatex unicode-math kerning






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 2 hours ago









Simon

30728




30728











  • comparison with showoutput of xelatex and lualatex shows that in former case there is always after the partial a kern0.63 which however in the latter engine disappears as soon as one uses mkern.
    – jfbu
    2 hours ago










  • I would guess the kern0.63 is an italic correction.
    – jfbu
    1 hour ago
















  • comparison with showoutput of xelatex and lualatex shows that in former case there is always after the partial a kern0.63 which however in the latter engine disappears as soon as one uses mkern.
    – jfbu
    2 hours ago










  • I would guess the kern0.63 is an italic correction.
    – jfbu
    1 hour ago















comparison with showoutput of xelatex and lualatex shows that in former case there is always after the partial a kern0.63 which however in the latter engine disappears as soon as one uses mkern.
– jfbu
2 hours ago




comparison with showoutput of xelatex and lualatex shows that in former case there is always after the partial a kern0.63 which however in the latter engine disappears as soon as one uses mkern.
– jfbu
2 hours ago












I would guess the kern0.63 is an italic correction.
– jfbu
1 hour ago




I would guess the kern0.63 is an italic correction.
– jfbu
1 hour ago










1 Answer
1






active

oldest

votes

















up vote
2
down vote













When mkern is used the default (italic) kern is removed. You can set mathitalicsmode=1 to change this behaviour:



documentclassarticle
usepackageamsmath
usepackageunicode-math
begindocument
showoutput
$partial mkern 1.1mu t = partial t neq partial mkern 0mu t$

mathitalicsmode=1

$partial mkern 1.1mu t = partial t neq partial mkern 0mu t$

enddocument


enter image description here






share|improve this answer




















  • so, you mean is removed by luatex or by unicode-math? because it shows with xelatex.
    – jfbu
    1 hour ago










  • @jfbu by luatex (luatex's treatment of math italic correction is very different from that of classic tex or xetex)
    – David Carlisle
    1 hour ago











  • mathitalicsmode is a primitive of luatex.
    – Ulrike Fischer
    1 hour ago










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f455972%2flualatex-unicode-math-results-in-wrong-mkern-and-mskip%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
2
down vote













When mkern is used the default (italic) kern is removed. You can set mathitalicsmode=1 to change this behaviour:



documentclassarticle
usepackageamsmath
usepackageunicode-math
begindocument
showoutput
$partial mkern 1.1mu t = partial t neq partial mkern 0mu t$

mathitalicsmode=1

$partial mkern 1.1mu t = partial t neq partial mkern 0mu t$

enddocument


enter image description here






share|improve this answer




















  • so, you mean is removed by luatex or by unicode-math? because it shows with xelatex.
    – jfbu
    1 hour ago










  • @jfbu by luatex (luatex's treatment of math italic correction is very different from that of classic tex or xetex)
    – David Carlisle
    1 hour ago











  • mathitalicsmode is a primitive of luatex.
    – Ulrike Fischer
    1 hour ago














up vote
2
down vote













When mkern is used the default (italic) kern is removed. You can set mathitalicsmode=1 to change this behaviour:



documentclassarticle
usepackageamsmath
usepackageunicode-math
begindocument
showoutput
$partial mkern 1.1mu t = partial t neq partial mkern 0mu t$

mathitalicsmode=1

$partial mkern 1.1mu t = partial t neq partial mkern 0mu t$

enddocument


enter image description here






share|improve this answer




















  • so, you mean is removed by luatex or by unicode-math? because it shows with xelatex.
    – jfbu
    1 hour ago










  • @jfbu by luatex (luatex's treatment of math italic correction is very different from that of classic tex or xetex)
    – David Carlisle
    1 hour ago











  • mathitalicsmode is a primitive of luatex.
    – Ulrike Fischer
    1 hour ago












up vote
2
down vote










up vote
2
down vote









When mkern is used the default (italic) kern is removed. You can set mathitalicsmode=1 to change this behaviour:



documentclassarticle
usepackageamsmath
usepackageunicode-math
begindocument
showoutput
$partial mkern 1.1mu t = partial t neq partial mkern 0mu t$

mathitalicsmode=1

$partial mkern 1.1mu t = partial t neq partial mkern 0mu t$

enddocument


enter image description here






share|improve this answer












When mkern is used the default (italic) kern is removed. You can set mathitalicsmode=1 to change this behaviour:



documentclassarticle
usepackageamsmath
usepackageunicode-math
begindocument
showoutput
$partial mkern 1.1mu t = partial t neq partial mkern 0mu t$

mathitalicsmode=1

$partial mkern 1.1mu t = partial t neq partial mkern 0mu t$

enddocument


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered 1 hour ago









Ulrike Fischer

181k7286655




181k7286655











  • so, you mean is removed by luatex or by unicode-math? because it shows with xelatex.
    – jfbu
    1 hour ago










  • @jfbu by luatex (luatex's treatment of math italic correction is very different from that of classic tex or xetex)
    – David Carlisle
    1 hour ago











  • mathitalicsmode is a primitive of luatex.
    – Ulrike Fischer
    1 hour ago
















  • so, you mean is removed by luatex or by unicode-math? because it shows with xelatex.
    – jfbu
    1 hour ago










  • @jfbu by luatex (luatex's treatment of math italic correction is very different from that of classic tex or xetex)
    – David Carlisle
    1 hour ago











  • mathitalicsmode is a primitive of luatex.
    – Ulrike Fischer
    1 hour ago















so, you mean is removed by luatex or by unicode-math? because it shows with xelatex.
– jfbu
1 hour ago




so, you mean is removed by luatex or by unicode-math? because it shows with xelatex.
– jfbu
1 hour ago












@jfbu by luatex (luatex's treatment of math italic correction is very different from that of classic tex or xetex)
– David Carlisle
1 hour ago





@jfbu by luatex (luatex's treatment of math italic correction is very different from that of classic tex or xetex)
– David Carlisle
1 hour ago













mathitalicsmode is a primitive of luatex.
– Ulrike Fischer
1 hour ago




mathitalicsmode is a primitive of luatex.
– Ulrike Fischer
1 hour ago

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f455972%2flualatex-unicode-math-results-in-wrong-mkern-and-mskip%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

Long meetings (6-7 hours a day): Being “babysat” by supervisor

Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

Confectionery