From 7ecab4a333d778b06cbec11a4fc44c1a803d2565 Mon Sep 17 00:00:00 2001 From: handa Date: Wed, 14 Apr 2004 06:59:48 +0000 Subject: [PATCH] *** empty log message *** --- Makefile.am | 5 ++++- data-usr/m17n-lib.sty | 50 ---------------------------------------------- styles/m17n-lib.sty | 53 +++++++++++++++++++++++++++++++++++++++++++++++++ utils/latex.sh | 2 +- 4 files changed, 58 insertions(+), 52 deletions(-) delete mode 100644 data-usr/m17n-lib.sty create mode 100644 styles/m17n-lib.sty diff --git a/Makefile.am b/Makefile.am index d076dc9..4d0f230 100644 --- a/Makefile.am +++ b/Makefile.am @@ -243,7 +243,10 @@ data/m17n-config.txt: @M17NLIB@/m17n-config.in rm -rf `dirname $@` ${DOXYGEN} $< -%/latex/m17n-lib.dvi: %/latex/refman.tex data-%/m17n-lib.sty utils/latex.sh +ja/latex/m17n-lib.dvi: ja/latex/refman.tex styles/m17n-lib.sty utils/latex.sh + utils/latex.sh `dirname $@` platex + +%/latex/m17n-lib.dvi: %/latex/refman.tex styles/m17n-lib.sty utils/latex.sh utils/latex.sh `dirname $@` latex %/latex/m17n-lib.ps: %/latex/m17n-lib.dvi utils/dvips.sh diff --git a/data-usr/m17n-lib.sty b/data-usr/m17n-lib.sty deleted file mode 100644 index 2fe0433..0000000 --- a/data-usr/m17n-lib.sty +++ /dev/null @@ -1,50 +0,0 @@ -\ProvidesPackage{m17n-lib} -%% Don't leave a space for marginal notes and foot notes. -\setlength{\textwidth}{\paperwidth} -\addtolength{\textwidth}{-2in} -\setlength{\textheight}{\paperheight} -\addtolength{\textheight}{-2in} -\addtolength{\textheight}{-\headheight} -\addtolength{\textheight}{-\headsep} -\setlength{\headwidth}{\textwidth} -\setlength{\topmargin}{0in} -\setlength{\oddsidemargin}{0in} -\setlength{\evensidemargin}{0in} -\setlength{\marginparsep}{0pt} -\setlength{\marginparwidth}{0pt} -\setlength{\footskip}{0pt} - -%% Don't write footers. -\rfoot[]{} -\lfoot[]{} -\cfoot[]{} -\def\footrule{} - -%% Hook function to print credit and add subsections to TOC. -\def\m17nhook{ -\newpage -\thispagestyle{empty} -\vspace*{\fill} -Copyright (C) 2001 Information-technology Promotion Agency (IPA)\\ -Copyright (C) 2001-2004 National Institute of Advanced Industrial Science and Technology (AIST) - -Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.2 or -any later version published by the Free Software Foundation; with no -Invariant Section, Front-Cover Texts ``The m17n library -documentation'', and no Back-Cover Texts. A copy of the license is -included in the appendix entitled ``GNU Free Documentation License''. -} - -%% 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 diff --git a/styles/m17n-lib.sty b/styles/m17n-lib.sty new file mode 100644 index 0000000..700fea2 --- /dev/null +++ b/styles/m17n-lib.sty @@ -0,0 +1,53 @@ +\ProvidesPackage{m17n-lib} +%% Don't leave a space for marginal notes and foot notes. +\setlength{\textwidth}{\paperwidth} +\addtolength{\textwidth}{-2in} +\setlength{\textheight}{\paperheight} +\addtolength{\textheight}{-2in} +\addtolength{\textheight}{-\headheight} +\addtolength{\textheight}{-\headsep} +\setlength{\headwidth}{\textwidth} +\setlength{\topmargin}{0in} +\setlength{\oddsidemargin}{0in} +\setlength{\evensidemargin}{0in} +\setlength{\marginparsep}{0pt} +\setlength{\marginparwidth}{0pt} +\setlength{\footskip}{0pt} + +%% Don't write footers. +\rfoot[]{} +\lfoot[]{} +\cfoot[]{} +\def\footrule{} + +%% Hook function to print credit and add subsections to TOC. +\def\m17nhook{ +\newpage +\thispagestyle{empty} +\vspace*{\fill} +Copyright (C) 2001 Information-technology Promotion Agency (IPA)\\ +Copyright (C) 2001-2004 National Institute of Advanced Industrial Science and Technology (AIST) + +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.2 or +any later version published by the Free Software Foundation; with no +Invariant Section, Front-Cover Texts ``The m17n library +documentation'', and no Back-Cover Texts. A copy of the license is +included in the appendix entitled ``GNU Free Documentation License''. +} + +%% 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}}} + +\def\IPAlabel#1{} +\def\IPApage#1{} + +\raggedright diff --git a/utils/latex.sh b/utils/latex.sh index 73a6be5..6003c07 100755 --- a/utils/latex.sh +++ b/utils/latex.sh @@ -5,7 +5,7 @@ umask 002 USR_JA_DEV=`dirname $1` -TEXINPUTS=`pwd`/styles:`pwd`/data-${USR_JA_DEV}:.: +TEXINPUTS=`pwd`/styles:.: export TEXINPUTS cd $1 LATEX=$2 -- 1.7.10.4