From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: org-mode pretty entities has \perp but not \parallel Date: Tue, 18 Nov 2014 10:57:34 +0100 Message-ID: <87vbmcygoh.fsf@gmx.us> References: <87bno64s9m.fsf@uw.edu> <87d28mw2v2.fsf@gmx.us> <87r3x026q4.fsf@uw.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqfXn-0002NK-7g for emacs-orgmode@gnu.org; Tue, 18 Nov 2014 04:58:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XqfXi-0000Bb-2n for emacs-orgmode@gnu.org; Tue, 18 Nov 2014 04:57:55 -0500 Received: from plane.gmane.org ([80.91.229.3]:33612) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqfXh-0000B2-Rv for emacs-orgmode@gnu.org; Tue, 18 Nov 2014 04:57:49 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XqfXe-00067d-AA for emacs-orgmode@gnu.org; Tue, 18 Nov 2014 10:57:46 +0100 Received: from 109.201.154.199 ([109.201.154.199]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Nov 2014 10:57:46 +0100 Received: from rasmus by 109.201.154.199 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Nov 2014 10:57:46 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Brady Trainor writes: > Rasmus 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. . .