From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Export special characters to LaTeX and HTML Date: Sat, 27 Mar 2010 21:22:49 -1000 Message-ID: <8880A5F0-25CB-49B5-B886-BBE036AB2479@tsdye.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============1158071761==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nvmpr-0002J5-2Y for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 03:23:03 -0400 Received: from [140.186.70.92] (port=56455 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nvmpn-0002IU-P3 for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 03:23:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nvmpk-0007Hl-MP for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 03:22:59 -0400 Received: from outbound-mail-359.bluehost.com ([66.147.249.253]:50964) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Nvmpk-0007HY-86 for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 03:22:56 -0400 Received: from cpe-24-161-159-72.hawaii.res.rr.com ([24.161.159.72] helo=[192.168.1.2]) by box472.bluehost.com with esmtpa (Exim 4.69) (envelope-from ) id 1Nvmpf-0004Ew-7f for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 01:22:52 -0600 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode list --===============1158071761== Content-Type: multipart/alternative; boundary=Apple-Mail-1--604006859 --Apple-Mail-1--604006859 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Aloha all, Is there a way to insert special characters in org-mode so they export correctly to both LaTeX and HTML? I'm interested in characters that don't appear on the long list of LaTeX special characters that export to HTML listed here: http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.php#sec-9 I use Hawaiian words extensively and they often require a macron over vowels, so Ā ā Ē ē etc. in HTML or \=A, \=a, \=E, \=e, etc. in LaTeX. My idea is to have a single org-mode document that I can export to LaTeX to interact with my colleagues, and then export to HTML for journals that require submissions in Word format. I'm using tex4ht now, but an org-mode solution would be simpler and more direct. All the best, Tom --Apple-Mail-1--604006859 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Aloha = all,

Is there a way to insert special characters in = org-mode so they export correctly to both LaTeX and HTML?  I'm = interested in characters that don't appear on the long list of LaTeX = special characters that export to HTML listed here: http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.p= hp#sec-9

I use Hawaiian words extensively = and they often require a macron over vowels, so = &#256; &#257; &#274; &#275; etc. in HTML = or \=3DA, \=3Da, \=3DE, \=3De, etc. in = LaTeX.

My idea is to have a single org-mode = document that I can export to LaTeX to interact with my colleagues, and = then export to HTML for journals that require submissions in Word = format.  I'm using tex4ht now, but an org-mode solution would be = simpler and more direct.

All the = best,
Tom
= --Apple-Mail-1--604006859-- --===============1158071761== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1158071761==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sven Bretfeld" Subject: Re: Export special characters to LaTeX and HTML Date: 28 Mar 2010 10:29:48 +0200 Message-ID: <87d3yorgqr.fsf@gmx.ch> References: <8880A5F0-25CB-49B5-B886-BBE036AB2479@tsdye.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvnsB-0004Cl-9j for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 04:29:31 -0400 Received: from [140.186.70.92] (port=42153 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nvns9-0004Cd-JJ for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 04:29:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nvns8-00049E-00 for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 04:29:29 -0400 Received: from mx6.rz.ruhr-uni-bochum.de ([134.147.64.30]:53776) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Nvns7-000490-NV for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 04:29:27 -0400 In-Reply-To: <8880A5F0-25CB-49B5-B886-BBE036AB2479@tsdye.com> (Thomas S. Dye's message of "Sat, 27 Mar 2010 21:22:49 -1000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode list Hi Tom "Thomas S. Dye" writes: > Aloha all, You aren't Thomas Magnum, are you? > Is there a way to insert special characters in org-mode so they export > correctly to both LaTeX and HTML? I'm interested in characters that > don't appear on the long list of LaTeX special characters that export > to HTML listed here: http:// > orgmode.org/worg/org-tutorials/org-publish-html-tutorial.php#sec-9 > I use Hawaiian words extensively and they often require a macron over > vowels, so Ā ā Ē ē etc. in HTML or \=A, \=a, \=E, > \=e, etc. in LaTeX. I use the same characters for Sanskrit. They export just fine to LaTeX. To type them I have the following in my .emacs: (define-key global-map [(meta a)] nil) ;;make Alt-a free as a prefix (define-key org-mode-map [(meta a)] nil) (defun insert-lang-a () (interactive) (ucs-insert "0101")) (global-set-key "\M-aa" 'insert-lang-a) (defun insert-lang-i () (interactive) (ucs-insert "012B")) (global-set-key "\M-ai" 'insert-lang-i) This binds a-macron and i-macron to M-aa and M-ai. The same can be done for all other characters (M-aA = A-macron etc.). For LaTeX-export you should set inputenc to utf8x. Hope it helps Sven From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: Export special characters to LaTeX and HTML Date: Sun, 28 Mar 2010 06:20:25 -1000 Message-ID: References: <8880A5F0-25CB-49B5-B886-BBE036AB2479@tsdye.com> <87d3yorgqr.fsf@gmx.ch> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvvE1-0005XW-HV for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 12:20:33 -0400 Received: from [140.186.70.92] (port=43151 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvvE0-0005XO-Ax for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 12:20:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvvDy-00036c-I8 for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 12:20:32 -0400 Received: from outbound-mail-360.bluehost.com ([66.147.249.254]:37168) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NvvDy-00036P-AG for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 12:20:30 -0400 In-Reply-To: <87d3yorgqr.fsf@gmx.ch> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sven Bretfeld Cc: emacs-orgmode list On Mar 27, 2010, at 10:29 PM, Sven Bretfeld wrote: > Hi Tom > > "Thomas S. Dye" writes: > >> Aloha all, > > You aren't Thomas Magnum, are you? > >> Is there a way to insert special characters in org-mode so they >> export >> correctly to both LaTeX and HTML? I'm interested in characters that >> don't appear on the long list of LaTeX special characters that export >> to HTML listed here: http:// >> orgmode.org/worg/org-tutorials/org-publish-html-tutorial.php#sec-9 > >> I use Hawaiian words extensively and they often require a macron over >> vowels, so Ā ā Ē ē etc. in HTML or \=A, \=a, \=E, >> \=e, etc. in LaTeX. > > I use the same characters for Sanskrit. They export just fine to > LaTeX. > To type them I have the following in my .emacs: > > (define-key global-map [(meta a)] nil) ;;make Alt-a free as a prefix > (define-key org-mode-map [(meta a)] nil) > > (defun insert-lang-a () > (interactive) > (ucs-insert "0101")) > (global-set-key "\M-aa" 'insert-lang-a) > > (defun insert-lang-i () > (interactive) > (ucs-insert "012B")) > (global-set-key "\M-ai" 'insert-lang-i) > > This binds a-macron and i-macron to M-aa and M-ai. The same can be > done > for all other characters (M-aA = A-macron etc.). > > For LaTeX-export you should set inputenc to utf8x. > > Hope it helps > > Sven > Hi Sven, This is brilliant. Thanks! I tried to find this solution in the documentation last night but came up empty. Did I miss something? Seems like it should be there someplace. Actually, I harbor a grudge against Thomas Magnum :) I've been a Detroit Tigers fan for more than 50 years. For many of those years I've worn a Tiger's cap in the summer, but once Magnum started doing it, people began to accuse me of aping him. I had to find a friend with a TV to find out what people were asking me. You are the first to ask in at least a decade. Thanks again for your help. Tom From mboxrd@z Thu Jan 1 00:00:00 1970 From: sven.bretfeld@gmx.ch Subject: Re: Export special characters to LaTeX and HTML Date: 28 Mar 2010 19:04:48 +0200 Message-ID: <87pr2opebz.fsf@rub.de> References: <8880A5F0-25CB-49B5-B886-BBE036AB2479@tsdye.com> <87d3yorgqr.fsf@gmx.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvvuY-0000cr-SG for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 13:04:30 -0400 Received: from [140.186.70.92] (port=60054 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvvuV-0000ZN-3Q for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 13:04:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvvuS-0007CK-V4 for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 13:04:26 -0400 Received: from mx4.rz.ruhr-uni-bochum.de ([134.147.64.53]:52089) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NvvuS-0007C0-LF for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 13:04:24 -0400 In-Reply-To: (Thomas S. Dye's message of "Sun, 28 Mar 2010 06:20:25 -1000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: emacs-orgmode list Hi Thomas "Thomas S. Dye" writes: > This is brilliant. Thanks! I tried to find this solution in the > documentation last night but came up empty. Did I miss something? > Seems like it should be there someplace. This wont show up in the Org manual, since it consists of usual Emacs code. It took me a while to find the command ucs-insert when I shifted to Emacs from Kile some years ago. The only org-specific part is the detachment of M-a as a prefix, because this key is bound to some function in the org-keymap. > Actually, I harbor a grudge against Thomas Magnum :) I've been a > Detroit Tigers fan for more than 50 years. For many of those years > I've worn a Tiger's cap in the summer, but once Magnum started doing > it, people began to accuse me of aping him. I had to find a friend > with a TV to find out what people were asking me. You are the first > to ask in at least a decade. Hehe. This really amuses me. T.M. is one of my heroes. He comes to my mind whenever I think of Hawaii. Greetings, Sven From mboxrd@z Thu Jan 1 00:00:00 1970 From: Magnus Henoch Subject: Re: Export special characters to LaTeX and HTML Date: Mon, 29 Mar 2010 15:01:26 +0100 Message-ID: <84iq8fp6q1.fsf@linux-b2a3.site> References: <8880A5F0-25CB-49B5-B886-BBE036AB2479@tsdye.com> <87d3yorgqr.fsf@gmx.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwFXI-00036K-40 for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 10:01:48 -0400 Received: from [140.186.70.92] (port=57353 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwFXG-00035a-As for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 10:01:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwFXE-0004TT-L1 for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 10:01:46 -0400 Received: from lo.gmane.org ([80.91.229.12]:56405) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwFXE-0004TJ-CU for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 10:01:44 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NwFX9-0003BF-Pp for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 16:01:39 +0200 Received: from host213-123-170-251.in-addr.btopenworld.com ([213.123.170.251]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Mar 2010 16:01:39 +0200 Received: from magnus.henoch by host213-123-170-251.in-addr.btopenworld.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Mar 2010 16:01:39 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org "Sven Bretfeld" writes: > I use the same characters for Sanskrit. They export just fine to LaTeX. > To type them I have the following in my .emacs: > > (define-key global-map [(meta a)] nil) ;;make Alt-a free as a prefix > (define-key org-mode-map [(meta a)] nil) > > (defun insert-lang-a () > (interactive) > (ucs-insert "0101")) > (global-set-key "\M-aa" 'insert-lang-a) > > (defun insert-lang-i () > (interactive) > (ucs-insert "012B")) > (global-set-key "\M-ai" 'insert-lang-i) An alternative to the above is to use an input method, e.g. M-x set-input-method RET latin-alt-postfix. Then typing "a-" gives you "ā" (and typing "a--" gives you "a-"). -- Magnus Henoch From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: Re: Export special characters to LaTeX and HTML Date: Mon, 29 Mar 2010 05:56:45 -1000 Message-ID: References: <8880A5F0-25CB-49B5-B886-BBE036AB2479@tsdye.com> <87d3yorgqr.fsf@gmx.ch> <84iq8fp6q1.fsf@linux-b2a3.site> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============1030517814==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwHKk-0002YS-8D for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 11:56:58 -0400 Received: from [140.186.70.92] (port=39320 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwHKh-0002Rn-IU for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 11:56:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwHKf-0002gM-SL for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 11:56:55 -0400 Received: from outbound-mail-359.bluehost.com ([66.147.249.253]:47341) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NwHKf-0002ft-LB for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 11:56:53 -0400 In-Reply-To: <84iq8fp6q1.fsf@linux-b2a3.site> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Magnus Henoch Cc: emacs-orgmode@gnu.org --===============1030517814== Content-Type: multipart/alternative; boundary=Apple-Mail-8--486770030 --Apple-Mail-8--486770030 Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable On Mar 29, 2010, at 4:01 AM, Magnus Henoch wrote: > "Sven Bretfeld" writes: > >> I use the same characters for Sanskrit. They export just fine to =20 >> LaTeX. >> To type them I have the following in my .emacs: >> >> (define-key global-map [(meta a)] nil) ;;make Alt-a free as a prefix >> (define-key org-mode-map [(meta a)] nil) >> >> (defun insert-lang-a () >> (interactive) >> (ucs-insert "0101")) >> (global-set-key "\M-aa" 'insert-lang-a) >> >> (defun insert-lang-i () >> (interactive) >> (ucs-insert "012B")) >> (global-set-key "\M-ai" 'insert-lang-i) > > An alternative to the above is to use an input method, e.g. M-x > set-input-method RET latin-alt-postfix. Then typing "a-" gives you =20= > "=C4=81" > (and typing "a--" gives you "a-"). > > --=20 > Magnus Henoch > Thanks Magnus, This is very helpful. All the best, Tom= --Apple-Mail-8--486770030 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Mar 29, 2010, = at 4:01 AM, Magnus Henoch wrote:

"Sven = Bretfeld" <sven.bretfeld@gmx.ch> = writes:

I use the same characters for = Sanskrit. They export just fine to LaTeX.
To type them I have the following in my = .emacs:

(define-key = global-map [(meta a)] nil) ;;make Alt-a free as a = prefix
(define-key = org-mode-map [(meta a)] nil)

(defun = insert-lang-a ()
(interactive)
(ucs-insert "0101"))
(global-set-key "\M-aa" = 'insert-lang-a)

(defun = insert-lang-i ()
(interactive)
(ucs-insert "012B"))
(global-set-key "\M-ai" = 'insert-lang-i)

An alternative to the above is to = use an input method, e.g. M-x
set-input-method RET latin-alt-postfix. =  Then typing "a-" gives you "=C4=81"
(and typing "a--" gives you = "a-").

--
Magnus Henoch


Than= ks Magnus,

This is very = helpful.

All the = best,
Tom
= --Apple-Mail-8--486770030-- --===============1030517814== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1030517814==--