home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!wupost!sdd.hp.com!mips!pacbell.com!network.ucsd.edu!mvb.saic.com!info-tex
- From: "Daniel H. Luecking" <DL24794@UAFSYSB.UARK.EDU>
- Newsgroups: comp.text.tex
- Subject: Chords and alignments
- Message-ID: <7460334@MVB.SAIC.COM>
- Date: Wed, 22 Jul 92 13:42:04 CDT
- Organization: Info-Tex<==>Comp.Text.Tex Gateway
- X-Gateway-Source-Info: Mailing List
- Lines: 41
-
- I will be going NOMAIL for a few weeks so I thought I would clear up
- some backlog all in one go.
-
- There was a post (possibly to comp.text.tex) a few weeks ago asking how to
- put guitar chords above the words in a song listing. The only response I've
- was a songbook.sty posted. This seemed like overkill for a simple prroblem
- andm moreover, not helpful for plain TeX users. I submit the following:
-
- \def\chord#1{\raise 10 pt\rlap{#1}}
-
- Place it immediately before the syllable where the chord change takes
- place with no space. This will mess up the even line spacing unless
- \advance\baselineskip by 10pt precedes the song. The dimension 10pt in both
- settings should be adjusted for best visual effect, but probably should be
- the same in both places.
-
-
- Two postings in the past few months asked about alignments of the following
-
- ------------------------
- | | Entry 1 |
- | Entry 2 +-----------+
- | | Entry 3 |
- ------------------------
-
- Where Entry 2 is aligned with the rule separating Entries 1 and 3.
- I sent my own humble solutions to both posters, but would now like to
- recant them and state that I think the is one of the few situations I
- have encountered where \valign is actually the best way to do it. I do
- not have the time to debug it, but the following may work:
-
- \valign{\hbox{\vrule height .4pt width 7 em#}&\hbox{\quad#\quad}&
- \hbox{\vrule height .4pt width7 em#}& \hbox{\quad#\quad}&
- \hbox{\vrule height .4pt width 7em#}\cr
- \noalign{\vrule}
- &\multispan3\vfill\hbox{\quad Entry 2\quad}\vfill&\cr
- \noalign{\vrule}
- &Entry 1&&Entry 3&\cr
- \noalign{\vrule}}
-
- Dan Luecking
-