unicode - 如何在 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但没有人适合我。
有没有人有办法解决这个问题?
解决方案
推荐阅读
- sorting - 定义一个自定义的 sortperm 函数
- apache-kafka - 每个主题级别的 Kafka 配置 replica.fetch.max.bytes
- reactive-programming - 结合扫描和网络请求来更新 RxSwift 中的模型
- makefile - Makefile 目标的开始和结束
- python - 将 Python 与 venv 和 PyCharm 一起使用
- javascript - 如何获得原始数据文件的链接?
- r - 从R中的生存对象中提取生存时间向量
- pattern-matching - 是否可以在 Ltac-match 中绑定不同的术语?
- scala - IntelliJ 下载库一次并在多个项目中使用
- spring - 带有thymeleaf的Spring表单没有绑定权,抛出异常:参数为null