我在 Mac 版 Latex 中编写文档,但我不知道如何防止 Latex 在行尾添加“the”和类似的短词。我已经尝试过impnattypo
和encxvlna
软件包,但都不起作用。有什么想法吗?
答案1
请问有什么想法吗?
这不是您想要的答案,而是:一个想法——当 3 个或更少字母的单词无法完成一行时,结果可能是什么样子。
\documentclass[DIV=12,12pt,paper=a5,pagesize]{scrartcl}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{tgtermes}
\frenchspacing
\begin{document}
One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin. He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided by arches into stiff sections. The bedding was hardly able to cover it and seemed ready to slide off any moment. His many legs, pitifully thin compared with the size of the rest of him, waved about helplessly as he looked. What's happened to me?, he thought. It wasn't a dream. His room, a proper human room although a little too small, lay peacefully between its four familiar walls. A collection of textile samples lay spread out on the table - Samsa was a travelling salesman - and above it there hung a picture that he had recently cut out of an illustrated magazine and housed in a nice, gilded frame.
\newpage
One morning, when Gregor Samsa woke from troubled dreams, he~found himself transformed in~his~bed into a~horrible vermin. He~lay~on~his armour-like back, and~if~he~lifted his~head a~little he~could see~his~brown belly, slightly domed and~divided by~arches into stiff sections. The~bedding was~hardly able to~cover it and~seemed ready to~slide off~any~moment. His~many legs, pitifully thin compared with the~size of~the~rest of~him, waved about helplessly as~he~looked. What's happened to~me?, he~thought. It wasn't a~dream. His~room, a~proper human room although a~little too~small, lay~peacefully between its~four familiar walls. A~collection of~textile samples lay~spread out~on~the~table - Samsa was a~travelling salesman - and~above it~there hung a~picture that he~had~recently cut~out~of~an~illustrated magazine and~housed in~a~nice, gilded frame.
\end{document}