From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Previewing chemfig Date: Mon, 03 Nov 2014 01:23:51 +0100 Message-ID: <8761exm8rs.fsf@gmx.us> References: <13wl8xzzzzzz.3es.xxuns.g6.gal@galex-713.eu> <877fzdidyj.fsf@nicolasgoaziou.fr> <586zjyzzzzzz.ofs.xxuns.g6.gal@galex-713.eu> <8738a1i90a.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl5RM-0003JB-8F for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 19:24:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xl5RG-0000cN-IL for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 19:24:12 -0500 Received: from plane.gmane.org ([80.91.229.3]:40532) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl5RG-0000cD-By for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 19:24:06 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xl5RE-0004Vq-99 for emacs-orgmode@gnu.org; Mon, 03 Nov 2014 01:24:04 +0100 Received: from 1.97.135.37.dynamic.jazztel.es ([37.135.97.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Nov 2014 01:24:04 +0100 Received: from rasmus by 1.97.135.37.dynamic.jazztel.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Nov 2014 01:24:04 +0100 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 Hello, g"Garreau, Alexandre" writes: > On 2014-11-02 at 22:48, John Kitchin wrote: >> Nicolas Goaziou writes: >> Interestingly, this: >> #+LATEX_HEADER: \usepackage{chemfig} >> $\chemfig{A-B-[1]C-[3]-D-[7]E-[6]F}$ >> exports to pdf correctly, but the latex preview is not correct. All the >> letters are jumbled on top of each other. > > Ok, I tested again, and found that actually any preview (even without > chemfig) completely stops working when I add > « #+LATEX_HEADER:\usepackage{chemfig} », even pure maths. I just get > little shrinked transparent void rectangles. To debug check you *Message* buffer. You might see something like LaTeX errors in `*/tmp/orgtex1687lRq output*'. Use C-c ` to display. Check the file, compile it, and check that everything works. Compile it to dvi and try to run dvipng on the file. For me, dvipng is unhappy about chemfig since it seems to contain PS elements. If I do (setq org-latex-create-formula-image-program 'imagemagick) everything works since it's converted to pdf rather than dvi. (org-version) => "8.3beta". > I’m on Debian Testing (Jessy) and hence use Org version 7.9.3f (GNU > Emacs 24.3). You might get better results with a recent version of Org. If you upgrade to Emacs 24.4 you should get Org 8.2.10, I think. —Rasmus -- And I faced endless streams of vendor-approved Ikea furniture. . .