连字问题

连字问题

我在编写一个项目的连字符时遇到了麻烦。更准确地说,它不会将单词 $\ast$-homomorphism 连字符。我尝试过\hyphenation{ho-mo-mor-phism},但没有成功。当然,我怀疑是$\ast$-导致了问题,但为什么呢?我该如何将单词连字符?

下面是发生我的问题的一个例子:

\documentclass[a4paper,10pt,draft]{article}

\hyphenation{ho-mo-mor-phism}

\begin{document}

I would really much like to have the---frequently
appearing---word $\ast$-homomorphism hyphenated.

\end{document}

答案1

包裹氢化物就是为了实现这种事情而设计的。

\documentclass[a4paper,10pt,draft]{article}
\usepackage{hyphenat}

\begin{document}

I would really much like to have the---frequently
appearing---word $\ast$\hyp{}homomorphism hyphenated.

\end{document}

它使破折号后面的点可断开,因此后面的单词可以用连字符连接。

同态的连字

(连字点略有不同,因为我实际上使用该类standalone来生成此图像,并且它使用不同的线宽。)

答案2

使用“局部连字”技术:

在此处输入图片描述

\documentclass[a4paper,10pt,draft]{article}

\begin{document}

I would really much like to have the---frequently
appearing---word $\ast$-ho\-mo\-mor\-phism hyphenated.

\end{document}​

相关内容