首页 > 解决方案 > 如何在 LaTex 中编译 Unicode 字符?

问题描述

我正在尝试在背面用 LaTex 写一小段文字。在我使用 Unicode 字符之前一切正常。
例如,我想插入这个梵文符号:ऄ 并在 LaTex 编译后使其可见。
这是我的文档的一个示例:

\documentclass[a4paper,12pt,openright,notitlepage,twoside]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\begin{document}
symbol: ऄ
\end{document}

无论我用 LaTex 编译,符号都不会出现,我得到这个错误:
Package inputenc Error: Unicode character ऄ (U+0904) (inputenc)not set up for use with LaTeX.

无论我用 LuaLaTex 还是 XeLaTex 编译,字符仍然没有出现,但错误信息消失了。
我尝试了这篇文章中描述的所有方法:https ://tex.stackexchange.com/questions/34604/entering-unicode-characters-in-latex但没有人适合我。
有没有人有办法解决这个问题?

标签: unicodeutf-8latex

解决方案



推荐阅读