Re: [O] org-mode pretty entities has \perp but not \parallel
Brady Trainor writes: >> I think they are not the same. I'd use $\|x\|_2$ for a norm, say. >> Parallel is a relation: $a\parallel b$. > > Ah yes. Now this \| makes more sense. Great! >> If you want to go "all in", which is a lot of fun, you have to submit a >> TINY PATCH: >> >> http://orgmode.org/worg/org-contribute.html >> > Yes please do submit when you have the time, though I will try to get > closer to being setup for this when I can. (E.g., I'm currently on > Elpa Org-mode... and my commits are mostly linear for personal files.) Pushed. My "work Org" (is /usr/share/emacs/site-lisp) is different from my "develop Org" checkout (in ~/src/org-mode), though both are based on master. Feel free to come back and contribute some more later! —Rasmus -- Bang bang
Re: [O] org-mode pretty entities has \perp but not \parallel
Hello, Rasmus writes: > Otherwise, I'm happy to submit it for you (though I'm not sure if > something like this would go to maint or master...?) Master, please. Regards, -- Nicolas Goaziou
Re: [O] org-mode pretty entities has \perp but not \parallel
Rasmus writes: > Brady Trainor writes: > [ snip ] >> #+BEGIN_SRC emacs-lisp >> ("parallel" "\\parallel" t "∥" "||" "||" "%") >> #+END_SRC > > Except the ∥ that was somehow eaten in your snip (but OK below). Hmm, not sure where that happened, I'll have to look out for that when I'm emailing unicode parallel lines again. :) > >> I also tried to add something like >> >> #+BEGIN_SRC >> ("|" "\\\|" t "∥" "||" "||" "%") >> #+END_SRC >> >> with "\\\|" or "\\|", but it wasn't working for me. I didn't see any >> non-alphabetical entities ("name") in the variable org-entities-user, >> so I was guessing it wouldn't work with a one-line edit. > > I think they are not the same. I'd use $\|x\|_2$ for a norm, say. > Parallel is a relation: $a\parallel b$. Ah yes. Now this \| makes more sense. > >> Is the patch okay? I simply used C-x s d (C-g C-x b *Diff* RET). > > If you want to go "all in", which is a lot of fun, you have to submit a > TINY PATCH: > > http://orgmode.org/worg/org-contribute.html > > Otherwise, I'm happy to submit it for you (though I'm not sure if > something like this would go to maint or master...?) > > —Rasmus Yes please do submit when you have the time, though I will try to get closer to being setup for this when I can. (E.g., I'm currently on Elpa Org-mode... and my commits are mostly linear for personal files.)
Re: [O] org-mode pretty entities has \perp but not \parallel
Brady Trainor writes: > Rasmus writes: > >> Would you be interested in providing a patch? You would have to add it >> to org-entities.el, e.g. after the perp entity and then send the patch >> to this list. >> > > I think this works, I did try it, with M-x > org-toggle-pretty-entities. (Re: 5th and 6th argument: Is "||" a good > ASCII/Latin1 representation?) > > #+BEGIN_SRC emacs-lisp > ("parallel" "\\parallel" t "∥" "||" "||" "%") > #+END_SRC Except the ∥ that was somehow eaten in your snip (but OK below). > I also tried to add something like > > #+BEGIN_SRC > ("|" "\\\|" t "∥" "||" "||" "%") > #+END_SRC > > with "\\\|" or "\\|", but it wasn't working for me. I didn't see any > non-alphabetical entities ("name") in the variable org-entities-user, > so I was guessing it wouldn't work with a one-line edit. I think they are not the same. I'd use $\|x\|_2$ for a norm, say. Parallel is a relation: $a\parallel b$. > Is the patch okay? I simply used C-x s d (C-g C-x b *Diff* RET). If you want to go "all in", which is a lot of fun, you have to submit a TINY PATCH: http://orgmode.org/worg/org-contribute.html Otherwise, I'm happy to submit it for you (though I'm not sure if something like this would go to maint or master...?) —Rasmus -- Need more coffee. . .
Re: [O] org-mode pretty entities has \perp but not \parallel
Rasmus writes: > Would you be interested in providing a patch? You would have to add it > to org-entities.el, e.g. after the perp entity and then send the patch > to this list. > I think this works, I did try it, with M-x org-toggle-pretty-entities. (Re: 5th and 6th argument: Is "||" a good ASCII/Latin1 representation?) #+BEGIN_SRC emacs-lisp ("parallel" "\\parallel" t "∥" "||" "||" "∥") #+END_SRC I also tried to add something like #+BEGIN_SRC ("|" "\\\|" t "∥" "||" "||" "∥") #+END_SRC with "\\\|" or "\\|", but it wasn't working for me. I didn't see any non-alphabetical entities ("name") in the variable org-entities-user, so I was guessing it wouldn't work with a one-line edit. Is the patch okay? I simply used C-x s d (C-g C-x b *Diff* RET). -- Brady diff -c --label /home/iam/.emacs.d/elpa/org-20141027/org-entities.el --label \#\ /home/iam/.emacs.d/elpa/org-20141027/org-entities.el /tmp/buffer-content-1773597i *** /home/iam/.emacs.d/elpa/org-20141027/org-entities.el --- # *** *** 394,399 --- 394,400 ("ang" "\\angle" t "∠" "[angle]" "[angle]" "∠") ("angle" "\\angle" t "∠" "[angle]" "[angle]" "∠") ("perp" "\\perp" t "⊥" "[up tack]" "[up tack]" "⊥") + ("parallel" "\\parallel" t "∥" "||" "||" "∥") ("sdot" "\\cdot" t "⋅" "[dot]" "[dot]" "⋅") ("cdot" "\\cdot" t "⋅" "[dot]" "[dot]" "⋅") ("lceil" "\\lceil" t "⌈" "[left ceiling]" "[left ceiling]" "⌈") Diff finished. Tue Nov 18 00:35:31 2014
Re: [O] org-mode pretty entities has \perp but not \parallel
Hello, Rasmus writes: > Brady Trainor writes: > >> Hi, I expected \parallel to work after success with \perp. That is, >> I've executed in buffer M-x org-toggle-pretty-entities RET, and I >> expected to see \parallel as unicode ∥, since \perp is overlayed >> (correct term?) with ⟂. > > \parallel should be added IMO as it's supported by vanilla LaTeX. > > Would you be interested in providing a patch? You would have to add it > to org-entities.el, e.g. after the perp entity and then send the patch > to this list. I will start on this. -- Brady > >> Though, the former is pretty hard to see, so maybe it was decided >> against. > > Maybe you don't have a good font? My Emacs picks it up from Biolinum. > > —Rasmus
Re: [O] org-mode pretty entities has \perp but not \parallel
Brady Trainor writes: > Hi, I expected \parallel to work after success with \perp. That is, > I've executed in buffer M-x org-toggle-pretty-entities RET, and I > expected to see \parallel as unicode ∥, since \perp is overlayed > (correct term?) with ⟂. \parallel should be added IMO as it's supported by vanilla LaTeX. Would you be interested in providing a patch? You would have to add it to org-entities.el, e.g. after the perp entity and then send the patch to this list. > Though, the former is pretty hard to see, so maybe it was decided > against. Maybe you don't have a good font? My Emacs picks it up from Biolinum. —Rasmus -- Sådan en god dansk lagereddike kan man slet ikke bruge mere
[O] org-mode pretty entities has \perp but not \parallel
Hi, I expected \parallel to work after success with \perp. That is, I've executed in buffer M-x org-toggle-pretty-entities RET, and I expected to see \parallel as unicode ∥, since \perp is overlayed (correct term?) with ⟂. Though, the former is pretty hard to see, so maybe it was decided against. I just tried exporting to HTML (and MathJax), and it looks like the LaTeX delimited symbols should be either $\parallel$ or $\|$. So simply writing $||$ in ones' notes would /not/ be the same. , | Org-mode version 8.2.10 | (8.2.10-1-g8b63dc-elpa | @ /home/iam/.emacs.d/elpa/org-20141027/) ` -- Brady