I am currently using \underline{...}
to underline text.
However, I want the underline to be closer to the letters (as of now, there's too much whitespace between the letters and the line). Is there a simple way to do this?
formattingtext-decorations
I am currently using \underline{...}
to underline text.
However, I want the underline to be closer to the letters (as of now, there's too much whitespace between the letters and the line). Is there a simple way to do this?
Best Answer
\underline{<stuff>}
underlines a box containing<stuff>
. However, this also implies that<stuff>
with descenders pushes the underline lower.\smash{<stuff>}
removes any depth (and height) from<stuff>
, allowing for the regular non-descender depth of the underline:Alternatively, the
soul
package provides underlining features. Here's a minimal example:See the
soul
package documentation (section 4 Underlining, p 11 onward) for more information regarding settings and underlining control.