[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Previewing chemfig
From: |
Garreau\, Alexandre |
Subject: |
Re: [O] Previewing chemfig |
Date: |
Mon, 03 Nov 2014 02:23:43 +0100 |
User-agent: |
Gnus (5.13), GNU Emacs 24.3.1 (i586-pc-linux-gnu) |
On 2014-11-03 at 01:23, Rasmus wrote:
> Hello,
>
> "Garreau, Alexandre" <address@hidden> writes:
>> On 2014-11-02 at 22:48, John Kitchin wrote:
>>> Nicolas Goaziou <address@hidden> 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.
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… :D thank you!
> 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.
Myeah, mixing distribution releases is not always a good idea, but I
think with Emacs it’s fine, and I want so much 24.4 features I’ll
probably do it in little time.
- [O] Previewing chemfig, Garreau\, Alexandre, 2014/11/02
- Re: [O] Previewing chemfig, Nicolas Goaziou, 2014/11/02
- Re: [O] Previewing chemfig, Garreau\, Alexandre, 2014/11/02
- Re: [O] Previewing chemfig, Nicolas Goaziou, 2014/11/02
- Re: [O] Previewing chemfig, John Kitchin, 2014/11/02
- Re: [O] Previewing chemfig, Garreau\, Alexandre, 2014/11/02
- Re: [O] Previewing chemfig, Rasmus, 2014/11/02
- Re: [O] Previewing chemfig,
Garreau\, Alexandre <=
- Re: [O] Previewing chemfig, John Kitchin, 2014/11/03