[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: LaTeX with monospace material



Johannes Wiedersich wrote:
> Kent West wrote:
>   
>> What I'm concerned about is the chord names (A, D, etc) need to line up
>> with the word where the chords change, which means exact placement will
>> be necessary.
>
> <---LaTeX-File--->
> \documentclass[a4paper,10pt]{article}
>
> \newlength{\chordlength}
> \newcommand{\chord}[2]{\settowidth{\chordlength}{#2}\parbox[b]{\chordlength}{#1\\#2}}
> \begin{document}
>
> \section{Verse 1}
>
> \begin{verse}
>
> I wanna m\chord{A}{a}ke you smile\\
> Wh\chord{Bm}{e}never you're sad\\
> C\chord{C\#m}{a}rry you around\\
> When your arthr\chord{D}{i}tis is bad\\
> \chord{A}{A}ll I wanna do \chord{E}{i}s\\
> Grow \chord{D}{o}ld with y\chord{A}{o}u. \quad \chord{E}{ }
>
> \end{verse}
> \end{document}
> <---/LatexFile--->
>   

Wow! That looks promising. I'll play with it later today.

Thanks!

-- 
Kent West
Westing Peacefully <http://kentwest.blogspot.com>



Reply to: