
제가 작업 중인 프로젝트에서 다음과 같은 스니펫이 있습니다. 두 번째 단락의 첫 번째 줄은 오른쪽과 같은 높이가 아닌 오른쪽 여백을 넘어 확장됩니다.
다른 답변에서는 이 문제를 해결하기 위해 하이픈을 넣을 것을 제안하지만 단일 음절 단어이므로 하이픈을 넣을 수 없습니다. 이 문제를 해결하기 위해 제가 할 수 있는 일이 있나요?
\documentclass[12pt]{book}
\usepackage[paperwidth=5.5in,
paperheight=8.5in,
inner=0.25in,
outer=0.5in,
bindingoffset=0.25in
]{geometry}
\usepackage{fontspec}
\setmainfont[Numbers=OldStyle]{Linux Libertine O}
\begin{document}
Now the merchant-farmer understood what all this meant, because he had overheard the talk between the Bull and the Ass, so quoth he, ``Take that rascal donkey, and set the yoke on his neck, and bind him to the plough and make him do Bull’s work.''
Thereupon the ploughman took the Ass, and worked him through the livelong day at the Bull’s task; and, when he failed for weakness, he made him eat stick till his ribs were sore and his sides were sunken and his neck was flayed by the yoke; and when he came home in the evening he could hardly drag his limbs along, either
\end{document}
답변1
한 가지 옵션은 선 너비에 비해 상대적으로 큰 글꼴을 사용하여 \sloppy
단락에 사용할 수 있습니다.
...
{\sloppy
Thereupon the ploughman took the Ass, and worked him through the livelong day at the Bull’s task; and, when he failed for weakness, he made him eat stick till his ribs were sore and his sides were sunken and his neck was flayed by the yoke; and when he came home in the evening he could hardly drag his limbs along, either
}
% notice the white line above, \sloppy is applied when \par is found.
...
라인이 좀 엉성하긴 하네요, 그렇죠...
( 프리앰블에 microtype
추가 )을 사용하면 여전히 전체 라인이 있지만 다음과 같습니다.\usepackage{microtype}
Overfull \hbox (1.02644pt too wide) in paragraph at lines 16--17
아마도 그것은 받아들일 수 있을 것입니다.
마지막으로 단락 시작 부분의 들여쓰기를 줄일 수 있습니다. 예를 들어 \parindent=14pt
마이크로타입을 사용하면 전체 라인이 수정됩니다.
%! TeX program = lualatex
\documentclass[12pt]{book}
\usepackage[paperwidth=5.5in,
paperheight=8.5in,
inner=0.25in,
outer=0.5in,
bindingoffset=0.25in
]{geometry}
\usepackage{fontspec}
\usepackage{microtype}
\parindent=14pt
\setmainfont[Numbers=OldStyle]{Linux Libertine O}
\begin{document}
Now the merchant-farmer understood what all this meant, because he had overheard the talk between the Bull and the Ass, so quoth he, ``Take that rascal donkey, and set the yoke on his neck, and bind him to the plough and make him do Bull’s work.''
Thereupon the ploughman took the Ass, and worked him through the livelong day at the Bull’s task; and, when he failed for weakness, he made him eat stick till his ribs were sore and his sides were sunken and his neck was flayed by the yoke; and when he came home in the evening he could hardly drag his limbs along, either
\end{document}