Package inputenc Error: Unicode char \u8: not set up for use with LaTeX.

用TexStudio编辑文档时,不知是多加了空格还是啥,总是提示如下错误:

Package inputenc Error: Unicode char \u8:  not set up for use with LaTeX.

删除掉一些内容(code)之后可以成功编译,不过添加(code)之后,又反复出现了。如此几次,真是抓狂。

遂到tex.stackchange.com上找寻到:戳这里。说是有Non-Breaking Space。

依照其添加了:

\DeclareUnicodeCharacter{00A0}{~}

不过问题依旧啊。

阅读文档:

This is due to the utf8 definition not necessarily having a mapping of all the character glyphs you are able to enter on your keyboard. 

后面还提到:

With XeTeX and LuaTeX the inputenc package is no longer needed. Both engines support UTF-8 directly and allow the use of TTF and OpenType fonts to support Unicode characters. See the Fonts7 section for more information.

将编译环境换成XeLatex,不过汉字完全不见了!!

继续搜索‘XeLatex 中文‘,原来是缺少宏包,引入宏包(注释掉原来的CJK宏包引用,貌似会造成冲突):

\usepackage{xeCJK}

成功编译。相信这次是从根源上解决了这个问题。

时间: 2024-12-26 14:27:20

Package inputenc Error: Unicode char \u8: not set up for use with LaTeX.的相关文章

Reading package lists... Error! 解决方案

ubuntu 下安装python开发包,执行命令 sudo apt-get install python-dev,报错: Reading package lists... Error! E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/AZ.archive.ubuntu.com_ubuntu_dists_natty_main_i18n _Translation

R安装package报ERROR: a 'NAMESPACE' file is required

R安装package报错: [[email protected] mysofts]# R CMD INSTALL trimcluster_0.1-1.tar.gz * installing to library '/usr/local/lib64/R/library' WARNING: omitting pointless dependence on 'R' without a version requirement * installing *source* package 'trimclus

解决Ubuntu中update的问题(Reading package lists... Error!)

问题描述: 像安装一个软件, 发现会弹出下列的问题: Reading package lists... Error! E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_trusty_main_i18n_Translation-en E: The package lists or status

Failed to import package with error: Couldn't decompress package

解压unitypackage的时候出错,原因是路径中包含中文字符,更改成英文路径即可. 参考 Error while importing package: Couldn't decompress package http://forum.unity3d.com/threads/error-while-importing-package-couldnt-decompress-package.15851/ Failed to import package with error: Couldn't d

Failed to import package with error: Couldn't decompress package的解决方案

问题的出现 在Unity中导入一个Package文件,出现以下出错信息 解决方案 遇到这样的报错信息,一般就是要将该文件包的存储路径设置为英文,因为Unity不识别中文路径:其次对文件包的命名中间应没有空格. Failed to import package with error: Couldn't decompress package的解决方案 原文地址:https://www.cnblogs.com/OctoptusLian/p/8723754.html

MVN package install error javac: invalid target release: 1.8

现象:---------------------------------[ERROR] Failure executing javac, but could not parse the error:javac: invalid target release: 1.8Usage: javac <options> <source files>use -help for a list of possible option---------------------------------调

SSIS Error:Package Validation Error. SSIS Error Code DTS_E_OLEDBERROR. .Error code: 0x80040E37. An OLE DB record is available. Hresult: 0x80040E37

当我参考如下链接,尝试在SSIS包中动态创建全局临时表##Temp,用Lookup组件作为数据源,给全局临时表变量赋值时,会发生如下图的验证错误. http://sqlage.blogspot.com/2014/04/ssis-how-to-create-use-temp-table-in.html 因为信息已经明确提示,这是一个验证的错误,这又是一个动态创建全局临时表的包,所以我怀疑是DelayValidation 属性设置问题.当我检查了所有的数据库连接,这个属性设置为Ture.我就迷惑了,

Error:const char* 类型的实参和LPCWSTR类型的形参不兼容的解决方法。

在C++的Windows 应用程序中经常碰到这种情况. 解决方法: 加入如下转换函数: LPCWSTR stringToLPCWSTR(std::string orig) { size_t origsize = orig.length() + 1; const size_t newsize = 100; size_t convertedChars = 0; wchar_t *wcstring = (wchar_t *) malloc(sizeof(wchar_t) *(orig.length()

Grade 编译 Android 解决 Error:more than one library with package name

Grade 编译 Android 解决 Error:more than one library with package name Error: more than one library with package name 'com.app.XX' You can temporarily disable this error with android.enforceUniquePackageName=false However, this is temporary and will be en