emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Brady Trainor <algebrat@uw.edu>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-mode pretty entities has \perp but not \parallel
Date: Tue, 18 Nov 2014 01:33:39 -0800	[thread overview]
Message-ID: <87r3x026q4.fsf@uw.edu> (raw)
In-Reply-To: 87d28mw2v2.fsf@gmx.us

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 "&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

  parent reply	other threads:[~2014-11-18  9:33 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 [this message]
2014-11-18  9:57     ` Rasmus
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=87r3x026q4.fsf@uw.edu \
    --to=algebrat@uw.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus@gmx.us \
    /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).