emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: org-pretty-entities and symbols like M_x^y
Date: Thu, 13 Dec 2012 17:39:26 +0100	[thread overview]
Message-ID: <871uetzz29.fsf@pank.iue.private> (raw)
In-Reply-To: 87ip86ym8e.fsf@bzg.ath.cx

Bastien <bzg@altern.org> writes:

> M_x ^y is the only (non fully satisfactory) solution I can think of.

In general org entities work wonders, and I'm a very happy user.

I have a couple of others things that could be made nicer (somehow).
'===>' indicates what would be nicer:

 - \frac{x}{y} ===> [(x)/(y)] or something similar. You'd need to be
   able to see that it was folded, somehow, e.g. '[' could have
   another color, or the background of (x)/(y) could be different.
 - \bar{x}, tilde{x}, underline{x}, ... ==> constructed using
   combining utf8 characters ¹ (or at least support of it; i couldn't
   get it working properly)
 - Being able to specify several white spaces (it seems not to work,
   e.g. below I would like to replace quad with " ␣ ", but this
   doesn't seem to work...).
 - perhaps overlay to indicate when something is folded/replaced with
   a utf8 character.

Here's my org-entities-user btw:

(setq org-entities-user '(("space" "\\ " " " " " " " " ")
                          ("implies" "\\Rightarrow" t "&rArr;" "=>" "=>" "⇒")
                          ("iff" "\\iff" t "&hArr;" "<=>" "<=>" "⇔")
                          ("succcurlyeq" "\\succcurlyeq" t "≽" ">=" ">=" "≽")
                          ("gimel" "\\gimel" t "&#8503;" "gimel" "gimel" "ℷ")
                          ("beth" "\\beth" t "&#1489;" "bet" "bet" "ב")
                          ("coloneqq" "\\coloneqq" t "≔" ":=" ":=" "≔")
                          ("eqqcolon" "\\eqqcolon" t "≕" "=:" "=:" "≕")
                          ("cdots" "\\cdots" t "&hellip;" "..." "..." "⋯")
                          ("colon" "\\colon" t ":" ":" ":" ":")
                          ("quad" " " nil " " " " " " "␣")
                          ("geq" "\\ge" t "&ge;" ">=" ">=" "≥")
                          ("suchthat" "\\suchthat" t "|" "|" "|" "|")
                          ("leq" "\\leq" t "&le;" "<=" "<=" "≤")))

All but suchthat are normal LaTeX characters.  


Perhaps, org entities could use the TeX input method as a souce of
symbols?  See:

     (describe-input-method "TeX") 

–Rasmus


Footnotes: 
 ¹   https://en.wikipedia.org/wiki/Combining_character

-- 
When the facts change, I change my mind. What do you do, sir?

  reply	other threads:[~2012-12-13 16:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-14 17:43 org-pretty-entities and symbols like M_x^y Laurent Hoeltgen
2012-12-13 16:01 ` Bastien
2012-12-13 16:39   ` Rasmus [this message]
2012-12-13 19:05     ` Achim Gratz
2012-12-13 21:33       ` Bastien
2012-12-13 21:56         ` When facts change (was: org-pretty-entities and symbols like M_x^y) Rasmus
2012-12-14 19:01           ` When facts change Achim Gratz

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=871uetzz29.fsf@pank.iue.private \
    --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).