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

unicode

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:

\documentclass{article}
\usepackage{fontspec}
\setmainfont{TeX Gyre Termes}

\begin{document}

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

\end{document}
Related Question