*** empty log message ***
[m17n/m17n-docs.git] / data-usr / 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
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) 2001 Information-technology Promotion Agency (IPA)\\
29 Copyright (C) 2001-2004  National Institute of Advanced Industrial Science and Technology (AIST)
30
31 Permission is granted to copy, distribute and/or modify this document
32 under the terms of the GNU Free Documentation License, Version 1.2 or
33 any later version published by the Free Software Foundation; with no
34 Invariant Section, Front-Cover Texts ``The m17n library
35 documentation'', and no Back-Cover Texts.  A copy of the license is
36 included in the appendix entitled ``GNU Free Documentation License''.
37 }
38
39 %% Run the above hook in the back of the title page.
40 \let\origendtitlepage\endtitlepage
41 \def\endtitlepage{\m17nhook\origendtitlepage}
42
43 %% Add Index section to the table of contents.
44 \let\origprintindex\printindex
45 \def\printindex{\addcontentsline{toc}{chapter}{Index}\origprintindex}
46
47 \renewcommand{\entrylabel}[1]{%
48 \parbox[b]{\labelwidth}{\makebox[0pt][l]{\textbf{#1}}\\\hspace*{1mm}}}
49
50 \raggedright