Print the codepoint of a unicode glyph represented by a latex command.
William F Hammond
hmwlfsr at yahoo.com
Mon Jan 17 21:08:29 CET 2022
Hongyi Zhao <hongyi.zhao at gmail.com> writes:
> . . . I want to obtain the codepoint, say, corresponding the LaTeX
> symbols in the following document:
>
> \documentclass{paper}
> \begin{document}
> \textminus, \textnineoldstyle, \textohm, \textonehalf, \textoneoldstyle.
> \end{document}
( Need \usepackage{textcomp} )
> Any hints for achieving this aim from within LaTeX itself?
( I doubt if Leslie Lamport knew about Unicode when he
originated LaTeX. :-) )
Tex4ht, which runs using latex, will generate
<p class="noindent" ><span
class="tcrm-1000">−</span>, <span
class="tcrm-1000"></span>, <span
class="tcrm-1000">Ω</span>, <span
class="tcrm-1000">½</span>, <span
class="tcrm-1000"></span>.</p>
(This, no doubt, required the authors of tex4ht to look up
these codepoints.)
-- Bill
Email: hmwlfsr at yahoo.com
gellmu at gmail.com
https://www.facebook.com/william.f.hammond
http://www.albany.edu/~hammond/
𝑹𝒆𝒎𝒆𝒎𝒃𝒆𝒓, 𝒓𝒆𝒎𝒆𝒎𝒃𝒆𝒓 𝒕𝒉𝒆 𝒔𝒊𝒙𝒕𝒉 𝒐𝒇 𝒕𝒉𝒆 𝒚𝒆𝒂𝒓.
More information about the texhax
mailing list.