Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How do I use decimal based HTML characters such as these: ﭑﭒﭓﭔﭕﭖﭗﭘﭙ

with a special truetype font that assigns a different symbol for each of the above characters? For simplicity, let's say I want to apply Times New Roman font to obtain following:


Is it possible with LaTeX?

share|improve this question
Hi you might want to have a look at this post tex.stackexchange.com/questions/34604/… –  ArTourter May 7 '12 at 20:14
I believe that the ways how to do this are covered in the question linked by @ArTourter –  tohecz May 7 '12 at 20:38
I have actually studied it before the question. Although I am using XETEX, but decimal hmtl characters require something else. Hence the question. Many thanks. –  Firdews May 7 '12 at 20:38
\char64337 (leave a trailing space) –  egreg May 7 '12 at 20:44
Thank you so much egreg. It worked! –  Firdews May 7 '12 at 20:56
show 1 more comment

1 Answer 1

One can always tell XeTeX to insert a glyph from the current font by its number:


for instance. Leave a trailing space (that will be ignored). So your example is

\char64337 \char64338 \char64339 \char64340 \char64341
\char64342 \char64343 \char64344 \char64345

(an end-of-line is the same as a space). Actually the trailing space is really necessary only after the last one.

You can also define a macro for this:

\newcommand{\Ent}[1]{\char#1 }

so you can avoid spaces


or even do it by giving a list of numbers:


\newcommand{\Ent}[1]{\char#1 }

and your input can be simply

share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.