emacs-orgmode
[Top][All Lists]
Advanced

[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 "&parallel;" "||" "||" "∥")
#+END_SRC

I also tried to add something like

#+BEGIN_SRC 
("|" "\\\|" t "&parallel;" "||" "||" "∥")
#+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 "&ang;" "[angle]" "[angle]" "∠")
      ("angle" "\\angle" t "&ang;" "[angle]" "[angle]" "∠")
      ("perp" "\\perp" t "&perp;" "[up tack]" "[up tack]" "⊥")
+     ("parallel" "\\parallel" t "&parallel;" "||" "||" "∥")
      ("sdot" "\\cdot" t "&sdot;" "[dot]" "[dot]" "⋅")
      ("cdot" "\\cdot" t "&sdot;" "[dot]" "[dot]" "⋅")
      ("lceil" "\\lceil" t "&lceil;" "[left ceiling]" "[left ceiling]" "⌈")

Diff finished.  Tue Nov 18 00:35:31 2014




reply via email to

[Prev in Thread] Current Thread [Next in Thread]