From: "Mark E. Shoulson" <mark@kli.org>
To: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Entities
Date: Tue, 08 May 2012 22:52:42 -0400 [thread overview]
Message-ID: <4FA9DBFA.8080405@kli.org> (raw)
[-- Attachment #1: Type: text/html, Size: 1863 bytes --]
[-- Attachment #2: 0001-Fix-for-displaying-certain-pretty-entities.patch --]
[-- Type: text/x-patch, Size: 1488 bytes --]
From 5070e37aaae6f952bab022c71212fabb7549105e Mon Sep 17 00:00:00 2001
From: Mark Shoulson <mark@kli.org>
Date: Tue, 8 May 2012 15:15:10 -0400
Subject: [PATCH] Fix for displaying certain "pretty" entities
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------1.7.7.6"
This is a multi-part message in MIME format.
--------------1.7.7.6
Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit
* org.el (org-fontify-entities): fix bug: The entities \sup[123] and
\there4 were not "prettified" when org-pretty-entities was enabled.
TINYCHANGE
---
lisp/org.el | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
--------------1.7.7.6
Content-Type: text/x-patch; name="0001-Fix-for-displaying-certain-pretty-entities.patch"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="0001-Fix-for-displaying-certain-pretty-entities.patch"
diff --git a/lisp/org.el b/lisp/org.el
index 66f9c3e..1d2955f 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5954,7 +5954,7 @@ needs to be inserted at a specific position in the font-lock sequence.")
(when org-pretty-entities
(catch 'match
(while (re-search-forward
- "\\\\\\(frac[13][24]\\|[a-zA-Z]+\\)\\($\\|{}\\|[^[:alpha:]\n]\\)"
+ "\\\\\\(there4\\|sup[123]\\|frac[13][24]\\|[a-zA-Z]+\\)\\($\\|{}\\|[^[:alpha:]\n]\\)"
limit t)
(if (and (not (org-in-indented-comment-line))
(setq ee (org-entity-get (match-string 1)))
--------------1.7.7.6--
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-Add-entities-for-_.patch --]
[-- Type: text/x-patch; name="0002-Add-entities-for-_.patch", Size: 1563 bytes --]
From 58d18562f39ed64a547fa2d60510cae5983bcbef Mon Sep 17 00:00:00 2001
From: Mark Shoulson <mark@kli.org>
Date: Tue, 8 May 2012 15:22:48 -0400
Subject: [PATCH] Add entities for /, +, _, =
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------1.7.7.6"
This is a multi-part message in MIME format.
--------------1.7.7.6
Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit
* 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(-)
--------------1.7.7.6
Content-Type: text/x-patch; name="0001-Add-entities-for-_.patch"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="0001-Add-entities-for-_.patch"
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--
next reply other threads:[~2012-05-09 2:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-09 2:52 Mark E. Shoulson [this message]
2012-05-23 21:53 ` Entities Nicolas Goaziou
2012-05-24 1:22 ` [PATCH] Fix for displaying entities ending in a number Mark E. Shoulson
2012-05-25 15:00 ` Nicolas Goaziou
2012-05-24 2:02 ` [PATCH] Add entities for /, +, _, = Mark E. Shoulson
2012-05-25 15:04 ` Nicolas Goaziou
2012-05-25 20:40 ` Mark E. Shoulson
2012-05-25 21:23 ` Bastien
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=4FA9DBFA.8080405@kli.org \
--to=mark@kli.org \
--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).