
Я прекрасно работал над документом Overleaf, пока не вставил цитату, и после ее использования \printbibliography
для создания списка литературы появилась следующая ошибка:
Undefined control sequence. main.tex line 60
The compiler is having trouble understanding a command you have used. Check that the command is spelled correctly. If the command is part of a package, make sure you have included the package in your preamble using \usepackage{...}.
namepartfamily ->Zim\x
{fffd}\x {fffd}nyi
l.60 \end
{document}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
Эта ошибка исчезает, когда \printbibliography
закомментирована, но тогда не генерируется список ссылок. Я могу подтвердить, что добавил все необходимые пакеты. См. документ ниже:
\documentclass[a4paper,10pt]{report}
\usepackage{biblatex}
\addbibresource{references.bib}
\usepackage{graphicx}
\usepackage[top=25mm, bottom=25mm, left=25mm, right=25mm]{geometry}
\begin{document}
\input{titlepage}
%Table of content
\tableofcontents
%Abasract page
\newpage
\Large
\begin{center}
\addcontentsline{toc}{section}{Abstract}
\textbf{\textit Abstract}
\end{center}
\hspace{10pt}
%\normalsize
This is a simple one-page abstract template. Please keep your abstract length at one page. The abstract should be in English.
\newpage
%begin main document
\chapter{Introduction}
\section{Statement of Problem}
This is the beginning of the introduction section.
%\subsection{Research Questions}
\section{Motivation}
\section{Research Objectives}
\section{Pre-Thesis Structure}
%===CHAPTER TWO ===
\chapter{Fundamental Concepts}
%=== CHAPTER THREE ===
\chapter{State of the Art}
\section{Transport}
%=== CHAPTER FOUR ===
\chapter{Material and Methods}
%=== CHAPTER FIVE ===
\chapter{Pilot Study}
%=== Reference Lists ====
\printbibliography
\end{document}
решение1
Ваш .bib
файл, вероятно, содержит строку типа
author = {József Zimányi},
(все заслуги за детективную работу по выяснению имени принадлежатЛианЦзе Лимвкомментарии). Скорее всего, ваш .bib
файл закодирован в UTF-8 или другой не-ASCII кодировке.
Но с вашей преамбулой (и устаревшей системой TeX на Overleaf) LaTeX ожидает только ввод US-ASCII (более современный LaTeX будет использовать UTF-8 в качестве кодировки по умолчанию). Самый простой способ заставить все работать снова — сообщить LaTeX, что вы хотите использовать UTF-8 с помощью
\usepackage[utf8]{inputenc}
Возможно, вам придется очистить кэш (см.https://www.overleaf.com/learn/how-to/Очистка_кэша) прежде чем вы сможете после этого чисто перекомпилировать, но тогда вы должны получить желаемый результат.