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}
18 %% Don't write footers.
24 %% Hook function to print credit and add subsections to TOC.
29 Copyright (C) 2001 Information-technology Promotion Agency (IPA)\\
30 Copyright (C) 2001-2004 National Institute of Advanced Industrial Science and Technology (AIST)
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''.
40 %% Run the above hook in the back of the title page.
41 \let\origendtitlepage\endtitlepage
42 \def\endtitlepage{\m17nhook\origendtitlepage}
44 %% Add Index section to the table of contents.
45 \let\origprintindex\printindex
46 \def\printindex{\addcontentsline{toc}{chapter}{Index}\origprintindex}
48 \renewcommand{\entrylabel}[1]{%
49 \parbox[b]{\labelwidth}{\makebox[0pt][l]{\textbf{#1}}\\\hspace*{1mm}}}