Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-15 Thread Max Nikulin
On 16/04/2025 02:03, Leo Butler wrote: On Tue, Apr 15 2025, Max Nikulin wrote: I have found unicode-math-input.sty that may handle your specific example in PdfLaTeX. At first glance it is more powerful than utf8x, but it does not allow e.g. text Greek α. It forces math mode for it. Thanks for

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-15 Thread Leo Butler
On Tue, Apr 15 2025, Max Nikulin wrote: > On 15/04/2025 02:47, Leo Butler wrote: >> I experience problems typesetting mathematical expressions. I cannot >> find anything as good as the unicode-math package for lualatex. >> Consider generating a preview of this fragment using pdflatex versus >> lu

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-15 Thread Max Nikulin
On 15/04/2025 02:47, Leo Butler wrote: I experience problems typesetting mathematical expressions. I cannot find anything as good as the unicode-math package for lualatex. Consider generating a preview of this fragment using pdflatex versus lualatex: \[ ∫₀¹ 𝐟(σ) dσ \] Isn't unicode-heavy form

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-14 Thread Leo Butler
On Sun, Apr 13 2025, Max Nikulin wrote: > On 12/04/2025 21:11, Leo Butler wrote: >> I use a lot of >> utf-8 in my org documents. Pdflatex just cannot compete for typesetting, >> even in preview. > > Certainly PdfTeX has enough limitations. I am curious however what > specific issues you have face

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-13 Thread Dr. Arne Babenhauserheide
Max Nikulin writes: >>> P.S. In some cases it may be easier to get PDF from ODT or HTML >>> intermediate format. >> No please! I've gone that path and then you need to install loads of extra >> and sometimes redundant software to get something decent. > > I do not suggest to make it the default o

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-13 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > Thanks a lot. Really cool. My only concern is that it means adding a > non-standard package to the TeX. > I had no problems, but some people may struggle with the instructions ;-) It would be a nice article on WORG I think. We cannot use custom tex packag

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-13 Thread Ihor Radchenko
Leo Butler writes: >> I am wondering if the current design with many previews generated using >> the same latex process can be extended. May we somehow add a Lua code to >> preview.sty that will not exit at all and watch for new .tex fragments >> to appear and preview them. The idea is to avoid s

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-12 Thread Max Nikulin
On 10/04/2025 23:44, Pedro Andres Aranda Gutierrez wrote: Thu, 10 Apr 2025 21:55:53 +0700 Max Nikulin My conclusion from earlier discussions is that it is a challenge to configure fonts to a given user document. It may contain (besides latin-1) Greek, Cyrillic, CJK, emoji. My experience is th

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-12 Thread Max Nikulin
On 12/04/2025 21:11, Leo Butler wrote: I use a lot of utf-8 in my org documents. Pdflatex just cannot compete for typesetting, even in preview. Certainly PdfTeX has enough limitations. I am curious however what specific issues you have faced (languages/scripts, character categories, etc.)? Ma

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-12 Thread Pedro Andres Aranda Gutierrez
Hi Leo not suggesting anything... just exploring alternatives. I too have a lot of UTF-8 in my documents and pdf-latex chokes at them, too. I'm not using preview -have never been- because my field of research didn't need complex math in my papers. Thanks for your feedback :-) /PA On Sat, 12 Apr 2

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-12 Thread Leo Butler
On Thu, Apr 10 2025, Pedro Andres Aranda Gutierrez wrote: > Jürgen writes: > >>Am 03.04.25 um 09:37 Uhr schrieb Ihor Radchenko: I don't agree. Users who are apparently happy with LuaLaTeX should have no problems with pdflatex and UTF8. >>> If you know an easy and universal way to suppor

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-10 Thread Pedro Andres Aranda Gutierrez
Hi, This is my concern too… and the reason for me to ask if we have someone onboard with enough experience in AucTeX and latex-preview to give a full pros and cons for using it (or not). Regarding font management (see parallel thread on this), the situation is a slight bit better, because ther

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-10 Thread Dr. Arne Babenhauserheide
Juergen Fenn writes: > Am 10.04.25 um 07:59 Uhr schrieb Pedro Andres Aranda Gutierrez: >> Now the question seems to be whether latex-preview could "live an >> independent life" with pdflatex at the heart of it's tooling, whereas >> document production could "move on" to use lualatex as the defaul

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-10 Thread Juergen Fenn
Am 10.04.25 um 07:59 Uhr schrieb Pedro Andres Aranda Gutierrez: > Now the question seems to be whether latex-preview could "live an > independent life" with pdflatex at the heart of it's tooling, whereas > document production could "move on" to use lualatex as the default tool > to generate the

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-10 Thread Colin Baxter
> Arne Babenhauserheide writes: > Juergen Fenn writes: >> Am 03.04.25 um 09:37 Uhr schrieb Ihor Radchenko: I don't agree. Users who are apparently happy with LuaLaTeX should have no problems with pdflatex and UTF8. >>> If you know an easy and universal way to su

Re: Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-10 Thread Pedro Andres Aranda Gutierrez
>Date: Thu, 10 Apr 2025 21:55:53 +0700 >From: Max Nikulin >To: emacs-orgmode@gnu.org >Subject: Re: [DISCUSSION] Setting LuaLaTeX as default when exporting > to LaTeX/PDF >Message-ID: >Content-Type: text/plain; charset=UTF-8; format=flowed > Answers inline Max wro

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-10 Thread Max Nikulin
On 09/04/2025 05:03, Juergen Fenn wrote: only luatex is capable of producing accessible pdf, [...] This is not only a ITF-8 issue. I'm surprised TeX Live is said not to work properly out of the box on some Linux distributions, hard to believe it's true. My conclusion from earlier discussions

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-09 Thread Pedro Andres Aranda Gutierrez
Thanks for confirming my understanding. /PA On Wed, 9 Apr 2025 at 09:00, Dr. Arne Babenhauserheide wrote: > Pedro Andres Aranda Gutierrez writes: > > > And what about the speed of xelatex? I have not used it, because when I > tried some time ago, it didn't handle fonts as nicely as lualatex, b

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-09 Thread Dr. Arne Babenhauserheide
Juergen Fenn writes: > Am 03.04.25 um 09:37 Uhr schrieb Ihor Radchenko: >>> I don't agree. Users who are apparently happy with LuaLaTeX should >>> have no problems with pdflatex and UTF8. >> If you know an easy and universal way to support UTF8 is pdflatex, >> please do share. > > I am sorry I co

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-09 Thread Dr. Arne Babenhauserheide
Pedro Andres Aranda Gutierrez writes: > And what about the speed of xelatex? I have not used it, because when I tried > some time ago, it didn't handle fonts as nicely as lualatex, but I'd > be willing to learn if that means a speedy UTF.8 sound latex. From what I read a few weeks back while se

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-08 Thread Pedro Andres Aranda Gutierrez
And what about the speed of xelatex? I have not used it, because when I tried some time ago, it didn't handle fonts as nicely as lualatex, but I'd be willing to learn if that means a speedy UTF.8 sound latex. Thx, /PA On Tue, 8 Apr 2025 at 16:39, Leo Butler wrote: > On Thu, Apr 03 2025, Ihor Ra

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-08 Thread Juergen Fenn
Am 03.04.25 um 09:37 Uhr schrieb Ihor Radchenko: >> I don't agree. Users who are apparently happy with LuaLaTeX should >> have no problems with pdflatex and UTF8. > If you know an easy and universal way to support UTF8 is pdflatex, > please do share. I am sorry I could not read all the discussi

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-08 Thread Leo Butler
On Thu, Apr 03 2025, Ihor Radchenko wrote: > Karthik Chikmagalur writes: > >> For org-latex-preview, one of the other things we tried was to keep all >> utf-8 font-related settings out of the header that is precompiled. If >> we manage this precompilation can work (somewhat unreliably) with >>

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-05 Thread Pedro Andres Aranda Gutierrez
Thanks for the feedback. I’d be interested in seeing what happened. Could you please send me the offending file? It can be of help when determining What we need on org-mode. BTW, do you have any org file that you export to PDF where you could export using #+LATEX_COMPILER: lualatex And see what

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-05 Thread jman
Pedro Andres Aranda Gutierrez writes: BTW, what about changing the default LaTeX compiler to lualatex in 9.8? Context: I am a user that knows very very little about Latex, everytime I try to use it I spend a lot of time installing packages that in my mind should be the default. The user expe

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-05 Thread Karthik Chikmagalur
> Do you have any ideas about how we could improve the handling of utf-8 > without sacrificing the speed of the preview system? I'm afraid this is beyond my understanding. We'd have to approach David Carlisle or others with the problem and work on improving mylatexformat, or help develop a new in

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-05 Thread Ihor Radchenko
Colin Baxter writes: > I have my org-latex-compiler set to xetex. However, I find this push to > change the default bizarre, especially since advanced users can select > their own settings at will. In my opinion a default ought to be the > "simplest" option and unchanged. Those who want something

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-05 Thread Leo Butler
On Wed, Apr 02 2025, "Rohit Patnaik" wrote: > I'm against moving to `luatex' as the default compiler. I'm decently familiar > with LaTeX, having used it to write papers and even my resume. I just tried > to compile a relatively simple LaTeX file using `luatex' on my Fedora Linux > machine with

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-05 Thread Colin Baxter
> Ihor Radchenko writes: > Karthik Chikmagalur writes: >> For org-latex-preview, one of the other things we tried was to >> keep all utf-8 font-related settings out of the header that is >> precompiled. If we manage this precompilation can work (somewhat >> unreliably) w

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-04 Thread Karthik Chikmagalur
> Let’s start the discussion. We need feedback on this. > > Pros and Contras of moving on to using lualatex as default compiler. Another vote for NOT changing the default from pdflatex. In the upcoming LaTeX preview feature rewrite, previews using lualatex are 10-50x slower than previews with pdf

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-04 Thread Rohit Patnaik
Oops, my mistake. I was actually calling `luatex' instead of `lualatex'. The document compiles fine with `lualatex'. However, noted, it did take noticeably longer. Thanks, Rohit

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-04 Thread Pedro Andres Aranda Gutierrez
Hi Colin sorry that you find it "a push" and "bizarre". There is nothing of that sort... I was just trying to probe for arguments (pros and cons, hence [DISCUSSION]) to learn what the situation is "outside my bubble". I too have org-latex-compiler set to lualatex for some time ;-) Cheers, /PA On

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-04 Thread Pedro Andres Aranda Gutierrez
Hi Arne, Thanks a lot. Really cool. My only concern is that it means adding a non-standard package to the TeX. I had no problems, but some people may struggle with the instructions ;-) Best, /PA > El 3 abr 2025, a las 23:13, Dr. Arne Babenhauserheide > escribió: > > Pedro Andres Aranda Gutie

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-03 Thread Karthik Chikmagalur
> I am wondering if the current design with many previews generated using > the same latex process can be extended. May we somehow add a Lua code to > preview.sty that will not exit at all and watch for new .tex fragments > to appear and preview them. The idea is to avoid stopping lualatex > proces

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-03 Thread Dr. Arne Babenhauserheide
Pedro Andres Aranda Gutierrez writes: > > Do you have any ideas about how we could improve the handling of utf-8 > > without sacrificing the speed of the preview system? I missed part of this thread, but I recently set up some decent utf-8 support in pdflatex, so maybe that helps someone: #+l

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-03 Thread Ihor Radchenko
Colin Baxter writes: > > What triggered this discussion is that pdflatex is not the > > simplest. Not for all users. Once we consider people who need UTF8 > > support (non-latin languages), pdflatex gets extremely > > complicated. > > > So, I would not call the push "bizarre".

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-03 Thread Colin Baxter
More to the point - users can already choose what they want for a compiler. There could even be suggestions as to the most appropriate compiler for given tasks in the documentation. But leave the default alone.

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-03 Thread Colin Baxter
> Ihor Radchenko writes: > Colin Baxter writes: >> I have my org-latex-compiler set to xetex. However, I find this >> push to change the default bizarre, especially since advanced >> users can select their own settings at will. In my opinion a >> default ought to be the "

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-02 Thread Ihor Radchenko
Karthik Chikmagalur writes: > For org-latex-preview, one of the other things we tried was to keep all > utf-8 font-related settings out of the header that is precompiled. If > we manage this precompilation can work (somewhat unreliably) with > lualatex, and previews are a bit faster. But doing

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-02 Thread Pedro Andres Aranda Gutierrez
Hi. My context: ever since I started with my PhD Thesis some 15 years ago, I have been using LaTeX. I got into org-mode when I had to prepare a couple of interactive presentations to help people understand Python. Changing code and executing on the fly was the killer app for me. I use utf8, so I

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-02 Thread Pedro Andres Aranda Gutierrez
So we are torn between two equally potent arguments. If you want/need latex-preview, forget about lualatex, but then restrict yourself to character sets it handles and forget about fancy utf8 support. If you want/need utf8 support, forget about latex-preview and compilation speed (at least FTMB) L

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-02 Thread Leo Butler
Karthik, thanks for the email, including those screencasts. You are right, lualatex is too slow for use in generating previews. Do you have any ideas about how we could improve the handling of utf-8 without sacrificing the speed of the preview system? Leo On Wed, Apr 02 2025, Pedro Andres Aranda

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-02 Thread Pedro Andres Aranda Gutierrez
Thanks for the complete explanation. This is an argument with real weight and I fully understand. That lualatex is slower to start up is something even the overleaf.com people are struggling with. So we have to live with weak UTF.8 support w/preview versus good UTF-8 support with slw preview (

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-02 Thread Stefan Nobis
"Rohit Patnaik" writes: > I just tried to compile a relatively simple LaTeX file using `luatex' > on my Fedora Linux machine with the `texlive-full' package installed. If you realled called 'luatex' than that might be the problem. You have to run 'lualatex' to compile a LaTeX document. Other po

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-02 Thread Leo Butler
I generally agree with Pedro about making lualatex the default. Personally, I moved to it several years ago because of the weak, and unstable, support for unicode in pdflatex. Note that Juan Manuel Macías posted here the following quote from Joseph Wright [1]: >> The time to move to LuaTeX for ne

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-02 Thread Rohit Patnaik
I'm against moving to `luatex' as the default compiler. I'm decently familiar with LaTeX, having used it to write papers and even my resume. I just tried to compile a relatively simple LaTeX file using `luatex' on my Fedora Linux machine with the `texlive-full' package installed. I got a bunch o

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-02 Thread Pedro Andres Aranda Gutierrez
To add an argument to moving forward to lualatex: https://github.com/max-heller/mdbook-pandoc/issues/94 Cheers, /PA > El 2 abr 2025, a las 8:17, Pedro Andres Aranda Gutierrez > escribió: > > Let’s start the discussion. We need feedback