Babel:在文档中插入额外断点时尊重前言连字符断点

Babel:在文档中插入额外断点时尊重前言连字符断点

\hyphenation{}除了序言中已用或定义的断点之外,是否可以在单词中插入额外的断点\babelhyphenation{}?在下面的示例中,一旦我使用 添加自定义断点,序言中定义的(缺少)断点就会被完全忽略\babelhyphen{soft}

\documentclass{article}
\usepackage[british]{babel}
\textwidth=1pt
\parindent=0pt
\hyphenation{incomprehensibility}%or \babelhyphenation{incomprehensibility}
\begin{document}
  xxx incomprehensibility \\% not hyphenated as per preamble

  xxx i\babelhyphen{soft}ncomprehensibility% not hyphenated as i-ncomprehensibility, but as i-ncom-pre-hens-ib-il-ity
\end{document}

输出

答案1

类似命令的\babelhyphen{soft}工作方式是插入宽度为零的空格。因此,它们可以有效地将一个单词拆分为两个单词。如果要控制某个部分的连字符,您还必须进行以下设置\hyphenation

\documentclass{article}
\usepackage[british]{babel}
\textwidth=1pt
\parindent=0pt
\hyphenation{incomprehensibility ncomprehensibility}% both parts \babelhyphenation{incomprehensibility}
\begin{document}
  xxx incomprehensibility \\% not hyphenated as per preamble

  xxx i\babelhyphen{soft}ncomprehensibility% 
\end{document}

在此处输入图片描述

相关内容