Re: Supporting LatexMK in AUCTeX OOTB

2024-04-19 Thread Basil L. Contovounesios
Arash Esbati [2024-04-18 19:37 +0200] wrote: > Also my apologies to Basil for receiving all these messages, but it > should be done now :-) Definitely no need to apologise! (I was already subscribed to auctex-devel.) I'm sorry for not having followed the thread; I'll catch up soon™ :). Thanks

Re: Supporting LatexMK in AUCTeX OOTB

2024-04-18 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > I think most Latexmk users have their own .latexmkrc because the stock > Latexmk just runs latex enough times and generate .dvi file. (no pdflatex > and no .pdf output) So I guess they are accustomed to have full control > over the options with their .latexmkrc.

Re: Supporting LatexMK in AUCTeX OOTB

2024-04-18 Thread Ikumi Keita
Hi Arash, > Arash Esbati writes: > This doesn't feel right. AUCTeX has some options to control the output, > and I think we should support them. I mean, the only issue is currently > with dvipdfmx as discussed above, and I don't think we should throw the > baby out with the bathwater

Re: Supporting LatexMK in AUCTeX OOTB

2024-04-16 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > I think we can omit "-recorder" option. It seems that Latexmk adds > "-recorder" option to latex command by default. The reason why I put > "-recorder-" in my proposal was to suppress that option; when %l > expansion includes "\input", Latexmk puts "-recorder"

Re: Supporting LatexMK in AUCTeX OOTB

2024-04-15 Thread Ikumi Keita
Hi Arash, > Arash Esbati writes: > This is my next approximation: > diff --git a/tex.el b/tex.el > index c4e4104e..a0649c73 100644 > --- a/tex.el > +++ b/tex.el > @@ -250,6 +250,9 @@ If nil, none is specified." > ("Ps2pdf" "ps2pdf %f %(O?pdf)" TeX-run-ps2pdf nil > (plain-TeX-mode

Re: Supporting LatexMK in AUCTeX OOTB

2024-04-15 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > This isn't quite correct because this clause covers cases for Japanese > LaTeX engines (`TeX-engine' being ptex or uptex※) as well. > > ※ `jtex' engine became obsolete and isn't maintained anymore as far as > I know. Thanks for your comments. Yes, I ignored

Re: Supporting LatexMK in AUCTeX OOTB

2024-04-14 Thread Ikumi Keita
Hi Arash, > Arash Esbati writes: > So lets call it a preliminary solution ;-) I plan to install this > change as a starter: [...] > + ;; This is essentially (eq TeX-engine 'default) since we > + ;; ignore 'omega completely: This isn't quite correct because this

Re: Supporting LatexMK in AUCTeX OOTB

2024-04-10 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > I realized that %l played an important role for Japanese LaTeX document, > too; it gave latex binary name such as "platex" as well as its > supplementary option such as "-kanji=xxx". > However, I haven't come up with a good solution which is compatible for > both

Re: Supporting LatexMK in AUCTeX OOTB

2024-04-10 Thread Ikumi Keita
Hi Arash, > Arash Esbati writes: >> AUCTeX users can deginate latex binary file names through >> `TeX-engine-alist' and `LaTeX-command', which can be different from >> standard "latex", "xelatex" and "lualatex". If we are to support such >> non-standard binary names, we need %l. (However,

Re: Supporting LatexMK in AUCTeX OOTB

2024-04-04 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > It would need to write a new sentinel for latexmk if we are going to > provide the most suitable candidate in all cases. And I was hoping we can avoid that :-| > AUCTeX users can deginate latex binary file names through > `TeX-engine-alist' and `LaTeX-command',

Re: Supporting LatexMK in AUCTeX OOTB

2024-04-03 Thread Ikumi Keita
Hi Arash, > Arash Esbati writes: >> 2. After C-c C-c LaTeXMK, in dvi+dvips case, C-c C-c View offers xdvi, >> not postscript viewer, as default candidate. Similarly, in >> dvi+dvipdfmx case, C-c C-c offers Dvipdfmx, not View, as default >> candidate. > Yes, I can confirm this. I also tried

Re: Supporting LatexMK in AUCTeX OOTB

2024-04-02 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > I expect the attached patch basically works. Thanks for picking this up as well. > It still has shortcomings: > 1. It uses single quote to prevent variable expansion of '$dvipdf' in > the shell command line. However, it doesn't work for windows. Yes, that

Re: Supporting LatexMK in AUCTeX OOTB

2024-04-02 Thread Ikumi Keita
> Ikumi Keita writes: > Hi Arash, > Arash Esbati writes: >> I knew you would understand me ;-) Can you do me a favor please and have >> a look at the code I posted? I'm not sure how (XeLaTeX/)Dvipdfmx works >> in .dvi mode, I think you have more experience in that area. I'd >>

Re: Supporting LatexMK in AUCTeX OOTB

2024-04-01 Thread Colin Baxter
> Arash Esbati writes: > Colin Baxter writes: >> What is being proposed? > See my other message to this thread. >> This already works >> >> (add-hook 'LaTeX-mode-hook (lambda() (add-to-list >> 'TeX-command-list '("LaTeXMK" "latexmk %s" TeX-run-TeX nil t >>

Re: Supporting LatexMK in AUCTeX OOTB

2024-03-31 Thread Ikumi Keita
Hi Arash, > Arash Esbati writes: > I knew you would understand me ;-) Can you do me a favor please and have > a look at the code I posted? I'm not sure how (XeLaTeX/)Dvipdfmx works > in .dvi mode, I think you have more experience in that area. I'd > appreciate if you can give a me hint

Re: Supporting LatexMK in AUCTeX OOTB

2024-03-30 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > I'm fine with your idea. AUCTeX already has plenty of supplementary > entries in `TeX-command-list', so it would be good to have another one > :-) I knew you would understand me ;-) Can you do me a favor please and have a look at the code I posted? I'm not sure

Re: Supporting LatexMK in AUCTeX OOTB

2024-03-30 Thread Arash Esbati
Colin Baxter writes: > What is being proposed? See my other message to this thread. > This already works > > (add-hook 'LaTeX-mode-hook > (lambda() > (add-to-list > 'TeX-command-list > '("LaTeXMK" "latexmk %s" TeX-run-TeX nil t >

Re: Supporting LatexMK in AUCTeX OOTB

2024-03-30 Thread Arash Esbati
Hi Basil, "Basil L. Contovounesios" writes: > Arash Esbati [2024-03-28 13:09 +0100] wrote: > > Indeed, with the exception of important bugs which can be fixed at > https://github.com/emacsmirror/auctex-latexmk (this is the fork/mirror > that MELPA serves). Thanks for your response and the

Re: Supporting LatexMK in AUCTeX OOTB

2024-03-29 Thread Basil L. Contovounesios
Hi Arash, Thanks for your kind message. Arash Esbati [2024-03-28 13:09 +0100] wrote: > I was looking through our old bugs and I saw bug#48144[1] which was > about LatexMK and the issue is resolved. Looking at auctex-latexmk > package[2], it seems dormant. Indeed, with the exception of

Re: Supporting LatexMK in AUCTeX OOTB

2024-03-29 Thread Colin Baxter
> Ikumi Keita writes: > Hi Arash, > Arash Esbati writes: >> Hi all, I was looking through our old bugs and I saw bug#48144[1] >> which was about LatexMK and the issue is resolved. Looking at >> auctex-latexmk package[2], it seems dormant. Acc. to this >>

Re: Supporting LatexMK in AUCTeX OOTB

2024-03-29 Thread Ikumi Keita
Hi Arash, > Arash Esbati writes: > Hi all, > I was looking through our old bugs and I saw bug#48144[1] which was > about LatexMK and the issue is resolved. Looking at auctex-latexmk > package[2], it seems dormant. Acc. to this message[3], the fix in > #48144 was helpful and adding LatexMK

Supporting LatexMK in AUCTeX OOTB

2024-03-28 Thread Arash Esbati
Hi all, I was looking through our old bugs and I saw bug#48144[1] which was about LatexMK and the issue is resolved. Looking at auctex-latexmk package[2], it seems dormant. Acc. to this message[3], the fix in #48144 was helpful and adding LatexMK support to AUCTeX isn't hard. I don't use