[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-mode pretty entities has \perp but not \parallel
From: |
Brady Trainor |
Subject: |
Re: [O] org-mode pretty entities has \perp but not \parallel |
Date: |
Tue, 18 Nov 2014 01:33:39 -0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Rasmus <address@hidden> 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