emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: John Kitchin <jkitchin@andrew.cmu.edu>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: latex export of \ce question
Date: Tue, 22 Apr 2014 17:44:27 -0500	[thread overview]
Message-ID: <CA+M2ft_7wBOMCvrqkER=14QCVWU-BC8QqyKz+iYOSOsDUkc3hQ@mail.gmail.com> (raw)
In-Reply-To: <CAJ51ETq5TsEEgtuJSd5RbBzdQioYR_g-VhWZGvGNiCMnOMy44Q@mail.gmail.com>

On Mon, Apr 21, 2014 at 6:35 PM, John Kitchin <jkitchin@andrew.cmu.edu> wrote:
> Hi all,
>
> I often have to use the mhchem latex package to write chemical formulas, and
> I have teh following export issue.
>
> If I have this in an org file:
>
> \ce{ABO_3}
>
> \ce{ABO_{3-\delta}}
>

I've taken to using \( \) around LaTeX stuff. I also have:

#+options: tex:t

so that might be required. I tried your example, and I get an
undefined control sequence error (not sure why...), but it seems to
look right in the PDF. Just another option that might work for you
(maybe less typing for one-off situations?).

\(\ce{ABO_{3-\delta}}\)



John

> this exports as
> \ce{ABO_3}
>
> \ce\{ABO$_{\text{3-}\delta}$\}
>
> The first one is fine, but the second one is not.  The nested {} seems to
> mess it up. Is there a way to get this to export correctly?
>
> thanks,
>
> John
>
> -----------------------------------
> John Kitchin
> Associate Professor
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> http://kitchingroup.cheme.cmu.edu
>

  parent reply	other threads:[~2014-04-22 22:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-21 23:35 latex export of \ce question John Kitchin
2014-04-22  4:14 ` Richard Lawrence
2014-04-22 12:32 ` Rasmus
2014-04-22 15:03   ` John Kitchin
2014-04-22 22:44 ` John Hendy [this message]
2014-04-26 13:51   ` 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='CA+M2ft_7wBOMCvrqkER=14QCVWU-BC8QqyKz+iYOSOsDUkc3hQ@mail.gmail.com' \
    --to=jw.hendy@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jkitchin@andrew.cmu.edu \
    /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).