From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Mark E. Shoulson" Subject: [PATCH] Add entities for /, +, _, = Date: Wed, 23 May 2012 22:02:16 -0400 Message-ID: <4FBD96A8.9040106@kli.org> References: <4FA9DBFA.8080405@kli.org> <87hav68syk.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020100080303080401050908" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXNNe-0004Tq-Ln for emacs-orgmode@gnu.org; Wed, 23 May 2012 22:02:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXNNc-0006La-Pm for emacs-orgmode@gnu.org; Wed, 23 May 2012 22:02:22 -0400 Received: from pi.meson.org ([96.56.207.26]:44933) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SXNNc-0006KK-LD for emacs-orgmode@gnu.org; Wed, 23 May 2012 22:02:20 -0400 In-Reply-To: <87hav68syk.fsf@gmail.com> 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: Nicolas Goaziou Cc: org-mode mailing list This is a multi-part message in MIME format. --------------020100080303080401050908 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 05/23/2012 05:53 PM, Nicolas Goaziou wrote: > Hello, > > "Mark E. Shoulson" writes: >> Also attached is another patch that might or might not be useful. >> Sometimes it can be a problem when you can't type, say, asterisks >> around a word when you NEED asterisks around the word, not a boldface >> word (I'd been getting around it by using Unicode characters that look >> like asterisks, like ∗). The way to do it right is to use the \ast >> entity, which expands to the right thing but doesn't affect >> formatting. There's also already a \tilde entity, to allow putting in >> tildes without accidentally setting something verbatim. I added >> entities for the remaining markup characters: \plus, \under, \equal, >> and \slash. \under might be particularly handy when avoiding >> subscripting (which raises the question of if there should be an >> \asciicirc (or something) entity for ^ also). > I think they are all useful. Though, asciicirc already exists as circ. I hadn't counted \circ because it expands under Unicode to ˆ (U+02C6) and not to the true ascii circumflex ^ (U+005E); the point of these entities is to represent ascii characters that otherwise would confuse things. Maybe \circ should expand to ^; maybe there should be another entity for it (maybe neither). Anyway; attaching the relevant patch (changelog tweaked), once again hoping I got the formatting and everything right. ~mark --------------020100080303080401050908 Content-Type: text/x-patch; name="0001-Add-entities-for-_.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="0001-Add-entities-for-_.patch" >From 4d6c4ccc90fd181f446ff4c7d56f5c980ec9d940 Mon Sep 17 00:00:00 2001 From: Mark Shoulson Date: Wed, 23 May 2012 21:53:35 -0400 Subject: [PATCH] Add entities for /, +, _, = * org-entities.el (org-entities): Add new entities for characters which could cause formatting changes if typed directly. --- lisp/org-entities.el | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/lisp/org-entities.el b/lisp/org-entities.el index 8b5b3f3..fce3b68 100644 --- a/lisp/org-entities.el +++ b/lisp/org-entities.el @@ -260,6 +260,10 @@ loaded, add these packages to `org-export-latex-packages-alist'." ("lt" "\\textless{}" nil "<" "<" "<" "<") ("gt" "\\textgreater{}" nil ">" ">" ">" ">") ("tilde" "\\~{}" nil "˜" "~" "~" "~") + ("slash" "/" nil "/" "/" "/" "/") + ("plus" "+" nil "+" "+" "+" "+") + ("under" "\\_" nil "_" "_" "_" "_") + ("equal" "=" nil "=" "=" "=" "=") ("dagger" "\\textdagger{}" nil "†" "[dagger]" "[dagger]" "†") ("Dagger" "\\textdaggerdbl{}" nil "‡" "[doubledagger]" "[doubledagger]" "‡") -- 1.7.7.6 --------------020100080303080401050908--