我正在尝试为我的资格考试写一个项目,当我使用 utf8 包并引用分组参考([1,2,3]->[1-3])时,日志文件中会出现以下消息 -
! Package inputenc Error: Unicode char \u8: not set up for use with LaTeX.
See the inputenc package documentation for explanation.
Type H <return> for immediate help.
...
l.33 \usepackage{cite}
Your command was ignored.
PS,抱歉我的英语不好。
我的序言是
\documentclass[brazil,12pt,a4paper,openany]{book}
\usepackage{anysize}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[brazilian]{babel}
\usepackage{lmodern}
\usepackage[ruled,chapter]{algorithm}
\usepackage{makeidx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{mathrsfs}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{fancyhdr}
\usepackage{array}
\usepackage{geometry}
\usepackage{simplewick}
\usepackage[all]{xy}
\usepackage{euscript}
\usepackage{dsfont}
\usepackage{enumerate}
\usepackage{booktabs}
\usepackage{braket}
\usepackage{slashed}
\usepackage{pifont}
\usepackage{cite}
\usepackage{indentfirst}
\usepackage[plainpages=false,pagebackref=true,pdftex]{hyperref}
\makeindex
\marginsize{25mm}{25mm}{25mm}{25mm}
\hypersetup{pdfpagelabels,hyperindex,colorlinks=true,breaklinks=true,bookmarks=true,linkcolor=black,citecolor=black,urlcolor=black}
\begin{document}
\newpage
\phantomsection
\tableofcontents
\mainmatter
\input{Project.tex}
\input{Bibliography.tex}
\end{document}
答案1
后面还有另一个字符(可能看不见)\usepackage{cite}
。当我从问题中复制 MWE 时,我的编辑器显示替换字符 U+FEFF。删除该行并重新输入该行以删除该字符。