From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Minor problems with dvipng latex image preview Date: Sat, 25 May 2013 22:20:24 +0200 Message-ID: <877gim6cc7.fsf@gmail.com> References: <871u9238sl.fsf@pierrot.dokosmarshall.org> <87ehcyg7mg.fsf@gmail.com> <877giq1aj1.fsf@pierrot.dokosmarshall.org> <87d2shrfwj.fsf@gmail.com> <87y5b5znnu.fsf@pierrot.dokosmarshall.org> <87wqqptz7k.fsf@gmail.com> <87txltz8c3.fsf@pierrot.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgKx1-0002tz-8c for emacs-orgmode@gnu.org; Sat, 25 May 2013 16:20:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UgKwu-0000VI-TH for emacs-orgmode@gnu.org; Sat, 25 May 2013 16:20:27 -0400 Received: from mail-we0-x236.google.com ([2a00:1450:400c:c03::236]:47766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgKwu-0000VE-MU for emacs-orgmode@gnu.org; Sat, 25 May 2013 16:20:20 -0400 Received: by mail-we0-f182.google.com with SMTP id q57so3208585wes.41 for ; Sat, 25 May 2013 13:20:20 -0700 (PDT) In-Reply-To: <87txltz8c3.fsf@pierrot.dokosmarshall.org> (Nick Dokos's message of "Thu, 23 May 2013 17:37:16 -0400") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nick Dokos Cc: emacs-orgmode@gnu.org Nick Dokos writes: > Nicolas Goaziou writes: >> Anyway, in a nutshell, your proposal is to: >> >> - add a custom variable, e.g., `org-latex-dvi-process-options' (which >> library should it belong to?) > > Unless it would make sense to toss the whole dvipng thing overboard and > just keep imagemagick. I'm not sure there is a really good reason to drop it. Is it inferior in some way? Also, imagemagick is not optimal either. Since it uses `org-latex-pdf-process', "pdflatex" is called three times by default, which is unnecessary for a short snippet. So, both dvipng and imagemagick should have a variable to set the program to call, along with its arguments. >> - modify `org-latex-listings' docstring (in particular, add third >> elements and new custom variable) > > I'm not sure any more that it can all be explained clearly in the > docstring (at least I've been trying different mental gyrations and I > have not come up with anything satisfactory). So maybe the thing to do > is add a page to worg and a pointer to it in the docstring. If that's > acceptable, I volunteer to write the worg page (at least the initial > version). A worg page can't hurt, but a URL in the docstring is not very handy either. It also defeats the "self-documenting" part of Emacs. > As a separate issue, I proposed some debugging aids: > >> - add a custom variable, e.g., `org-latex-dvi-process-debug', which, >> when non-nil asks to leave produced "tex" file. >> > > ... and a call-process-log function that logs the command in *Messages* > before executing it with call-process (or something more or less > equivalent). It would be used wherever call-process is used now. > > I would actually propose that the debug variable inhibit the deletion > of intermediate files everywhere, not just in latex preview. Some parts of Org already have their own debug variable (see `org-export-async-debug'). A meta debug variable would not be optimal, would it? Regards, -- Nicolas Goaziou