From: "Garreau\, Alexandre" <galex-713@galex-713.eu>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: Previewing chemfig
Date: Mon, 03 Nov 2014 02:23:43 +0100 [thread overview]
Message-ID: <e0yxvwzzzzzz.qot.xxuns.g6.gal@galex-713.eu> (raw)
In-Reply-To: <8761exm8rs.fsf@gmx.us> (rasmus@gmx.us's message of "Mon, 03 Nov 2014 01:23:51 +0100")
On 2014-11-03 at 01:23, Rasmus wrote:
> Hello,
>
> "Garreau, Alexandre" <galex-713@galex-713.eu> writes:
>> On 2014-11-02 at 22:48, John Kitchin wrote:
>>> Nicolas Goaziou <mail@nicolasgoaziou.fr> 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.
next prev parent reply other threads:[~2014-11-03 1:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-02 19:17 Previewing chemfig Garreau, Alexandre
2014-11-02 19:45 ` Nicolas Goaziou
2014-11-02 20:09 ` Garreau, Alexandre
2014-11-02 21:32 ` Nicolas Goaziou
2014-11-02 21:48 ` John Kitchin
2014-11-02 23:57 ` g Garreau, Alexandre
2014-11-03 0:23 ` Rasmus
2014-11-03 1:23 ` Garreau, Alexandre [this message]
2014-11-03 21:09 ` John Kitchin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e0yxvwzzzzzz.qot.xxuns.g6.gal@galex-713.eu \
--to=galex-713@galex-713.eu \
--cc=emacs-orgmode@gnu.org \
--cc=rasmus@gmx.us \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).