Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
I try to use \ul{български} - with cyrillic letters under utf8 but it does not work. Any suggestions? – user22362 Nov 20 '12 at 20:44
@NikolayKirov I converted the non-answer to a comment. Perhaps consider to post a fresh question. – Stefan Kottwitz Nov 20 '12 at 20:47

1 Answer 1

up vote 34 down vote accepted

\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:

enter image description here

\setlength{\parindent}{0pt}% Just for this example
The quick brown fox jumped over the lazy dog. \par
\underline{The quick brown fox jumped over the lazy dog.} \par
\underline{\smash{The quick brown fox jumped over the lazy dog.}}

\setul{5pt}{.4pt}% 5pt below contents
\ul{The quick brown fox jumped over the lazy dog.} \par
\setul{1pt}{.4pt}% 1pt below contents
\ul{The quick brown fox jumped over the lazy dog.} \par

See the soul package documentation (section 4 Underlining, p 11 onward) for more information regarding settings and underlining control.

share|improve this answer
soul's also recommendable because it allows for hyphenation, as opposed to \underline. All apart from the fact that underlining is usually frowned upon as a remnant of typewriter "typography". – doncherry Apr 3 '12 at 21:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.