Debian Codegraph @

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

raw
1 %%%%%% rcsid = @(#)$Id: sampleToc.tex,v 1.18 2010-04-12 18:04:32 rathc Exp $
2 %%%%%%
3 %%
4 %% ========================================
5 %% Sample Table Of Contents (sampleToc.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 Table of Contents
24 %% 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}{\today}
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 Table~Of~Contents({\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 % Index entries command definition.
88 %%%
89 \renewcommand{\item}{\par\hangindent=40pt}
90 \renewcommand{\subitem}{\par\hangindent=40pt \hspace*{20pt}}
91 \renewcommand{\subsubitem}{\par\hangindent=40pt \hspace*{30pt}}
92
93
94 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
95 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
96 %% %%
97 %% D O C U M E N T B E G I N S %%
98 %% %%
99 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
100 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
101 \begin{document}
102
103 %%%
104 % Begin the Table Of Contents.
105 %%%
106 {\parindent 10pt
107 {\myTitleFont --- Contents ---}}\par
108 \vskip 30pt
109
110 \input{sample-sb.toc}
111
112 \end{document}
113 \bye
114 %
115 %%%
116 % Document ends.
117 %%%