Выровненный текст выходит за пределы полей, и я не могу расставить переносы

Выровненный текст выходит за пределы полей, и я не могу расставить переносы

Итак, у меня есть следующий фрагмент из проекта, над которым я работаю. Первая строка второго абзаца выходит за пределы правого поля, а не прилегает к правой стороне.

Другие ответы предлагают расстановку дефисов, чтобы решить эту проблему, но я не могу расставить дефисы, так как это односложное слово. Есть ли что-то, что я могу сделать, чтобы разобраться с этим?

\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}

введите описание изображения здесь

Связанный контент