emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: latex export of \ce question
Date: Tue, 22 Apr 2014 14:32:43 +0200	[thread overview]
Message-ID: <8761m1ilxw.fsf@gmx.us> (raw)
In-Reply-To: CAJ51ETq5TsEEgtuJSd5RbBzdQioYR_g-VhWZGvGNiCMnOMy44Q@mail.gmail.com

John Kitchin <jkitchin@andrew.cmu.edu> writes:

> 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}}
>
> 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?

You could use snippets.  If you prefer the macro syntax you could also
use that. . .  

   #+MACRO: ce @@latex:ce($1)@@
   @@latex:ce{ABO_{3-\delta}}@@
   {{{ce(ABO_{3-\delta})}}}

-- 
This is the kind of tedious nonsense up with which I will not put

  parent reply	other threads:[~2014-04-22 12:30 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 [this message]
2014-04-22 15:03   ` John Kitchin
2014-04-22 22:44 ` John Hendy
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=8761m1ilxw.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /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).