Print the codepoint of a unicode glyph represented by a latex command.

William F Hammond hmwlfsr at
Mon Jan 17 21:08:29 CET 2022

Hongyi Zhao <hongyi.zhao at> 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">&#x2212;</span>, <span 
        class="tcrm-1000">&#xF739;</span>, <span 
        class="tcrm-1000">&#x2126;</span>, <span 
        class="tcrm-1000">&#x00BD;</span>, <span 

(This, no doubt, required the authors of tex4ht to look up
these codepoints.)

                              -- Bill

Email: hmwlfsr at
       gellmu at

𝑹𝒆𝒎𝒆𝒎𝒃𝒆𝒓, 𝒓𝒆𝒎𝒆𝒎𝒃𝒆𝒓 𝒕𝒉𝒆 𝒔𝒊𝒙𝒕𝒉 𝒐𝒇 𝒕𝒉𝒆 𝒚𝒆𝒂𝒓.

More information about the texhax mailing list.