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