From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: debugging why a latex preview fails Date: Wed, 29 Jan 2020 13:05:30 +0100 Message-ID: <87eevipiwl.fsf@polytechnique.org> References: <87v9oupv75.fsf@polytechnique.org> <87r1zizfte.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:50214) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwm6D-00058Q-N1 for emacs-orgmode@gnu.org; Wed, 29 Jan 2020 07:05:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iwm6C-0002SJ-9K for emacs-orgmode@gnu.org; Wed, 29 Jan 2020 07:05:37 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:40156) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iwm6B-0002RD-WB for emacs-orgmode@gnu.org; Wed, 29 Jan 2020 07:05:36 -0500 In-Reply-To: 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: Fabrice Popineau , "Fraga, Eric" Cc: emacs-orgmode Hello Fabrice and Eric, Thanks a lot for your suggestions. I ended up edebugging 'org-create-formula-image' to have a look at the created tex file (that is indeed cleaned up after the generation). The file was fine, but dvipng failed on it (with errors like "raw PostScriptdvipng warning: PostScript environment contains DVI commands dvipng warning: No image output from inclusion of raw PostScript"). I switched to imagemagick to do the conversion and everything now works. The warnings were in the *Org Preview Latex Output* buffer, which I=C2=A0realized afterwards. However it's still tricky to debug because intermediate files are erased, so I could not initially run the command by hand to try to tweak it. Thanks again, Alan