From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: org-mode pretty entities has \perp but not \parallel
Date: Tue, 18 Nov 2014 10:57:34 +0100 [thread overview]
Message-ID: <87vbmcygoh.fsf@gmx.us> (raw)
In-Reply-To: 87r3x026q4.fsf@uw.edu
Brady Trainor <algebrat@uw.edu> writes:
> Rasmus <rasmus@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 "∥" "||" "||" "%")
> #+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. . .
next prev parent reply other threads:[~2014-11-18 9:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-16 23:53 org-mode pretty entities has \perp but not \parallel Brady Trainor
2014-11-17 10:14 ` Rasmus
2014-11-18 7:12 ` Brady Trainor
2014-11-18 9:33 ` Brady Trainor
2014-11-18 9:57 ` Rasmus [this message]
2014-11-18 10:56 ` Brady Trainor
2014-11-19 13:56 ` Rasmus
2014-11-18 11:16 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vbmcygoh.fsf@gmx.us \
--to=rasmus@gmx.us \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).