From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Minor problems with dvipng latex image preview Date: Thu, 30 May 2013 17:12:06 +0200 Message-ID: <877gigfqnt.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> <877gim6cc7.fsf@gmail.com> <87sj1amej5.fsf@pierrot.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui4WN-0007Zn-17 for emacs-orgmode@gnu.org; Thu, 30 May 2013 11:12:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ui4WI-0002rt-8f for emacs-orgmode@gnu.org; Thu, 30 May 2013 11:12:06 -0400 Received: from mail-we0-x230.google.com ([2a00:1450:400c:c03::230]:61015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui4WI-0002rX-3e for emacs-orgmode@gnu.org; Thu, 30 May 2013 11:12:02 -0400 Received: by mail-we0-f176.google.com with SMTP id p58so355545wes.7 for ; Thu, 30 May 2013 08:12:01 -0700 (PDT) In-Reply-To: <87sj1amej5.fsf@pierrot.dokosmarshall.org> (Nick Dokos's message of "Sun, 26 May 2013 02:38:38 -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 Hello, Nick Dokos writes: > I wouldn't say inferior, although the dvipng implementation is slightly > more brittle than the imagemagick one (imo, of course). But it is two > implementations where one would suffice (Windows might present problems > however: I don't know the availability of dvipng/imagemagick on that > platform - I believe they are both available on MacOS, but I could be > wrong). What about asking, in a fresh thread, the users about it, then? FWIW, I'm all for anything related to spring cleaning. >> 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. > Agreed again (about the self-documenting part: not sure about the URL > not being very handy), but some things are just too fiddly to fit into a > few sentences. I have now written a document of 335 lines (still not > done and only covering the options available today, but I am trying to > provide enough context to make it stand on its own): I may be suffering > from Pascal's syndrome ("Forgive the length of this letter; I did not > have the time to make it shorter") and I do tend to be verbose in > explanations (as some people on this list can probably testify), but I'm > not sure I can shorten it by much, even if I suddenly turn into > Hemingway - yeah, I wish :-) > > In any case, a note like "If you get into trouble or you want to know > more, see FOO for the gory details" does not seem too bad to me. So be it. Tell me when the worg page is ready, I'll update the docstring accordingly. > Optimal in what sense? Also, I'm not sure what you mean by a "meta > debug" variable. I was thinking of a more global debug variable (it > would e.g. subsume the role of org-export-async-debug), but you > are right that it's more complicated than that: e.g. there is the > question of what all the intermediate files are and where they are > located. "debug" can cover many different cases, and a "meta", i.e. global, variable would have to explain all of them in its docstring. In the end, the net gain for adding such a variable is not clear (besides discoverability, but is it important for this kind of variable?). > That's why I wanted a log message in *Messages*: I could then say "keep > all intermediate files" by turning on the variable, carry out the > operation and then look in *Messages* to find out where those files are > - no mucking around through the sources. What I do now is find the > function that produces the file(s), and either edebug it, break at (or > just after) the call-process call site and evaluate the variables to > figure out where everything is, then go look at them; or add a (debug) > call just after and otherwise proceed the same way. > > It's not too bad, but I like systems that can tell me what they are > doing, so if the need arises, I can easily figure out what went wrong. Improvements to the debug system need to be discussed thoroughly in order to set up complete specifications (I don't think it's just about latex snippets). This cannot happen as a side note in a thread between you and me. If you think it is important enough, please initiate the process in a new thread. Regards, -- Nicolas Goaziou