home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / text / tex / 14809 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  1.9 KB

  1. Path: sparky!uunet!gatech!destroyer!cs.ubc.ca!unixg.ubc.ca!reg.triumf.ca!asnd
  2. From: asnd@reg.triumf.ca (Donald Arseneau)
  3. Newsgroups: comp.text.tex
  4. Subject: Re: Anchoring Boxes
  5. Date: 11 Jan 1993 00:00 PST
  6. Organization: TRIUMF: Tri-University Meson Facility
  7. Lines: 37
  8. Distribution: world
  9. Message-ID: <11JAN199300000406@reg.triumf.ca>
  10. References: <1993Jan8.175722.13313@ERA.COM>
  11. NNTP-Posting-Host: reg.triumf.ca
  12. News-Software: VAX/VMS VNEWS 1.41    
  13.  
  14. In article <1993Jan8.175722.13313@ERA.COM>, feit@ERA.COM (Mark Feit) writes...
  15. >I'm typesetting a phone directory for an amateur radio club I belong
  16. >to using plain TeX.  Needing a different format than that of your
  17. >average phone book, I decided on this:
  18. > K3 AB  Don Wilson....................................(410) 936-1212
  19. >         440 Q Street  Hamsville, MD  21012
  20.  
  21.  
  22. Depending on what to do in the case of a very long name, this may 
  23. be done easily with just the regular paragraph parameters.  For
  24. this format:
  25.  
  26.   NK3 P  Alexander Bartholemiew Clayton 
  27.           Donneley........................Omitted at Member's Request
  28.           1296 Repeater Road  Seekyou DE,  14131
  29.  
  30. there is no need to disassemble boxes.  The following definition does this.
  31. Note the \hangafter=0 and the negative kern instead of \hangafter=1.
  32. This is to ensure the dots of the leaders are aligned.
  33.  
  34. \def\entry#1#2#3#4{\par  % call, phone, name, address
  35.   \parindent 0pt \hangindent 2cm \hangafter 0 \rightskip 0pt plus .4\hsize
  36.   \noindent \kern-1.5cm \hbox to 1.5cm{#1\hfil\ }% call sign
  37.   \ignorespaces #3% name
  38.   \nobreak \leaders \hbox to.7em{\hfil.\hfil}\hskip 1cm plus 1fil % leaders
  39.   #2\break % phone
  40.   #4\par} % address; could use more parameters for this
  41.  
  42. \hsize 4in
  43.  
  44. \entry{K3 AB}{(410) 936-1212}{Don Wilson}{440 Q Street \ Hamsville, MD \ 21012}
  45.  
  46. \entry{NK3 P}{Omitted at Member's Request}{Alexander Bartholemiew Clayton 
  47.   Donneley}{1296 Repeater Road \  Seekyou, DE \  14131}
  48.  
  49. \bye  Donald Arseneau         asnd@reg.triumf.ca
  50.