X-Git-Url: http://git.chise.org/gitweb/?p=m17n%2Fm17n-docs.git;a=blobdiff_plain;f=data-usr%2Fm17n-lib.sty;h=1f76b1fc9a4a3dcf8418cdebe82b20fe171a6908;hp=7438636b3536ae50997d99d5f9d7054c0c68bef2;hb=dbc344533b13553082366cdfdcb5ec3fc070ad31;hpb=45928170dc985ff2b0b2ccdbad78c3707aed8d82 diff --git a/data-usr/m17n-lib.sty b/data-usr/m17n-lib.sty index 7438636..1f76b1f 100644 --- a/data-usr/m17n-lib.sty +++ b/data-usr/m17n-lib.sty @@ -1,9 +1,5 @@ -% -*- coding: euc-jp; -*- \ProvidesPackage{m17n-lib} - -%\usepackage{times} - -%% Don't leave the space for marginal notes. +%% Don't leave the space for marginal notes and foot notes. \setlength{\textwidth}{\paperwidth} \addtolength{\textwidth}{-2in} \setlength{\textheight}{\paperheight} @@ -18,76 +14,48 @@ \setlength{\marginparwidth}{0pt} \setlength{\footskip}{0pt} -%\def\sectionmark#1{\markboth -%{\MakeUppercase{\ifnum \c@secnumdepth>\z@ -% \thesection\hskip 1em\relax \fi #1}}{}} -%\def\sectionmark#1{\markboth{\MakeUppercase{#1}}{}} - %% Don't write footers. \rfoot[]{} \lfoot[]{} \cfoot[]{} - -%% Fixing incorrest indentation of the original `CompactItemize' -%% environment. -%% \renewenvironment{CompactItemize} -%% { -%% \bgroup -%% \def\@listi{\leftmargin\leftmargini -%% \parsep 0\p@ \@plus2.5\p@ \@minus\p@ -%% \topsep 10\p@ \@plus4\p@ \@minus6\p@ -%% \itemsep0\p@ \@plus2.5\p@ \@minus\p@} -%% \def\@listii {\leftmargin\leftmarginii -%% \labelwidth\leftmarginii -%% \advance\labelwidth-\labelsep -%% \topsep 5\p@ \@plus2.5\p@ \@minus\p@ -%% \parsep 0\p@ \@plus\p@ \@minus\p@ -%% \itemsep \parsep} -%% \begin{itemize} -%% \setlength{\leftskip}{-1.5em} -%% } -%% {\end{itemize}\egroup} - -%% \renewenvironment{Desc} -%% {\begin{list}{} -%% { -%% \settowidth{\labelwidth}{40pt} -%% \setlength{\leftmargin}{\labelwidth} -%% % \setlength{\parsep}{0pt} -%% \setlength{\itemsep}{-4pt} -%% \renewcommand{\makelabel}{\entrylabel} -%% } -%% } -%% {\end{list}} - - -%% Use arabic numbers in the second level `enumerate' environment. -\renewcommand\theenumii{\@arabic\c@enumii} - -%% Treat `_' as a normal letter. -%% \catcode`\_11\relax - -%% Make each section start with a new page. -\let\origsection\section -\def\newsection{\cleardoublepage\origsection} -\def\sectionOnNewpage{\let\section\newsection} -\sectionOnNewpage - -%% Cross reference for IPA document. -\def\IPAlabel#1{\label{IPA:#1}} -\def\IPAref#1{\texttt{#1} (P.\pageref{IPA:#1})} -\def\IPApage#1{(P.\pageref{IPA:#1})} - -%% \let\origtt\tt -%% \let\origbf\bf -%% \newif\iftt -%% \def\tt{\tttrue\origtt} -%% \def\bf{\iftt\else\origbf\fi} -%% \def\em{\ttfamily\bfseries} -%{\catcode`"=\active\gdef"{{\catcode`"=12\verb+"+}}} -%\catcode`"=\active -%\def\includegraphics[#1]#2{} - -\let\origtableofcontents\tableofcontents -\def\tableofcontents{\setcounter{tocdepth}{2}\origtableofcontents\clearpage} \def\footrule{} + +%% Hook function to print credit and add subsections to TOC. +\def\m17nhook{ +\newpage +\thispagestyle{empty} +\vspace*{\fill} +Copyright (C) 2003\\ + National Institute of Advanced Industrial Science and Technology (AIST)\\ + Registration Number H15PRO112 + +This file is part of the m17n library. + +The m17n library is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License as +published by the Free Software Foundation; either version 2, or (at +your option) any later version. + +The m17n library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with the m17n library; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. +} + +%% Run the above hook in the back of the title page. +\let\origendtitlepage\endtitlepage +\def\endtitlepage{\m17nhook\origendtitlepage} + +%% Add Index section to the table of contents. +\let\origprintindex\printindex +\def\printindex{\addcontentsline{toc}{chapter}{Index}\origprintindex} + +\renewcommand{\entrylabel}[1]{% +\parbox[b]{\labelwidth}{\makebox[0pt][l]{\textbf{#1}}\\\hspace*{1mm}}} + +\raggedright