summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/songs/sample/slidebook.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/songs/sample/slidebook.tex')
-rw-r--r--macros/latex/contrib/songs/sample/slidebook.tex85
1 files changed, 85 insertions, 0 deletions
diff --git a/macros/latex/contrib/songs/sample/slidebook.tex b/macros/latex/contrib/songs/sample/slidebook.tex
new file mode 100644
index 0000000000..d191c0134e
--- /dev/null
+++ b/macros/latex/contrib/songs/sample/slidebook.tex
@@ -0,0 +1,85 @@
+% Copyright (C) 2018 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}
+