这是我的 MWE:
\documentclass[12pt,a5paper,twoside]{book}
\usepackage{ebgaramond} % main font
\usepackage[utf8]{inputenc}
\usepackage{blindtext}
\usepackage{xcolor}
%%%%%%%%%%% MARGIN %%%%%%%%%
\usepackage[left=15mm,right=15mm,top=20mm,bottom=20mm,headheight=0mm,]{geometry}
\renewcommand{\baselinestretch}{1.2}
%%%%%%%%% LETTRINE %%%%%%%%%%
\usepackage[T1]{fontenc}
\usepackage{lettrine}
\input Zallman.fd %http://ctan.forsale.plus/fonts/initials/Zallman.fd
\newcommand*\initfamily{\usefont{U}{Zallman}{xl}{n}}
%letterine setup
\setcounter{DefaultLines}{4}
\renewcommand*{\DefaultLoversize}{0.1}
\renewcommand*{\DefaultLraise}{-0.07}
\setlength{\DefaultFindent}{0.8mm}
\setlength{\DefaultNindent}{0em}
\renewcommand{\LettrineFontHook}{\initfamily\color{green!0!black}}
%%%%%%%% BEGIN DOCUMENT %%%%%%
\begin{document}
\chapter{Main Heading}
\lettrine{A}{nd} \blindtext
\blindtext
\blindtext
\end{document}
答案1
此处的解决方案通常是强制对错误单词进行连字。
由于您使用的是盲文,所以有些单词没有正确连字符。
对于您来说,添加\hyphenation{Do-nec}
序言可以解决问题(但我不知道这是否是正确的连字符)。
\documentclass[12pt,a5paper,twoside]{book}
\usepackage{ebgaramond} % main font
\usepackage[utf8]{inputenc}
\usepackage{blindtext}
\usepackage{xcolor}
%%%%%%%%%%% MARGIN %%%%%%%%%
\usepackage[left=15mm,right=15mm,top=20mm,bottom=20mm,headheight=0mm,]{geometry}
\renewcommand{\baselinestretch}{1.2}
%%%%%%%%% LETTRINE %%%%%%%%%%
\usepackage[T1]{fontenc}
\usepackage{lettrine}
\hyphenation{Do-nec}% <--- HERE
\input Zallman.fd %http://ctan.forsale.plus/fonts/initials/Zallman.fd
\newcommand*\initfamily{\usefont{U}{Zallman}{xl}{n}}
%letterine setup
\setcounter{DefaultLines}{4}
\renewcommand*{\DefaultLoversize}{0.1}
\renewcommand*{\DefaultLraise}{-0.07}
\setlength{\DefaultFindent}{0.8mm}
\setlength{\DefaultNindent}{0em}
\renewcommand{\LettrineFontHook}{\initfamily\color{green!0!black}}
%%%%%%%% BEGIN DOCUMENT %%%%%%
\begin{document}
\chapter{Main Heading}
\lettrine{A}{nd} \blindtext
\blindtext
\blindtext
\end{document}
答案2
添加\usepackage[latin]{babel}
也会对您的情况有所帮助。
\documentclass[12pt,a5paper,twoside]{book}
\usepackage{ebgaramond} % main font
\usepackage[utf8]{inputenc}
\usepackage[latin]{babel}
\usepackage{blindtext}
\usepackage{xcolor}
%%%%%%%%%%% MARGIN %%%%%%%%%
\usepackage[left=15mm,right=15mm,top=20mm,bottom=20mm,headheight=0mm,]{geometry}
\renewcommand{\baselinestretch}{1.2}
%%%%%%%%% LETTRINE %%%%%%%%%%
\usepackage[T1]{fontenc}
\usepackage{lettrine}
\input Zallman.fd %http://ctan.forsale.plus/fonts/initials/Zallman.fd
\newcommand*\initfamily{\usefont{U}{Zallman}{xl}{n}}
%letterine setup
\setcounter{DefaultLines}{4}
\renewcommand*{\DefaultLoversize}{0.1}
\renewcommand*{\DefaultLraise}{-0.07}
\setlength{\DefaultFindent}{0.8mm}
\setlength{\DefaultNindent}{0em}
\renewcommand{\LettrineFontHook}{\initfamily\color{green!0!black}}
%%%%%%%% BEGIN DOCUMENT %%%%%%
\begin{document}
\chapter{Main Heading}
\lettrine{A}{nd} \blindtext
\blindtext
\blindtext
\end{document}