* org-pretty-entities and symbols like M_x^y
@ 2012-10-14 17:43 Laurent Hoeltgen
2012-12-13 16:01 ` Bastien
0 siblings, 1 reply; 7+ messages in thread
From: Laurent Hoeltgen @ 2012-10-14 17:43 UTC (permalink / raw)
To: emacs-orgmode
Hi
I was wondering if there is a way to fontify expressions like M_x^y
correctly with org-pretty-entities.
M_x^y displays the subscript x correctly but not the superscript y.
M^y_x displays the superscript y correctly but not the subscript x.
Regards,
Laurent
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: org-pretty-entities and symbols like M_x^y
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
0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2012-12-13 16:01 UTC (permalink / raw)
To: Laurent Hoeltgen; +Cc: emacs-orgmode
Hi Laurent,
Laurent Hoeltgen <hoeltgman@gmail.com> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: org-pretty-entities and symbols like M_x^y
2012-12-13 16:01 ` Bastien
@ 2012-12-13 16:39 ` Rasmus
2012-12-13 19:05 ` Achim Gratz
0 siblings, 1 reply; 7+ messages in thread
From: Rasmus @ 2012-12-13 16:39 UTC (permalink / raw)
To: emacs-orgmode
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 "⇒" "=>" "=>" "⇒")
("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?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: org-pretty-entities and symbols like M_x^y
2012-12-13 16:39 ` Rasmus
@ 2012-12-13 19:05 ` Achim Gratz
2012-12-13 21:33 ` Bastien
0 siblings, 1 reply; 7+ messages in thread
From: Achim Gratz @ 2012-12-13 19:05 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: org-pretty-entities and symbols like M_x^y
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
0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2012-12-13 21:33 UTC (permalink / raw)
To: Achim Gratz; +Cc: emacs-orgmode
Achim Gratz <Stromeko@nexgo.de> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* When facts change (was: org-pretty-entities and symbols like M_x^y)
2012-12-13 21:33 ` Bastien
@ 2012-12-13 21:56 ` Rasmus
2012-12-14 19:01 ` When facts change Achim Gratz
0 siblings, 1 reply; 7+ messages in thread
From: Rasmus @ 2012-12-13 21:56 UTC (permalink / raw)
To: bzg; +Cc: Stromeko, emacs-orgmode
Bastien <bzg@altern.org> writes:
> Achim Gratz <Stromeko@nexgo.de> 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. :-)
Perhaps that opinion is too dear for some practitioner, as Lord Keynes
was when he allegedly spoke those words. What if the 'facts' only
converge back to your preferred state in the long run, when we are all
dead? :)
–Rasmus
--
. . . It begins of course with The Internet. A Net of Peers.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: When facts change
2012-12-13 21:56 ` When facts change (was: org-pretty-entities and symbols like M_x^y) Rasmus
@ 2012-12-14 19:01 ` Achim Gratz
0 siblings, 0 replies; 7+ messages in thread
From: Achim Gratz @ 2012-12-14 19:01 UTC (permalink / raw)
To: emacs-orgmode
Rasmus 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. :-)
>
> Perhaps that opinion is too dear for some practitioner, as Lord Keynes
> was when he allegedly spoke those words. What if the 'facts' only
> converge back to your preferred state in the long run, when we are all
> dead? :)
The original quote[1] is really a lot better and I have much more trust
in its accuracy than the later quote you gave:
"When my information changes, I alter my conclusions. What do you do, sir?"
I don't know why it was altered to the second, I'll give that it is
punchier at first sight due to that double "change", but it makes a lot
less sense. It may have been saved if it started "When I learn of new
facts,…", but that loses some punch again.
[1] https://en.wikiquote.org/wiki/John_Maynard_Keynes
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-12-14 19:01 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
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).