*** empty log message ***
[m17n/m17n-docs.git] / styles / m17n-lib.sty
1 \ProvidesPackage{m17n-lib}
2 %% Don't leave a 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 \def\narrowwidth{.8\textwidth}
17
18 %% Don't write footers.
19 \rfoot[]{}
20 \lfoot[]{}
21 \cfoot[]{}
22 \def\footrule{}
23
24 %% Hook function to print credit and add subsections to TOC.
25 \def\m17nhook{
26 \newpage
27 \thispagestyle{empty}
28 \vspace*{\fill}
29 Copyright (C) 2001 Information-technology Promotion Agency (IPA)\\
30 Copyright (C) 2001-2004  National Institute of Advanced Industrial Science and Technology (AIST)
31
32 Permission is granted to copy, distribute and/or modify this document
33 under the terms of the GNU Free Documentation License, Version 1.2 or
34 any later version published by the Free Software Foundation; with no
35 Invariant Section, Front-Cover Texts ``The m17n library
36 documentation'', and no Back-Cover Texts.  A copy of the license is
37 included in the appendix entitled ``GNU Free Documentation License''.
38 }
39
40 %% Run the above hook in the back of the title page.
41 \let\origendtitlepage\endtitlepage
42 \def\endtitlepage{\m17nhook\origendtitlepage}
43
44 %% Add Index section to the table of contents.
45 \let\origprintindex\printindex
46 \def\printindex{\addcontentsline{toc}{chapter}{Index}\origprintindex}
47
48 \renewcommand{\entrylabel}[1]{%
49 \parbox[b]{\labelwidth}{\makebox[0pt][l]{\textbf{#1}}\\\hspace*{1mm}}}
50
51 \def\IPAlabel#1{}
52 \def\IPApage#1{}
53
54 \raggedright