help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to translate LaTeX into UTF-8 in Elisp?


From: Marcin Borkowski
Subject: Re: How to translate LaTeX into UTF-8 in Elisp?
Date: Fri, 27 Jan 2017 12:48:07 +0100
User-agent: mu4e 0.9.19; emacs 26.0.50.3

On 2016-12-08, at 23:12, Stefan Monnier <monnier@iro.umontreal.ca> wrote:

>> I have a string with embedded sequences like "\'e" or "\H{o}".  The
>> Emacs TeX input method knows how to convert them into "é" or "ő" (when
>> typing, of course).  Is there a way to use that to perform similar
>> conversions in a string?
>
> You can do something like:
>
>    (with-temp-buffer
>      (insert STRING)
>      (iso-tex2iso (point-min) (point-max))
>      (buffer-string))

Hi,

sorry for the delay - I somehow missed yoru answer.

Thanks for the tip.  It works, but not entirely.  It did work for \'{e},
but not for \H{o} - probably because there is no "ő" in ISO 8859-1.  So
this won't do all the tricks that the TeX inout method does.

Still, if nothing else pops up, this is quite useful - thanks!

Best,

-- 
Marcin Borkowski



reply via email to

[Prev in Thread] Current Thread [Next in Thread]