GeneralPlacing Rule Beneath Text

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Gus
Posts: 2
Joined: Sun Nov 09, 2008 12:43 pm

Placing Rule Beneath Text

Post by Gus »

Hi there,

I have been having a little trouble placing an extended line beneath some text. What I want to do is to have a few words, and underneath these words have a line that extends to the end of the current line - as if the text is underlined but the "under line" keeps going for the width of the line. Something like this:

some words______________________________________________


I have tried to use:

Code: Select all

Text \\
\rule{\linewidth}{0.1mm}
My problem though, is that the rule ends up on the next line and too far underneath the text. I tried changing the "raise-height" of the rule, but it then leaves too much white space underneath the line.

If anyone has any ideas about what I could do it would be much appreciated.

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Placing Rule Beneath Text

Post by localghost »

This issue is stunning easy to solve.

Code: Select all

Text
\hrule
I stumbled across this solution some time ago.


Best regards and welcome to the board
Thorsten¹
Gus
Posts: 2
Joined: Sun Nov 09, 2008 12:43 pm

Re: Placing Rule Beneath Text

Post by Gus »

Thanks! Your solution works perfectly.
Post Reply