При включении пакетов иностранных языков LaTeX:
\usepackage[utf8x]{inputenc}
\usepackage[english,hebrew]{babel}
\usepackage[top=2cm,bottom=2cm,left=2.5cm,right=2cm]{geometry}
Я получаю сообщение об ошибке для цитат:
Пример:
Missing number, treated as zero.
<to be read again>
\afterassignment
l.19 ...{example1}}}{\@@number {27}}
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
Другой пример:
Improper alphabetic constant.
<to be read again>
\afterassignment
l.86 ...15normalized}. \citet{example2}
further improved the resu...
A one-character control sequence belongs after a ` mark.
So I'm essentially inserting \0 here.
! Missing = inserted for \ifnum.
<to be read again>
\afterassignment
l.86 ...15normalized}. \citet{example2}
further improved the resu...
I was expecting to see `<', `=', or `>'. Didn't.
А цитаты пусты.Когда я не включаю пакеты на иностранном языке, я не получаю сообщение об ошибке, и цитаты великолепны.
Формат, который я использовал для цитат: \ usepackage {natbib} и для документа \ documentclass [12pt, twoside] {mitthesis}.
Я также пробовал другие форматы и получаю ту же ошибку.
bibliography.bib традиционный:
@article{example1,
title={Title1},
author={Author},
journal={arXiv preprint arXiv:1706.04902},
year={2019}
}
@article{example2,
title={Title2},
author={Author},
journal={arXiv preprint arXiv:1706.04902},
year={2019}
}
Минимальный рабочий пример - супер базовый (минимальный нерабочий пример - когда вы раскомментируете еврейскую часть):
\documentclass{report}
%\documentclass[12pt,twoside]{mitthesis}
\usepackage{natbib}
% Hebrew
% \usepackage[utf8x]{inputenc}
% \usepackage[english,hebrew]{babel}
% \usepackage[top=2cm,bottom=2cm,left=2.5cm,right=2cm]{geometry}
\begin{document}
%\selectlanguage{english}
\include{introduction} %some text with \cite{example1} and so on...
% bibliography
\bibliography{bibliography}
\bibliographystyle{plainnat}
\end{document}