[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to translate LaTeX into UTF-8 in Elisp?
From: |
Stefan Monnier |
Subject: |
Re: How to translate LaTeX into UTF-8 in Elisp? |
Date: |
Thu, 08 Dec 2016 17:12:19 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
> 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))
-- Stefan