Re: [Orgmode] Export special characters to LaTeX and HTML
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 ___ 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
Re: [Orgmode] Export special characters to LaTeX and HTML
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 ___ 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
Re: [Orgmode] Export special characters to LaTeX and HTML
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 ___ 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
[Orgmode] Export special characters to LaTeX and HTML
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___ 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