[FR] ox-latex: Display exit status of LaTeX compilation command (was: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)])

2023-02-18 Thread Ihor Radchenko
Bruno BEAUFILS writes: > On Fri, Feb 17, 2023 at 01:30:37PM +, Ihor Radchenko wrote: >> Even if we used exit code, what would it achieve? > > Knowing if the compilation went well (0 as exit status) or not > (anything different than 0). I would not mind. Patches welcome! -- Ihor Radchenko

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-17 Thread Bruno BEAUFILS
On Fri, Feb 17, 2023 at 01:30:37PM +, Ihor Radchenko wrote: > Even if we used exit code, what would it achieve? Knowing if the compilation went well (0 as exit status) or not (anything different than 0). > You can do it in batch as well. See `org-sbe'. I did not know this macro. Thank's to

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-17 Thread Ihor Radchenko
Jean Louis writes: >> Even if we used exit code, what would it achieve? > > - user wants PDF file > > - with exit code other but zero there will be no PDF file How so? Not in general, but only for certain values of org-latex-pdf-process. > - display error or move user straight to LaTeX file to

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-17 Thread Jean Louis
* Ihor Radchenko [2023-02-17 16:32]: > Bruno BEAUFILS writes: > > > On Fri, Feb 17, 2023 at 10:55:34AM +, Ihor Radchenko wrote: > >> > How so? > >> > >> latexmk -interaction=nonstopmode > > > > Still do not get the problem. I though that the exit code of the > > underlying process was used

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-17 Thread Ihor Radchenko
Bruno BEAUFILS writes: > On Fri, Feb 17, 2023 at 10:55:34AM +, Ihor Radchenko wrote: >> > How so? >> >> latexmk -interaction=nonstopmode > > Still do not get the problem. I though that the exit code of the > underlying process was used but after having try to understand some of > the

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-17 Thread Bruno BEAUFILS
On Fri, Feb 17, 2023 at 10:55:34AM +, Ihor Radchenko wrote: > > How so? > > latexmk -interaction=nonstopmode Still do not get the problem. I though that the exit code of the underlying process was used but after having try to understand some of the ox-latel.el I discover that it seems to be

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-17 Thread Ihor Radchenko
Bruno BEAUFILS writes: > On Wed, Feb 15, 2023 at 08:37:51PM +, Ihor Radchenko wrote: >> The problem with LaTeX export is that it is not always possible to know >> if the process truly finished without errors or not. > > How so? latexmk -interaction=nonstopmode >> Meanwhile, you can tweak

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-16 Thread Jean Louis
* Ihor Radchenko [2023-02-15 23:38]: > Bruno BEAUFILS writes: > > > When using the org-latex-export-to-pdf on any foo.org file I get the > > foo.pdf file produced the right way but I also get the foo.tex file. > > > > I think that the whole point of exporting to pdf is only to get the pdf > >

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-16 Thread Jean Louis
* Bruno BEAUFILS [2023-02-15 21:52]: > When using the org-latex-export-to-pdf on any foo.org file I get the > foo.pdf file produced the right way but I also get the foo.tex file. > > I think that the whole point of exporting to pdf is only to get the pdf > file, avoiding the need to keep the

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-16 Thread Bruno BEAUFILS
On Thu, Feb 16, 2023 at 07:47:19PM +0100, Hanno Perrey wrote: > This is just an (semi-)educated guess as I do not have Emacs in > front of me right now, but I would expect the org-latex-compile > would only be called when actually compiling the LaTeX code that is > to say producing the PDF. As

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-16 Thread Hanno Perrey
Bruno BEAUFILS skrev: (16 februari 2023 15:24:37 CET) >I thought that when creating latex file it should also remove the >produced latex which could be a majour problem. > >In fact it does not, which I do not understand why when looking at the >code of org-latex-compile. I am surely missing

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-16 Thread Bruno BEAUFILS
On Thu, Feb 16, 2023 at 01:20:36PM +0100, Hanno wrote: > which likely change after the export. It might be just my ingrained > routines speaking All replies I received let me discover that this is clearly a question of habits and routines for some of us :-) > Fair enough. Just out of curiosity:

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-16 Thread Hanno
Bruno BEAUFILS skrev: (16 februari 2023 11:15:31 CET) >You just still can export the original source file and convert it to >latex if needed. That is true of course, but it is an extra step. I would need to remember it when creating the PDF as I export often from my notes which likely change

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-16 Thread Alain . Cochard
Bruno BEAUFILS writes on Thu 16 Feb 2023 11:03: > OK but you still can do this by just export the file to LaTeX > (buffer or file) when needed. In general, I want to see the final result, if only to check that it is correct latex (as far as I can see, any crap is happily transformed into a

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-16 Thread Bruno BEAUFILS
On Wed, Feb 15, 2023 at 08:37:51PM +, Ihor Radchenko wrote: > The problem with LaTeX export is that it is not always possible to know > if the process truly finished without errors or not. How so? > I guess we might make this a user options, if more people are > interested. I personnaly

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-16 Thread Bruno BEAUFILS
On Thu, Feb 16, 2023 at 06:54:16AM +0100, Hanno Perrey wrote: > I see the export to PDF as a shortcut only and appreciate having the > .tex file besides it. As the TeX file is the most reliable way to > regenerate the exact PDF again later again (even on other peoples' > machines without Emacs

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-16 Thread Bruno BEAUFILS
On Wed, Feb 15, 2023 at 09:52:52PM +0100, alain.coch...@unistra.fr wrote: > Sometimes I select a part of the .tex and send it to someone who does > not use Org mode, for inclusion into his own tex file. One can also > think about doing things that are not (yet) possible with Org mode (or > that

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-15 Thread Hanno Perrey
Bruno BEAUFILS skrev: (15 februari 2023 21:38:55 CET) >On Wed, Feb 15, 2023 at 09:34:21AM -1000, Thomas S. Dye wrote: >> I often use the .tex file to track down compilation issues. I don't want >> Org to delete it. > >I get your point. In that case the file must not be removed when the

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-15 Thread Alain . Cochard
Bruno BEAUFILS writes on Wed 15 Feb 2023 21:38: > In all other (more numerous) cases (when everything went well) what > is the point to have this file in addition to the source and the > output? Sometimes I select a part of the .tex and send it to someone who does not use Org mode, for

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-15 Thread Bruno BEAUFILS
On Wed, Feb 15, 2023 at 09:34:21AM -1000, Thomas S. Dye wrote: > I often use the .tex file to track down compilation issues. I don't want > Org to delete it. I get your point. In that case the file must not be removed when the compilation failed. In all other (more numerous) cases (when

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-15 Thread Ihor Radchenko
Bruno BEAUFILS writes: > When using the org-latex-export-to-pdf on any foo.org file I get the > foo.pdf file produced the right way but I also get the foo.tex file. > > I think that the whole point of exporting to pdf is only to get the pdf > file, avoiding the need to keep the latex one. > > I

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-15 Thread Thomas S. Dye
Bruno BEAUFILS writes: [[PGP Signed Part:Undecided]] When using the org-latex-export-to-pdf on any foo.org file I get the foo.pdf file produced the right way but I also get the foo.tex file. I think that the whole point of exporting to pdf is only to get the pdf file, avoiding the need

Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-15 Thread Bruno BEAUFILS
When using the org-latex-export-to-pdf on any foo.org file I get the foo.pdf file produced the right way but I also get the foo.tex file. I think that the whole point of exporting to pdf is only to get the pdf file, avoiding the need to keep the latex one. I guess that one of org-latex-compile