From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Garreau\, Alexandre" Subject: Re: Previewing chemfig Date: Mon, 03 Nov 2014 02:23:43 +0100 Message-ID: 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> <8761exm8rs.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl6N6-0005pX-Is for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 20:23:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xl6Mz-000823-8K for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 20:23:52 -0500 Received: from bar75-1-78-192-124-148.fbxo.proxad.net ([78.192.124.148]:51306 helo=galex-713.eu) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl6My-00081r-Qu for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 20:23:45 -0500 In-Reply-To: <8761exm8rs.fsf@gmx.us> (rasmus@gmx.us's message of "Mon, 03 Nov 2014 01:23:51 +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: Rasmus Cc: emacs-orgmode@gnu.org On 2014-11-03 at 01:23, Rasmus wrote: > Hello, > > "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 >> =C2=AB=C2=A0#+LATEX_HEADER:\usepackage{chemfig}=C2=A0=C2=BB, even pure m= aths. 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. Nothing in *messages*. > 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) And suddenly, after some trials, everything worked=E2=80=A6 :D thank you! > everything works since it's converted to pdf rather than dvi. > > (org-version) =3D> "8.3beta". > >> I=E2=80=99m 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. Myeah, mixing distribution releases is not always a good idea, but I think with Emacs it=E2=80=99s fine, and I want so much 24.4 features I=E2= =80=99ll probably do it in little time.=20