summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/songbook/sampleToc.tex
blob: 2c9076227086e95e3a3756e36f5f346a9c62526d (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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
%%%%%% rcsid = @(#)$Id: sampleToc.tex,v 1.14 2003/08/31 03:23:21 christopher Exp $
%%%%%%
%%
%%      ========================================
%%      Sample Table Of Contents (sampleToc.tex)
%%      ========================================
%%
%%      Version 4.1, 31 August, 2003
%%
%%      Copyright 1992--2003 Christopher Rath <christopher@rath.ca>
%%
%%      This package is free software; you can redistribute it and/or
%%      modify it under the terms of the GNU Lesser General Public
%%      License as published by the Free Software Foundation; either
%%      version 2.1 of the License, or (at your option) any later
%%      version.
%%
%%      This package 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 Lesser General Public License for more
%%      details.
%%
%%      This file is provided as a template for Table of Contents
%%      generation.
%%
%%%%%%
%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                                                      %%
%%           P R E A M B L E   B E G I N S              %%
%%                                                      %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass[12pt,twocolumn]{book}
\usepackage{latexsym,fancyhdr}
\usepackage[wordbk]{songbook}

%%%
% Revision Date and Release Date definitions.
%
%       \RelDate - The last time this songbook was released.
%       \RevDate - The last time this file was revised in any way.
%%%
\newcommand{\RelDate}{30 May'96}
\newcommand{\RevDate}{\today}

%%%
% Redefine fonts from SongBook style that I don't like, and define
% any extra fonts I require.
%%%
\font\myTinySF=cmss8    at  8pt
\font\myHugeSF=cmssbx10 at 25pt
\renewcommand{\CpyRtInfoFont}{\tiny\myTinySF}
\newcommand{\myTitleFont}{\Huge\myHugeSF}
\newcommand{\mySubTitleFont}{\large\sf}

%%%
% Define fonts to use in the headers and footers of the songbook.
%%%
\newcommand{\LHeadFont}{\normalsize}            % = cmr12  at 12pt
\newcommand{\CHeadFont}{\normalsize\rm}         % = cmr12  at 12pt
\newcommand{\RHeadFont}{\normalsize}            % = cmr12  at 12pt
\newcommand{\LFootFont}{\scriptsize}            % = cmr8   at  8pt
\newcommand{\CFootFont}{\tiny\myTinySF}         % = cmss8  at  8pt
\newcommand{\RFootFont}{\scriptsize}            % = cmr8   at  8pt

%%%
% Turn on and define fancy page heading/footing definition.
%%%
\pagestyle{fancy}

\addtolength{\headwidth}{\marginparsep}
\addtolength{\headwidth}{\marginparwidth}
\renewcommand{\footrulewidth}{0.4pt}
\lhead{\LHeadFont A Church Songbook}
       \chead{\CHeadFont Table~Of~Contents({\rm\thepage})}
       \rhead{\RHeadFont\RelDate}

\lfoot{\LFootFont Property of a Church}
       \cfoot{\CFootFont Last Revised:  \RevDate}
       \rfoot{\RFootFont Material used by permission.}

%%%
% Index entries command definition.
%%%
\renewcommand{\item}{\par\hangindent=40pt}
\renewcommand{\subitem}{\par\hangindent=40pt \hspace*{20pt}}
\renewcommand{\subsubitem}{\par\hangindent=40pt \hspace*{30pt}}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                                                      %%
%%           D O C U M E N T   B E G I N S              %%
%%                                                      %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

%%%
% Begin the Table Of Contents.
%%%
{\parindent 10pt
  {\myTitleFont --- Contents ---}}\par
\vskip 30pt

\input{sample-sb.toc}

\end{document}
\bye
%
%%%
% Document ends.
%%%