Brady Trainor <algeb...@uw.edu> writes:

> Rasmus <ras...@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 "&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