使用 ebgaramond 时出现连字符问题

使用 ebgaramond 时出现连字符问题

目前,我在使用该包时遇到了连字符问题\usepackage{ebgaramond},但是当我删除此包(即\usepackage{ebgaramond})连字符可以正常工作,但我需要在这里创建的文本字体样式\usepackage{ebgaramond} 是我的 MWE

\documentclass[twoside,letterpaper,11pt]{book}
\usepackage{ebgaramond}
\usepackage[margin=1.5cm]{geometry}
\usepackage[T1]{fontenc}

\usepackage{lipsum}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}


\usepackage{parallel,graphicx}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[RO,LE]{\rightmark}
\renewcommand{\headrulewidth}{.5pt}
\fancyhead[LO,RE]{\thepage} %% To display numbering on every page alternately left and right

\setlength{\headwidth}{\textwidth}
\setlength{\headheight}{15pt}
\setlength{\headsep}{0pt}
\setlength{\columnseprule}{0pt}

\usepackage[colorlinks]{hyperref}

\newcommand{\jChapter}[1]{\noindent\scalebox{2.5}{\color{red}\textbf{#1}\hspace{0.3mm}}}
\newcommand{\jverse}[1]{\noindent\textcolor{cyan}{\scalebox{1.0}{\textbf{#1\hspace{1.0mm}}}}}
\newcommand{\story}[1]{\vspace*{2mm}\centering\it\textbf{#1}}


\newcommand\versenumcolor{red}
\newcommand\chapnumcolor{red}


\title{Karbi}
\date{}
\author{}
\usepackage{lipsum}
\usepackage{ragged2e}

\begin{document}
\renewcommand{\thefootnote}{\emph{\alph{footnote}}}
\frontmatter
\maketitle
\tableofcontents

\mainmatter


\part*{The Old Testament}
  \setlength{\columnseprule}{.5pt}
\twocolumn
\begin{Parallel}{9.1cm}{9.1cm}
{\jChapter{10}While the Israelites were camped in Gilgal they kept passover the in the evening on the fourteenth day of the month in the plains of Jericho. }
{\jverse{11}On the day after the passover, on that very day, they ate the produce of the land, unleavened cakes and parched grain. }
{\jverse{12}The manna ceased on the day they ate the produce of the land, and the Israelites no longer had manna; they ate the crops of the land of Canaan that year. }
\end{Parallel}

\end{document}

下面是我使用时的图像\usepackage{ebgaramond} 在此处输入图片描述

当我不使用该包时,\usepackage{ebgaramond}这里是输出 在此处输入图片描述

答案1

不知何故,“逾越节”一词不符合美式英语的连字符模式。

\hyphenation{pass-over}您可以通过在序言中添加内容来声明连字符例外。

\documentclass[twoside,letterpaper,11pt]{book}
\usepackage{ebgaramond}
\usepackage[margin=1.5cm]{geometry}
\usepackage[T1]{fontenc}

\usepackage{lipsum}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}


\usepackage{parallel,graphicx}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[RO,LE]{\rightmark}
\renewcommand{\headrulewidth}{.5pt}
\fancyhead[LO,RE]{\thepage} %% To display numbering on every page alternately left and right

\setlength{\headwidth}{\textwidth}
\setlength{\headheight}{15pt}
\setlength{\headsep}{0pt}
\setlength{\columnseprule}{0pt}

\usepackage[colorlinks]{hyperref}

\newcommand{\jChapter}[1]{\noindent\scalebox{2.5}{\color{red}\textbf{#1}\hspace{0.3mm}}}
\newcommand{\jverse}[1]{\noindent\textcolor{cyan}{\scalebox{1.0}{\textbf{#1\hspace{1.0mm}}}}}
\newcommand{\story}[1]{\vspace*{2mm}\centering\itshape\bfseries#1}


\newcommand\versenumcolor{red}
\newcommand\chapnumcolor{red}

% hyphenation exceptions
\hyphenation{
  pass-over
  % other words you need (the following are just by way of example)
  anti-deriv-a-tives
  anti-holo-mor-phic
 }


\title{Karbi}
\date{}
\author{}
\usepackage{lipsum}
\usepackage{ragged2e}

\begin{document}
\renewcommand{\thefootnote}{\emph{\alph{footnote}}}
\frontmatter
\maketitle
\tableofcontents

\mainmatter


\part*{The Old Testament}
  \setlength{\columnseprule}{.5pt}
\twocolumn
\begin{Parallel}{9.1cm}{9.1cm}
{\jChapter{10}While the Israelites were camped in Gilgal they kept passover the in the evening on the fourteenth day of the month in the plains of Jericho. }
{\jverse{11}On the day after the passover, on that very day, they ate the produce of the land, unleavened cakes and parched grain. }
{\jverse{12}The manna ceased on the day they ate the produce of the land, and the Israelites no longer had manna; they ate the crops of the land of Canaan that year. }
\end{Parallel}

\end{document}

请注意,您只需输入passover文本即可。如有需要,请添加其他有问题的单词。您还可以添加

\input{ushyphex}

就在之前\hyphenation,所以加载所有已知的异常。

我改成\it\itshape(该命令\it已被弃用20多年了)。

在此处输入图片描述

相关内容