🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #373

Re: Chords and alignments

#373
From: Christopher Rath
Date: Thu, 23 Jul 1992 16:19
52 lines
2208 bytes
In article <7460334@MVB.SAIC.COM>, "Daniel H. Luecking"
<DL24794@UAFSYSB.UARK.EDU> writes:
[...stuff deleted...]
|> 
|> 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.
|> 
[...stuff deleted...]
|> 
|> Dan Luecking

I posted the songbook.sty.  For plain TeX users the following macro
can be extracted from the style and used:

%
% \Ch - Chord over lyrics macro definition.
%       Paramaters:
%               [1] Chord.
%               [2] Syllable that chord is to be left justified over.
%
\newcommand{\Ch}[2]{\leavevmode\vbox{\hbox{\strut\bf\sf{#1}}\hbox{#2\strut}}}


This may be rewritten for plain TeX as:

\def\Ch#2{\leavevmode\vbox{\hbox{#1\strut}\hbox{#2\strut}}}


While I have not tested this plain TeX macro, I believe that you will
find this macro produces a more pleasing effect than the one you
suggested.

Have fun,
Christopher

---
 Christopher Rath   | crath@bnr.ca
 BNR Woodline       |
 Ottawa, ON, Canada | "Hydrogen is a colourless, odourless gas which, given 
 (613) 765-3141     | enough time, turns into people." -- Henry Hiebert
Technical Details
Message-ID: <1992Jul23.161939.25566@bmerh85.bnr.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!darwin.sura.net!convex!news.utdallas.edu!corpgate!bnrgate!bmerh85!bwdlha!crath
References: <7460334@MVB.SAIC.COM>

Show Full Headers
Complete Article Headers
Newsgroups: comp.text.tex
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!darwin.sura.net!convex!news.utdallas.edu!corpgate!bnrgate!bmerh85!bwdlha!crath
From: crath@BNR.CA (Christopher Rath)
Subject: Re: Chords and alignments
Message-ID: <1992Jul23.161939.25566@bmerh85.bnr.ca>
Sender: news@bmerh85.bnr.ca (Usenet News)
Reply-To: crath@bnr.ca
Organization: BNR Woodline, Ottawa
References:  <7460334@MVB.SAIC.COM>
Date: Thu, 23 Jul 92 16:19:39 GMT
Lines: 52