lilypond-user
[Top][All Lists]
Advanced

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

Re: songbook from Lily scores


From: Arvid Grøtting
Subject: Re: songbook from Lily scores
Date: Sun, 08 Mar 2009 21:05:49 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Zoltan Kota <address@hidden> writes:

> I have been using Lily for a year now, and I have several music scores
> as separate lily files. I would like to make a songbook including
> them, with cover page, table of contents, correct page numbering, etc.
> How should I start? What sectiones should I learn in documentation?
> Lilypond-book? Any useful info and tips are welcome!

Apologies for replying so late, but another option is using PDFLaTeX
and the pdfpages package to include the PDFs made my Lilypond.

This combination can take care of title pages, table of contents, page
numbering, indexing, etc.  For print, cover pages are usually produced
separately as far as I know.

I used this to typeset a song book for my choir.

Here's a smaller (and quick and dirty), real-life example:

%% æøå -*- mode: latex -*-
\documentclass[a4paper]{book}
\pdfoutput=1
\usepackage{pdfpages}
\usepackage[norsk]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{newcent}
\usepackage[% papersize={15cm,220mm},
  inner=20mm,outer=20mm,vmargin=20mm%,headsep=6mm
]{geometry}

%% This makes your chapter headings, etc, go away.
%% If you don't understand it, just consider it magic.
\makeatletter
% different chapter headings
\renewcommand\chapter{\clearpage
                    \thispagestyle{myheadings}%
                    address@hidden@
                    address@hidden
                    address@hidden@schapter}
address@hidden
\makeatother

%% A command to include a PDF file with a corresponding title
\newcommand{\includemusic}[2]{%
  % #1: file name without ending
  % #2: title
  \chapter[#2]{#2}
  \includepdf[pages=-,%
    pagecommand={\thispagestyle{myheadings}},
    clip=false, 
    natheight=10\cm,% completely bogus
    % offset=5mm 0 % 14 0 % 5mm out (?)
]{#1.pdf}}


\begin{document}
\pagestyle{myheadings}
\markboth{}{}
%% First, include a ready-made front page:
\includepdf[pages=1]{Album_forside.pdf}
%% Makte table of contents page.  Include ISMN there for lack of a
%% better place to put it.
\tableofcontents
\vfill\noindent
Den norske Studentersangforening, Oslo, 2007--2009
\hfill ISMN~979-0-66118-094-4
%
%% Here comes the music, one PDF at a time:
\includemusic{Jeg_lagde_mig}{Jeg lagde mig så sildig}
\includemusic{Badn_lat}{Bådn Låt}
\includemusic{Toro_liti}{Torø Liti}
This gives us a blank page to reduce page turning:
~
\includemusic{Kvalins_halling}{Kvålins Halling}
~
\includemusic{De_e_den_storste}{Dæ æ den største Dårleheit}
\includemusic{Springdands}{Springdands}
~
\includemusic{Han_Ole}{Han Ole}
\includemusic{Halling}{Halling}
\includemusic{Dejligste_blandt_Kvinder}{Dejligste blandt Kvinder}
\includemusic{Den_store_hvite_Flok}{Den store, hvite Flok}
\includemusic{Fantegutten}{Fantegutten}
\includemusic{Rotnams_Knut}{Røtnams Knut}
\end{document}
%% And that's all there is to it, really.
%% This example does not demonstrate indexing.
%% Google the ISMN (without the ~) to see (or print) the result.
%% Individual PDFs available.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]