LuaLaTeX + unicode-math results in wrong mkern and mskip
Clash 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
luatex unicode-math kerning
add a comment |Â
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
luatex unicode-math kerning
comparison withshowoutput
of xelatex and lualatex shows that in former case there is always after thepartial
akern0.63
which however in the latter engine disappears as soon as one usesmkern
.
â jfbu
2 hours ago
I would guess thekern0.63
is an italic correction.
â jfbu
1 hour ago
add a comment |Â
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
luatex unicode-math kerning
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
luatex unicode-math kerning
luatex unicode-math kerning
asked 2 hours ago
Simon
30728
30728
comparison withshowoutput
of xelatex and lualatex shows that in former case there is always after thepartial
akern0.63
which however in the latter engine disappears as soon as one usesmkern
.
â jfbu
2 hours ago
I would guess thekern0.63
is an italic correction.
â jfbu
1 hour ago
add a comment |Â
comparison withshowoutput
of xelatex and lualatex shows that in former case there is always after thepartial
akern0.63
which however in the latter engine disappears as soon as one usesmkern
.
â jfbu
2 hours ago
I would guess thekern0.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
add a comment |Â
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
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
add a comment |Â
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
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
add a comment |Â
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
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
add a comment |Â
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
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
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
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
comparison with
showoutput
of xelatex and lualatex shows that in former case there is always after thepartial
akern0.63
which however in the latter engine disappears as soon as one usesmkern
.â jfbu
2 hours ago
I would guess the
kern0.63
is an italic correction.â jfbu
1 hour ago