From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Feng Shu" Subject: Re: Some thought about `org-latex-pdf-process-alist', was Re: (V9) [PATCH] New feature: Use dvisvgm to preview latex formular Date: Sun, 22 May 2016 08:11:33 +0800 Message-ID: <87posfdk96.fsf@163.com> References: <87twhrdmn4.fsf@163.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4HDS-0006h1-V2 for emacs-orgmode@gnu.org; Sat, 21 May 2016 20:25:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b4HDP-0001bG-OQ for emacs-orgmode@gnu.org; Sat, 21 May 2016 20:25:58 -0400 Received: from m12-18.163.com ([220.181.12.18]:53109) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4HDO-0001ZQ-UM for emacs-orgmode@gnu.org; Sat, 21 May 2016 20:25:55 -0400 In-Reply-To: <87twhrdmn4.fsf@163.com> (Feng Shu's message of "Sun, 22 May 2016 07:19:59 +0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: orgmode-devel Cc: Feng Shu > It is different, 3 runs of latex as example: > > if we don't deal with %latex place-hold in process commands, > #+latex_compiler is useless, we need to define pdf process > in org-latex-pdf-process-alist, > > "pdflatex-pdflatex-pdflatex" "xelatex-xelatex-xelatex" "lualatex-lualatex-lualatex" > > otherwise, we can use #+latex_compile and define pdf process > > "latex-latex-latex" By the way, I don't like the #+latex_compile approach, In my opinion, it seem to be a hack. For user, ox-latex provide too much configure options. Maybe someone says, it is stupid duplicate code: #+BEGIN_COMMENT pdflatex-pdflatex-pdflatex pdflatex-pdflatex-pdflatex pdflatex-bibtex-pdflatex-pdflatex xelatex-xelatex-pdflatex xelatex-xelatex-pdflatex xelatex-bibtex-xelatex-xelatex luatex-luatex-lualatex luatex-luatex-lualatex luatex-bibtex-luatex-lualatex #+END_COMMENT but I think, it is a right approach, we must know, we have org contrib package, and we have other personnel org extension package, we don't need put all the process setting to ox-latex.el, we just add the following three as defaults and examples. #+BEGIN_COMMENT pdflatex-pdflatex-pdflatex pdflatex-pdflatex-pdflatex pdflatex-bibtex-pdflatex-pdflatex #+END_SRC ox-latex-process:xelatex package can be provided in elpa or melpa, if some need xelatex process setting, just install it. Users can develop and share their own special processes with the help of emacs package.