emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: carsten.dominik@gmail.com
Cc: emacs-orgmode@gnu.org
Subject: Re: Superscript before character
Date: Sun, 08 Sep 2013 12:15:02 +0200	[thread overview]
Message-ID: <87r4czr55l.fsf@gmx.us> (raw)
In-Reply-To: <D4988FF9-F36D-4B76-AF79-9B8A1012504A@gmail.com> (Carsten Dominik's message of "Sun, 8 Sep 2013 07:47:18 +0200")

Carsten Dominik <carsten.dominik@gmail.com> writes:

> Yes, this will do the trick for LaTeX, but {{{...}}} is still not pretty.
> Yes, maybe I should think more about the cechem package - did not know
> it, and it looks good.
> Thanks!

{{{·}}} looks terrible but it's pretty quick to type. . .  Perhaps we
could fontify them like with URLs.

For more flexibility you could use a URL-like syntax which could then
export conditional on the output format,

(org-add-link-type "ce" nil
 (lambda (path desc format) 
  (cond ((eq format 'latex)
      (format "\ce{%s}" desc))
      ((eq format 'html)
        (format "\\nbsp%s" desc)))))

or something like  that . . . 

–Rasmus

-- 
There are known knowns; there are things we know that we know.

  reply	other threads:[~2013-09-08 10:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-06 17:09 Superscript before character Roger Mason
2013-09-06 18:03 ` Charles Berry
2013-09-06 18:40   ` Roger Mason
2013-09-07  8:43   ` Carsten Dominik
2013-09-07 20:47     ` Rasmus
2013-09-08  5:47       ` Carsten Dominik
2013-09-08 10:15         ` Rasmus [this message]
2013-09-08 10:34           ` Carsten Dominik

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=87r4czr55l.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=carsten.dominik@gmail.com \
    --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).