From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: org-pretty-entities and symbols like M_x^y Date: Thu, 13 Dec 2012 17:39:26 +0100 Message-ID: <871uetzz29.fsf@pank.iue.private> References: <507AF9A7.5070204@gmail.com> <87ip86ym8e.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjBpD-0006B5-7Z for emacs-orgmode@gnu.org; Thu, 13 Dec 2012 11:39:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjBp5-0006Re-4d for emacs-orgmode@gnu.org; Thu, 13 Dec 2012 11:39:55 -0500 Received: from plane.gmane.org ([80.91.229.3]:50631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjBp4-0006QH-VQ for emacs-orgmode@gnu.org; Thu, 13 Dec 2012 11:39:47 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TjBpE-0006fW-Tc for emacs-orgmode@gnu.org; Thu, 13 Dec 2012 17:39:56 +0100 Received: from 192.167.90.133 ([192.167.90.133]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Dec 2012 17:39:56 +0100 Received: from rasmus by 192.167.90.133 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Dec 2012 17:39:56 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Bastien 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 "⇒" "=>" "=>" "⇒") ("iff" "\\iff" t "⇔" "<=>" "<=>" "⇔") ("succcurlyeq" "\\succcurlyeq" t "≽" ">=" ">=" "≽") ("gimel" "\\gimel" t "ℷ" "gimel" "gimel" "ℷ") ("beth" "\\beth" t "ב" "bet" "bet" "ב") ("coloneqq" "\\coloneqq" t "≔" ":=" ":=" "≔") ("eqqcolon" "\\eqqcolon" t "≕" "=:" "=:" "≕") ("cdots" "\\cdots" t "…" "..." "..." "⋯") ("colon" "\\colon" t ":" ":" ":" ":") ("quad" " " nil " " " " " " "␣") ("geq" "\\ge" t "≥" ">=" ">=" "≥") ("suchthat" "\\suchthat" t "|" "|" "|" "|") ("leq" "\\leq" t "≤" "<=" "<=" "≤"))) 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?