我的文档中的一个段落遇到了这个问题。段落中的第一个单词和第二个单词之间有一个很大的空白。代码如下:
\documentclass[12pt, twocolumn, english]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{enumitem}
\usepackage[margin=2.0cm]{geometry}
\usepackage{hyphenat}
\pretolerance=10000
\tolerance=2000
\emergencystretch=10pt
\begin{document}
\subsection{Haptic Devices}
\paragraph{}
Haptic interfaces are devices that uses the modality of touch for input and output in interaction. These devices provide better immersion and presence in virtual environments\cite{Tsalamal}, but also bridges issues of use when other sensory modalities are unavailable, such as vision for the blind\cite{Sjostrom}. Haptic devices that are either attached, or with limited or no direct contact are currently being explored \cite{Tsalamal}. Devices that are attached or provide limited contact allow more freedom but limited force rendering. A number of non-contact devices have promising, but share the issue of some of the limited-contact devices which is the restricted workspace\cite{Tsalamal}.
\end{document}
使用此代码,输出如下所示:
如您所见,第一个单词和第二个单词之间有很大差距。有人知道如何防止这种情况发生吗?
答案1
删除\pretolerance=10000
和\tolerance=2000
,并抑制整个文档的连字符,使用\usepackage[none]{hyphenat}
(参见此问题:如何防止 LaTeX 对整个文档进行连字符连接?)。