[Tex/LaTex] How to enter an arbitrary Unicode code point into the document


I want to enter a GREEK CAPITAL LETTER ALPHA (U+0391) into my LaTeX document. I do not want a LATIN CAPITAL A. How do I do this?

Best Answer

\symbol{"0391} % hex
\symbol{913}   % dec
\symbol{'1621} % oct

You need a true Unicode TeX engine (XeLaTeX or LuaLaTeX) to get proper glyphs.

Full example code:

\setmainfont{TeX Gyre Termes}


\symbol{"0393} % hex
\symbol{915}   % dec
\symbol{'1623} % oct

Related Question