* Ihor Radchenko <yanta...@posteo.net> [2023-02-15 23:38]:
> Bruno BEAUFILS <br...@boulgour.com> 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 guess that one of org-latex-compile or org-latex-export-to-pdf
> > function should remove the source LaTeX file if the compile went well.
> 
> The problem with LaTeX export is that it is not always possible to know
> if the process truly finished without errors or not.

It is possible to know it always.

System commands `latex' or `pdflatex' will emit error status, you may
inspect it in shell with: 

$ echo $?

The function `org-latex-compile' does not check for error status, but
it could. In general, external processes shall always be checked for
exit statuses.

It is matter of programming design if you wish or miss to get error
statuses and check for them.




-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/

Reply via email to