Debian Codegraph @

texmf-dist/doc/latex/songbook/sampleKdx.tex

raw
1 %%%%%% rcsid = @(#)$Id: sampleKdx.tex,v 1.16 2010-04-12 18:04:30 rathc Exp $
2 %%%%%%
3 %%
4 %% ================================
5 %% Sample Key Index (sampleKdx.tex)
6 %% ================================
7 %%
8 %% Version 4.5, 30 April, 2010
9 %%
10 %% Copyright 1992--2010 Christopher Rath <[email protected]>
11 %%
12 %% This package is free software; you can redistribute it and/or
13 %% modify it under the terms of version 2.1 of the GNU Lesser
14 %% General Public License as published by the Free Software
15 %% Foundation.
16 %%
17 %% This package is distributed in the hope that it will be
18 %% useful, but WITHOUT ANY WARRANTY; without even the implied
19 %% warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
20 %% PURPOSE. See the GNU Lesser General Public License for more
21 %% details.
22 %%
23 %% This file is provided as a template for Song Key
24 %% Index generation.
25 %%
26 %%%%%%
27 %%%%%%
28
29 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
30 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
31 %% %%
32 %% P R E A M B L E B E G I N S %%
33 %% %%
34 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
35 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
36
37 \documentclass[12pt,twocolumn]{book}
38 \usepackage{latexsym,fancyhdr}
39 \usepackage[wordbk]{songbook}
40
41 %%%
42 % Revision Date and Release Date definitions.
43 %
44 % \RelDate - The last time this songbook was released.
45 % \RevDate - The last time this file was revised in any way.
46 %%%
47 \newcommand{\RelDate}{30~May'96}
48 \newcommand{\RevDate}{\RelDate}
49
50 %%%
51 % Redefine fonts from SongBook style that I don't like, and define
52 % any extra fonts I require.
53 %%%
54 \font\myTinySF=cmss8 at 8pt
55 \font\myHugeSF=cmssbx10 at 25pt
56 \renewcommand{\CpyRtInfoFont}{\tiny\myTinySF}
57 \newcommand{\myTitleFont}{\Huge\myHugeSF}
58 \newcommand{\mySubTitleFont}{\large\sf}
59
60 %%%
61 % Define fonts to use in the headers and footers of the songbook.
62 %%%
63 \newcommand{\LHeadFont}{\normalsize} % = cmr12 at 12pt
64 \newcommand{\CHeadFont}{\normalsize\rm} % = cmr12 at 12pt
65 \newcommand{\RHeadFont}{\normalsize} % = cmr12 at 12pt
66 \newcommand{\LFootFont}{\scriptsize} % = cmr8 at 8pt
67 \newcommand{\CFootFont}{\tiny\myTinySF} % = cmss8 at 8pt
68 \newcommand{\RFootFont}{\scriptsize} % = cmr8 at 8pt
69
70 %%%
71 % Turn on and define fancy page heading/footing definition.
72 %%%
73 \pagestyle{fancy}
74
75 \addtolength{\headwidth}{\marginparsep}
76 \addtolength{\headwidth}{\marginparwidth}
77 \renewcommand{\footrulewidth}{0.4pt}
78 \lhead{\LHeadFont A Church Songbook}
79 \chead{\CHeadFont Key~Index({\rm\thepage})}
80 \rhead{\RHeadFont\RelDate}
81
82 \lfoot{\LFootFont Property of a Church}
83 \cfoot{\CFootFont Last Revised: \RevDate}
84 \rfoot{\RFootFont Material used by permission.}
85
86
87 %%%
88 % Index entries command definition.
89 %%%
90 \renewcommand{\item}{\par\hangindent=40pt}
91 \renewcommand{\subitem}{\par\hangindent=40pt \hspace*{20pt}}
92 \renewcommand{\subsubitem}{\par\hangindent=40pt \hspace*{30pt}}
93
94
95 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
96 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
97 %% %%
98 %% D O C U M E N T B E G I N S %%
99 %% %%
100 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
101 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
102 \begin{document}
103
104 %%%
105 % Index begins.
106 %%%
107 {\parindent 8pt
108 {\myTitleFont --- Key Index ---}}\par
109 \vskip 20pt
110
111 \input{sample-sb.kdx}
112
113 \end{document}
114 \bye
115 %
116 %%%
117 % Document ends.
118 %%%
119
120 % Local Variables:
121 % LaTeX-item-indent: -1
122 % LaTeX-indent-level: 2
123 % TeX-brace-indent-level: 2
124 % TeX-auto-untabify: nil
125 % TeX-style-local: style/
126 % End: