我的 BibTeX 书目文件中有一个参考文献,其中有一些很长的作者姓名:
@inproceedings{foo,
title={Data Augmentation Using GANs for Speech Emotion Recognition},
author={Chatziagapi, Aggelina and Paraskevopoulos, Georgios and Sgouropoulos, Dimitris and Pantazopoulos, Georgios and Nikandrou, Malvina and Giannakopoulos, Theodoros and Katsamanis, Athanasios and Potamianos, Alexandros and Narayanan, Shrikanth},
booktitle={Proceedings of INTERSPEECH},
pages={171--175},
year={2019}
}
如您所见,参考文献 [41] 中的一些作者姓名超出了页边距。在我看来,编译器正确地打破了 Sgouropoulos,但没有打破 Giannakopoulos 或 Narayanan。
在这种情况下我该如何允许或强制换行?
使用的编译器是 PdfLaTeX 3.14159265-2.6-1.40.19 + Bib(la)tex 0.99d + PdfLaTeX (x2)
答案1
LaTeX 不太擅长为某些作者姓名添加连字符。您需要给它一些帮助。
% namesprob.tex SE 571116
\documentclass{article}
%\hyphenation{Gian-nak-opou-los}
%\hyphenation{Nar-aya-nam} % Try this, or similar, for hyphenation
\begin{document}
\textbf{Default hyphenation}
\begin{minipage}{0.5cm}
% \mbox{} is because LaTeX won't hyphenate first word in a paragraph
\mbox{} Giannakopoulos
\mbox{} Narayanam % LaTex doesn't know how to hyphenate this
\end{minipage}
\vspace{\baselineskip}
\textbf{Now with user-defined hyphenation}
\begin{minipage}{0.5cm}
\hyphenation{Gian-nak-opou-los}
\hyphenation{Nar-aya-nam} % Try this, or similar, for hyphenation
\mbox{} Giannakopoulos
\mbox{} Narayanam % You have now told LaTex hyphenate this
\end{minipage}
\end{document}
使用\hyphenation
宏指定连字符位置。