| 1 |
%%%%%% rcsid = @(#)$Id: sampleTdx.tex,v 1.18 2010-04-12 18:04:31 rathc Exp $ |
| 2 |
%%%%%% |
| 3 |
%% |
| 4 |
%% =============================================== |
| 5 |
%% Sample Title & First Line Index (sampleTdx.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 Title and First Line |
| 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 |
%%% |
| 43 |
% Revision Date and Release Date definitions. |
| 44 |
% |
| 45 |
% \RelDate - The last time this songbook was released. |
| 46 |
% \RevDate - The last time this file was revised in any way. |
| 47 |
%%% |
| 48 |
\newcommand{\RelDate}{30 May'96} |
| 49 |
\newcommand{\RevDate}{\today} |
| 50 |
|
| 51 |
%%% |
| 52 |
% Redefine fonts from SongBook style that I don't like, and define |
| 53 |
% any extra fonts I require. |
| 54 |
%%% |
| 55 |
\font\myTinySF=cmss8 at 8pt |
| 56 |
\font\myHugeSF=cmssbx10 at 25pt |
| 57 |
\renewcommand{\CpyRtInfoFont}{\tiny\myTinySF} |
| 58 |
\newcommand{\myTitleFont}{\Huge\myHugeSF} |
| 59 |
\newcommand{\mySubTitleFont}{\large\sf} |
| 60 |
|
| 61 |
%%% |
| 62 |
% Define fonts to use in the headers and footers of the songbook. |
| 63 |
%%% |
| 64 |
\newcommand{\LHeadFont}{\normalsize} % = cmr12 at 12pt |
| 65 |
\newcommand{\CHeadFont}{\normalsize\rm} % = cmr12 at 12pt |
| 66 |
\newcommand{\RHeadFont}{\normalsize} % = cmr12 at 12pt |
| 67 |
\newcommand{\LFootFont}{\scriptsize} % = cmr8 at 8pt |
| 68 |
\newcommand{\CFootFont}{\tiny\myTinySF} % = cmss8 at 8pt |
| 69 |
\newcommand{\RFootFont}{\scriptsize} % = cmr8 at 8pt |
| 70 |
|
| 71 |
%%% |
| 72 |
% Turn on and define fancy page heading/footing definition. |
| 73 |
%%% |
| 74 |
\pagestyle{fancy} |
| 75 |
|
| 76 |
\addtolength{\headwidth}{\marginparsep} |
| 77 |
\addtolength{\headwidth}{\marginparwidth} |
| 78 |
\renewcommand{\footrulewidth}{0.4pt} |
| 79 |
\lhead{\LHeadFont A Church Songbook} |
| 80 |
\chead{\CHeadFont Title~Index({\rm\thepage})} |
| 81 |
\rhead{\RHeadFont\RelDate} |
| 82 |
|
| 83 |
\lfoot{\LFootFont Property of a Church} |
| 84 |
\cfoot{\CFootFont Last Revised: \RevDate} |
| 85 |
\rfoot{\RFootFont Material used by permission.} |
| 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 |
% Begin the Index. |
| 106 |
%%% |
| 107 |
{\parindent 8pt |
| 108 |
{\myTitleFont --- Title Index ---}}\par |
| 109 |
\vskip 5pt |
| 110 |
{\parindent 20pt |
| 111 |
{\mySubTitleFont --- with first lines in italic ---}} |
| 112 |
\vskip 20pt |
| 113 |
|
| 114 |
\input{sample-sb.tdx} |
| 115 |
|
| 116 |
\end{document} |
| 117 |
\bye |
| 118 |
% |
| 119 |
%%% |
| 120 |
% Document ends. |
| 121 |
%%% |