\uline 的间距

\uline 的间距

我使用\uline带断线的下划线命令。但是单词上方的空间很小,好像在单词上画了一条线。我怎样才能在线和单词之间留出一些空间?

答案1

您可以使用该soul包(或者soulutf8如果您使用`utf8编码),它有控制下划线的间距,厚度和颜色的工具:

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{ebgaramond}
\usepackage[svgnames]{xcolor}
\usepackage{soulutf8}
\setul{0.9ex}{0.8pt}
\setulcolor{IndianRed}

\begin{document}

Once upon a time, a long while ago, there were four little people whose names were \textsc{Violet, Slingsby, Guy} and \textsc{Lionel}
and they all thought they should like to see the world. So they bought a large boat to sail quite round the world by sea, and then they were to come back on the other side by land. The boat was painted blue with green spots, and the sail was yellow with red stripes; and when they set off, they only took a small Cat to steer and look after the boat, besides an \ul{elderly Quangle-Wangle, who had to cook dinner and make the tea}; for which purposes they took a large kettle.

\end{document} 

在此处输入图片描述

相关内容