summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/songs/sample/slidebook.tex
blob: 149c3f191dec710a702cd0258b56552791c316a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
% Copyright (C) 2017 Kevin W. Hamlen
%
% This program is free software; you can redistribute it and/or
% modify it under the terms of the GNU General Public License
% as published by the Free Software Foundation; either version 2
% of the License, or (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program; if not, write to the Free Software
% Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
% MA  02110-1301, USA.
%
% The latest version of this program can be obtained from
% http://songs.sourceforge.net.

\documentclass[letterpaper,oneside,landscape]{article}
\usepackage[pdfpagemode=UseThumbs]{hyperref}
\usepackage{color}
\usepackage[slides]{songs}
% \includeonlysongs{2}

\setlength{\oddsidemargin}{-0.5in}
\setlength{\evensidemargin}{-0.5in}
\setlength{\textwidth}{10in}
\setlength{\topmargin}{-0.75in}
\setlength{\topskip}{0in}
\setlength{\headheight}{13.6pt}
\setlength{\headsep}{0.5in}
\setlength{\textheight}{6.5in}

% Don't number the verses:
\noversenumbers

% Put each verse and chorus on a separate slide:
\sepverses

% Use 28pt Adobe Helvetica font for the lyrics
\renewcommand{\lyricfont}{%
  \fontfamily{phv}\fontseries{b}\fontsize{28pt}{28pt}\selectfont%
}

% If background colors are supported on this machine, then slides
% will have white lettering on a blue background.
\csname @ifundefined\endcsname{set@page@color}{}{
  \definecolor{SlideBG}{rgb}{0,0,0.43}
  \pagecolor{SlideBG}
  \color{white}
  \definecolor{SongbookShade}{rgb}{0,0,0.2}
}

% Define some headers for each slide to help the projector-operator
% find the correct slide.  We use the fancyhdr package for this.
\IfFileExists{fancyhdr.sty}{
  \usepackage{fancyhdr}
  \usepackage{extramarks}
  \pagestyle{fancy}
  \fancyhf{}
  \lhead{\sffamily\firstleftmark}
  \rhead{\sffamily\firstrightmark}
  \renewcommand{\headrulewidth}{0pt}

  \renewcommand{\songmark}{\markboth{}{\thesongnum}}
  \renewcommand{\versemark}{%
    \ifvnumbered
      \markboth{\thesongnum. \songtitle}{Verse \theversenum}%
    \else
      \markboth{\thesongnum. \songtitle}{}%
    \fi
  }
  \renewcommand{\chorusmark}{\markboth{\thesongnum. \songtitle}{Chorus}}
}{}

\begin{document}

\begin{songs}{}
\input{songs.sbd}
\end{songs}

\end{document}