From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Minor problems with dvipng latex image preview Date: Thu, 23 May 2013 17:37:16 -0400 Message-ID: <87txltz8c3.fsf@pierrot.dokosmarshall.org> 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> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfdCW-00078L-Os for emacs-orgmode@gnu.org; Thu, 23 May 2013 17:37:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfdCV-0003sp-F4 for emacs-orgmode@gnu.org; Thu, 23 May 2013 17:37:32 -0400 Received: from plane.gmane.org ([80.91.229.3]:34618) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfdCV-0003sZ-80 for emacs-orgmode@gnu.org; Thu, 23 May 2013 17:37:31 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UfdCR-0002XK-Uv for emacs-orgmode@gnu.org; Thu, 23 May 2013 23:37:27 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 May 2013 23:37:27 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 May 2013 23:37:27 +0200 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: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Nick Dokos writes: > >> I learnt quite a bit from this discussion (thank you!), but I'm still a >> bit puzzled about your reluctance that custom options be added to the >> latex call. Why is that? Too many customizations? dvipng should be >> deprecated? Too many twisty passages to explain? > > Huh? I'm not reluctant to anything with regards to this discussion. I'm > just suggesting solutions to your problem. > Ah, OK - sorry I misunderstood. > 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. > - 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). 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. -- Nick