Text FormattingUnderline without vertical Space

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Willie
Posts: 42
Joined: Sat Aug 27, 2011 3:43 am

Underline without vertical Space

Post by Willie »

Hi. It might be simple, but I can't get it done.

I need to underline a text, but I want the line to appear just under the text, without a (small) vertical space that would appear with \underline{text}. How do I do that? Thanks.
Last edited by Willie on Sat Sep 17, 2011 5:57 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Frits
Posts: 169
Joined: Wed Feb 02, 2011 6:02 pm

Underline without vertical Space

Post by Frits »

This can be done with the soul package. I wrote something about it on my blog, here. Anyway, This will probably do the trick:

Code: Select all

\documentclass{article}
\usepackage{soul}
	\setul{0ex}{}

\begin{document}
Bla bla \ul{bla}
\end{document}
howtoTeX.com - Your LaTeX resource site (Tips, Tricks, Templates and more!)
Follow howtoTeX on twitter
Post Reply