![字体样式,斜体下划线使文本超出边距](https://linux22.com/image/338276/%E5%AD%97%E4%BD%93%E6%A0%B7%E5%BC%8F%EF%BC%8C%E6%96%9C%E4%BD%93%E4%B8%8B%E5%88%92%E7%BA%BF%E4%BD%BF%E6%96%87%E6%9C%AC%E8%B6%85%E5%87%BA%E8%BE%B9%E8%B7%9D.png)
我想要为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}