X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=data-usr%2Fm17n-lib.sty;h=2a3ccb0d0c7f8a7c6bcf2006e1ed98d36f0d4389;hb=5ffd689d5ad4e1b3fddc80a1518bdf7237bc9e14;hp=7438636b3536ae50997d99d5f9d7054c0c68bef2;hpb=45928170dc985ff2b0b2ccdbad78c3707aed8d82;p=m17n%2Fm17n-docs.git diff --git a/data-usr/m17n-lib.sty b/data-usr/m17n-lib.sty index 7438636..2a3ccb0 100644 --- a/data-usr/m17n-lib.sty +++ b/data-usr/m17n-lib.sty @@ -1,7 +1,24 @@ -% -*- coding: euc-jp; -*- \ProvidesPackage{m17n-lib} +%% Copyright (C) 2003 -*- coding: euc-jp; -*- +%% National Institute of Advanced Industrial Science and Technology (AIST) +%% Registration Number H15PRO112 -%\usepackage{times} +%% 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. %% Don't leave the space for marginal notes. \setlength{\textwidth}{\paperwidth} @@ -18,76 +35,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}} - +\def\footrule{} %% 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 +\def\section{\cleardoublepage\origsection} + +%% Hook function to print credit and add subsections to TOC. +\def\m17nhook{ +\thispagestyle{empty} +\vspace*{\fill} +Copyright (C) 2003\\ + National Institute of Advanced Industrial Science and Technology (AIST)\\ + Registration Number H15PRO112 -%% 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})} +This file is part of the m17n library. -%% \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{} +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. +\newpage% +\setcounter{tocdepth}{2}% +\setcounter{page}{1}% +} + +%% Run the above hook before printing TOC. \let\origtableofcontents\tableofcontents -\def\tableofcontents{\setcounter{tocdepth}{2}\origtableofcontents\clearpage} -\def\footrule{} +\def\tableofcontents{\m17nhook\origtableofcontents\clearpage}