*** empty log message ***
[m17n/m17n-docs.git] / data-usr / m17n-lib.sty
1 \ProvidesPackage{m17n-lib}
2 %% Copyright (C) 2003                           -*- coding: euc-jp; -*-
3 %%   National Institute of Advanced Industrial Science and Technology (AIST)
4 %%   Registration Number H15PRO112
5
6 %% This file is part of the m17n library.
7
8 %% The m17n library is free software; you can redistribute it and/or
9 %% modify it under the terms of the GNU General Public License as
10 %% published by the Free Software Foundation; either version 2, or (at
11 %% your option) any later version.
12
13 %% The m17n library is distributed in the hope that it will be useful,
14 %% but WITHOUT ANY WARRANTY; without even the implied warranty of
15 %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 %% GNU General Public License for more details.
17
18 %% You should have received a copy of the GNU General Public License
19 %% along with the m17n library; see the file COPYING.  If not, write to
20 %% the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 %% Boston, MA 02111-1307, USA.
22
23 %% Don't leave the space for marginal notes.
24 \setlength{\textwidth}{\paperwidth}
25 \addtolength{\textwidth}{-2in}
26 \setlength{\textheight}{\paperheight}
27 \addtolength{\textheight}{-2in}
28 \addtolength{\textheight}{-\headheight}
29 \addtolength{\textheight}{-\headsep}
30 \setlength{\headwidth}{\textwidth}
31 \setlength{\topmargin}{0in}
32 \setlength{\oddsidemargin}{0in}
33 \setlength{\evensidemargin}{0in}
34 \setlength{\marginparsep}{0pt}
35 \setlength{\marginparwidth}{0pt}
36 \setlength{\footskip}{0pt}
37
38 %% Don't write footers.
39 \rfoot[]{}
40 \lfoot[]{}
41 \cfoot[]{}
42 \def\footrule{}
43
44 %% Use arabic numbers in the second level `enumerate' environment.
45 \renewcommand\theenumii{\@arabic\c@enumii}
46
47 %% Make each section start with a new page.
48 \let\origsection\section
49 \def\section{\cleardoublepage\origsection}
50
51 %% Hook function to print credit and add subsections to TOC.
52 \def\m17nhook{
53 \thispagestyle{empty}
54 \vspace*{\fill}
55 Copyright (C) 2003\\
56   National Institute of Advanced Industrial Science and Technology (AIST)\\
57   Registration Number H15PRO112
58
59 This file is part of the m17n library.
60
61 The m17n library is free software; you can redistribute it and/or
62 modify it under the terms of the GNU General Public License as
63 published by the Free Software Foundation; either version 2, or (at
64 your option) any later version.
65
66 The m17n library is distributed in the hope that it will be useful,
67 but WITHOUT ANY WARRANTY; without even the implied warranty of
68 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
69 GNU General Public License for more details.
70
71 You should have received a copy of the GNU General Public License
72 along with the m17n library; see the file COPYING.  If not, write to
73 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
74 Boston, MA 02111-1307, USA.
75 \newpage%
76 \setcounter{tocdepth}{2}%
77 \setcounter{page}{1}%
78 }
79
80 %% Run the above hook before printing TOC.
81 \let\origtableofcontents\tableofcontents
82 \def\tableofcontents{\m17nhook\origtableofcontents\clearpage}