程序包 inputenc 错误:Unicode 字符 - {U+2010)

程序包 inputenc 错误:Unicode 字符 - {U+2010)

我遇到了以下错误,不知道在哪里可以找到解决方案;

Package inputenc Error: Unicode char ‐ (U+2010)
(inputenc)                not set up for use with LaTeX.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.129   boundedness and actor‐
                                network theory.
Your command was ignored.
Type  I <command> <return>  to replace it with another command,
or  <return>  to continue without it.

[32] [33]) [34]
\openout2 = `chapters/abbreviations.aux'.

有人能帮我找到解决方案吗?如果这是必要的信息,我会使用 ShareLatex。

答案1

utf8enc.dfu较新的 LaTeX 版本在、中声明了符号 U+2010 (DASH) t1enc.dfu。前者是默认加载的。对于较旧的 LaTeX 安装,可以明确给出声明:

\usepackage[utf8]{inputenc}
\DeclareUnicodeCharacter{2010}{-}% support older LaTeX versions

带有 U+2010 的版本:

  • utf8enc.dfu:2016/02/28 v1.1s
  • t1enc.dfu:2016/02/28 v1.1s
  • 乳胶 2016/03/31

相关内容