答案1
虽然可以设置适用于整个文档的连字模式,但只出现一次的问题可以在发生时处理。在这种情况下,算法不知道如何对“Levenberg”进行连字,所以我通过添加一个瞬时连字点来帮助它\-
。
如果问题发生在“Marquardt”中,则存在次要问题。也就是说,单词中间的连字符使算法无法在第二部分中查找连字符。因此,要重置算法,请在单词中间的连字符\hspace{0pt}
后引入一个。如果有仍然之后的问题,那么连字符点也可以引入到“Marquardt”中,就像“Levenberg”一样。
\documentclass{article}
\usepackage[margin=1.5in]{geometry}
\begin{document}
\noindent\rule{\textwidth}{2pt}
After checking every backpropagation algorithm that exist in MATLAB,
\textit{trainlm (Levenberg-Marquardt)} has been chosen.
After checking every backpropagation algorithm that exist in MATLAB,
\textit{trainlm (Leven\-berg-Marquardt)} has been chosen.
xx every backpropagation algorithm that exist in MATLAB,
\textit{trainlm (Levenberg-Marquardt)} has been chosen.
xx every backpropagation algorithm that exist in MATLAB,
\textit{trainlm (Levenberg-\hspace{0pt}Marquardt)} has been chosen.
\end{document}