This is a modular songbook using latex's songs-package with a simple java-script to generate the index, chapters etc. automatically.
Its contents are automatically assembled from individual .tex files in the bands
-folder.
- For every artist, create a new file
<bandid>.tex
in thebands
-folder. This file should contain the individual songs by that artist. Note, that the artists will be sorted by the filename (i.e.<bandid>
), not the actual name of the artist. This allows for sorting e.g.Steven Wilson
underW
, by naming the corresponding file e.g.wilson_steven.tex
. - The first line of an artist's file needs to contain the full name of the artist as a comment. E.g. the file
wilson_steven.tex
would have as first line% Steven Wilson
. This is the name that will actually appear in the final document. - Add the individual songs to the artist's file using the syntax provided by the songs package. With the small exception that
you should use the command
\newsong{<title>}
to start a new song to add it to the table of contents (the handling of indices in the songs packages is... not well suited for artist-song-subordering). Details on the syntax can be found in the official documentation of the package. Note, that the songs will appar in the final document in the same order as they are in the artists.tex
-file. - Having done so, simply run the
build.jar
(usually viajava -jar build.jar
), which should take care of all the rest for you by assembling the individual band files into onemain.tex
and compiling it to twopdf
files (main.pdf
andmobile.pdf
, which is optimized for phone screens - well, mine, to be precise) with table of contents etc. directly. In case there are problems, you can manually compile themain.tex
to get proper error messages.
- The macro
\tab{<filename>}
will insert an image (intended to be guitar tabs) with the ideal width. The image should be in thetabs
-folder. - The macro
\todosong{<Name>}
will insert a TODO both in the body of the document as well as the TOC if turned on, and will be ignored if turned off. Whether TODOs are shown is toggled in the boolean flag\setboolean{show}{<value>}
insongbook.template
.
Some entries taken from the Patacrep Songbook