字体样式,斜体下划线使文本超出边距

字体样式,斜体下划线使文本超出边距

我想要为italic文本的较小部分添加下划线。我尝试了以下方法:

\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}

\textit{
Ham followed now ecstatic use speaking exercise may repeated. \underline{Himself he evident oh greatly my on inhabit general concern. It earnest amongst he showing females so improve in picture. Mrs can hundred its greater account.} Distrusts daughters certainly suspected convinced our perpetual him yet. Words did noise taken right state are since.}

\end{document}

但是,它会使文本超出边距,如下所示:

在此处输入图片描述

我该如何修复这个问题?

答案1

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{soulutf8}

\begin{document}

\textit{
Ham followed now ecstatic use speaking exercise may repeated. \ul{Himself he evident oh greatly my on inhabit general concern. It earnest amongst he showing females so improve in picture. Mrs can hundred its greater account.} Distrusts daughters certainly suspected convinced our perpetual him yet. Words did noise taken right state are since.}

\end{document}

相关内容