[texhax] Entering horizontal lines between items

Reinhard Kotucha reinhard.kotucha at web.de
Wed Jan 9 21:14:36 CET 2013


On 2013-01-09 at 14:43:36 -0500, Jerry wrote:

 > On Wed, 9 Jan 2013 12:04:36 -0500
 > Tom Sgouros articulated:
 > 
 > > On Wed, Jan 9, 2013 at 11:58 AM, Jerry <jerry at seibercom.net> wrote:
 > > 
 > > > On Wed, 9 Jan 2013 16:03:56 +0000
 > > > Philip TAYLOR articulated:
 > > >
 > > > > Jerry, why can you not use \hrulefill for all lines, not
 > > > > just the last ?
 > > > >
 > > > > Philip Taylor
 > > > >
 > > > > > I quite often create documents that look something like this:
 > > > > >
 > > > > > Item1: _________________________ Item2: _______________
 > > > > > Item3: _____ Item4: __________________ Item5: _________
 > > > > >
 > > > > > I can use a "\hrulefill" for the last items on each line;
 > > > > > however, the other ones require more work.
 > > >
 > > > Maybe I am doing something terribly wrong; however, in order to
 > > > space the items where needed I am using the "\hspace{}" directive.
 > > > If I place the "\hrulefill" command prior to that command, I get
 > > > the item printed, then a line, then a space equal to the hspace
 > > > setting, then the next item plus line plus space. Everything is
 > > > justified across the page. I do not want that.
 > > >
 > > >
 > > I think the only issue is that you're not being perfectly clear about
 > > what it is you want to control.  Are you trying to control the
 > > location on the page for each item, or the location on each line, or
 > > the length of the rule?  Or something else?
 > > 
 > > It doesn't sound like a hard problem, but which problem is it?
 > 
 > You are right, I am not explaining myself very clearly.
 > 
 > Assume this example:
 > 
 > NAME _______________________________________ PHONE: ____________
 > 
 > PROPERTY OWNER: ____________________________ PHONE: ____________
 > 
 > 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.
 > 
 > Essentially, what I want to accomplish is saying:
 > 
 > Put TEXT here, then underline from the end of that text 5 inches from
 > the left margin and then place THIS text, then underline to right
 > margin. Not every line has every item in the same location and some
 > lines have 3 items on them.
 > 
 > A formula like: {lmargin + distance to indent - length of text} would
 > work I assume. I have no idea how to code anything like that. Is there a
 > package that offers that ability?
 > 
 > I sincerely apologize for not making this clearer to understand.

Does something like 

 \hbox to 5in{NAME:~\hrulefill~}

help?

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha                                      Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                              mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------


More information about the texhax mailing list