RE: LuaTeX vs XeTeX
From: Herbert Voss via lyx-users<mailto:lyx-users@lists.lyx.org> Sent: Friday, December 17, 2021 6:06 AM To: lyx-users@lists.lyx.org<mailto:lyx-users@lists.lyx.org> Subject: Re: LuaTeX vs XeTeX Am 16.12.21 um 22:12 schrieb Virgil Arrington via lyx-users: > > Starting with the completely clean files, I added the Microtype > > package to both and compiled them. As with my first test, I got > > different results. XeTeX once again produced many more hyphenated > > lines -- essentially the same as it produced without Microtype -- than > > did LuaTeX. Neither produced any significant overfull lines at the > > right margin. > > > > So, it seems as if Microtype behaves differently with XeTeX and LuaTeX > > -- at least on my system. > > > Sure, microtype for xetex is not the same as microtype for luatex. So, I’ve learned a lot in the last couple days. Let’s see if I have this right. 1. PDFLaTeX creates documents using fonts supplied in the TeX distribution. 2. XeTeX creates documents using fonts supplied by the Operating System. 3. LuaTeX can create documents using fonts from either the TeX distribution OR the OS system. If I am right about #3, then I more fully understand Herbert’s original assertion that, with LuaTeX, there’s no reason to resort to PDF(La)TeX (or XeTeX for that matter). Virgil -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: LuaTeX vs XeTeX
On 12/16/2021 3:17 PM, Herbert Voss via lyx-users wrote: Do _not_ load any font and choose an empty preanble, then Computer Modern is used for pdflatex and Latin Modern for lualatex/xelatex. And then you will see _no_ difference in the created pdf. I did as you said, and you are right; with all default settings and nothing added to the preamble, the results were identical. But, of course that didn't satisfy me. In my first test, the greatest variance was between XeTeX and LuaTeX and they both used identical fonts (Windows Palatino Linotype) and identical preamble settings. If there was no difference in the engines, they should have produced identical results, but they didn't. So, I dug a little further. Starting with the completely clean files, I added the Microtype package to both and compiled them. As with my first test, I got different results. XeTeX once again produced many more hyphenated lines -- essentially the same as it produced without Microtype -- than did LuaTeX. Neither produced any significant overfull lines at the right margin. So, it seems as if Microtype behaves differently with XeTeX and LuaTeX -- at least on my system. -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: LuaTeX vs XeTeX
On 12/16/2021 9:31 AM, Herbert Voss via lyx-users wrote: LuaTeX ,and XeTeX too, are more or less frozen code, just like TeX. Only bugs will be fixed. There are no good reasons _not_ to use LuaTeX instead of pdfTeX: I just performed an interesting experiment comparing the results from compiling the same source file with XeTeX, PDFLaTeX and LuaTeX. I was surprised by the results I got. In the past, I had found that, when I used XeTeX, I got more "overfull hboxes" with lines flowing past the right margin than I did with PDFLaTeX. I also would get *many* more hyphenated words with XeTeX than with PDFLaTeX. I assumed I would get similar results with LuaTeX, but I was pleasantly surprised. For my experiment, took a 45 page paper I wrote for a former employer. For the PDFLaTeX compiled version, I used the mathpazo Palatino font that came with MikTeX and compiled it with PDFLaTeX. For the XeTeX and LuaTeX versions, I used Windows' Palatino Linotype font. All other settings were the same, including the use of the Microtype package in all versions. In a single random paragraph, the resulting file compiled with XeTeX gave me eight hyphenated line endings. The same paragraph in the document compiled with LuaTeX gave me three hyphenated line endings, and the same paragraph in the document compiled with PDFLaTeX only gave me one hyphenated line ending. XeTeX also gave me many overfull lines, in fact so many as to make the resulting document all but unusable. PDFLaTeX gave me a few, but I could work with them. I was surprised to see that LuaTeX appeared to give me the fewest overfull lines. I saw very few lines that extended beyond the right margin, and those I did happen to find extended such a small amount as to be all but unnoticeable. I was very surprised by how different the results were when using XeTeX vs. LuaTeX. I had just assumed that the two engines would produce very similar results, but that was not the case at all. In fact, having seen LuaTeX's document, I can't imagine why anyone would choose XeTeX over LuaTeX. I was also surprised to see how well LuaTeX's results compared with PDFLaTeX's document. While LuaTex still gave me more hyphenated line endings, it gave me fewer noticeable overfull lines at the right margin. Okay, now back to my "real" work. Virgil -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users