Re: [O] org-pretty-entities and symbols like M_x^y

2012-12-13 Thread Bastien
Achim Gratz  writes:

>> When the facts change, I change my mind. What do you do, sir?
>
> If the facts have been changing once, I can wait for them to change
> again.  Or they may not even be facts after all. :-)

This opens up my mind a lot, thanks :)

-- 
 Bastien



Re: [O] org-pretty-entities and symbols like M_x^y

2012-12-13 Thread Achim Gratz
Rasmus writes:
>  - \bar{x}, tilde{x}, underline{x}, ... ==> constructed using
>combining utf8 characters ¹ (or at least support of it; i couldn't
>get it working properly)

We've been at this before, but I believe that introducing utf8
characters into the sources would cut off Emacs 22 compatibility.  There
is a known bug when more-than-single-byte characters show up in a
docstring as well.

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

If the facts have been changing once, I can wait for them to change
again.  Or they may not even be facts after all. :-)


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra




Re: [O] org-pretty-entities and symbols like M_x^y

2012-12-13 Thread Rasmus
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?




Re: [O] org-pretty-entities and symbols like M_x^y

2012-12-13 Thread Bastien
Hi Laurent,

Laurent Hoeltgen  writes:

> I was wondering if there is a way to fontify expressions like M_x^y
> correctly with org-pretty-entities.

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

-- 
 Bastien