* org-mode pretty entities has \perp but not \parallel
@ 2014-11-16 23:53 Brady Trainor
2014-11-17 10:14 ` Rasmus
0 siblings, 1 reply; 8+ messages in thread
From: Brady Trainor @ 2014-11-16 23:53 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: org-mode pretty entities has \perp but not \parallel
2014-11-16 23:53 org-mode pretty entities has \perp but not \parallel Brady Trainor
@ 2014-11-17 10:14 ` Rasmus
2014-11-18 7:12 ` Brady Trainor
2014-11-18 9:33 ` Brady Trainor
0 siblings, 2 replies; 8+ messages in thread
From: Rasmus @ 2014-11-17 10:14 UTC (permalink / raw)
To: emacs-orgmode
Brady Trainor <algebrat@uw.edu> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: org-mode pretty entities has \perp but not \parallel
2014-11-17 10:14 ` Rasmus
@ 2014-11-18 7:12 ` Brady Trainor
2014-11-18 9:33 ` Brady Trainor
1 sibling, 0 replies; 8+ messages in thread
From: Brady Trainor @ 2014-11-18 7:12 UTC (permalink / raw)
To: Rasmus; +Cc: emacs-orgmode
Hello,
Rasmus <rasmus@gmx.us> writes:
> Brady Trainor <algebrat@uw.edu> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: org-mode pretty entities has \perp but not \parallel
2014-11-17 10:14 ` Rasmus
2014-11-18 7:12 ` Brady Trainor
@ 2014-11-18 9:33 ` Brady Trainor
2014-11-18 9:57 ` Rasmus
1 sibling, 1 reply; 8+ messages in thread
From: Brady Trainor @ 2014-11-18 9:33 UTC (permalink / raw)
To: Rasmus; +Cc: emacs-orgmode
Rasmus <rasmus@gmx.us> 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 \#\<buffer\ org-entities.el\> /home/iam/.emacs.d/elpa/org-20141027/org-entities.el /tmp/buffer-content-1773597i
*** /home/iam/.emacs.d/elpa/org-20141027/org-entities.el
--- #<buffer 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: org-mode pretty entities has \perp but not \parallel
2014-11-18 9:33 ` Brady Trainor
@ 2014-11-18 9:57 ` Rasmus
2014-11-18 10:56 ` Brady Trainor
2014-11-18 11:16 ` Nicolas Goaziou
0 siblings, 2 replies; 8+ messages in thread
From: Rasmus @ 2014-11-18 9:57 UTC (permalink / raw)
To: emacs-orgmode
Brady Trainor <algebrat@uw.edu> writes:
> Rasmus <rasmus@gmx.us> 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. . .
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: org-mode pretty entities has \perp but not \parallel
2014-11-18 9:57 ` Rasmus
@ 2014-11-18 10:56 ` Brady Trainor
2014-11-19 13:56 ` Rasmus
2014-11-18 11:16 ` Nicolas Goaziou
1 sibling, 1 reply; 8+ messages in thread
From: Brady Trainor @ 2014-11-18 10:56 UTC (permalink / raw)
To: Rasmus; +Cc: emacs-orgmode
Rasmus <rasmus@gmx.us> writes:
> Brady Trainor <algebrat@uw.edu> 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.)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: org-mode pretty entities has \perp but not \parallel
2014-11-18 9:57 ` Rasmus
2014-11-18 10:56 ` Brady Trainor
@ 2014-11-18 11:16 ` Nicolas Goaziou
1 sibling, 0 replies; 8+ messages in thread
From: Nicolas Goaziou @ 2014-11-18 11:16 UTC (permalink / raw)
To: Rasmus; +Cc: emacs-orgmode
Hello,
Rasmus <rasmus@gmx.us> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: org-mode pretty entities has \perp but not \parallel
2014-11-18 10:56 ` Brady Trainor
@ 2014-11-19 13:56 ` Rasmus
0 siblings, 0 replies; 8+ messages in thread
From: Rasmus @ 2014-11-19 13:56 UTC (permalink / raw)
To: algebrat; +Cc: emacs-orgmode
Brady Trainor <algebrat@uw.edu> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-11-19 13:57 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-16 23:53 org-mode pretty entities has \perp but not \parallel Brady Trainor
2014-11-17 10:14 ` Rasmus
2014-11-18 7:12 ` Brady Trainor
2014-11-18 9:33 ` Brady Trainor
2014-11-18 9:57 ` Rasmus
2014-11-18 10:56 ` Brady Trainor
2014-11-19 13:56 ` Rasmus
2014-11-18 11:16 ` Nicolas Goaziou
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.