*** empty log message ***
[m17n/m17n-docs.git] / data-usr / m17n-lib.sty
1 \ProvidesPackage{m17n-lib}
2 %% Don't leave the space for marginal notes and foot notes.
3 \setlength{\textwidth}{\paperwidth}
4 \addtolength{\textwidth}{-2in}
5 \setlength{\textheight}{\paperheight}
6 \addtolength{\textheight}{-2in}
7 \addtolength{\textheight}{-\headheight}
8 \addtolength{\textheight}{-\headsep}
9 \setlength{\headwidth}{\textwidth}
10 \setlength{\topmargin}{0in}
11 \setlength{\oddsidemargin}{0in}
12 \setlength{\evensidemargin}{0in}
13 \setlength{\marginparsep}{0pt}
14 \setlength{\marginparwidth}{0pt}
15 \setlength{\footskip}{0pt}
16
17 %% Don't write footers.
18 \rfoot[]{}
19 \lfoot[]{}
20 \cfoot[]{}
21 \def\footrule{}
22
23 %% Hook function to print credit and add subsections to TOC.
24 \def\m17nhook{
25 \newpage
26 \thispagestyle{empty}
27 \vspace*{\fill}
28 Copyright (C) 2003\\
29   National Institute of Advanced Industrial Science and Technology (AIST)\\
30   Registration Number H15PRO112
31
32 This file is part of the m17n library.
33
34 The m17n library is free software; you can redistribute it and/or
35 modify it under the terms of the GNU General Public License as
36 published by the Free Software Foundation; either version 2, or (at
37 your option) any later version.
38
39 The m17n library is distributed in the hope that it will be useful,
40 but WITHOUT ANY WARRANTY; without even the implied warranty of
41 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
42 GNU General Public License for more details.
43
44 You should have received a copy of the GNU General Public License
45 along with the m17n library; see the file COPYING.  If not, write to
46 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
47 Boston, MA 02111-1307, USA.
48 }
49
50 %% Run the above hook in the back of the title page.
51 \let\origendtitlepage\endtitlepage
52 \def\endtitlepage{\m17nhook\origendtitlepage}
53
54 %% Add Index section to the table of contents.
55 \let\origprintindex\printindex
56 \def\printindex{\addcontentsline{toc}{chapter}{Index}\origprintindex}