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