Here's my preamble plus some content to demonstrate what's going on:
Code: Select all
\documentclass[12pt,twocolumn]{ujarticle}
\usepackage[paperwidth=210mm,paperheight=297mm,margin=6mm]{geometry}
\pagestyle{empty}
\usepackage{color}
\usepackage{parskip}
\newcommand{\stanza}[1]{#1\vskip 8pt}
\newcommand{\songtitle}[1]{\textcolor{blue}{\textbf{\Large #1}}\vskip 0pt\nopagebreak}
\newcommand{\chord}[1]{\textcolor{red}{\textbf{#1}}}
\newcommand{\chordset}[2]{\hangindent=10mm\begin{tabular}[b]{l}\chord{#1}\\#2\end{tabular}}
\begin{document}
\sffamily
\raggedright
\raggedbottom
\clubpenalty 1000
\widowpenalty 1000
\setlength{\tabcolsep}{0mm}
\def\arraystretch{0.7}
\songtitle{As The Deer}
\stanza{
\chordset{D}{As the }\chordset{A/C\textsuperscript{\#}}{deer panteth }\chordset{Bm}{for the }\chordset{D/A}{water}\\[6pt]
\chordset{D}{As the\ }\chordset{A/C\textsuperscript{\#}}{deer panteth\ }\chordset{Bm}{for the\ }\chordset{D/A}{water}\\[6pt]
\chordset{D}{As the} \chordset{A/C\textsuperscript{\#}}{deer panteth} \chordset{Bm}{for the} \chordset{D/A}{water}\\[6pt]
So my\chordset{G}{soul }longeth \chordset{Asus A}{after }\chordset{D G/A A}{thee}\\
\chordset{D}{You al}\chordset{A/C\textsuperscript{\#}}{one are my }\chordset{Bm}{heart's de}\chordset{D/A}{sire}\\
And I \chordset{G}{long to }\chordset{A}{worship }\chordset{D}{Thee}
}
\stanza{
\chordset{Bm}{You alone are my }\chordset{G}{strength, my }\chordset{D}{shield}\\
To \chordset{G}{You alone may my }\chordset{Em}{spirit }\chordset{F\textsuperscript{\#}sus F\textsuperscript{\#}}{yield}\\
\chordset{D}{You al}\chordset{A/C\textsuperscript{\#}}{one are my }\chordset{Bm}{heart's de}\chordset{D/A}{sire}\\
And I \chordset{G}{long to }\chordset{A}{worship }\chordset{D}{Thee}
}
\songtitle{As The Deer}
\stanza{
\chordset{D}{As the }\chordset{A/C\#}{deer panteth }\chordset{Bm}{for the }\chordset{D/A}{water, }
so my\chordset{G}{soul }longeth \chordset{Asus A}{after }\chordset{D G/A A}{thee}\\
\chordset{D}{You al}\chordset{A/C\#}{one are my }\chordset{Bm}{heart's de}\chordset{D/A}{sire, and I }
\chordset{G}{long to }\chordset{A}{worship }\chordset{D}{Thee}}
\end{document}
Problem #1: I can't figure out how to get spaces at the end of my table cell content to be honored. A plain space is ignored (line 1), and even "\ " is ignored (line 2). If I put the space outside the table (line 3), the space is overly big for some reason.
Problem #2: I want a bit more line spacing, but only between lines of lyrics, not between the chords and the lyrics below. \linespread affects the text inside the tables, pushing the chords away from the lyrics, so that won't do. \parskip seems to only affect the song titles and stanzas, not the lines in between. Putting something like "\\[6pt]" at the end of each line works (see lines 1-3), but (a) I would prefer to consolidate that formatting in one place, and (b) when long lines wrap (see the end of my demo content where I intentionally made the lines long to test my hanging indent), my first choice would be nice to have the spacing there too (although I could live without that). If \linespread could be repeatedly used inside the document (instead of just in the preamble), I could make it zero inside my definition of "\chordset" to unspread the text in the tables. The setspace package is supposed to be the solution to that, but it only has three choices for the amount of space.
Any ideas on these two issues? I'm very new to the whole TeX world, so if I'm doing other things wrong, please tell me that too...