all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Thomas S. Dye" <tsd@tsdye.com>
To: Sven Bretfeld <sven.bretfeld@gmx.ch>
Cc: emacs-orgmode list <emacs-orgmode@gnu.org>
Subject: Re: Export special characters to LaTeX and HTML
Date: Sun, 28 Mar 2010 06:20:25 -1000	[thread overview]
Message-ID: <E464BD08-255F-49D5-89B5-F8E709BF5F05@tsdye.com> (raw)
In-Reply-To: <87d3yorgqr.fsf@gmx.ch>


On Mar 27, 2010, at 10:29 PM, Sven Bretfeld wrote:

> Hi Tom
>
> "Thomas S. Dye" <tsd@tsdye.com> 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 &#256; &#257; &#274; &#275; 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

  reply	other threads:[~2010-03-28 16:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-28  7:22 Export special characters to LaTeX and HTML Thomas S. Dye
2010-03-28  8:29 ` Sven Bretfeld
2010-03-28 16:20   ` Thomas S. Dye [this message]
2010-03-28 17:04     ` sven.bretfeld
2010-03-29 14:01   ` Magnus Henoch
2010-03-29 15:56     ` Thomas S. Dye

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E464BD08-255F-49D5-89B5-F8E709BF5F05@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=sven.bretfeld@gmx.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.