this is my first post, so thanks in advance for patience with me.
I have been using the "Songs" package to generate song books with chords in them. I often find it useful to use the "gtab" command to generate chord diagrams at the beginning of the song, as instructed in the manual for the package.
With these chord diagrams, I was hoping for a way to automatically insert those of the used chords at the beginning of the song, as opposed to copying and pasting the used chords' gtab definition for every song. For the example below, it would need to recognize that the G,C, and D chord are used, and then use a definition of the chord to output it before the intro and first verse. For example, the G chord being:
\gtab{G}{320033:120034}
Also, would it be possible to for the diagrams to adjust based on transposition? Using the "\transpose" command, the output chords shown with the lyrics can be different from those in the input "[]". It would be ideal if the diagrams matched the output chords.
Here's my example:
\documentclass[letterpaper]{article}
\usepackage[chorded]{songs}
\usepackage[margin=1.25in]{geometry}
\begin{document}
\begin{songs}{}
\beginsong{I Saw the Light}[
by={Hank Williams},
sr={Isaiah 9:2}]
\gtab{G}{320033:120034} \gtab{C}{X32010:032010} \gtab{D}{X00232:000132}
\ifchorded
\beginverse*
{\nolyrics Intro: \[G] \[D] \[G]}
\endverse
\fi
\beginverse \memorize
\[G]I wandered so aimless life filled with sin
\[C]I wouldn't let my dear savior \[G]in
\[G]Then Jesus came like a stranger in the night
\[(G)]Praise the Lord \[D]I saw the \[G]light
\endverse
\beginchorus
^I saw the light I saw the light
^No more darkness no more ^night
^Now I'm so happy no sorrow in sight
^Praise the Lord ^I saw the ^light
\endchorus
\endsong
\end{songs}
\end{document}
\def\C{\gtab{C}{X32010:032010}} \def\D{\gtab{D}{X00232:000132}} \def\G{\gtab{G}{320033:210034}}And then include them by putting their commands right before any verses/choruses start (in this case,\G \C \D) I'm fine with doing the little extra work of adding those commands for each individual song. However, it eliminates the possibility of using your handy \transpose command. Do you see any way around that? – tdstoff Jul 11 '18 at 21:29