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: Rasmus
Subject: Re: [O] org-mode pretty entities has \perp but not \parallel
Date: Tue, 18 Nov 2014 10:57:34 +0100
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.51 (gnu/linux)

Brady Trainor <address@hidden> writes:

> 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

Except the ∥ that was somehow eaten in your snip (but OK below).

> 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.

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. . .




reply via email to

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