fi 连字符未显示在输出中

fi 连字符未显示在输出中

带有 fi 的单词无法正确显示。»find« 变成 »nd«,»first« 变成 »rst«。我收到此错误

'package inputenc error :unicode char \u8 not set up for use with latex

我现在正在写论文,这是代码。请问它有问题吗?我试过 TeXnicCenter 和 TeXStudio,但没有帮助。

\documentclass[twoside]{ecsthesis}      % Use the Thesis Style
\graphicspath{{F:\PhD\Latex}}   % Location of your graphics files
\usepackage{placeins}
\usepackage[utf8]{inputenc}
\usepackage[square,compress]{natbib}            % Use Natbib style for the refs.
\usepackage{multirow}
\usepackage{tikz}
\usepackage{pgfplots}         %to plot figure
\usepackage{threeparttable}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{booktabs}     %to use \toprule and \bottomrule without error message
\usepackage{pgfplots}
\pgfplotsset{compat=1.8}
\usepackage{subfigure}        % to add subfigures
\usepackage{graphics}
\usepackage{gensymb}
\usepackage[none]{hyphenat}  %to prevent word breaking
\usepackage{siunitx}
\usepackage{caption}
\usepackage{booktabs}
\newcommand*{\head}[1]{\textbf{#1}}   %to make heads of table in BOLD, it is used with booktabs package and \head
\usepackage{cleveref}
\usepackage{url} \makeatletter \g@addto@macro{\UrlBreaks}{\UrlOrds} \makeatother
\usepackage[justification=centering]{caption}
\PassOptionsToPackage{hyphens}{url}
\usepackage{hyperref}
\usepackage{float}
\usepackage{slashbox}
%% ----------------------------------------------------------------
\begin{document}

答案1

您可以为此类输入添加声明:

\documentclass{article}
\usepackage[utf8]{inputenc}
\DeclareUnicodeCharacter{FB01}{fi}
\begin{document}
find


\end{document}

相关内容