英式英语连字功能无法正常使用。我的代码有什么问题?

英式英语连字功能无法正常使用。我的代码有什么问题?
\documentclass[12pt,a4paper]{report}
\usepackage[british]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[activate={true,nocompatibility},final,tracking=true,kerning=true,spacing=false]{microtype}
\DisableLigatures[f]{encoding = T1}
\microtypecontext{spacing=nonfrench}
\usepackage{geometry}
\geometry{
    left=2cm,
    right=2cm,
    top=2cm,
    bottom=2cm,
    bindingoffset=0mm
}
\begin{document}
    \noindent Note that the word “values” is not hyphenated as “val-ues”.
    \begin{enumerate}
        \item it could list every single one of them so that one knows that there are multiple mode values in a data set.
        \item it could list every single one of them so that one knows that there are multiple mode val- ues in a data set.
    \end{enumerate}
    \noindent\rule{\textwidth}{0.1mm}\\

    \noindent In the following example, the word “determined” is not hyphenated.
    \vspace{3mm}

    \noindent In a statistical hypothesis test, the \textbf{probability of an alpha error} (error probability) is determined. If the latter is low, $H_0$ can be rejected in favour of $H_1$!
    \vspace{3mm}

    \noindent In a statistical hypothesis test, the \textbf{probability of an alpha error} (error probability) is deter- mined. If the latter is low, $H_0$ can be rejected in favour of $H_1$!
\end{document}

在此处输入图片描述

答案1

您的示例中的连字符没有任何问题。选择换行符是为了避免过多的连字符,并且您的示例允许在单词之间很好地换行。要查看给定单词中允许使用哪些连字符点,您可以使用\showhyphens。在您的文档中

   \showhyphens{values determined}

印刷

   [] \T1/cmr/m/n/12 val-ues de-term-ined

在日志文件中,确实表明两个单词都有有效的断点。正如评论中所建议的,您可以通过为段落断点算法提供不同的参数来强制使用其中一些,但您并没有改善打印输出。

示例输出

\documentclass[12pt,a4paper]{report}

\usepackage[british]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{ragged2e}
\usepackage[activate={true,nocompatibility},final,tracking=true,kerning=true,spacing=false]{microtype}
\DisableLigatures[f]{encoding = T1}
\microtypecontext{spacing=nonfrench}
\usepackage{geometry}
\geometry{
    left=2cm,
    right=2cm,
    top=2cm,
    bottom=2cm,
    bindingoffset=0mm
}
\begin{document}

\pretolerance=0 \hyphenpenalty=-5000  \RaggedRight \setlength\spaceskip{.25em}

\begin{enumerate}
\item it could list every single one of them so that one knows that there are multiple mode values in a data set.
\end{enumerate}
\vspace{3mm}

\noindent In a statistical hypothesis test, the \textbf{probability of
an alpha error} (error probability) is determined. If the latter is
low, $H_0$ can be rejected in favour of $H_1$!

\end{document}

相关内容