[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Export special characters to LaTeX and HTML
From: |
Sven Bretfeld |
Subject: |
Re: [Orgmode] Export special characters to LaTeX and HTML |
Date: |
28 Mar 2010 10:29:48 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
Hi Tom
"Thomas S. Dye" <address@hidden> 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