* [Arik Mitschang] org-mode ASCII export of in-word LaTeX symbols support
@ 2010-10-15 7:29 Noorul Islam K M
2010-10-15 7:40 ` Carsten Dominik
0 siblings, 1 reply; 3+ messages in thread
From: Noorul Islam K M @ 2010-10-15 7:29 UTC (permalink / raw)
To: emacs-orgmode; +Cc: Arik Mitschang
[-- Attachment #1: Type: text/plain, Size: 181 bytes --]
I am not sure whether this is already forwarded. I am forwarding this
thread from emacs-devel mailing list. Hopefully patchworks picks up this
patch.
Thanks and Regards
Noorul
[-- Attachment #2: Type: message/rfc822, Size: 4561 bytes --]
From: Arik Mitschang <amitschang@cfa.harvard.edu>
To: emacs-devel@gnu.org
Subject: org-mode ASCII export of in-word LaTeX symbols support
Date: Thu, 14 Oct 2010 11:59:40 -0400
Message-ID: <19639.10476.252832.800584@gargle.gargle.HOWL>
Hi emacs-devel,
I would like to suggest the following small change to the org-mode
ascii export feature in emacs 23.2. The reason for this is because
org-mode export supports embedded LaTeX in a LaTeX sort of fashion
where a symbol can be placed inside a word provided it is terminated
with '{}'. However in an ascii export the '{}' remains trailing the
converted symbol making it very difficult to seamlessly support these
inlined symbols across multiple export formats.
The manual likewise states:
"If you need such a symbol inside a word, terminate it like this: ‘\Aacute{}stor’."
indicating that this form is (or should be) supported. The fix is
quite simple, the regexp for matching LaTeX symbols to be exported
needs to allow for the terminating '{}' if existing. I have included
the necessary patch below.
Thanks alot,
~Arik
GNU Emacs 23.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.4) of 2010-07-26 on lacuna
--- org-ascii.el
+++ org-ascii.el
@@ -586,7 +586,7 @@
(defun org-ascii-replace-entities ()
"Replace entities with the ASCII representation."
(let (e)
- (while (re-search-forward "\\\\\\([a-zA-Z]+[0-9]*\\)" nil t)
+ (while (re-search-forward "\\\\\\([a-zA-Z]+[0-9]*\\)\\({}\\)?" nil t)
(org-if-unprotected-at (match-beginning 1)
(setq e (org-entity-get-representation (match-string 1)
org-export-ascii-entities))
[-- Attachment #3: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Arik Mitschang] org-mode ASCII export of in-word LaTeX symbols support
2010-10-15 7:29 [Arik Mitschang] org-mode ASCII export of in-word LaTeX symbols support Noorul Islam K M
@ 2010-10-15 7:40 ` Carsten Dominik
2010-10-15 14:34 ` Arik Mitschang
0 siblings, 1 reply; 3+ messages in thread
From: Carsten Dominik @ 2010-10-15 7:40 UTC (permalink / raw)
To: Noorul Islam K M; +Cc: emacs-orgmode, Arik Mitschang
Yes, I saw this and just applied tha patch.
Thanks.
- Carsten
On Oct 15, 2010, at 9:29 AM, Noorul Islam K M wrote:
>
> I am not sure whether this is already forwarded. I am forwarding this
> thread from emacs-devel mailing list. Hopefully patchworks picks up
> this
> patch.
>
>
> Thanks and Regards
> Noorul
>
>
> <mime-attachment.eml>_______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
- Carsten
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Arik Mitschang] org-mode ASCII export of in-word LaTeX symbols support
2010-10-15 7:40 ` Carsten Dominik
@ 2010-10-15 14:34 ` Arik Mitschang
0 siblings, 0 replies; 3+ messages in thread
From: Arik Mitschang @ 2010-10-15 14:34 UTC (permalink / raw)
To: Carsten Dominik; +Cc: emacs-orgmode, Arik Mitschang, Noorul Islam K M
Awesome! Thanks for the quick action.
~Arik
Carsten Dominik writes:
> Yes, I saw this and just applied tha patch.
>
> Thanks.
>
> - Carsten
>
> On Oct 15, 2010, at 9:29 AM, Noorul Islam K M wrote:
>
> >
> > I am not sure whether this is already forwarded. I am forwarding this
> > thread from emacs-devel mailing list. Hopefully patchworks picks up
> > this
> > patch.
> >
> >
> > Thanks and Regards
> > Noorul
> >
> >
> > <mime-attachment.eml>_______________________________________________
> > Emacs-orgmode mailing list
> > Please use `Reply All' to send replies to the list.
> > Emacs-orgmode@gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
> - Carsten
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-15 14:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-15 7:29 [Arik Mitschang] org-mode ASCII export of in-word LaTeX symbols support Noorul Islam K M
2010-10-15 7:40 ` Carsten Dominik
2010-10-15 14:34 ` Arik Mitschang
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).