[texhax] Entering horizontal lines between items
Ulrike Fischer
news3 at nililand.de
Thu Jan 10 10:34:26 CET 2013
Am Wed, 9 Jan 2013 14:43:36 -0500 schrieb Jerry:
> This is probably a bad example. However, assume I want the PHONE to
> begin in 5in. from the left margin. I can manually get it all worked
> out; however, when I insert the second line, I have to figure the
> horizontal line length.
You can use \rule for the lines where you know the length, and one
or more \hrulefill for the lines you want to expand automatically.
You can also put some parts in boxes with specific width:
\documentclass{article}
\begin{document}
\noindent NAME: \rule{5cm}{0.4pt}\quad PHONE: \hrulefill\\
ADDRESS: \hrulefill\hrulefill\quad TOWN: \hrulefill\quad FAX:
\rule{2cm}{0.4pt}
\noindent NAME: \hrulefill\quad \makebox[5cm][l]{PHONE: \hrulefill}
\end{document}
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
More information about the texhax
mailing list