Re: LuaTeX vs XeTeX

2021-12-28 Thread Ricardo Berlasso via lyx-users
El lun, 8 nov 2021 a las 8:51, Saša Janiška () escribió:

>
> Hello,
>
> just curious which engine do you recommend to be used with Lyx: LuaTeX
> or XeTeX?
>

As pointed out in this thread, *in principle* you can use both without
trouble... except when you can't. It's a know "issue" (it can be "fixed"
with extra preamble code) that several OpenType features that should be on
by default, such as italic correction in equations and (if I remember
right) contextual ligatures on normal text, are disabled on LuaTeX, but
work without problems in XeTeX.

If you're a Lua geek, then you'll get a powerful tool to implement your own
macros, but most people are not Lua geeks, so, it's worth it? As always, it
depends: LuaTeX offers more options for microtype than XeTeX and it's
implementing support for variable fonts, but in my experience, when you
want to go a step further with OpenType XeTeX is more reliable than LuaTeX.

But as it's often said, your mileage may vary :)

Regards,
Ricardo



>
>
> Sincerely,
> Gour
>
> --
> In the material world, one who is unaffected by whatever good
> or evil he may obtain, neither praising it nor despising it,
> is firmly fixed in perfect knowledge.
>
>
> --
> 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

2021-12-28 Thread Pavel Sanda via lyx-users
On Thu, Dec 16, 2021 at 03:31:15PM +0100, Herbert Voss via lyx-users wrote:
> >Could anyone of the better informed review https://wiki.lyx.org/LyX/LuaTeX ?
> >Some of the claims (like LuaTeX is still in beta status) are unlikely to be 
> >truth
> >and they can shape LyX users base in a wrong direction...
> 
> That is wrong: LuaTeX ,and XeTeX too, are more or less frozen code, just
> like TeX.

My point was not to trigger discussion but to ask someone more knowledgable
to review our wiki written in 2010, with very likely misleading info.

Or should we ditch the page completely?
Pavel
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-12-27 Thread Dr Eberhard Lisse via lyx-users



And 20 seconds is a drama? Come on.

And my understanding is that you can pass parameters from the command
line to make, so this can become part of an automatable workflow.

el


On 2021-12-20 22:49 , Steve Litt via lyx-users wrote:

Dr Eberhard Lisse via lyx-users said on Mon, 20 Dec 2021 08:49:24 +0200



PDFLaTeX is much faster that LuaLaTeX but to be hoest, nowadays the
day to day stuff is so fast anyway that that doesn't matter.


I noticed that my new book, which is much shorter than most, took
about triple the time, like about 20 seconds on a very fast machine,
to compile that books with LaTeX, XeTeX, and PDFTeX took.  Because I
personalize every book, I need to recompile for every order, so I
might research using PDFTeX. Thanks for the tip.

SteveT

[...]

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-12-22 Thread Scott Kostyshak via lyx-users
On Wed, Dec 22, 2021 at 10:03:46AM -0500, Steve Litt via lyx-users wrote:
> Scott Kostyshak via lyx-users said on Wed, 22 Dec 2021 07:55:24 -0500
> 
> >On Wed, Dec 22, 2021 at 07:26:57AM -0500, Steve Litt via lyx-users
> >wrote:
> >> Scott Kostyshak via lyx-users said on Mon, 20 Dec 2021 20:55:18 -0500
> >>   
> >> >On Mon, Dec 20, 2021 at 03:49:33PM -0500, Steve Litt via lyx-users
> >> >wrote:
> >> >  
> >> >> Because I
> >> >> personalize every book, I need to recompile for every order, so I
> >> >> might research using PDFTeX. Thanks for the tip.
> >> >
> >> >Does the personalization change every page or just a few?  
> >> 
> >> Almost every page. There's a command defined in the doc's preamble,
> >> and before compilation, the person's name is substituted for a token
> >> in the name. That command prints in the page footers on every
> >> mainmatter page that isn't the first page of a chapter.
> >> 
> >> The footer says "Prepared exclusively for Scott Kostyshak",
> >> discretely, in a red/maroon bar.  
> >
> >Thanks for those details. If the footer is in the same x,y location of
> >every page, it might be fast to use a program like pdftk to overlay a
> >"stamp" on each page, rather than recompiling.
> 
> I might be able to do it that way, but if I could, somebody else could
> easily use the same technique to undo it.

I don't think it would be any more hackable that compiling from LaTeX. I
think you're right it's possible to have "layers" which make editing a
bit more easier, but it's also possible to "flatten" a PDF.

Scott


signature.asc
Description: PGP signature
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-12-22 Thread Steve Litt via lyx-users
Scott Kostyshak via lyx-users said on Wed, 22 Dec 2021 07:55:24 -0500

>On Wed, Dec 22, 2021 at 07:26:57AM -0500, Steve Litt via lyx-users
>wrote:
>> Scott Kostyshak via lyx-users said on Mon, 20 Dec 2021 20:55:18 -0500
>>   
>> >On Mon, Dec 20, 2021 at 03:49:33PM -0500, Steve Litt via lyx-users
>> >wrote:
>> >  
>> >> Because I
>> >> personalize every book, I need to recompile for every order, so I
>> >> might research using PDFTeX. Thanks for the tip.
>> >
>> >Does the personalization change every page or just a few?  
>> 
>> Almost every page. There's a command defined in the doc's preamble,
>> and before compilation, the person's name is substituted for a token
>> in the name. That command prints in the page footers on every
>> mainmatter page that isn't the first page of a chapter.
>> 
>> The footer says "Prepared exclusively for Scott Kostyshak",
>> discretely, in a red/maroon bar.  
>
>Thanks for those details. If the footer is in the same x,y location of
>every page, it might be fast to use a program like pdftk to overlay a
>"stamp" on each page, rather than recompiling.

I might be able to do it that way, but if I could, somebody else could
easily use the same technique to undo it.


SteveT

Steve Litt 
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-12-22 Thread Scott Kostyshak via lyx-users
On Wed, Dec 22, 2021 at 07:26:57AM -0500, Steve Litt via lyx-users wrote:
> Scott Kostyshak via lyx-users said on Mon, 20 Dec 2021 20:55:18 -0500
> 
> >On Mon, Dec 20, 2021 at 03:49:33PM -0500, Steve Litt via lyx-users
> >wrote:
> >
> >> Because I
> >> personalize every book, I need to recompile for every order, so I
> >> might research using PDFTeX. Thanks for the tip.  
> >
> >Does the personalization change every page or just a few?
> 
> Almost every page. There's a command defined in the doc's preamble, and
> before compilation, the person's name is substituted for a token in the
> name. That command prints in the page footers on every mainmatter page
> that isn't the first page of a chapter.
> 
> The footer says "Prepared exclusively for Scott Kostyshak", discretely,
> in a red/maroon bar.

Thanks for those details. If the footer is in the same x,y location of
every page, it might be fast to use a program like pdftk to overlay a
"stamp" on each page, rather than recompiling.

Scott


signature.asc
Description: PGP signature
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-12-22 Thread Steve Litt via lyx-users
Scott Kostyshak via lyx-users said on Mon, 20 Dec 2021 20:55:18 -0500

>On Mon, Dec 20, 2021 at 03:49:33PM -0500, Steve Litt via lyx-users
>wrote:
>
>> Because I
>> personalize every book, I need to recompile for every order, so I
>> might research using PDFTeX. Thanks for the tip.  
>
>Does the personalization change every page or just a few?

Almost every page. There's a command defined in the doc's preamble, and
before compilation, the person's name is substituted for a token in the
name. That command prints in the page footers on every mainmatter page
that isn't the first page of a chapter.

The footer says "Prepared exclusively for Scott Kostyshak", discretely,
in a red/maroon bar.

SteveT

Steve Litt 
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-12-20 Thread Scott Kostyshak via lyx-users
On Mon, Dec 20, 2021 at 03:49:33PM -0500, Steve Litt via lyx-users wrote:

> Because I
> personalize every book, I need to recompile for every order, so I might
> research using PDFTeX. Thanks for the tip.

Does the personalization change every page or just a few?

Best,

Scott


signature.asc
Description: PGP signature
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-12-20 Thread Steve Litt via lyx-users
Dr Eberhard Lisse via lyx-users said on Mon, 20 Dec 2021 08:49:24 +0200


>PDFLaTeX is much faster that LuaLaTeX but to be hoest, nowadays the
>day to day stuff is so fast anyway that that doesn't matter.

I noticed that my new book, which is much shorter than most, took about
triple the time, like about 20 seconds on a very fast machine, to
compile that books with LaTeX, XeTeX, and PDFTeX took. Because I
personalize every book, I need to recompile for every order, so I might
research using PDFTeX. Thanks for the tip.

SteveT

Steve Litt 
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-12-19 Thread Dr Eberhard Lisse via lyx-users



Stve,

I like the Noto fonts, but my understanding is that all TeX Gyre
fonts also work under PDFLaTeX.

But, LUA is really cool.

You can put simple stuff into the preamble like

\usepackage{luacode}
\begin{luacode*}
   socket = require "socket"
   function hostname()
  local hname = socket.dns.gethostname():gsub('.local','' )
  return hname
   end
\end{luacode*}
\newcommand\hostname{\directlua{tex.sprint(hostname())}}

which then makes the name of the box you are compiling to PDF on (which
I like in my little handbook) available to ERT (or footers defined in
the preamble).

And more complicated stuff, from calculating Expected Date of Delivery
from Last Menstrual Period, Body Mass Index from weight and height, or
even calculating the nearest Friday of a calculated date (thanks
Herbert :-)-O), access to the differend SQL databases and whatnot.

Of course one can do most of that also in R with knitR but that has
a lot of overhead.

PDFLaTeX is much faster that LuaLaTeX but to be hoest, nowadays the
day to day stuff is so fast anyway that that doesn't matter.



On 2021-12-18 00:58 , Steve Litt via lyx-users wrote:

Herbert Voss via lyx-users said on Thu, 16 Dec 2021 15:31:15 +0100



- no more fiddling around with the encoding, everything is UTF-8
- no more restrictions in using fonts, all current types are
supported, like pfb, ttf, utf, ttc, ...
- easy integration of the script language Lua into a document


That's what brought me to LuaTeX and LuaLaTeX: The ability to use TeX
Gyre Schola font, which looks better than everything except its
lookalike Century Schoolbook, but somehow, about 6 years ago, Century
Schoolbook stopped working for me.

Since beginning to use LuaTeX, I've enjoyed that it does everything
the others do, and by using it all the time, I gain expertise and
everything's easier.


SteveT

[...]

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-12-18 Thread Herbert Voss via lyx-users



Am 17.12.21 um 20:20 schrieb Virgil Arrington:


*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
*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.



also the ones from the TeX distribution if defined by the font's filename.
Then kpsewhich can find the font.


3. LuaTeX can create documents using fonts from either the TeX 
distribution OR the OS system.




luatex defines an own font database which also has the symbolic names of 
the fonts saved.

.../texmf-var/luatex-cache/generic/names/luaotfload-names.lua.gz


Herbert



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

2021-12-17 Thread Steve Litt via lyx-users
Herbert Voss via lyx-users said on Thu, 16 Dec 2021 15:31:15 +0100


>- no more fiddling around with the encoding, everything is UTF-8
>- no more restrictions in using fonts, all current types are supported,
>    like pfb, ttf, utf, ttc, ...
>- easy integration of the script language Lua into a document

That's what brought me to LuaTeX and LuaLaTeX: The ability to use TeX
Gyre Schola font, which looks better than everything except its
lookalike Century Schoolbook, but somehow, about 6 years ago, Century
Schoolbook stopped working for me.

Since beginning to use LuaTeX, I've enjoyed that it does everything the
others do, and by using it all the time, I gain expertise and
everything's easier.


SteveT

Steve Litt 
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


RE: LuaTeX vs XeTeX

2021-12-17 Thread Virgil Arrington via lyx-users
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

2021-12-17 Thread Herbert Voss via lyx-users



Am 17.12.21 um 15:03 schrieb Neal Becker:

I thought all LaTeX have to pass strict tests and produce identical
results.  Any difference due to different fonts.  Is this correct?


no. It is correct only for TeX, the original one! run the example with
pdftex, xetex, and  luatex

\hsize 1cm
internationalizationmachinery is a long word

\bye

Herbert




On Fri, Dec 17, 2021 at 6:06 AM Herbert Voss via lyx-users
 wrote:

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.

Herbert


--
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

2021-12-17 Thread Neal Becker via lyx-users
I thought all LaTeX have to pass strict tests and produce identical
results.  Any difference due to different fonts.  Is this correct?

On Fri, Dec 17, 2021 at 6:06 AM Herbert Voss via lyx-users
 wrote:
>
> 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.
>
> Herbert
>
>
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users



-- 
Those who don't understand recursion are doomed to repeat it
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-12-17 Thread Herbert Voss via lyx-users

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.

Herbert


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-12-16 Thread Virgil Arrington via lyx-users

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

2021-12-16 Thread Herbert Voss via lyx-users



Am 16.12.21 um 21:02 schrieb Virgil Arrington via lyx-users:


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.




Other font, new kernings, new hyphenations.
mathpazo (Type 1) and Palatino (TrueType) are not the same font!

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.




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.


Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-12-16 Thread Virgil Arrington via lyx-users
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


Re: LuaTeX vs XeTeX

2021-12-16 Thread Herbert Voss via lyx-users

Am 16.12.21 um 14:45 schrieb Pavel Sanda via lyx-users:

On Mon, Nov 08, 2021 at 09:49:29AM +0100, Herbert Voss wrote:

Am 08.11.21 um 09:46 schrieb Saša Janiška:

On Mon, 8 Nov 2021 08:58:37 +0100
Herbert Voss  wrote:



LuaHBTeX   (HB for HarfBuzz) is the default engine for lualatex


Thank you since I was not aware of it despite it is being installed on
my Debian machine.

Otherwise, I was aware of LuaTeX since I was considering to use ConTeXt
instead of LyX/LaTeX...

I wrote everything with lualatex and use xelatex in only rare cases
and never use pdf(la)tex

Could anyone of the better informed review https://wiki.lyx.org/LyX/LuaTeX ?
Some of the claims (like LuaTeX is still in beta status) are unlikely to be 
truth
and they can shape LyX users base in a wrong direction...


That is wrong: 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:

- no more fiddling around with the encoding, everything is UTF-8
- no more restrictions in using fonts, all current types are supported,
   like pfb, ttf, utf, ttc, ...
- easy integration of the script language Lua into a document

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-12-16 Thread Pavel Sanda via lyx-users
On Mon, Nov 08, 2021 at 09:49:29AM +0100, Herbert Voss wrote:
> Am 08.11.21 um 09:46 schrieb Saša Janiška:
> >On Mon, 8 Nov 2021 08:58:37 +0100
> >Herbert Voss  wrote:
> >
> >
> >>LuaHBTeX   (HB for HarfBuzz) is the default engine for lualatex
> >>
> >Thank you since I was not aware of it despite it is being installed on
> >my Debian machine.
> >
> >Otherwise, I was aware of LuaTeX since I was considering to use ConTeXt
> >instead of LyX/LaTeX...
> 
> I wrote everything with lualatex and use xelatex in only rare cases
> and never use pdf(la)tex

Could anyone of the better informed review https://wiki.lyx.org/LyX/LuaTeX ?
Some of the claims (like LuaTeX is still in beta status) are unlikely to be 
truth
and they can shape LyX users base in a wrong direction...

Pavel
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-11-20 Thread Dr Eberhard W Lisse



That's from 2016, right?

On 2021-11-08 15:57 , Joel Kulesza wrote:
[...]
> I don't necessarily recommend one versus the other, but I usually use
> `pdflatex` unless I cannot, in which case I opt for `lualatex`.  In
> those cases, my preference was somewhat informed by other
> Internet-based opinions posted here:
> https://tex.stackexchange.com/a/126216, and in particular, claims
> regarding TikZ compatibility.
[...]

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-11-08 Thread Steve Litt
Saša Janiška said on Mon, 8 Nov 2021 08:51:26 +0100

>Hello,
>
>just curious which engine do you recommend to be used with Lyx: LuaTeX
>or XeTeX?

These days, I always opt for luatex and lualatex. They just always
work, and if they don't, I know enough Lua that I might be able to
strongarm things.

SteveT

Steve Litt 
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-11-08 Thread Joel Kulesza
On Mon, Nov 8, 2021 at 1:50 AM Herbert Voss 
wrote:

>
> Am 08.11.21 um 09:46 schrieb Saša Janiška:
> > On Mon, 8 Nov 2021 08:58:37 +0100
> > Herbert Voss  wrote:
> >
> >
> >> LuaHBTeX   (HB for HarfBuzz) is the default engine for lualatex
> >>
> > Thank you since I was not aware of it despite it is being installed on
> > my Debian machine.
> >
> > Otherwise, I was aware of LuaTeX since I was considering to use ConTeXt
> > instead of LyX/LaTeX...
>
> I wrote everything with lualatex and use xelatex in only rare cases
> and never use pdf(la)tex
>

I don't necessarily recommend one versus the other, but I usually use
`pdflatex` unless I cannot, in which case I opt for `lualatex`.  In those
cases, my preference was somewhat informed by other Internet-based opinions
posted here: https://tex.stackexchange.com/a/126216, and in particular,
claims regarding TikZ compatibility.

Thank you,
Joel
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-11-08 Thread Herbert Voss



Am 08.11.21 um 09:46 schrieb Saša Janiška:

On Mon, 8 Nov 2021 08:58:37 +0100
Herbert Voss  wrote:



LuaHBTeX   (HB for HarfBuzz) is the default engine for lualatex


Thank you since I was not aware of it despite it is being installed on
my Debian machine.

Otherwise, I was aware of LuaTeX since I was considering to use ConTeXt
instead of LyX/LaTeX...


I wrote everything with lualatex and use xelatex in only rare cases
and never use pdf(la)tex

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-11-08 Thread Saša Janiška
On Mon, 8 Nov 2021 08:58:37 +0100
Herbert Voss  wrote:


> LuaHBTeX   (HB for HarfBuzz) is the default engine for lualatex
> 

Thank you since I was not aware of it despite it is being installed on
my Debian machine.

Otherwise, I was aware of LuaTeX since I was considering to use ConTeXt
instead of LyX/LaTeX...


Sincerely,
Gour


-- 
Everyone is forced to act helplessly according to the qualities
he has acquired from the modes of material nature; therefore no
one can refrain from doing something, not even for a moment.


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LuaTeX vs XeTeX

2021-11-07 Thread Herbert Voss



Am 08.11.21 um 08:51 schrieb Saša Janiška:


just curious which engine do you recommend to be used with Lyx: LuaTeX
or XeTeX?


LuaHBTeX   (HB for HarfBuzz) is the default engine for lualatex

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users