Hi there,
I have a question about underline:basically I want to get the effect that make the underline span all the textwidth, is there anyway to achieve it?
I search lots of solution, no luck.
Thanks a lot.
Text Formatting ⇒ How to control underline length
NEW: TikZ book now 40% off at Amazon.com for a short time.
- Stefan Kottwitz
- Site Admin
- Posts: 10320
- Joined: Mon Mar 10, 2008 9:44 pm
How to control underline length
Hi Jill,
welcome to the forum!
Instead of directly underlining text, you could put that text into a box and underline that box:
Stefan
welcome to the forum!
Instead of directly underlining text, you could put that text into a box and underline that box:
Code: Select all
\documentclass{article}
\begin{document}
\noindent
\underline{\makebox[\textwidth][c]{Some text}}
\end{document}
LaTeX.org admin