Why Does Word Spacing Change Drastically When Using Libertine/Libertinus with the Various LaTeX Engines?

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











up vote
15
down vote

favorite
1












I was just messing around in LaTeX with the libertine and libertinus packages, and noticed that switching from LaTeX to XeLaTex to LuaLaTeX all produced PDFs that were mostly the same length, except spacing in paragraphs slightly changed.



What is causing this? Is there any “correct” output?



At first I thought it had to do with the fact that libertinus switches from Type 1 encoding with pdfLaTeX and OpenType with XeLaTeX/LuaLaTeX (not sure if libertine works in the same way), but even the outputs from XeLaTeX and LuaLaTeX are different.



documentclassturabian-researchpaper
usepackagebiblatex-chicago
usepackageturabian-formatting
usepackage[pass,letterpaper]geometry
usepackagelibertine % or libertinus %

begindocument

Afraid of intimacy, we use technology to remove ourselves from the real world because we
believe more will listen to us when we are online. The internet and our phones become an
addiction that is hard to break. Although our technological habits change our personal
relationships for the worst, we continue the cycle of needing to text or post to social
media to feel validated. We have been blinded by our own emotions into thinking we need to
be online so we don't have to self-reflect, even though the situation is the opposite. This
is extremely harmful to our social skills, and we form habits that, before technology, most
would have called awkward or antisocial. We sit with our friends without interacting. We go
to cafés alone to do nothing but text. We spew hateful comments online through the barrier
of anonymity. However, the habit of checking your phone, posting to social media, and
commenting on content is extremely hard to break and needs patience and the willingness to
take breaks often. Technology does not need to always be wasting resources in the back of
your mind.
footnoteBefore you start an unrelated argument, I'm not actually anti-technology like
this might suggest. This was an essay written to appease an English teacher.

enddocument


Sorry if this isn't minimal enough. I couldn't find a way reproduce the issue without these words and packages.



This GIF demonstrates the differences between pdfLaTeX, XeLaTeX, and LuaLaTeX. The different spacing produced by the different TeX engines.




(Added by David Carlisle) test file just using article class but the same width and font settings as in the original example, it shows the same three output variants for pdf/xe/lua latex as the original but has less dependencies so a bit easier to trace (perhaps)



documentclass[12pt]article


usepackagelibertine % or libertinus %

setlengthtextwidth469.755pt
setlengthparindent36.135pt
addtolengthoddsidemargin-1cm

begindocument

typeoutthefont
typeoutthefontdimen2font % space
typeoutthefontdimen3font % stretch
typeoutthefontdimen4font % shrink
typeoutthefontdimen7font % punct

Afraid of intimacy, we use technology to remove ourselves from the real world because we
believe more will listen to us when we are online. The internet and our phones become an
addiction that is hard to break. Although our technological habits change our personal
relationships for the worst, we continue the cycle of needing to text or post to social
media to feel validated. We have been blinded by our own emotions into thinking we need to
be online so we don't have to self-reflect, even though the situation is the opposite. This
is extremely harmful to our social skills, and we form habits that, before technology, most
would have called awkward or antisocial. We sit with our friends without interacting. We go
to cafés alone to do nothing but text. We spew hateful comments online through the barrier
of anonymity. However, the habit of checking your phone, posting to social media, and
commenting on content is extremely hard to break and needs patience and the willingness to
take breaks often. Technology does not need to always be wasting resources in the back of
your mind.


enddocument









share|improve this question



















  • 4




    unrelated but you shouldn't have that linebreak before the footnote or you could get a linebreak before the footnote marker
    – David Carlisle
    Sep 7 at 8:14










  • @DavidCarlisle Yeah, I made a lot of changes while hastily writing that code to make it easier to read. Originially the footnote was right at the end of the last sentence. Thanks, though. Didn't realize that could happen.
    – Mark Boltz
    Sep 7 at 18:26










  • Another unrelated note on your initial example using the turabian-formatting package: you don't need to (nor should you) specify usepackageturabian-formatting. Simply loading the turabian-researchpaper document class will create a turabian-formatted research paper.
    – Omar
    Sep 10 at 1:06














up vote
15
down vote

favorite
1












I was just messing around in LaTeX with the libertine and libertinus packages, and noticed that switching from LaTeX to XeLaTex to LuaLaTeX all produced PDFs that were mostly the same length, except spacing in paragraphs slightly changed.



What is causing this? Is there any “correct” output?



At first I thought it had to do with the fact that libertinus switches from Type 1 encoding with pdfLaTeX and OpenType with XeLaTeX/LuaLaTeX (not sure if libertine works in the same way), but even the outputs from XeLaTeX and LuaLaTeX are different.



documentclassturabian-researchpaper
usepackagebiblatex-chicago
usepackageturabian-formatting
usepackage[pass,letterpaper]geometry
usepackagelibertine % or libertinus %

begindocument

Afraid of intimacy, we use technology to remove ourselves from the real world because we
believe more will listen to us when we are online. The internet and our phones become an
addiction that is hard to break. Although our technological habits change our personal
relationships for the worst, we continue the cycle of needing to text or post to social
media to feel validated. We have been blinded by our own emotions into thinking we need to
be online so we don't have to self-reflect, even though the situation is the opposite. This
is extremely harmful to our social skills, and we form habits that, before technology, most
would have called awkward or antisocial. We sit with our friends without interacting. We go
to cafés alone to do nothing but text. We spew hateful comments online through the barrier
of anonymity. However, the habit of checking your phone, posting to social media, and
commenting on content is extremely hard to break and needs patience and the willingness to
take breaks often. Technology does not need to always be wasting resources in the back of
your mind.
footnoteBefore you start an unrelated argument, I'm not actually anti-technology like
this might suggest. This was an essay written to appease an English teacher.

enddocument


Sorry if this isn't minimal enough. I couldn't find a way reproduce the issue without these words and packages.



This GIF demonstrates the differences between pdfLaTeX, XeLaTeX, and LuaLaTeX. The different spacing produced by the different TeX engines.




(Added by David Carlisle) test file just using article class but the same width and font settings as in the original example, it shows the same three output variants for pdf/xe/lua latex as the original but has less dependencies so a bit easier to trace (perhaps)



documentclass[12pt]article


usepackagelibertine % or libertinus %

setlengthtextwidth469.755pt
setlengthparindent36.135pt
addtolengthoddsidemargin-1cm

begindocument

typeoutthefont
typeoutthefontdimen2font % space
typeoutthefontdimen3font % stretch
typeoutthefontdimen4font % shrink
typeoutthefontdimen7font % punct

Afraid of intimacy, we use technology to remove ourselves from the real world because we
believe more will listen to us when we are online. The internet and our phones become an
addiction that is hard to break. Although our technological habits change our personal
relationships for the worst, we continue the cycle of needing to text or post to social
media to feel validated. We have been blinded by our own emotions into thinking we need to
be online so we don't have to self-reflect, even though the situation is the opposite. This
is extremely harmful to our social skills, and we form habits that, before technology, most
would have called awkward or antisocial. We sit with our friends without interacting. We go
to cafés alone to do nothing but text. We spew hateful comments online through the barrier
of anonymity. However, the habit of checking your phone, posting to social media, and
commenting on content is extremely hard to break and needs patience and the willingness to
take breaks often. Technology does not need to always be wasting resources in the back of
your mind.


enddocument









share|improve this question



















  • 4




    unrelated but you shouldn't have that linebreak before the footnote or you could get a linebreak before the footnote marker
    – David Carlisle
    Sep 7 at 8:14










  • @DavidCarlisle Yeah, I made a lot of changes while hastily writing that code to make it easier to read. Originially the footnote was right at the end of the last sentence. Thanks, though. Didn't realize that could happen.
    – Mark Boltz
    Sep 7 at 18:26










  • Another unrelated note on your initial example using the turabian-formatting package: you don't need to (nor should you) specify usepackageturabian-formatting. Simply loading the turabian-researchpaper document class will create a turabian-formatted research paper.
    – Omar
    Sep 10 at 1:06












up vote
15
down vote

favorite
1









up vote
15
down vote

favorite
1






1





I was just messing around in LaTeX with the libertine and libertinus packages, and noticed that switching from LaTeX to XeLaTex to LuaLaTeX all produced PDFs that were mostly the same length, except spacing in paragraphs slightly changed.



What is causing this? Is there any “correct” output?



At first I thought it had to do with the fact that libertinus switches from Type 1 encoding with pdfLaTeX and OpenType with XeLaTeX/LuaLaTeX (not sure if libertine works in the same way), but even the outputs from XeLaTeX and LuaLaTeX are different.



documentclassturabian-researchpaper
usepackagebiblatex-chicago
usepackageturabian-formatting
usepackage[pass,letterpaper]geometry
usepackagelibertine % or libertinus %

begindocument

Afraid of intimacy, we use technology to remove ourselves from the real world because we
believe more will listen to us when we are online. The internet and our phones become an
addiction that is hard to break. Although our technological habits change our personal
relationships for the worst, we continue the cycle of needing to text or post to social
media to feel validated. We have been blinded by our own emotions into thinking we need to
be online so we don't have to self-reflect, even though the situation is the opposite. This
is extremely harmful to our social skills, and we form habits that, before technology, most
would have called awkward or antisocial. We sit with our friends without interacting. We go
to cafés alone to do nothing but text. We spew hateful comments online through the barrier
of anonymity. However, the habit of checking your phone, posting to social media, and
commenting on content is extremely hard to break and needs patience and the willingness to
take breaks often. Technology does not need to always be wasting resources in the back of
your mind.
footnoteBefore you start an unrelated argument, I'm not actually anti-technology like
this might suggest. This was an essay written to appease an English teacher.

enddocument


Sorry if this isn't minimal enough. I couldn't find a way reproduce the issue without these words and packages.



This GIF demonstrates the differences between pdfLaTeX, XeLaTeX, and LuaLaTeX. The different spacing produced by the different TeX engines.




(Added by David Carlisle) test file just using article class but the same width and font settings as in the original example, it shows the same three output variants for pdf/xe/lua latex as the original but has less dependencies so a bit easier to trace (perhaps)



documentclass[12pt]article


usepackagelibertine % or libertinus %

setlengthtextwidth469.755pt
setlengthparindent36.135pt
addtolengthoddsidemargin-1cm

begindocument

typeoutthefont
typeoutthefontdimen2font % space
typeoutthefontdimen3font % stretch
typeoutthefontdimen4font % shrink
typeoutthefontdimen7font % punct

Afraid of intimacy, we use technology to remove ourselves from the real world because we
believe more will listen to us when we are online. The internet and our phones become an
addiction that is hard to break. Although our technological habits change our personal
relationships for the worst, we continue the cycle of needing to text or post to social
media to feel validated. We have been blinded by our own emotions into thinking we need to
be online so we don't have to self-reflect, even though the situation is the opposite. This
is extremely harmful to our social skills, and we form habits that, before technology, most
would have called awkward or antisocial. We sit with our friends without interacting. We go
to cafés alone to do nothing but text. We spew hateful comments online through the barrier
of anonymity. However, the habit of checking your phone, posting to social media, and
commenting on content is extremely hard to break and needs patience and the willingness to
take breaks often. Technology does not need to always be wasting resources in the back of
your mind.


enddocument









share|improve this question















I was just messing around in LaTeX with the libertine and libertinus packages, and noticed that switching from LaTeX to XeLaTex to LuaLaTeX all produced PDFs that were mostly the same length, except spacing in paragraphs slightly changed.



What is causing this? Is there any “correct” output?



At first I thought it had to do with the fact that libertinus switches from Type 1 encoding with pdfLaTeX and OpenType with XeLaTeX/LuaLaTeX (not sure if libertine works in the same way), but even the outputs from XeLaTeX and LuaLaTeX are different.



documentclassturabian-researchpaper
usepackagebiblatex-chicago
usepackageturabian-formatting
usepackage[pass,letterpaper]geometry
usepackagelibertine % or libertinus %

begindocument

Afraid of intimacy, we use technology to remove ourselves from the real world because we
believe more will listen to us when we are online. The internet and our phones become an
addiction that is hard to break. Although our technological habits change our personal
relationships for the worst, we continue the cycle of needing to text or post to social
media to feel validated. We have been blinded by our own emotions into thinking we need to
be online so we don't have to self-reflect, even though the situation is the opposite. This
is extremely harmful to our social skills, and we form habits that, before technology, most
would have called awkward or antisocial. We sit with our friends without interacting. We go
to cafés alone to do nothing but text. We spew hateful comments online through the barrier
of anonymity. However, the habit of checking your phone, posting to social media, and
commenting on content is extremely hard to break and needs patience and the willingness to
take breaks often. Technology does not need to always be wasting resources in the back of
your mind.
footnoteBefore you start an unrelated argument, I'm not actually anti-technology like
this might suggest. This was an essay written to appease an English teacher.

enddocument


Sorry if this isn't minimal enough. I couldn't find a way reproduce the issue without these words and packages.



This GIF demonstrates the differences between pdfLaTeX, XeLaTeX, and LuaLaTeX. The different spacing produced by the different TeX engines.




(Added by David Carlisle) test file just using article class but the same width and font settings as in the original example, it shows the same three output variants for pdf/xe/lua latex as the original but has less dependencies so a bit easier to trace (perhaps)



documentclass[12pt]article


usepackagelibertine % or libertinus %

setlengthtextwidth469.755pt
setlengthparindent36.135pt
addtolengthoddsidemargin-1cm

begindocument

typeoutthefont
typeoutthefontdimen2font % space
typeoutthefontdimen3font % stretch
typeoutthefontdimen4font % shrink
typeoutthefontdimen7font % punct

Afraid of intimacy, we use technology to remove ourselves from the real world because we
believe more will listen to us when we are online. The internet and our phones become an
addiction that is hard to break. Although our technological habits change our personal
relationships for the worst, we continue the cycle of needing to text or post to social
media to feel validated. We have been blinded by our own emotions into thinking we need to
be online so we don't have to self-reflect, even though the situation is the opposite. This
is extremely harmful to our social skills, and we form habits that, before technology, most
would have called awkward or antisocial. We sit with our friends without interacting. We go
to cafés alone to do nothing but text. We spew hateful comments online through the barrier
of anonymity. However, the habit of checking your phone, posting to social media, and
commenting on content is extremely hard to break and needs patience and the willingness to
take breaks often. Technology does not need to always be wasting resources in the back of
your mind.


enddocument






xetex luatex libertine letterspacing libertinus






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 7 at 15:54









David Carlisle

467k3810951819




467k3810951819










asked Sep 7 at 7:45









Mark Boltz

785




785







  • 4




    unrelated but you shouldn't have that linebreak before the footnote or you could get a linebreak before the footnote marker
    – David Carlisle
    Sep 7 at 8:14










  • @DavidCarlisle Yeah, I made a lot of changes while hastily writing that code to make it easier to read. Originially the footnote was right at the end of the last sentence. Thanks, though. Didn't realize that could happen.
    – Mark Boltz
    Sep 7 at 18:26










  • Another unrelated note on your initial example using the turabian-formatting package: you don't need to (nor should you) specify usepackageturabian-formatting. Simply loading the turabian-researchpaper document class will create a turabian-formatted research paper.
    – Omar
    Sep 10 at 1:06












  • 4




    unrelated but you shouldn't have that linebreak before the footnote or you could get a linebreak before the footnote marker
    – David Carlisle
    Sep 7 at 8:14










  • @DavidCarlisle Yeah, I made a lot of changes while hastily writing that code to make it easier to read. Originially the footnote was right at the end of the last sentence. Thanks, though. Didn't realize that could happen.
    – Mark Boltz
    Sep 7 at 18:26










  • Another unrelated note on your initial example using the turabian-formatting package: you don't need to (nor should you) specify usepackageturabian-formatting. Simply loading the turabian-researchpaper document class will create a turabian-formatted research paper.
    – Omar
    Sep 10 at 1:06







4




4




unrelated but you shouldn't have that linebreak before the footnote or you could get a linebreak before the footnote marker
– David Carlisle
Sep 7 at 8:14




unrelated but you shouldn't have that linebreak before the footnote or you could get a linebreak before the footnote marker
– David Carlisle
Sep 7 at 8:14












@DavidCarlisle Yeah, I made a lot of changes while hastily writing that code to make it easier to read. Originially the footnote was right at the end of the last sentence. Thanks, though. Didn't realize that could happen.
– Mark Boltz
Sep 7 at 18:26




@DavidCarlisle Yeah, I made a lot of changes while hastily writing that code to make it easier to read. Originially the footnote was right at the end of the last sentence. Thanks, though. Didn't realize that could happen.
– Mark Boltz
Sep 7 at 18:26












Another unrelated note on your initial example using the turabian-formatting package: you don't need to (nor should you) specify usepackageturabian-formatting. Simply loading the turabian-researchpaper document class will create a turabian-formatted research paper.
– Omar
Sep 10 at 1:06




Another unrelated note on your initial example using the turabian-formatting package: you don't need to (nor should you) specify usepackageturabian-formatting. Simply loading the turabian-researchpaper document class will create a turabian-formatted research paper.
– Omar
Sep 10 at 1:06










1 Answer
1






active

oldest

votes

















up vote
15
down vote



accepted










If you add



typeoutthefont
typeoutthefontdimen2font %space
typeoutthefontdimen3font %stretch
typeoutthefontdimen4font % shrink
typeoutthefontdimen7font % punct


after begindocument then you will find



pdftex



OT1/LinuxLibertineT-TLF/m/n/12 
3.0pt
1.5pt
0.99959pt
0.5004pt


xetex



TU/LinLibertine(0)/m/n/12 
3.0pt
1.5pt
1.0pt
1.0pt


luatex



TU/LinLibertine(0)/m/n/12 
3.0pt
1.5pt
1.0pt
1.0pt


Note that fontdimen7 (extra space after punctuation) ends up twice as large in the OpenType font as in the tfm metrics used by pdftex. I note the libertinus font suport had an update yesterday in texlive this is with the latest version of that package (and a development build of luatex 1.09) running over texlive 2018.



So the big difference between pdftex and the others is not surprising, it's harder to see an obvious reason for a difference between luatex and xetex other than luatex explicitly documents that it uses a variant hyphenation algorithm that doesn't always choose the same points even using the same patterns.






share|improve this answer




















  • hmm actually hyphenation points chosen for luatex and xetex are same but line breaks are still different, I may look again later and add to this answer.
    – David Carlisle
    Sep 7 at 8:26










  • Something to do with microtypography? XeTeX is more limited there ...
    – Joseph Wright♦
    Sep 7 at 8:26










  • Without the extra packages in OP's example, XeLaTeX/LuaLaTeX with linertinus give same output (to the eye) which is almost same as PDFLaTeX except for the footnote marker going to next line with XeLaTeX/LuaLaTeX.
    – jfbu
    Sep 7 at 8:46






  • 2




    @jfbu I added an article class example to the question
    – David Carlisle
    Sep 7 at 15:54






  • 2




    @MarkBoltz it's quite possible that the difference isn't intended to be that big, if I can work out why lualatex has changed the line breaking from xetex (using the same fonts) I may ask the font maintainers if the type1 and OTF metrics are supposed to be more similar....
    – David Carlisle
    Sep 7 at 18:55










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%2f449804%2fwhy-does-word-spacing-change-drastically-when-using-libertine-libertinus-with-th%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
15
down vote



accepted










If you add



typeoutthefont
typeoutthefontdimen2font %space
typeoutthefontdimen3font %stretch
typeoutthefontdimen4font % shrink
typeoutthefontdimen7font % punct


after begindocument then you will find



pdftex



OT1/LinuxLibertineT-TLF/m/n/12 
3.0pt
1.5pt
0.99959pt
0.5004pt


xetex



TU/LinLibertine(0)/m/n/12 
3.0pt
1.5pt
1.0pt
1.0pt


luatex



TU/LinLibertine(0)/m/n/12 
3.0pt
1.5pt
1.0pt
1.0pt


Note that fontdimen7 (extra space after punctuation) ends up twice as large in the OpenType font as in the tfm metrics used by pdftex. I note the libertinus font suport had an update yesterday in texlive this is with the latest version of that package (and a development build of luatex 1.09) running over texlive 2018.



So the big difference between pdftex and the others is not surprising, it's harder to see an obvious reason for a difference between luatex and xetex other than luatex explicitly documents that it uses a variant hyphenation algorithm that doesn't always choose the same points even using the same patterns.






share|improve this answer




















  • hmm actually hyphenation points chosen for luatex and xetex are same but line breaks are still different, I may look again later and add to this answer.
    – David Carlisle
    Sep 7 at 8:26










  • Something to do with microtypography? XeTeX is more limited there ...
    – Joseph Wright♦
    Sep 7 at 8:26










  • Without the extra packages in OP's example, XeLaTeX/LuaLaTeX with linertinus give same output (to the eye) which is almost same as PDFLaTeX except for the footnote marker going to next line with XeLaTeX/LuaLaTeX.
    – jfbu
    Sep 7 at 8:46






  • 2




    @jfbu I added an article class example to the question
    – David Carlisle
    Sep 7 at 15:54






  • 2




    @MarkBoltz it's quite possible that the difference isn't intended to be that big, if I can work out why lualatex has changed the line breaking from xetex (using the same fonts) I may ask the font maintainers if the type1 and OTF metrics are supposed to be more similar....
    – David Carlisle
    Sep 7 at 18:55














up vote
15
down vote



accepted










If you add



typeoutthefont
typeoutthefontdimen2font %space
typeoutthefontdimen3font %stretch
typeoutthefontdimen4font % shrink
typeoutthefontdimen7font % punct


after begindocument then you will find



pdftex



OT1/LinuxLibertineT-TLF/m/n/12 
3.0pt
1.5pt
0.99959pt
0.5004pt


xetex



TU/LinLibertine(0)/m/n/12 
3.0pt
1.5pt
1.0pt
1.0pt


luatex



TU/LinLibertine(0)/m/n/12 
3.0pt
1.5pt
1.0pt
1.0pt


Note that fontdimen7 (extra space after punctuation) ends up twice as large in the OpenType font as in the tfm metrics used by pdftex. I note the libertinus font suport had an update yesterday in texlive this is with the latest version of that package (and a development build of luatex 1.09) running over texlive 2018.



So the big difference between pdftex and the others is not surprising, it's harder to see an obvious reason for a difference between luatex and xetex other than luatex explicitly documents that it uses a variant hyphenation algorithm that doesn't always choose the same points even using the same patterns.






share|improve this answer




















  • hmm actually hyphenation points chosen for luatex and xetex are same but line breaks are still different, I may look again later and add to this answer.
    – David Carlisle
    Sep 7 at 8:26










  • Something to do with microtypography? XeTeX is more limited there ...
    – Joseph Wright♦
    Sep 7 at 8:26










  • Without the extra packages in OP's example, XeLaTeX/LuaLaTeX with linertinus give same output (to the eye) which is almost same as PDFLaTeX except for the footnote marker going to next line with XeLaTeX/LuaLaTeX.
    – jfbu
    Sep 7 at 8:46






  • 2




    @jfbu I added an article class example to the question
    – David Carlisle
    Sep 7 at 15:54






  • 2




    @MarkBoltz it's quite possible that the difference isn't intended to be that big, if I can work out why lualatex has changed the line breaking from xetex (using the same fonts) I may ask the font maintainers if the type1 and OTF metrics are supposed to be more similar....
    – David Carlisle
    Sep 7 at 18:55












up vote
15
down vote



accepted







up vote
15
down vote



accepted






If you add



typeoutthefont
typeoutthefontdimen2font %space
typeoutthefontdimen3font %stretch
typeoutthefontdimen4font % shrink
typeoutthefontdimen7font % punct


after begindocument then you will find



pdftex



OT1/LinuxLibertineT-TLF/m/n/12 
3.0pt
1.5pt
0.99959pt
0.5004pt


xetex



TU/LinLibertine(0)/m/n/12 
3.0pt
1.5pt
1.0pt
1.0pt


luatex



TU/LinLibertine(0)/m/n/12 
3.0pt
1.5pt
1.0pt
1.0pt


Note that fontdimen7 (extra space after punctuation) ends up twice as large in the OpenType font as in the tfm metrics used by pdftex. I note the libertinus font suport had an update yesterday in texlive this is with the latest version of that package (and a development build of luatex 1.09) running over texlive 2018.



So the big difference between pdftex and the others is not surprising, it's harder to see an obvious reason for a difference between luatex and xetex other than luatex explicitly documents that it uses a variant hyphenation algorithm that doesn't always choose the same points even using the same patterns.






share|improve this answer












If you add



typeoutthefont
typeoutthefontdimen2font %space
typeoutthefontdimen3font %stretch
typeoutthefontdimen4font % shrink
typeoutthefontdimen7font % punct


after begindocument then you will find



pdftex



OT1/LinuxLibertineT-TLF/m/n/12 
3.0pt
1.5pt
0.99959pt
0.5004pt


xetex



TU/LinLibertine(0)/m/n/12 
3.0pt
1.5pt
1.0pt
1.0pt


luatex



TU/LinLibertine(0)/m/n/12 
3.0pt
1.5pt
1.0pt
1.0pt


Note that fontdimen7 (extra space after punctuation) ends up twice as large in the OpenType font as in the tfm metrics used by pdftex. I note the libertinus font suport had an update yesterday in texlive this is with the latest version of that package (and a development build of luatex 1.09) running over texlive 2018.



So the big difference between pdftex and the others is not surprising, it's harder to see an obvious reason for a difference between luatex and xetex other than luatex explicitly documents that it uses a variant hyphenation algorithm that doesn't always choose the same points even using the same patterns.







share|improve this answer












share|improve this answer



share|improve this answer










answered Sep 7 at 8:12









David Carlisle

467k3810951819




467k3810951819











  • hmm actually hyphenation points chosen for luatex and xetex are same but line breaks are still different, I may look again later and add to this answer.
    – David Carlisle
    Sep 7 at 8:26










  • Something to do with microtypography? XeTeX is more limited there ...
    – Joseph Wright♦
    Sep 7 at 8:26










  • Without the extra packages in OP's example, XeLaTeX/LuaLaTeX with linertinus give same output (to the eye) which is almost same as PDFLaTeX except for the footnote marker going to next line with XeLaTeX/LuaLaTeX.
    – jfbu
    Sep 7 at 8:46






  • 2




    @jfbu I added an article class example to the question
    – David Carlisle
    Sep 7 at 15:54






  • 2




    @MarkBoltz it's quite possible that the difference isn't intended to be that big, if I can work out why lualatex has changed the line breaking from xetex (using the same fonts) I may ask the font maintainers if the type1 and OTF metrics are supposed to be more similar....
    – David Carlisle
    Sep 7 at 18:55
















  • hmm actually hyphenation points chosen for luatex and xetex are same but line breaks are still different, I may look again later and add to this answer.
    – David Carlisle
    Sep 7 at 8:26










  • Something to do with microtypography? XeTeX is more limited there ...
    – Joseph Wright♦
    Sep 7 at 8:26










  • Without the extra packages in OP's example, XeLaTeX/LuaLaTeX with linertinus give same output (to the eye) which is almost same as PDFLaTeX except for the footnote marker going to next line with XeLaTeX/LuaLaTeX.
    – jfbu
    Sep 7 at 8:46






  • 2




    @jfbu I added an article class example to the question
    – David Carlisle
    Sep 7 at 15:54






  • 2




    @MarkBoltz it's quite possible that the difference isn't intended to be that big, if I can work out why lualatex has changed the line breaking from xetex (using the same fonts) I may ask the font maintainers if the type1 and OTF metrics are supposed to be more similar....
    – David Carlisle
    Sep 7 at 18:55















hmm actually hyphenation points chosen for luatex and xetex are same but line breaks are still different, I may look again later and add to this answer.
– David Carlisle
Sep 7 at 8:26




hmm actually hyphenation points chosen for luatex and xetex are same but line breaks are still different, I may look again later and add to this answer.
– David Carlisle
Sep 7 at 8:26












Something to do with microtypography? XeTeX is more limited there ...
– Joseph Wright♦
Sep 7 at 8:26




Something to do with microtypography? XeTeX is more limited there ...
– Joseph Wright♦
Sep 7 at 8:26












Without the extra packages in OP's example, XeLaTeX/LuaLaTeX with linertinus give same output (to the eye) which is almost same as PDFLaTeX except for the footnote marker going to next line with XeLaTeX/LuaLaTeX.
– jfbu
Sep 7 at 8:46




Without the extra packages in OP's example, XeLaTeX/LuaLaTeX with linertinus give same output (to the eye) which is almost same as PDFLaTeX except for the footnote marker going to next line with XeLaTeX/LuaLaTeX.
– jfbu
Sep 7 at 8:46




2




2




@jfbu I added an article class example to the question
– David Carlisle
Sep 7 at 15:54




@jfbu I added an article class example to the question
– David Carlisle
Sep 7 at 15:54




2




2




@MarkBoltz it's quite possible that the difference isn't intended to be that big, if I can work out why lualatex has changed the line breaking from xetex (using the same fonts) I may ask the font maintainers if the type1 and OTF metrics are supposed to be more similar....
– David Carlisle
Sep 7 at 18:55




@MarkBoltz it's quite possible that the difference isn't intended to be that big, if I can work out why lualatex has changed the line breaking from xetex (using the same fonts) I may ask the font maintainers if the type1 and OTF metrics are supposed to be more similar....
– David Carlisle
Sep 7 at 18:55

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f449804%2fwhy-does-word-spacing-change-drastically-when-using-libertine-libertinus-with-th%23new-answer', 'question_page');

);

Post as a guest













































































這個網誌中的熱門文章

How to combine Bézier curves to a surface?

Carbon dioxide

Why am i infinitely getting the same tweet with the Twitter Search API?