pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

(print/tex-ptex) Add update to fix broken at pkgsrc/print/tex-ptex



Module Name:	pkgsrc-wip
Committed By:	Makoto Fujiwara (CF-S9) <makoto%ki.nu@localhost>
Pushed By:	mef
Date:		Sat Mar 25 16:47:57 2017 +0900
Changeset:	3319d0a18bd840b5cec310c92972948d91a1483f

Added Files:
	tex-ptex/DESCR
	tex-ptex/Makefile
	tex-ptex/PLIST
	tex-ptex/TODO
	tex-ptex/distinfo
	tex-ptex/files/README
	tex-ptex/files/ptex.tar.xz
	tex-ptex/files/texmf-dist/tex/platex/base/ascmac.sty
	tex-ptex/files/texmf-dist/tex/platex/base/jarticle.cls
	tex-ptex/files/texmf-dist/tex/platex/base/jarticle.sty
	tex-ptex/files/texmf-dist/tex/platex/base/jbk10.clo
	tex-ptex/files/texmf-dist/tex/platex/base/jbk11.clo
	tex-ptex/files/texmf-dist/tex/platex/base/jbk12.clo
	tex-ptex/files/texmf-dist/tex/platex/base/jbook.cls
	tex-ptex/files/texmf-dist/tex/platex/base/jbook.sty
	tex-ptex/files/texmf-dist/tex/platex/base/jltxdoc.cls
	tex-ptex/files/texmf-dist/tex/platex/base/jreport.cls
	tex-ptex/files/texmf-dist/tex/platex/base/jreport.sty
	tex-ptex/files/texmf-dist/tex/platex/base/jsize10.clo
	tex-ptex/files/texmf-dist/tex/platex/base/jsize11.clo
	tex-ptex/files/texmf-dist/tex/platex/base/jsize12.clo
	tex-ptex/files/texmf-dist/tex/platex/base/jt1gt.fd
	tex-ptex/files/texmf-dist/tex/platex/base/jt1mc.fd
	tex-ptex/files/texmf-dist/tex/platex/base/jy1gt.fd
	tex-ptex/files/texmf-dist/tex/platex/base/jy1mc.fd
	tex-ptex/files/texmf-dist/tex/platex/base/kinsoku.tex
	tex-ptex/files/texmf-dist/tex/platex/base/nidanfloat.sty
	tex-ptex/files/texmf-dist/tex/platex/base/oldpfont.sty
	tex-ptex/files/texmf-dist/tex/platex/base/pl209.def
	tex-ptex/files/texmf-dist/tex/platex/base/platex.ltx
	tex-ptex/files/texmf-dist/tex/platex/base/plcore.ltx
	tex-ptex/files/texmf-dist/tex/platex/base/pldefs.ltx
	tex-ptex/files/texmf-dist/tex/platex/base/plext.sty
	tex-ptex/files/texmf-dist/tex/platex/base/plnews.cls
	tex-ptex/files/texmf-dist/tex/platex/base/ptrace.sty
	tex-ptex/files/texmf-dist/tex/platex/base/tarticle.cls
	tex-ptex/files/texmf-dist/tex/platex/base/tarticle.sty
	tex-ptex/files/texmf-dist/tex/platex/base/tascmac.sty
	tex-ptex/files/texmf-dist/tex/platex/base/tbk10.clo
	tex-ptex/files/texmf-dist/tex/platex/base/tbk11.clo
	tex-ptex/files/texmf-dist/tex/platex/base/tbk12.clo
	tex-ptex/files/texmf-dist/tex/platex/base/tbook.cls
	tex-ptex/files/texmf-dist/tex/platex/base/tbook.sty
	tex-ptex/files/texmf-dist/tex/platex/base/treport.cls
	tex-ptex/files/texmf-dist/tex/platex/base/treport.sty
	tex-ptex/files/texmf-dist/tex/platex/base/tsize10.clo
	tex-ptex/files/texmf-dist/tex/platex/base/tsize11.clo
	tex-ptex/files/texmf-dist/tex/platex/base/tsize12.clo
	tex-ptex/files/texmf-dist/tex/platex/config/hyphen.cfg
	tex-ptex/files/texmf-dist/tex/platex/config/platex.ini

Log Message:
 (print/tex-ptex) Add update to fix broken at pkgsrc/print/tex-ptex

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3319d0a18bd840b5cec310c92972948d91a1483f

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 tex-ptex/DESCR                                     |    4 +
 tex-ptex/Makefile                                  |   43 +
 tex-ptex/PLIST                                     |   46 +
 tex-ptex/TODO                                      |    9 +
 tex-ptex/distinfo                                  |    6 +
 tex-ptex/files/README                              |    9 +
 tex-ptex/files/ptex.tar.xz                         |  Bin 0 -> 79756 bytes
 .../files/texmf-dist/tex/platex/base/ascmac.sty    |    1 +
 .../files/texmf-dist/tex/platex/base/jarticle.cls  |  807 +++++++++++++++
 .../files/texmf-dist/tex/platex/base/jarticle.sty  |   45 +
 .../files/texmf-dist/tex/platex/base/jbk10.clo     |  315 ++++++
 .../files/texmf-dist/tex/platex/base/jbk11.clo     |  315 ++++++
 .../files/texmf-dist/tex/platex/base/jbk12.clo     |  315 ++++++
 .../files/texmf-dist/tex/platex/base/jbook.cls     |  897 +++++++++++++++++
 .../files/texmf-dist/tex/platex/base/jbook.sty     |   45 +
 .../files/texmf-dist/tex/platex/base/jltxdoc.cls   |   91 ++
 .../files/texmf-dist/tex/platex/base/jreport.cls   |  895 +++++++++++++++++
 .../files/texmf-dist/tex/platex/base/jreport.sty   |   45 +
 .../files/texmf-dist/tex/platex/base/jsize10.clo   |  320 ++++++
 .../files/texmf-dist/tex/platex/base/jsize11.clo   |  320 ++++++
 .../files/texmf-dist/tex/platex/base/jsize12.clo   |  320 ++++++
 tex-ptex/files/texmf-dist/tex/platex/base/jt1gt.fd |   51 +
 tex-ptex/files/texmf-dist/tex/platex/base/jt1mc.fd |   52 +
 tex-ptex/files/texmf-dist/tex/platex/base/jy1gt.fd |   51 +
 tex-ptex/files/texmf-dist/tex/platex/base/jy1mc.fd |   52 +
 .../files/texmf-dist/tex/platex/base/kinsoku.tex   |  177 ++++
 .../texmf-dist/tex/platex/base/nidanfloat.sty      |  655 ++++++++++++
 .../files/texmf-dist/tex/platex/base/oldpfont.sty  |   78 ++
 .../files/texmf-dist/tex/platex/base/pl209.def     |  106 ++
 .../files/texmf-dist/tex/platex/base/platex.ltx    |   57 ++
 .../files/texmf-dist/tex/platex/base/plcore.ltx    | 1060 ++++++++++++++++++++
 .../files/texmf-dist/tex/platex/base/pldefs.ltx    |  106 ++
 .../files/texmf-dist/tex/platex/base/plext.sty     |  566 +++++++++++
 .../files/texmf-dist/tex/platex/base/plnews.cls    |  100 ++
 .../files/texmf-dist/tex/platex/base/ptrace.sty    |  154 +++
 .../files/texmf-dist/tex/platex/base/tarticle.cls  |  808 +++++++++++++++
 .../files/texmf-dist/tex/platex/base/tarticle.sty  |   45 +
 .../files/texmf-dist/tex/platex/base/tascmac.sty   |  171 ++++
 .../files/texmf-dist/tex/platex/base/tbk10.clo     |  323 ++++++
 .../files/texmf-dist/tex/platex/base/tbk11.clo     |  323 ++++++
 .../files/texmf-dist/tex/platex/base/tbk12.clo     |  323 ++++++
 .../files/texmf-dist/tex/platex/base/tbook.cls     |  898 +++++++++++++++++
 .../files/texmf-dist/tex/platex/base/tbook.sty     |   45 +
 .../files/texmf-dist/tex/platex/base/treport.cls   |  896 +++++++++++++++++
 .../files/texmf-dist/tex/platex/base/treport.sty   |   45 +
 .../files/texmf-dist/tex/platex/base/tsize10.clo   |  323 ++++++
 .../files/texmf-dist/tex/platex/base/tsize11.clo   |  323 ++++++
 .../files/texmf-dist/tex/platex/base/tsize12.clo   |  323 ++++++
 .../files/texmf-dist/tex/platex/config/hyphen.cfg  |  244 +++++
 .../files/texmf-dist/tex/platex/config/platex.ini  |   31 +
 50 files changed, 13234 insertions(+)

diffs:
diff --git a/tex-ptex/DESCR b/tex-ptex/DESCR
new file mode 100644
index 0000000000..ef733f2148
--- /dev/null
+++ b/tex-ptex/DESCR
@@ -0,0 +1,4 @@
+PTeX adds features related to vertical writing, and deals with other
+problems in typesetting Japanese. A set of additions to a TEXMF tree,
+for use with PTeX, may be found in package PTeX- texmf. PTeX is
+distributed as WEB change files.
diff --git a/tex-ptex/Makefile b/tex-ptex/Makefile
new file mode 100644
index 0000000000..41f5cb7dd7
--- /dev/null
+++ b/tex-ptex/Makefile
@@ -0,0 +1,43 @@
+# $NetBSD: Makefile,v 1.5 2016/06/16 04:06:15 markd Exp $
+
+DISTNAME=	ptex
+PKGNAME=	tex-${DISTNAME}-3.2pl41220
+TEXLIVE_REV=	41220
+
+MAINTAINER=	minskim%NetBSD.org@localhost
+COMMENT=	TeX system for publishing in Japanese
+
+CONFLICTS+=	ja-ptex-bin-[0-9]*
+DEPENDS+=	tex-adobemapping-[0-9]*:../../fonts/tex-adobemapping
+DEPENDS+=	tex-hyph-utf8-[0-9]*:../../print/tex-hyph-utf8
+DEPENDS+=	tex-hyphen-base-[0-9]*:../../print/tex-hyphen-base
+DEPENDS+=	tex-ipaex-[0-9]*:../../fonts/tex-ipaex
+DEPENDS+=	tex-japanese-[0-9]*:../../print/tex-japanese
+DEPENDS+=	tex-japanese-otf-[0-9]*:../../fonts/tex-japanese-otf
+DEPENDS+=	tex-latex>=2010:../../print/tex-latex
+DEPENDS+=	tex-pbibtex-base-[0-9]*:../../print/tex-pbibtex-base
+DEPENDS+=	tex-ptex-base-[0-9]*:../../print/tex-ptex-base
+DEPENDS+=	tex-ptex-fonts-[0-9]*:../../fonts/tex-ptex-fonts
+DEPENDS+=	tex-tex-[0-9]*:../../print/tex-tex
+# switch.def
+DEPENDS+=	tex-babel-[0-9]*:../../print/tex-babel
+DEPENDS+=	web2c>=2010nb5:../../print/web2c
+
+#PKG_SYSCONFSUBDIR=	texmf
+
+INSTALLATION_DIRS+=	bin
+
+TEX_FORMATS+=		"ptex ptex - ptex.ini\\neptex eptex language.def *eptex.ini\\nplatex eptex language.dat *platex.ini\\n"
+TEX_KANJIMAP_FILES+=	morisawa.map
+#TEX_TEXMF_DIRS+=	${PKG_SYSCONFDIR}
+#TEX_TEXMF_DIRS+=	${PREFIX}/share/texmf-dist
+
+.include "../../print/texlive/package.mk"
+
+post-extract:
+	${CP} -pr ${FILESDIR}/texmf-dist ${WRKSRC}
+
+post-install:
+	${LN} -sf eptex ${DESTDIR}${PREFIX}/bin/platex
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/tex-ptex/PLIST b/tex-ptex/PLIST
new file mode 100644
index 0000000000..de279bd389
--- /dev/null
+++ b/tex-ptex/PLIST
@@ -0,0 +1,46 @@
+@comment $NetBSD$
+bin/platex
+share/texmf-dist/fonts/map/dvipdfmx/ptex/morisawa.map
+share/texmf-dist/tex/platex/base/ascmac.sty
+share/texmf-dist/tex/platex/base/jarticle.cls
+share/texmf-dist/tex/platex/base/jarticle.sty
+share/texmf-dist/tex/platex/base/jbk10.clo
+share/texmf-dist/tex/platex/base/jbk11.clo
+share/texmf-dist/tex/platex/base/jbk12.clo
+share/texmf-dist/tex/platex/base/jbook.cls
+share/texmf-dist/tex/platex/base/jbook.sty
+share/texmf-dist/tex/platex/base/jltxdoc.cls
+share/texmf-dist/tex/platex/base/jreport.cls
+share/texmf-dist/tex/platex/base/jreport.sty
+share/texmf-dist/tex/platex/base/jsize10.clo
+share/texmf-dist/tex/platex/base/jsize11.clo
+share/texmf-dist/tex/platex/base/jsize12.clo
+share/texmf-dist/tex/platex/base/jt1gt.fd
+share/texmf-dist/tex/platex/base/jt1mc.fd
+share/texmf-dist/tex/platex/base/jy1gt.fd
+share/texmf-dist/tex/platex/base/jy1mc.fd
+share/texmf-dist/tex/platex/base/kinsoku.tex
+share/texmf-dist/tex/platex/base/nidanfloat.sty
+share/texmf-dist/tex/platex/base/oldpfont.sty
+share/texmf-dist/tex/platex/base/pl209.def
+share/texmf-dist/tex/platex/base/platex.ltx
+share/texmf-dist/tex/platex/base/plcore.ltx
+share/texmf-dist/tex/platex/base/pldefs.ltx
+share/texmf-dist/tex/platex/base/plext.sty
+share/texmf-dist/tex/platex/base/plnews.cls
+share/texmf-dist/tex/platex/base/ptrace.sty
+share/texmf-dist/tex/platex/base/tarticle.cls
+share/texmf-dist/tex/platex/base/tarticle.sty
+share/texmf-dist/tex/platex/base/tascmac.sty
+share/texmf-dist/tex/platex/base/tbk10.clo
+share/texmf-dist/tex/platex/base/tbk11.clo
+share/texmf-dist/tex/platex/base/tbk12.clo
+share/texmf-dist/tex/platex/base/tbook.cls
+share/texmf-dist/tex/platex/base/tbook.sty
+share/texmf-dist/tex/platex/base/treport.cls
+share/texmf-dist/tex/platex/base/treport.sty
+share/texmf-dist/tex/platex/base/tsize10.clo
+share/texmf-dist/tex/platex/base/tsize11.clo
+share/texmf-dist/tex/platex/base/tsize12.clo
+share/texmf-dist/tex/platex/config/hyphen.cfg
+share/texmf-dist/tex/platex/config/platex.ini
diff --git a/tex-ptex/TODO b/tex-ptex/TODO
new file mode 100644
index 0000000000..32b60c632e
--- /dev/null
+++ b/tex-ptex/TODO
@@ -0,0 +1,9 @@
+To test, process following file with 
+platex test.tex
+
+-------- test.tex ---------
+\documentclass{jarticle}
+\begin{document}
+test
+\end{document}
+---------------------------
diff --git a/tex-ptex/distinfo b/tex-ptex/distinfo
new file mode 100644
index 0000000000..5526be420e
--- /dev/null
+++ b/tex-ptex/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.6 2016/06/16 04:06:15 markd Exp $
+
+SHA1 (tex-ptex-41220/ptex.tar.xz) = aa8cf126f670f97e899abe7356d8da5941e53526
+RMD160 (tex-ptex-41220/ptex.tar.xz) = e4c08c48bab87e9e6196a5775ffec55147e50bca
+SHA512 (tex-ptex-41220/ptex.tar.xz) = 8a982d59ed6bde4b579bb668e2b3ba019ddd9fe35e60d975efdeaa28b3544bb6d84ba3e5ef019f87f6788c162bf07e43bb9b83d3d1662c19f3713045dbc92881
+Size (tex-ptex-41220/ptex.tar.xz) = 872 bytes
diff --git a/tex-ptex/files/README b/tex-ptex/files/README
new file mode 100644
index 0000000000..9b3ff7fa94
--- /dev/null
+++ b/tex-ptex/files/README
@@ -0,0 +1,9 @@
+Missing files fetched from old texlive,
+tex-ptex-36135/ptex.tar.xz
+is located here.
+And actual necessary files can be retrieved by
+
+tar zvtf ptex.tar.xz texmf-dist/tex/platex/{base,config} |wc
+      44     404    4019
+
+tar zxf ptex.tar.xz texmf-dist/tex/platex/{base,config}
diff --git a/tex-ptex/files/ptex.tar.xz b/tex-ptex/files/ptex.tar.xz
new file mode 100644
index 0000000000..06f87f448e
Binary files /dev/null and b/tex-ptex/files/ptex.tar.xz differ
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/ascmac.sty b/tex-ptex/files/texmf-dist/tex/platex/base/ascmac.sty
new file mode 100644
index 0000000000..f8040314ba
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/ascmac.sty
@@ -0,0 +1 @@
+\input{tascmac.sty}
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/jarticle.cls b/tex-ptex/files/texmf-dist/tex/platex/base/jarticle.cls
new file mode 100644
index 0000000000..133d138099
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/jarticle.cls
@@ -0,0 +1,807 @@
+%%
+%% This is file `jarticle.cls',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% jclasses.dtx  (with options: `article,yoko')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from jarticle.cls.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file jclasses.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: jclasses.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\ProvidesClass{jarticle}
+  [2006/06/27 v1.6
+ Standard pLaTeX class]
+\newcounter{@paper}
+\newif\if@landscape \@landscapefalse
+\newcommand{\@ptsize}{}
+\newif\if@restonecol
+\newif\if@titlepage
+\@titlepagefalse
+\hour\time \divide\hour by 60\relax
+\@tempcnta\hour \multiply\@tempcnta 60\relax
+\minute\time \advance\minute-\@tempcnta
+\newif\if@stysize \@stysizefalse
+\newif\if@enablejfam \@enablejfamtrue
+\newif\if@mathrmmc \@mathrmmcfalse
+\DeclareOption{a4paper}{\setcounter{@paper}{1}%
+  \setlength\paperheight {297mm}%
+  \setlength\paperwidth  {210mm}}
+\DeclareOption{a5paper}{\setcounter{@paper}{2}%
+  \setlength\paperheight {210mm}
+  \setlength\paperwidth  {148mm}}
+\DeclareOption{b4paper}{\setcounter{@paper}{3}%
+  \setlength\paperheight {364mm}
+  \setlength\paperwidth  {257mm}}
+\DeclareOption{b5paper}{\setcounter{@paper}{4}%
+  \setlength\paperheight {257mm}
+  \setlength\paperwidth  {182mm}}
+\DeclareOption{a4j}{\setcounter{@paper}{1}\@stysizetrue
+  \setlength\paperheight {297mm}%
+  \setlength\paperwidth  {210mm}}
+\DeclareOption{a5j}{\setcounter{@paper}{2}\@stysizetrue
+  \setlength\paperheight {210mm}
+  \setlength\paperwidth  {148mm}}
+\DeclareOption{b4j}{\setcounter{@paper}{3}\@stysizetrue
+  \setlength\paperheight {364mm}
+  \setlength\paperwidth  {257mm}}
+\DeclareOption{b5j}{\setcounter{@paper}{4}\@stysizetrue
+  \setlength\paperheight {257mm}
+  \setlength\paperwidth  {182mm}}
+\DeclareOption{a4p}{\setcounter{@paper}{1}\@stysizetrue
+  \setlength\paperheight {297mm}%
+  \setlength\paperwidth  {210mm}}
+\DeclareOption{a5p}{\setcounter{@paper}{2}\@stysizetrue
+  \setlength\paperheight {210mm}
+  \setlength\paperwidth  {148mm}}
+\DeclareOption{b4p}{\setcounter{@paper}{3}\@stysizetrue
+  \setlength\paperheight {364mm}
+  \setlength\paperwidth  {257mm}}
+\DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
+  \setlength\paperheight {257mm}
+  \setlength\paperwidth  {182mm}}
+\if@compatibility
+  \renewcommand{\@ptsize}{0}
+\else
+  \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
+\fi
+\DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
+\DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
+\DeclareOption{landscape}{\@landscapetrue
+  \setlength\@tempdima{\paperheight}%
+  \setlength\paperheight{\paperwidth}%
+  \setlength\paperwidth{\@tempdima}}
+\DeclareOption{tombow}{%
+  \tombowtrue \tombowdatetrue
+  \setlength{\@tombowwidth}{.1\p@}%
+  \@bannertoken{%
+     \jobname\space:\space\number\year/\number\month/\number\day
+      (\number\hour:\number\minute)}
+  \maketombowbox}
+\DeclareOption{tombo}{%
+  \tombowtrue \tombowdatefalse
+  \setlength{\@tombowwidth}{.1\p@}%
+  \maketombowbox}
+\DeclareOption{mentuke}{%
+  \tombowtrue \tombowdatefalse
+  \setlength{\@tombowwidth}{\z@}%
+  \maketombowbox}
+\DeclareOption{tate}{%
+  \AtBeginDocument{\tate\message{$B!T=DAH%b!<%I!U(B}%
+                   \adjustbaseline}%
+}
+\DeclareOption{oneside}{\@twosidefalse}
+\DeclareOption{twoside}{\@twosidetrue}
+\DeclareOption{onecolumn}{\@twocolumnfalse}
+\DeclareOption{twocolumn}{\@twocolumntrue}
+\DeclareOption{titlepage}{\@titlepagetrue}
+\DeclareOption{notitlepage}{\@titlepagefalse}
+\DeclareOption{leqno}{\input{leqno.clo}}
+\DeclareOption{fleqn}{\input{fleqn.clo}}
+\DeclareOption{openbib}{%
+  \AtEndOfPackage{%
+   \renewcommand\@openbib@code{%
+      \advance\leftmargin\bibindent
+      \itemindent -\bibindent
+      \listparindent \itemindent
+      \parsep \z@
+      }%
+   \renewcommand\newblock{\par}}}
+\if@compatibility
+  \@mathrmmctrue
+\else
+  \DeclareOption{disablejfam}{\@enablejfamfalse}
+  \DeclareOption{mathrmmc}{\@mathrmmctrue}
+\fi
+\DeclareOption{draft}{\setlength\overfullrule{5pt}}
+\DeclareOption{final}{\setlength\overfullrule{0pt}}
+\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final}
+\ProcessOptions\relax
+\input{jsize1\@ptsize.clo}
+\if@stysize
+  \setlength\columnsep{2\Cwd}
+\else
+  \setlength\columnsep{10\p@}
+\fi
+\setlength\columnseprule{0\p@}
+\setlength\lineskip{1\p@}
+\setlength\normallineskip{1\p@}
+\renewcommand{\baselinestretch}{}
+\setlength\parskip{0\p@ \@plus \p@}
+\setlength\parindent{1\Cwd}
+\@lowpenalty   51
+\@medpenalty  151
+\@highpenalty 301
+\setcounter{topnumber}{2}
+\setcounter{bottomnumber}{1}
+\setcounter{totalnumber}{3}
+\setcounter{dbltopnumber}{2}
+\renewcommand{\topfraction}{.7}
+\renewcommand{\bottomfraction}{.3}
+\renewcommand{\textfraction}{.2}
+\renewcommand{\floatpagefraction}{.5}
+\renewcommand{\dbltopfraction}{.7}
+\renewcommand{\dblfloatpagefraction}{.5}
+\def\ps@plain{\let\@mkboth\@gobbletwo
+   \let\ps@jpl@in\ps@plain
+   \let\@oddhead\@empty
+   \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
+   \let\@evenhead\@empty
+   \let\@evenfoot\@oddfoot}
+\let\ps@jpl@in\ps@plain
+\def\ps@headnombre{\let\@mkboth\@gobbletwo
+    \let\ps@jpl@in\ps@headnombre
+  \def\@evenhead{\thepage\hfil}%
+  \def\@oddhead{\hfil\thepage}%
+  \let\@oddfoot\@empty\let\@evenfoot\@empty}
+\def\ps@footnombre{\let\@mkboth\@gobbletwo
+    \let\ps@jpl@in\ps@footnombre
+  \def\@evenfoot{\thepage\hfil}%
+  \def\@oddfoot{\hfil\thepage}%
+  \let\@oddhead\@empty\let\@evenhead\@empty}
+\if@twoside
+  \def\ps@headings{\let\ps@jpl@in\ps@headnombre
+    \let\@oddfoot\@empty\let\@evenfoot\@empty
+    \def\@evenhead{\thepage\hfil\leftmark}%
+    \def\@oddhead{{\rightmark}\hfil\thepage}%
+    \let\@mkboth\markboth
+    \def\sectionmark##1{\markboth{%
+       \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi
+       ##1}{}}%
+    \def\subsectionmark##1{\markright{%
+       \ifnum \c@secnumdepth >\@ne \thesubsection.\hskip1zw\fi
+       ##1}}%
+  }
+\else % if not twoside
+  \def\ps@headings{\let\ps@jpl@in\ps@headnombre
+    \let\@oddfoot\@empty
+    \def\@oddhead{{\rightmark}\hfil\thepage}%
+    \let\@mkboth\markboth
+  \def\sectionmark##1{\markright{%
+     \ifnum \c@secnumdepth >\m@ne \thesection.\hskip1zw\fi
+     ##1}}%
+  }
+\fi
+\if@twoside
+  \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
+    \def\@evenhead{\leftmark\hfil}% right page
+    \def\@evenfoot{\thepage\hfil}% right page
+    \def\@oddhead{\hfil\rightmark}% left page
+    \def\@oddfoot{\hfil\thepage}% left page
+  \let\@mkboth\markboth
+  \def\sectionmark##1{\markboth{%
+     \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi
+     ##1}{}}%
+  \def\subsectionmark##1{\markright{%
+     \ifnum \c@secnumdepth >\@ne \thesubsection.\hskip1zw\fi
+     ##1}}%
+  }
+\else % if one column
+  \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
+    \def\@oddhead{\hfil\rightmark}%
+    \def\@oddfoot{\hfil\thepage}%
+    \let\@mkboth\markboth
+  \def\sectionmark##1{\markright{%
+     \ifnum \c@secnumdepth >\m@ne \thesection.\hskip1zw\fi
+     ##1}}%
+  }
+\fi
+\def\ps@myheadings{\let\ps@jpl@in\ps@plain%
+  \let\@oddfoot\@empty\let\@evenfoot\@empty
+  \def\@evenhead{\thepage\hfil\leftmark}%
+  \def\@oddhead{{\rightmark}\hfil\thepage}%
+  \let\@mkboth\@gobbletwo
+  \let\sectionmark\@gobble
+  \let\subsectionmark\@gobble
+}
+\if@compatibility
+\newenvironment{titlepage}
+    {%
+     \if@twocolumn\@restonecoltrue\onecolumn
+     \else\@restonecolfalse\newpage\fi
+     \thispagestyle{empty}%
+     \setcounter{page}\z@
+    }%
+    {\if@restonecol\twocolumn\else\newpage\fi
+    }
+\else
+\newenvironment{titlepage}
+    {%
+      \if@twocolumn
+        \@restonecoltrue\onecolumn
+      \else
+        \@restonecolfalse\newpage
+      \fi
+      \thispagestyle{empty}%
+      \setcounter{page}\@ne
+    }%
+    {\if@restonecol\twocolumn \else \newpage \fi
+     \if@twoside\else
+        \setcounter{page}\@ne
+     \fi
+    }
+\fi
+\def\p@thanks#1{\footnotemark
+  \protected@xdef\@thanks{\@thanks
+    \protect{\noindent$\m@th^\thefootnote$~#1\protect\par}}}
+\if@titlepage
+  \newcommand{\maketitle}{\begin{titlepage}%
+  \let\footnotesize\small
+  \let\footnoterule\relax
+  \let\footnote\thanks
+  \null\vfil
+  \vskip 60\p@
+  \begin{center}%
+    {\LARGE \@title \par}%
+    \vskip 3em%
+    {\Large
+     \lineskip .75em%
+      \begin{tabular}[t]{c}%
+        \@author
+      \end{tabular}\par}%
+      \vskip 1.5em%
+    {\large \@date \par}%       % Set date in \large size.
+  \end{center}\par
+  \@thanks\vfil\null
+  \end{titlepage}%
+  \setcounter{footnote}{0}%
+  \global\let\thanks\relax
+  \global\let\maketitle\relax
+  \global\let\p@thanks\relax
+  \global\let\@thanks\@empty
+  \global\let\@author\@empty
+  \global\let\@date\@empty
+  \global\let\@title\@empty
+  \global\let\title\relax
+  \global\let\author\relax
+  \global\let\date\relax
+  \global\let\and\relax
+  }%
+\else
+  \newcommand{\maketitle}{\par
+  \begingroup
+    \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
+    \def\@makefnmark{\hbox{\ifydir $\m@th^{\@thefnmark}$
+      \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
+     \long\def\@makefntext##1{\parindent 1em\noindent
+       \hbox to1.8em{\hss$\m@th^{\@thefnmark}$}##1}%
+    \if@twocolumn
+      \ifnum \col@number=\@ne \@maketitle
+      \else \twocolumn[\@maketitle]%
+      \fi
+    \else
+      \newpage
+      \global\@topnum\z@   % Prevents figures from going at top of page.
+      \@maketitle
+    \fi
+     \thispagestyle{jpl@in}\@thanks
+  \endgroup
+  \setcounter{footnote}{0}%
+  \global\let\thanks\relax
+  \global\let\maketitle\relax
+  \global\let\p@thanks\relax
+  \global\let\@thanks\@empty
+  \global\let\@author\@empty
+  \global\let\@date\@empty
+  \global\let\@title\@empty
+  \global\let\title\relax
+  \global\let\author\relax
+  \global\let\date\relax
+  \global\let\and\relax
+  }
+  \def\@maketitle{%
+  \newpage\null
+  \vskip 2em%
+  \begin{center}%
+  \let\footnote\thanks
+    {\LARGE \@title \par}%
+    \vskip 1.5em%
+    {\large
+      \lineskip .5em%
+      \begin{tabular}[t]{c}%
+        \@author
+      \end{tabular}\par}%
+    \vskip 1em%
+    {\large \@date}%
+  \end{center}%
+  \par\vskip 1.5em}
+\fi
+\if@titlepage
+  \newenvironment{abstract}{%
+      \titlepage
+      \null\vfil
+      \@beginparpenalty\@lowpenalty
+      \begin{center}%
+        {\bfseries\abstractname}%
+        \@endparpenalty\@M
+      \end{center}}%
+      {\par\vfil\null\endtitlepage}
+\else
+  \newenvironment{abstract}{%
+    \if@twocolumn
+      \section*{\abstractname}%
+    \else
+      \small
+      \begin{center}%
+        {\bfseries\abstractname\vspace{-.5em}\vspace{\z@}}%
+      \end{center}%
+      \quotation
+    \fi}{\if@twocolumn\else\endquotation\fi}
+\fi
+\setcounter{secnumdepth}{3}
+\newcounter{part}
+\newcounter{section}
+\newcounter{subsection}[section]
+\newcounter{subsubsection}[subsection]
+\newcounter{paragraph}[subsubsection]
+\newcounter{subparagraph}[paragraph]
+\renewcommand{\thepart}{\@Roman\c@part}
+\renewcommand{\thesection}{\@arabic\c@section}
+\renewcommand{\thesubsection}{\thesection.\@arabic\c@subsection}
+\renewcommand{\thesubsubsection}{%
+   \thesubsection.\@arabic\c@subsubsection}
+\renewcommand{\theparagraph}{%
+   \thesubsubsection.\@arabic\c@paragraph}
+\renewcommand{\thesubparagraph}{%
+   \theparagraph.\@arabic\c@subparagraph}
+\newcommand{\part}{\par\addvspace{4ex}%
+  \@afterindenttrue
+  \secdef\@part\@spart}
+\def\@part[#1]#2{%
+  \ifnum \c@secnumdepth >\m@ne
+    \refstepcounter{part}%
+    \addcontentsline{toc}{part}{%
+       \prepartname\thepart\postpartname\hspace{1zw}#1}%
+  \else
+    \addcontentsline{toc}{part}{#1}%
+  \fi
+  \markboth{}{}%
+  {\parindent\z@\raggedright
+   \interlinepenalty\@M\reset@font
+   \ifnum \c@secnumdepth >\m@ne
+     \Large\bfseries\prepartname\thepart\postpartname
+     \par\nobreak
+   \fi
+   \huge\bfseries#2\par}%
+  \nobreak\vskip3ex\@afterheading}
+\def\@spart#1{{%
+  \parindent\z@\raggedright
+  \interlinepenalty\@M\reset@font
+  \huge\bfseries#1\par}%
+  \nobreak\vskip3ex\@afterheading}
+\newcommand{\section}{\@startsection{section}{1}{\z@}%
+   {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
+   {.5\Cvs \@plus.3\Cvs}%
+   {\reset@font\Large\bfseries}}
+\newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
+   {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
+   {.5\Cvs \@plus.3\Cvs}%
+   {\reset@font\large\bfseries}}
+\newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
+   {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
+   {.5\Cvs \@plus.3\Cvs}%
+   {\reset@font\normalsize\bfseries}}
+\newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
+   {3.25ex \@plus 1ex \@minus .2ex}%
+   {-1em}%
+   {\reset@font\normalsize\bfseries}}
+\newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
+   {3.25ex \@plus 1ex \@minus .2ex}%
+   {-1em}%
+   {\reset@font\normalsize\bfseries}}
+\newcommand{\appendix}{\par
+  \setcounter{section}{0}%
+  \setcounter{subsection}{0}%
+  \renewcommand{\thesection}{\@Alph\c@section}}
+\if@twocolumn
+  \setlength\leftmargini {2em}
+\else
+  \setlength\leftmargini {2.5em}
+\fi
+\setlength\leftmarginii  {2.2em}
+\setlength\leftmarginiii {1.87em}
+\setlength\leftmarginiv  {1.7em}
+\if@twocolumn
+  \setlength\leftmarginv {.5em}
+  \setlength\leftmarginvi{.5em}
+\else
+  \setlength\leftmarginv {1em}
+  \setlength\leftmarginvi{1em}
+\fi
+\setlength  \labelsep  {.5em}
+\setlength  \labelwidth{\leftmargini}
+\addtolength\labelwidth{-\labelsep}
+\@beginparpenalty -\@lowpenalty
+\@endparpenalty   -\@lowpenalty
+\@itempenalty     -\@lowpenalty
+\renewcommand{\theenumi}{\@arabic\c@enumi}
+\renewcommand{\theenumii}{\@alph\c@enumii}
+\renewcommand{\theenumiii}{\@roman\c@enumiii}
+\renewcommand{\theenumiv}{\@Alph\c@enumiv}
+\newcommand{\labelenumi}{\theenumi.}
+\newcommand{\labelenumii}{(\theenumii)}
+\newcommand{\labelenumiii}{\theenumiii.}
+\newcommand{\labelenumiv}{\theenumiv.}
+\renewcommand{\p@enumii}{\theenumi}
+\renewcommand{\p@enumiii}{\theenumi(\theenumii)}
+\renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
+\renewenvironment{enumerate}
+  {\ifnum \@enumdepth >\thr@@\@toodeep\else
+   \advance\@enumdepth\@ne
+   \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
+   \list{\csname label\@enumctr\endcsname}{%
+      \iftdir
+         \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
+           \else\topsep\z@\fi
+         \parskip\z@ \itemsep\z@ \parsep\z@
+         \labelwidth1zw \labelsep.3zw
+         \ifnum \@enumdepth=\@ne \leftmargin1zw\relax
+           \else\leftmargin\leftskip\fi
+         \advance\leftmargin 1zw
+      \fi
+         \usecounter{\@enumctr}%
+         \def\makelabel##1{\hss\llap{##1}}}%
+   \fi}{\endlist}
+\newcommand{\labelitemi}{\textbullet}
+\newcommand{\labelitemii}{%
+  \iftdir
+     {\textcircled{~}}
+  \else
+     {\normalfont\bfseries\textendash}
+  \fi
+}
+\newcommand{\labelitemiii}{\textasteriskcentered}
+\newcommand{\labelitemiv}{\textperiodcentered}
+\renewenvironment{itemize}
+  {\ifnum \@itemdepth >\thr@@\@toodeep\else
+   \advance\@itemdepth\@ne
+   \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
+   \expandafter
+   \list{\csname \@itemitem\endcsname}{%
+      \iftdir
+         \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
+           \else\topsep\z@\fi
+         \parskip\z@ \itemsep\z@ \parsep\z@
+         \labelwidth1zw \labelsep.3zw
+         \ifnum \@itemdepth =\@ne \leftmargin1zw\relax
+           \else\leftmargin\leftskip\fi
+         \advance\leftmargin 1zw
+      \fi
+         \def\makelabel##1{\hss\llap{##1}}}%
+   \fi}{\endlist}
+\newenvironment{description}
+  {\list{}{\labelwidth\z@ \itemindent-\leftmargin
+   \iftdir
+     \leftmargin\leftskip \advance\leftmargin3\Cwd
+     \rightmargin\rightskip
+     \labelsep=1zw \itemsep\z@
+     \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
+   \fi
+           \let\makelabel\descriptionlabel}}{\endlist}
+\newcommand{\descriptionlabel}[1]{%
+   \hspace\labelsep\normalfont\bfseries #1}
+\newenvironment{verse}
+  {\let\\\@centercr
+   \list{}{\itemsep\z@ \itemindent -1.5em%
+           \listparindent\itemindent
+           \rightmargin\leftmargin \advance\leftmargin 1.5em}%
+           \item\relax}{\endlist}
+\newenvironment{quotation}
+  {\list{}{\listparindent 1.5em%
+           \itemindent\listparindent
+           \rightmargin\leftmargin
+           \parsep\z@ \@plus\p@}%
+           \item\relax}{\endlist}
+\newenvironment{quote}
+  {\list{}{\rightmargin\leftmargin}%
+           \item\relax}{\endlist}
+\newcounter{figure}
+\renewcommand{\thefigure}{\@arabic\c@figure}
+\def\fps@figure{tbp}
+\def\ftype@figure{1}
+\def\ext@figure{lof}
+\def\fnum@figure{\figurename~\thefigure}
+\newenvironment{figure}
+               {\@float{figure}}
+               {\end@float}
+\newenvironment{figure*}
+               {\@dblfloat{figure}}
+               {\end@dblfloat}
+\newcounter{table}
+\renewcommand{\thetable}{\@arabic\c@table}
+\def\fps@table{tbp}
+\def\ftype@table{2}
+\def\ext@table{lot}
+\def\fnum@table{\tablename~\thetable}
+\newenvironment{table}
+               {\@float{table}}
+               {\end@float}
+\newenvironment{table*}
+               {\@dblfloat{table}}
+               {\end@dblfloat}
+\newlength\abovecaptionskip
+\newlength\belowcaptionskip
+\setlength\abovecaptionskip{10\p@}
+\setlength\belowcaptionskip{0\p@}
+\long\def\@makecaption#1#2{%
+  \vskip\abovecaptionskip
+  \iftdir\sbox\@tempboxa{#1\hskip1zw#2}%
+    \else\sbox\@tempboxa{#1: #2}%
+  \fi
+  \ifdim \wd\@tempboxa >\hsize
+    \iftdir #1\hskip1zw#2\relax\par
+      \else #1: #2\relax\par\fi
+  \else
+    \global \@minipagefalse
+    \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
+  \fi
+  \vskip\belowcaptionskip}
+\setlength\arraycolsep{5\p@}
+\setlength\tabcolsep{6\p@}
+\setlength\arrayrulewidth{.4\p@}
+\setlength\doublerulesep{2\p@}
+\setlength\tabbingsep{\labelsep}
+\skip\@mpfootins = \skip\footins
+\setlength\fboxsep{3\p@}
+\setlength\fboxrule{.4\p@}
+\renewcommand{\theequation}{\@arabic\c@equation}
+\if@enablejfam
+  \if@compatibility\else
+    \DeclareSymbolFont{mincho}{JY1}{mc}{m}{n}
+    \DeclareSymbolFontAlphabet{\mathmc}{mincho}
+    \SetSymbolFont{mincho}{bold}{JY1}{gt}{m}{n}
+    \jfam\symmincho
+    \DeclareMathAlphabet{\mathgt}{JY1}{gt}{m}{n}
+  \fi
+  \if@mathrmmc
+    \AtBeginDocument{%
+    \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
+    \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
+  }%
+  \fi
+\else
+  \DeclareRobustCommand{\mathmc}{%
+    \@latex@error{Command \noexpand\mathmc invalid with\space
+       `disablejfam' class option.}\@eha
+  }
+  \DeclareRobustCommand{\mathgt}{%
+    \@latex@error{Command \noexpand\mathgt invalid with\space
+       `disablejfam' class option.}\@eha
+  }
+\fi
+\DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
+\DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
+\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
+\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
+\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
+\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
+\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
+\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
+\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
+\DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
+\DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
+\setcounter{tocdepth}{3}
+\newcommand{\@pnumwidth}{1.55em}
+\newcommand{\@tocrmarg}{2.55em}
+\newcommand{\@dotsep}{4.5}
+\newdimen\toclineskip
+\setlength\toclineskip{\z@}
+\newdimen\@lnumwidth
+\def\numberline#1{\hbox to\@lnumwidth{#1\hfil}}
+\def\@dottedtocline#1#2#3#4#5{%
+  \ifnum #1>\c@tocdepth \else
+    \vskip\toclineskip \@plus.2\p@
+    {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
+     \parindent #2\relax\@afterindenttrue
+     \interlinepenalty\@M
+     \leavevmode
+     \@lnumwidth #3\relax
+     \advance\leftskip \@lnumwidth \hbox{}\hskip -\leftskip
+     {#4}\nobreak
+     \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
+     \hfill\nobreak
+     \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
+     \par}%
+  \fi}
+\def\addcontentsline#1#2#3{%
+  \protected@write\@auxout
+    {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
+\@temptokena{\thepage}}%
+    {\string\@writefile{#1}%
+       {\protect\contentsline{#2}{#3}{\the\@temptokena}}}%
+}
+\newcommand{\tableofcontents}{%
+  \section*{\contentsname
+    \@mkboth{\contentsname}{\contentsname}%
+  }\@starttoc{toc}%
+}
+\newcommand*{\l@part}[2]{%
+  \ifnum \c@tocdepth >-2\relax
+    \addpenalty{\@secpenalty}%
+    \addvspace{2.25em \@plus\p@}%
+    \begingroup
+    \parindent\z@\rightskip\@pnumwidth
+    \parfillskip-\@pnumwidth
+    {\leavevmode\large\bfseries
+     \setlength\@lnumwidth{4zw}%
+     #1\hfil\nobreak
+     \hbox to\@pnumwidth{\hss#2}}\par
+    \nobreak
+    \if@compatibility
+    \global\@nobreaktrue
+    \everypar{\global\@nobreakfalse\everypar{}}%
+    \fi
+     \endgroup
+  \fi}
+\newcommand*{\l@section}[2]{%
+  \ifnum \c@tocdepth >\z@
+    \addpenalty{\@secpenalty}%
+    \addvspace{1.0em \@plus\p@}%
+    \begingroup
+      \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
+      \leavevmode\bfseries
+      \setlength\@lnumwidth{1.5em}%
+      \advance\leftskip\@lnumwidth \hskip-\leftskip
+      #1\nobreak\hfil\nobreak\hbox to\@pnumwidth{\hss#2}\par
+    \endgroup
+  \fi}
+\newcommand*{\l@subsection}   {\@dottedtocline{2}{1.5em}{2.3em}}
+\newcommand*{\l@subsubsection}{\@dottedtocline{3}{3.8em}{3.2em}}
+\newcommand*{\l@paragraph}    {\@dottedtocline{4}{7.0em}{4.1em}}
+\newcommand*{\l@subparagraph} {\@dottedtocline{5}{10em}{5em}}
+\newcommand{\listoffigures}{%
+    \section*{\listfigurename
+  \@mkboth{\listfigurename}{\listfigurename}}%
+  \@starttoc{lof}%
+}
+\newcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.3em}}
+\newcommand{\listoftables}{%
+    \section*{\listtablename
+  \@mkboth{\listtablename}{\listtablename}}%
+  \@starttoc{lot}%
+}
+\let\l@table\l@figure
+\newdimen\bibindent
+\setlength\bibindent{1.5em}
+\newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
+\newenvironment{thebibliography}[1]
+{\section*{\refname\@mkboth{\refname}{\refname}}%
+   \list{\@biblabel{\@arabic\c@enumiv}}%
+        {\settowidth\labelwidth{\@biblabel{#1}}%
+         \leftmargin\labelwidth
+         \advance\leftmargin\labelsep
+         \@openbib@code
+         \usecounter{enumiv}%
+         \let\p@enumiv\@empty
+         \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+   \sloppy
+   \clubpenalty4000
+   \@clubpenalty\clubpenalty
+   \widowpenalty4000%
+   \sfcode`\.\@m}
+  {\def\@noitemerr
+    {\@latex@warning{Empty `thebibliography' environment}}%
+   \endlist}
+\let\@openbib@code\@empty
+\newenvironment{theindex}
+  {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
+   \columnseprule\z@ \columnsep 35\p@
+   \twocolumn[\section*{\indexname}]%
+   \@mkboth{\indexname}{\indexname}%
+   \thispagestyle{jpl@in}\parindent\z@
+   \parskip\z@ \@plus .3\p@\relax
+   \let\item\@idxitem}
+  {\if@restonecol\onecolumn\else\clearpage\fi}
+\newcommand{\@idxitem}{\par\hangindent 40\p@}
+\newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
+\newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
+\newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
+\renewcommand{\footnoterule}{%
+  \kern-3\p@
+  \hrule width .4\columnwidth
+  \kern 2.6\p@}
+\newcommand\@makefntext[1]{\parindent 1em
+  \noindent\hbox to 1.8em{\hss\@makefnmark}#1}
+\newif\if$B@>Nq(B \$B@>Nq(Bfalse
+\def\$B@>Nq(B{\$B@>Nq(Btrue}
+\def\$BOBNq(B{\$B@>Nq(Bfalse}
+\newcount\heisei \heisei\year \advance\heisei-1988\relax
+\def\today{{%
+  \iftdir
+    \if$B@>Nq(B
+      \kansuji\number\year $BG/(B
+      \kansuji\number\month $B7n(B
+      \kansuji\number\day $BF|(B
+    \else
+      $BJ?@.(B\ifnum\heisei=1 $B85G/(B\else\kansuji\number\heisei $BG/(B\fi
+      \kansuji\number\month $B7n(B
+      \kansuji\number\day $BF|(B
+    \fi
+  \else
+    \if$B@>Nq(B
+      \number\year~$BG/(B
+      \number\month~$B7n(B
+      \number\day~$BF|(B
+    \else
+      $BJ?@.(B\ifnum\heisei=1 $B85G/(B\else\number\heisei~$BG/(B\fi
+      \number\month~$B7n(B
+      \number\day~$BF|(B
+    \fi
+  \fi}}
+\newcommand{\prepartname}{$BBh(B}
+\newcommand{\postpartname}{$BIt(B}
+\newcommand{\contentsname}{$BL\(B $B<!(B}
+\newcommand{\listfigurename}{$B?^(B $BL\(B $B<!(B}
+\newcommand{\listtablename}{$BI=(B $BL\(B $B<!(B}
+\newcommand{\refname}{$B;29MJ88%(B}
+\newcommand{\indexname}{$B:w(B $B0z(B}
+\newcommand{\figurename}{$B?^(B}
+\newcommand{\tablename}{$BI=(B}
+\newcommand{\appendixname}{$BIU(B $BO?(B}
+\newcommand{\abstractname}{$B35(B $BMW(B}
+\pagestyle{plain}
+\pagenumbering{arabic}
+\raggedbottom
+\if@twocolumn
+  \twocolumn
+  \sloppy
+\else
+  \onecolumn
+\fi
+\if@twoside
+  \@mparswitchtrue
+\else
+  \@mparswitchfalse
+\fi
+\endinput
+%%
+%% End of file `jarticle.cls'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/jarticle.sty b/tex-ptex/files/texmf-dist/tex/platex/base/jarticle.sty
new file mode 100644
index 0000000000..fc9ebc0ad7
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/jarticle.sty
@@ -0,0 +1,45 @@
+%%
+%% This is file `jarticle.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% pl209.dtx  (with options: `style,jarticle')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from jarticle.sty.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file pl209.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: pl209.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\@obsoletefile{jarticle.cls}{jarticle.sty}
+\LoadClass{jarticle}
+\endinput
+%%
+%% End of file `jarticle.sty'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/jbk10.clo b/tex-ptex/files/texmf-dist/tex/platex/base/jbk10.clo
new file mode 100644
index 0000000000..d9bf18e2c9
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/jbk10.clo
@@ -0,0 +1,315 @@
+%%
+%% This is file `jbk10.clo',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% jclasses.dtx  (with options: `10pt,bk,yoko')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from jbk10.clo.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file jclasses.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: jclasses.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\ProvidesFile{jbk10.clo}
+  [2006/06/27 v1.6
+  Standard pLaTeX file (size option)]
+\renewcommand{\normalsize}{%
+    \@setfontsize\normalsize\@xpt{15}%
+  \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
+   \belowdisplayskip \abovedisplayskip
+   \let\@listi\@listI}
+\normalsize
+\setbox0\hbox{\char\euc"A1A1}%
+\setlength\Cht{\ht0}
+\setlength\Cdp{\dp0}
+\setlength\Cwd{\wd0}
+\setlength\Cvs{\baselineskip}
+\setlength\Chs{\wd0}
+\newcommand{\small}{%
+  \@setfontsize\small\@ixpt{11}%
+  \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
+  \abovedisplayshortskip \z@ \@plus2\p@
+  \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 4\p@ \@plus2\p@ \@minus2\p@
+              \parsep 2\p@ \@plus\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\footnotesize}{%
+  \@setfontsize\footnotesize\@viiipt{9.5}%
+  \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@
+  \abovedisplayshortskip \z@ \@plus\p@
+  \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 3\p@ \@plus\p@ \@minus\p@
+              \parsep 2\p@ \@plus\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\scriptsize}{\@setfontsize\scriptsize\@viipt\@viiipt}
+\newcommand{\tiny}{\@setfontsize\tiny\@vpt\@vipt}
+\newcommand{\large}{\@setfontsize\large\@xiipt{17}}
+\newcommand{\Large}{\@setfontsize\Large\@xivpt{21}}
+\newcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{25}}
+\newcommand{\huge}{\@setfontsize\huge\@xxpt{28}}
+\newcommand{\Huge}{\@setfontsize\Huge\@xxvpt{33}}
+\setlength\headheight{12\p@}
+\setlength\headsep{.25in}
+\setlength\topskip{1\Cht}
+\setlength\footskip{.35in}
+\if@compatibility
+  \setlength\maxdepth{4\p@}
+\else
+  \setlength\maxdepth{.5\topskip}
+\fi
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textwidth{47\Cwd}
+      \else
+        \setlength\textwidth{28\Cwd}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textwidth{75\Cwd}
+      \else
+        \setlength\textwidth{60\Cwd}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textwidth{60\Cwd}
+      \else
+        \setlength\textwidth{37\Cwd}
+      \fi
+    \else % A4 ant other
+      \if@landscape
+        \setlength\textwidth{73\Cwd}
+      \else
+        \setlength\textwidth{47\Cwd}
+      \fi
+    \fi\fi\fi
+  \else
+    \if@twocolumn
+      \setlength\textwidth{52\Cwd}
+    \else
+      \setlength\textwidth{4.3in}
+    \fi
+  \fi
+\else
+  \if@stysize
+    \if@twocolumn
+      \setlength\textwidth{.8\paperwidth}
+    \else
+      \setlength\textwidth{.7\paperwidth}
+    \fi
+  \else
+    \setlength\@tempdima{\paperwidth}
+    \addtolength\@tempdima{-2in}
+    \setlength\@tempdimb{327\p@}
+    \if@twocolumn
+      \ifdim\@tempdima>2\@tempdimb\relax
+        \setlength\textwidth{2\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \else
+      \ifdim\@tempdima>\@tempdimb\relax
+        \setlength\textwidth{\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \fi
+  \fi
+\fi
+\@settopoint\textwidth
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textheight{17\Cvs}
+      \else
+        \setlength\textheight{28\Cvs}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textheight{38\Cvs}
+      \else
+        \setlength\textheight{57\Cvs}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textheight{22\Cvs}
+      \else
+        \setlength\textheight{35\Cvs}
+      \fi
+    \else % A4 and other
+      \if@landscape
+        \setlength\textheight{27\Cvs}
+      \else
+        \setlength\textheight{43\Cvs}
+      \fi
+    \fi\fi\fi
+    \addtolength\textheight{\topskip}
+    \addtolength\textheight{\baselineskip}
+  \else
+  \setlength\textheight{554\p@}
+  \fi
+\else
+  \if@stysize
+    \setlength\textheight{.70\paperheight}
+  \else
+    \setlength\@tempdima{\paperheight}
+    \addtolength\@tempdima{-2in}
+    \addtolength\@tempdima{-1.5in}
+    \divide\@tempdima\baselineskip
+    \@tempcnta\@tempdima
+    \setlength\textheight{\@tempcnta\baselineskip}
+  \fi
+\fi
+\addtolength\textheight{\topskip}
+\@settopoint\textheight
+\if@compatibility
+  \if@stysize
+    \setlength\topmargin{-.3in}
+  \else
+    \setlength\topmargin{.75in}
+  \fi
+\else
+  \setlength\topmargin{\paperheight}
+  \addtolength\topmargin{-\headheight}
+  \addtolength\topmargin{-\headsep}
+  \addtolength\topmargin{-\textheight}
+  \addtolength\topmargin{-\footskip}
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \addtolength\topmargin{-1.3in}
+    \else
+      \addtolength\topmargin{-2.0in}
+    \fi
+  \else
+    \addtolength\topmargin{-2.0in}
+  \fi
+  \addtolength\topmargin{-.5\topmargin}
+\fi
+\@settopoint\topmargin
+\if@twocolumn
+  \setlength\marginparsep{10\p@}
+\else
+  \setlength\marginparsep{10\p@}
+\fi
+\setlength\marginparpush{5\p@}
+\if@compatibility
+    \setlength\oddsidemargin   {.5in}
+    \setlength\evensidemargin  {1.5in}
+    \setlength\marginparwidth {.75in}
+  \if@twocolumn
+     \setlength\oddsidemargin  {30\p@}
+     \setlength\evensidemargin {30\p@}
+     \setlength\marginparwidth {48\p@}
+  \fi
+  \if@stysize
+    \if@twocolumn\else
+      \setlength\oddsidemargin{0\p@}
+      \setlength\evensidemargin{0\p@}
+    \fi
+  \fi
+\else
+  \setlength\@tempdima{\paperwidth}
+  \addtolength\@tempdima{-\textwidth}
+  \if@twoside
+    \setlength\oddsidemargin{.4\@tempdima}
+  \else
+    \setlength\oddsidemargin{.5\@tempdima}
+  \fi
+  \addtolength\oddsidemargin{-1in}
+  \setlength\evensidemargin{\paperwidth}
+  \addtolength\evensidemargin{-2in}
+  \addtolength\evensidemargin{-\textwidth}
+  \addtolength\evensidemargin{-\oddsidemargin}
+  \@settopoint\oddsidemargin % 1999.1.6
+  \@settopoint\evensidemargin
+  \if@twoside
+    \setlength\marginparwidth{.6\@tempdima}
+    \addtolength\marginparwidth{-.4in}
+  \else
+    \setlength\marginparwidth{.5\@tempdima}
+    \addtolength\marginparwidth{-.4in}
+  \fi
+  \ifdim \marginparwidth >2in
+    \setlength\marginparwidth{2in}
+  \fi
+  \@settopoint\marginparwidth
+\fi
+\setlength\footnotesep{6.65\p@}
+\setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@}
+\setlength\floatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\intextsep   {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\dblfloatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\@fptop{0\p@ \@plus 1fil}
+\setlength\@fpsep{8\p@ \@plus 2fil}
+\setlength\@fpbot{0\p@ \@plus 1fil}
+\setlength\@dblfptop{0\p@ \@plus 1fil}
+\setlength\@dblfpsep{8\p@ \@plus 2fil}
+\setlength\@dblfpbot{0\p@ \@plus 1fil}
+\setlength\partopsep{2\p@ \@plus 1\p@ \@minus 1\p@}
+\def\@listi{\leftmargin\leftmargini
+  \parsep 4\p@ \@plus2\p@ \@minus\p@
+  \topsep 8\p@ \@plus2\p@ \@minus4\p@
+  \itemsep4\p@ \@plus2\p@ \@minus\p@}
+\let\@listI\@listi
+\@listi
+\def\@listii{\leftmargin\leftmarginii
+   \labelwidth\leftmarginii \advance\labelwidth-\labelsep
+   \topsep  4\p@ \@plus2\p@ \@minus\p@
+   \parsep  2\p@ \@plus\p@  \@minus\p@
+   \itemsep\parsep}
+\def\@listiii{\leftmargin\leftmarginiii
+   \labelwidth\leftmarginiii \advance\labelwidth-\labelsep
+   \topsep 2\p@  \@plus\p@\@minus\p@
+   \parsep\z@
+   \partopsep \p@ \@plus\z@ \@minus\p@
+   \itemsep\topsep}
+\def\@listiv {\leftmargin\leftmarginiv
+              \labelwidth\leftmarginiv
+              \advance\labelwidth-\labelsep}
+\def\@listv  {\leftmargin\leftmarginv
+              \labelwidth\leftmarginv
+              \advance\labelwidth-\labelsep}
+\def\@listvi {\leftmargin\leftmarginvi
+              \labelwidth\leftmarginvi
+              \advance\labelwidth-\labelsep}
+\endinput
+%%
+%% End of file `jbk10.clo'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/jbk11.clo b/tex-ptex/files/texmf-dist/tex/platex/base/jbk11.clo
new file mode 100644
index 0000000000..ce3e4d3f5a
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/jbk11.clo
@@ -0,0 +1,315 @@
+%%
+%% This is file `jbk11.clo',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% jclasses.dtx  (with options: `11pt,bk,yoko')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from jbk11.clo.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file jclasses.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: jclasses.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\ProvidesFile{jbk11.clo}
+  [2006/06/27 v1.6
+  Standard pLaTeX file (size option)]
+\renewcommand{\normalsize}{%
+    \@setfontsize\normalsize\@xipt{15.5}%
+  \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
+   \belowdisplayskip \abovedisplayskip
+   \let\@listi\@listI}
+\normalsize
+\setbox0\hbox{\char\euc"A1A1}%
+\setlength\Cht{\ht0}
+\setlength\Cdp{\dp0}
+\setlength\Cwd{\wd0}
+\setlength\Cvs{\baselineskip}
+\setlength\Chs{\wd0}
+\newcommand{\small}{%
+  \@setfontsize\small\@xpt\@xiipt
+  \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 6\p@ \@plus2\p@ \@minus2\p@
+              \parsep 3\p@ \@plus2\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\footnotesize}{%
+  \@setfontsize\footnotesize\@ixpt{11}%
+  \abovedisplayskip 8\p@ \@plus2\p@ \@minus4\p@
+  \abovedisplayshortskip \z@ \@plus\p@
+  \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 4\p@ \@plus2\p@ \@minus2\p@
+              \parsep 2\p@ \@plus\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\scriptsize}{\@setfontsize\scriptsize\@viiipt{9.5}}
+\newcommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt}
+\newcommand{\large}{\@setfontsize\large\@xiipt{17}}
+\newcommand{\Large}{\@setfontsize\Large\@xivpt{21}}
+\newcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{25}}
+\newcommand{\huge}{\@setfontsize\huge\@xxpt{28}}
+\newcommand{\Huge}{\@setfontsize\Huge\@xxvpt{33}}
+\setlength\headheight{12\p@}
+\setlength\headsep{.275in}
+\setlength\topskip{1\Cht}
+\setlength\footskip{.38in}
+\if@compatibility
+  \setlength\maxdepth{4\p@}
+\else
+  \setlength\maxdepth{.5\topskip}
+\fi
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textwidth{42\Cwd}
+      \else
+        \setlength\textwidth{25\Cwd}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textwidth{69\Cwd}
+      \else
+        \setlength\textwidth{55\Cwd}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textwidth{55\Cwd}
+      \else
+        \setlength\textwidth{34\Cwd}
+      \fi
+    \else % A4 ant other
+      \if@landscape
+        \setlength\textwidth{68\Cwd}
+      \else
+        \setlength\textwidth{43\Cwd}
+      \fi
+    \fi\fi\fi
+  \else
+    \if@twocolumn
+      \setlength\textwidth{52\Cwd}
+    \else
+      \setlength\textwidth{4.8in}
+    \fi
+  \fi
+\else
+  \if@stysize
+    \if@twocolumn
+      \setlength\textwidth{.8\paperwidth}
+    \else
+      \setlength\textwidth{.7\paperwidth}
+    \fi
+  \else
+    \setlength\@tempdima{\paperwidth}
+    \addtolength\@tempdima{-2in}
+    \setlength\@tempdimb{342\p@}
+    \if@twocolumn
+      \ifdim\@tempdima>2\@tempdimb\relax
+        \setlength\textwidth{2\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \else
+      \ifdim\@tempdima>\@tempdimb\relax
+        \setlength\textwidth{\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \fi
+  \fi
+\fi
+\@settopoint\textwidth
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textheight{17\Cvs}
+      \else
+        \setlength\textheight{25\Cvs}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textheight{36\Cvs}
+      \else
+        \setlength\textheight{55\Cvs}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textheight{21\Cvs}
+      \else
+        \setlength\textheight{34\Cvs}
+      \fi
+    \else % A4 and other
+      \if@landscape
+        \setlength\textheight{26\Cvs}
+      \else
+        \setlength\textheight{42\Cvs}
+      \fi
+    \fi\fi\fi
+    \addtolength\textheight{\topskip}
+    \addtolength\textheight{\baselineskip}
+  \else
+  \setlength\textheight{580.4\p@}
+  \fi
+\else
+  \if@stysize
+    \setlength\textheight{.70\paperheight}
+  \else
+    \setlength\@tempdima{\paperheight}
+    \addtolength\@tempdima{-2in}
+    \addtolength\@tempdima{-1.5in}
+    \divide\@tempdima\baselineskip
+    \@tempcnta\@tempdima
+    \setlength\textheight{\@tempcnta\baselineskip}
+  \fi
+\fi
+\addtolength\textheight{\topskip}
+\@settopoint\textheight
+\if@compatibility
+  \if@stysize
+    \setlength\topmargin{-.3in}
+  \else
+    \setlength\topmargin{.73in}
+  \fi
+\else
+  \setlength\topmargin{\paperheight}
+  \addtolength\topmargin{-\headheight}
+  \addtolength\topmargin{-\headsep}
+  \addtolength\topmargin{-\textheight}
+  \addtolength\topmargin{-\footskip}
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \addtolength\topmargin{-1.3in}
+    \else
+      \addtolength\topmargin{-2.0in}
+    \fi
+  \else
+    \addtolength\topmargin{-2.0in}
+  \fi
+  \addtolength\topmargin{-.5\topmargin}
+\fi
+\@settopoint\topmargin
+\if@twocolumn
+  \setlength\marginparsep{10\p@}
+\else
+  \setlength\marginparsep{10\p@}
+\fi
+\setlength\marginparpush{5\p@}
+\if@compatibility
+    \setlength\oddsidemargin   {.25in}
+    \setlength\evensidemargin  {1.25in}
+    \setlength\marginparwidth {1in}
+  \if@twocolumn
+     \setlength\oddsidemargin  {30\p@}
+     \setlength\evensidemargin {30\p@}
+     \setlength\marginparwidth {48\p@}
+  \fi
+  \if@stysize
+    \if@twocolumn\else
+      \setlength\oddsidemargin{0\p@}
+      \setlength\evensidemargin{0\p@}
+    \fi
+  \fi
+\else
+  \setlength\@tempdima{\paperwidth}
+  \addtolength\@tempdima{-\textwidth}
+  \if@twoside
+    \setlength\oddsidemargin{.4\@tempdima}
+  \else
+    \setlength\oddsidemargin{.5\@tempdima}
+  \fi
+  \addtolength\oddsidemargin{-1in}
+  \setlength\evensidemargin{\paperwidth}
+  \addtolength\evensidemargin{-2in}
+  \addtolength\evensidemargin{-\textwidth}
+  \addtolength\evensidemargin{-\oddsidemargin}
+  \@settopoint\oddsidemargin % 1999.1.6
+  \@settopoint\evensidemargin
+  \if@twoside
+    \setlength\marginparwidth{.6\@tempdima}
+    \addtolength\marginparwidth{-.4in}
+  \else
+    \setlength\marginparwidth{.5\@tempdima}
+    \addtolength\marginparwidth{-.4in}
+  \fi
+  \ifdim \marginparwidth >2in
+    \setlength\marginparwidth{2in}
+  \fi
+  \@settopoint\marginparwidth
+\fi
+\setlength\footnotesep{7.7\p@}
+\setlength{\skip\footins}{10\p@ \@plus 4\p@ \@minus 2\p@}
+\setlength\floatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\intextsep   {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\dblfloatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\@fptop{0\p@ \@plus 1fil}
+\setlength\@fpsep{8\p@ \@plus 2fil}
+\setlength\@fpbot{0\p@ \@plus 1fil}
+\setlength\@dblfptop{0\p@ \@plus 1fil}
+\setlength\@dblfpsep{8\p@ \@plus 2fil}
+\setlength\@dblfpbot{0\p@ \@plus 1fil}
+\setlength\partopsep{3\p@ \@plus 1\p@ \@minus 1\p@}
+\def\@listi{\leftmargin\leftmargini
+  \parsep 4.5\p@ \@plus2\p@ \@minus\p@
+  \topsep 9\p@   \@plus3\p@ \@minus5\p@
+  \itemsep4.5\p@ \@plus2\p@ \@minus\p@}
+\let\@listI\@listi
+\@listi
+\def\@listii{\leftmargin\leftmarginii
+   \labelwidth\leftmarginii \advance\labelwidth-\labelsep
+   \topsep  4.5\p@ \@plus2\p@ \@minus\p@
+   \parsep  2\p@   \@plus\p@  \@minus\p@
+   \itemsep\parsep}
+\def\@listiii{\leftmargin\leftmarginiii
+   \labelwidth\leftmarginiii \advance\labelwidth-\labelsep
+   \topsep 2\p@  \@plus\p@\@minus\p@
+   \parsep\z@
+   \partopsep \p@ \@plus\z@ \@minus\p@
+   \itemsep\topsep}
+\def\@listiv {\leftmargin\leftmarginiv
+              \labelwidth\leftmarginiv
+              \advance\labelwidth-\labelsep}
+\def\@listv  {\leftmargin\leftmarginv
+              \labelwidth\leftmarginv
+              \advance\labelwidth-\labelsep}
+\def\@listvi {\leftmargin\leftmarginvi
+              \labelwidth\leftmarginvi
+              \advance\labelwidth-\labelsep}
+\endinput
+%%
+%% End of file `jbk11.clo'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/jbk12.clo b/tex-ptex/files/texmf-dist/tex/platex/base/jbk12.clo
new file mode 100644
index 0000000000..7b2003ea38
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/jbk12.clo
@@ -0,0 +1,315 @@
+%%
+%% This is file `jbk12.clo',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% jclasses.dtx  (with options: `12pt,bk,yoko')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from jbk12.clo.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file jclasses.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: jclasses.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\ProvidesFile{jbk12.clo}
+  [2006/06/27 v1.6
+  Standard pLaTeX file (size option)]
+\renewcommand{\normalsize}{%
+    \@setfontsize\normalsize\@xiipt{16.5}%
+  \abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
+   \belowdisplayskip \abovedisplayskip
+   \let\@listi\@listI}
+\normalsize
+\setbox0\hbox{\char\euc"A1A1}%
+\setlength\Cht{\ht0}
+\setlength\Cdp{\dp0}
+\setlength\Cwd{\wd0}
+\setlength\Cvs{\baselineskip}
+\setlength\Chs{\wd0}
+\newcommand{\small}{%
+  \@setfontsize\small\@xipt{13.6}%
+  \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 9\p@ \@plus3\p@ \@minus5\p@
+              \parsep 4.5\p@ \@plus2\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\footnotesize}{%
+  \@setfontsize\footnotesize\@xpt\@xiipt
+  \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 6\p@ \@plus2\p@ \@minus2\p@
+              \parsep 3\p@ \@plus2\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\scriptsize}{\@setfontsize\scriptsize\@viiipt{9.5}}
+\newcommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt}
+\newcommand{\large}{\@setfontsize\large\@xivpt{21}}
+\newcommand{\Large}{\@setfontsize\Large\@xviipt{25}}
+\newcommand{\LARGE}{\@setfontsize\LARGE\@xxpt{28}}
+\newcommand{\huge}{\@setfontsize\huge\@xxvpt{33}}
+\let\Huge=\huge
+\setlength\headheight{12\p@}
+\setlength\headsep{.275in}
+\setlength\topskip{1\Cht}
+\setlength\footskip{30\p@}
+\if@compatibility
+  \setlength\maxdepth{4\p@}
+\else
+  \setlength\maxdepth{.5\topskip}
+\fi
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textwidth{40\Cwd}
+      \else
+        \setlength\textwidth{24\Cwd}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textwidth{63\Cwd}
+      \else
+        \setlength\textwidth{50\Cwd}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textwidth{50\Cwd}
+      \else
+        \setlength\textwidth{31\Cwd}
+      \fi
+    \else % A4 ant other
+      \if@landscape
+        \setlength\textwidth{61\Cwd}
+      \else
+        \setlength\textwidth{40\Cwd}
+      \fi
+    \fi\fi\fi
+  \else
+    \if@twocolumn
+      \setlength\textwidth{52\Cwd}
+    \else
+      \setlength\textwidth{4.8in}
+    \fi
+  \fi
+\else
+  \if@stysize
+    \if@twocolumn
+      \setlength\textwidth{.8\paperwidth}
+    \else
+      \setlength\textwidth{.7\paperwidth}
+    \fi
+  \else
+    \setlength\@tempdima{\paperwidth}
+    \addtolength\@tempdima{-2in}
+    \setlength\@tempdimb{372\p@}
+    \if@twocolumn
+      \ifdim\@tempdima>2\@tempdimb\relax
+        \setlength\textwidth{2\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \else
+      \ifdim\@tempdima>\@tempdimb\relax
+        \setlength\textwidth{\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \fi
+  \fi
+\fi
+\@settopoint\textwidth
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textheight{16\Cvs}
+      \else
+        \setlength\textheight{24\Cvs}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textheight{34\Cvs}
+      \else
+        \setlength\textheight{52\Cvs}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textheight{20\Cvs}
+      \else
+        \setlength\textheight{32\Cvs}
+      \fi
+    \else % A4 and other
+      \if@landscape
+        \setlength\textheight{25\Cvs}
+      \else
+        \setlength\textheight{39\Cvs}
+      \fi
+    \fi\fi\fi
+    \addtolength\textheight{\topskip}
+    \addtolength\textheight{\baselineskip}
+  \else
+  \setlength\textheight{586.5\p@}
+  \fi
+\else
+  \if@stysize
+    \setlength\textheight{.70\paperheight}
+  \else
+    \setlength\@tempdima{\paperheight}
+    \addtolength\@tempdima{-2in}
+    \addtolength\@tempdima{-1.5in}
+    \divide\@tempdima\baselineskip
+    \@tempcnta\@tempdima
+    \setlength\textheight{\@tempcnta\baselineskip}
+  \fi
+\fi
+\addtolength\textheight{\topskip}
+\@settopoint\textheight
+\if@compatibility
+  \if@stysize
+    \setlength\topmargin{-.3in}
+  \else
+    \setlength\topmargin{.73in}
+  \fi
+\else
+  \setlength\topmargin{\paperheight}
+  \addtolength\topmargin{-\headheight}
+  \addtolength\topmargin{-\headsep}
+  \addtolength\topmargin{-\textheight}
+  \addtolength\topmargin{-\footskip}
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \addtolength\topmargin{-1.3in}
+    \else
+      \addtolength\topmargin{-2.0in}
+    \fi
+  \else
+    \addtolength\topmargin{-2.0in}
+  \fi
+  \addtolength\topmargin{-.5\topmargin}
+\fi
+\@settopoint\topmargin
+\if@twocolumn
+  \setlength\marginparsep{10\p@}
+\else
+  \setlength\marginparsep{10\p@}
+\fi
+\setlength\marginparpush{7\p@}
+\if@compatibility
+    \setlength\oddsidemargin   {.25in}
+    \setlength\evensidemargin  {1.25in}
+    \setlength\marginparwidth {1in}
+  \if@twocolumn
+     \setlength\oddsidemargin  {30\p@}
+     \setlength\evensidemargin {30\p@}
+     \setlength\marginparwidth {48\p@}
+  \fi
+  \if@stysize
+    \if@twocolumn\else
+      \setlength\oddsidemargin{0\p@}
+      \setlength\evensidemargin{0\p@}
+    \fi
+  \fi
+\else
+  \setlength\@tempdima{\paperwidth}
+  \addtolength\@tempdima{-\textwidth}
+  \if@twoside
+    \setlength\oddsidemargin{.4\@tempdima}
+  \else
+    \setlength\oddsidemargin{.5\@tempdima}
+  \fi
+  \addtolength\oddsidemargin{-1in}
+  \setlength\evensidemargin{\paperwidth}
+  \addtolength\evensidemargin{-2in}
+  \addtolength\evensidemargin{-\textwidth}
+  \addtolength\evensidemargin{-\oddsidemargin}
+  \@settopoint\oddsidemargin % 1999.1.6
+  \@settopoint\evensidemargin
+  \if@twoside
+    \setlength\marginparwidth{.6\@tempdima}
+    \addtolength\marginparwidth{-.4in}
+  \else
+    \setlength\marginparwidth{.5\@tempdima}
+    \addtolength\marginparwidth{-.4in}
+  \fi
+  \ifdim \marginparwidth >2in
+    \setlength\marginparwidth{2in}
+  \fi
+  \@settopoint\marginparwidth
+\fi
+\setlength\footnotesep{8.4\p@}
+\setlength{\skip\footins}{10.8\p@ \@plus 4\p@ \@minus 2\p@}
+\setlength\floatsep    {12\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\intextsep   {14\p@ \@plus 4\p@ \@minus 4\p@}
+\setlength\dblfloatsep    {14\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\@fptop{0\p@ \@plus 1fil}
+\setlength\@fpsep{10\p@ \@plus 2fil}
+\setlength\@fpbot{0\p@ \@plus 1fil}
+\setlength\@dblfptop{0\p@ \@plus 1fil}
+\setlength\@dblfpsep{10\p@ \@plus 2fil}
+\setlength\@dblfpbot{0\p@ \@plus 1fil}
+\setlength\partopsep{3\p@ \@plus 2\p@ \@minus 2\p@}
+\def\@listi{\leftmargin\leftmargini
+  \parsep 5\p@  \@plus2.5\p@ \@minus\p@
+  \topsep 10\p@ \@plus4\p@   \@minus6\p@
+  \itemsep5\p@  \@plus2.5\p@ \@minus\p@}
+\let\@listI\@listi
+\@listi
+\def\@listii{\leftmargin\leftmarginii
+   \labelwidth\leftmarginii \advance\labelwidth-\labelsep
+   \topsep  5\p@   \@plus2.5\p@ \@minus\p@
+   \parsep  2.5\p@ \@plus\p@  \@minus\p@
+   \itemsep\parsep}
+\def\@listiii{\leftmargin\leftmarginiii
+   \labelwidth\leftmarginiii \advance\labelwidth-\labelsep
+   \topsep 2.5\p@\@plus\p@\@minus\p@
+   \parsep\z@
+   \partopsep \p@ \@plus\z@ \@minus\p@
+   \itemsep\topsep}
+\def\@listiv {\leftmargin\leftmarginiv
+              \labelwidth\leftmarginiv
+              \advance\labelwidth-\labelsep}
+\def\@listv  {\leftmargin\leftmarginv
+              \labelwidth\leftmarginv
+              \advance\labelwidth-\labelsep}
+\def\@listvi {\leftmargin\leftmarginvi
+              \labelwidth\leftmarginvi
+              \advance\labelwidth-\labelsep}
+\endinput
+%%
+%% End of file `jbk12.clo'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/jbook.cls b/tex-ptex/files/texmf-dist/tex/platex/base/jbook.cls
new file mode 100644
index 0000000000..bc83f44791
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/jbook.cls
@@ -0,0 +1,897 @@
+%%
+%% This is file `jbook.cls',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% jclasses.dtx  (with options: `book,yoko')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from jbook.cls.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file jclasses.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: jclasses.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\ProvidesClass{jbook}
+  [2006/06/27 v1.6
+ Standard pLaTeX class]
+\newcounter{@paper}
+\newif\if@landscape \@landscapefalse
+\newcommand{\@ptsize}{}
+\newif\if@restonecol
+\newif\if@titlepage
+\@titlepagetrue
+\newif\if@openright
+\newif\if@mainmatter \@mainmattertrue
+\hour\time \divide\hour by 60\relax
+\@tempcnta\hour \multiply\@tempcnta 60\relax
+\minute\time \advance\minute-\@tempcnta
+\newif\if@stysize \@stysizefalse
+\newif\if@enablejfam \@enablejfamtrue
+\newif\if@mathrmmc \@mathrmmcfalse
+\DeclareOption{a4paper}{\setcounter{@paper}{1}%
+  \setlength\paperheight {297mm}%
+  \setlength\paperwidth  {210mm}}
+\DeclareOption{a5paper}{\setcounter{@paper}{2}%
+  \setlength\paperheight {210mm}
+  \setlength\paperwidth  {148mm}}
+\DeclareOption{b4paper}{\setcounter{@paper}{3}%
+  \setlength\paperheight {364mm}
+  \setlength\paperwidth  {257mm}}
+\DeclareOption{b5paper}{\setcounter{@paper}{4}%
+  \setlength\paperheight {257mm}
+  \setlength\paperwidth  {182mm}}
+\DeclareOption{a4j}{\setcounter{@paper}{1}\@stysizetrue
+  \setlength\paperheight {297mm}%
+  \setlength\paperwidth  {210mm}}
+\DeclareOption{a5j}{\setcounter{@paper}{2}\@stysizetrue
+  \setlength\paperheight {210mm}
+  \setlength\paperwidth  {148mm}}
+\DeclareOption{b4j}{\setcounter{@paper}{3}\@stysizetrue
+  \setlength\paperheight {364mm}
+  \setlength\paperwidth  {257mm}}
+\DeclareOption{b5j}{\setcounter{@paper}{4}\@stysizetrue
+  \setlength\paperheight {257mm}
+  \setlength\paperwidth  {182mm}}
+\DeclareOption{a4p}{\setcounter{@paper}{1}\@stysizetrue
+  \setlength\paperheight {297mm}%
+  \setlength\paperwidth  {210mm}}
+\DeclareOption{a5p}{\setcounter{@paper}{2}\@stysizetrue
+  \setlength\paperheight {210mm}
+  \setlength\paperwidth  {148mm}}
+\DeclareOption{b4p}{\setcounter{@paper}{3}\@stysizetrue
+  \setlength\paperheight {364mm}
+  \setlength\paperwidth  {257mm}}
+\DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
+  \setlength\paperheight {257mm}
+  \setlength\paperwidth  {182mm}}
+\if@compatibility
+  \renewcommand{\@ptsize}{0}
+\else
+  \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
+\fi
+\DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
+\DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
+\DeclareOption{landscape}{\@landscapetrue
+  \setlength\@tempdima{\paperheight}%
+  \setlength\paperheight{\paperwidth}%
+  \setlength\paperwidth{\@tempdima}}
+\DeclareOption{tombow}{%
+  \tombowtrue \tombowdatetrue
+  \setlength{\@tombowwidth}{.1\p@}%
+  \@bannertoken{%
+     \jobname\space:\space\number\year/\number\month/\number\day
+      (\number\hour:\number\minute)}
+  \maketombowbox}
+\DeclareOption{tombo}{%
+  \tombowtrue \tombowdatefalse
+  \setlength{\@tombowwidth}{.1\p@}%
+  \maketombowbox}
+\DeclareOption{mentuke}{%
+  \tombowtrue \tombowdatefalse
+  \setlength{\@tombowwidth}{\z@}%
+  \maketombowbox}
+\DeclareOption{tate}{%
+  \AtBeginDocument{\tate\message{$B!T=DAH%b!<%I!U(B}%
+                   \adjustbaseline}%
+}
+\DeclareOption{oneside}{\@twosidefalse}
+\DeclareOption{twoside}{\@twosidetrue}
+\DeclareOption{onecolumn}{\@twocolumnfalse}
+\DeclareOption{twocolumn}{\@twocolumntrue}
+\DeclareOption{titlepage}{\@titlepagetrue}
+\DeclareOption{notitlepage}{\@titlepagefalse}
+\if@compatibility
+\@openrighttrue
+\else
+\DeclareOption{openright}{\@openrighttrue}
+\DeclareOption{openany}{\@openrightfalse}
+\fi
+\DeclareOption{leqno}{\input{leqno.clo}}
+\DeclareOption{fleqn}{\input{fleqn.clo}}
+\DeclareOption{openbib}{%
+  \AtEndOfPackage{%
+   \renewcommand\@openbib@code{%
+      \advance\leftmargin\bibindent
+      \itemindent -\bibindent
+      \listparindent \itemindent
+      \parsep \z@
+      }%
+   \renewcommand\newblock{\par}}}
+\if@compatibility
+  \@mathrmmctrue
+\else
+  \DeclareOption{disablejfam}{\@enablejfamfalse}
+  \DeclareOption{mathrmmc}{\@mathrmmctrue}
+\fi
+\DeclareOption{draft}{\setlength\overfullrule{5pt}}
+\DeclareOption{final}{\setlength\overfullrule{0pt}}
+\ExecuteOptions{a4paper,10pt,twoside,onecolumn,final,openright}
+\ProcessOptions\relax
+\input{jbk1\@ptsize.clo}
+\if@stysize
+  \setlength\columnsep{2\Cwd}
+\else
+  \setlength\columnsep{10\p@}
+\fi
+\setlength\columnseprule{0\p@}
+\setlength\lineskip{1\p@}
+\setlength\normallineskip{1\p@}
+\renewcommand{\baselinestretch}{}
+\setlength\parskip{0\p@ \@plus \p@}
+\setlength\parindent{1\Cwd}
+\@lowpenalty   51
+\@medpenalty  151
+\@highpenalty 301
+\setcounter{topnumber}{2}
+\setcounter{bottomnumber}{1}
+\setcounter{totalnumber}{3}
+\setcounter{dbltopnumber}{2}
+\renewcommand{\topfraction}{.7}
+\renewcommand{\bottomfraction}{.3}
+\renewcommand{\textfraction}{.2}
+\renewcommand{\floatpagefraction}{.5}
+\renewcommand{\dbltopfraction}{.7}
+\renewcommand{\dblfloatpagefraction}{.5}
+\def\ps@plain{\let\@mkboth\@gobbletwo
+   \let\ps@jpl@in\ps@plain
+   \let\@oddhead\@empty
+   \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
+   \let\@evenhead\@empty
+   \let\@evenfoot\@oddfoot}
+\let\ps@jpl@in\ps@plain
+\def\ps@headnombre{\let\@mkboth\@gobbletwo
+    \let\ps@jpl@in\ps@headnombre
+  \def\@evenhead{\thepage\hfil}%
+  \def\@oddhead{\hfil\thepage}%
+  \let\@oddfoot\@empty\let\@evenfoot\@empty}
+\def\ps@footnombre{\let\@mkboth\@gobbletwo
+    \let\ps@jpl@in\ps@footnombre
+  \def\@evenfoot{\thepage\hfil}%
+  \def\@oddfoot{\hfil\thepage}%
+  \let\@oddhead\@empty\let\@evenhead\@empty}
+\if@twoside
+  \def\ps@headings{\let\ps@jpl@in\ps@headnombre
+    \let\@oddfoot\@empty\let\@evenfoot\@empty
+    \def\@evenhead{\thepage\hfil\leftmark}%
+    \def\@oddhead{{\rightmark}\hfil\thepage}%
+    \let\@mkboth\markboth
+  \def\chaptermark##1{\markboth{%
+     \ifnum \c@secnumdepth >\m@ne
+         \if@mainmatter
+         \@chapapp\thechapter\@chappos\hskip1zw
+         \fi
+     \fi
+     ##1}{}}%
+  \def\sectionmark##1{\markright{%
+     \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi
+     ##1}}%
+  }
+\else % if not twoside
+  \def\ps@headings{\let\ps@jpl@in\ps@headnombre
+    \let\@oddfoot\@empty
+    \def\@oddhead{{\rightmark}\hfil\thepage}%
+    \let\@mkboth\markboth
+\def\chaptermark##1{\markright{%
+   \ifnum \c@secnumdepth >\m@ne
+         \if@mainmatter
+       \@chapapp\thechapter\@chappos\hskip1zw
+         \fi
+   \fi
+   ##1}}%
+  }
+\fi
+\if@twoside
+  \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
+    \def\@evenhead{\leftmark\hfil}% right page
+    \def\@evenfoot{\thepage\hfil}% right page
+    \def\@oddhead{\hfil\rightmark}% left page
+    \def\@oddfoot{\hfil\thepage}% left page
+  \let\@mkboth\markboth
+\def\chaptermark##1{\markboth{%
+     \ifnum \c@secnumdepth >\m@ne
+         \if@mainmatter
+         \@chapapp\thechapter\@chappos\hskip1zw
+         \fi
+     \fi
+     ##1}{}}%
+  \def\sectionmark##1{\markright{%
+     \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi
+     ##1}}%
+  }
+\else % if one column
+  \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
+    \def\@oddhead{\hfil\rightmark}%
+    \def\@oddfoot{\hfil\thepage}%
+    \let\@mkboth\markboth
+  \def\chaptermark##1{\markright{%
+     \ifnum \c@secnumdepth >\m@ne
+         \if@mainmatter
+         \@chapapp\thechapter\@chappos\hskip1zw
+         \fi
+     \fi
+     ##1}}%
+  }
+\fi
+\def\ps@myheadings{\let\ps@jpl@in\ps@plain%
+  \let\@oddfoot\@empty\let\@evenfoot\@empty
+  \def\@evenhead{\thepage\hfil\leftmark}%
+  \def\@oddhead{{\rightmark}\hfil\thepage}%
+  \let\@mkboth\@gobbletwo
+  \let\chaptermark\@gobble
+  \let\sectionmark\@gobble
+}
+\if@compatibility
+\newenvironment{titlepage}
+    {%
+      \cleardoublepage
+     \if@twocolumn\@restonecoltrue\onecolumn
+     \else\@restonecolfalse\newpage\fi
+     \thispagestyle{empty}%
+     \setcounter{page}\z@
+    }%
+    {\if@restonecol\twocolumn\else\newpage\fi
+    }
+\else
+\newenvironment{titlepage}
+    {%
+      \cleardoublepage
+      \if@twocolumn
+        \@restonecoltrue\onecolumn
+      \else
+        \@restonecolfalse\newpage
+      \fi
+      \thispagestyle{empty}%
+      \setcounter{page}\@ne
+    }%
+    {\if@restonecol\twocolumn \else \newpage \fi
+     \if@twoside\else
+        \setcounter{page}\@ne
+     \fi
+    }
+\fi
+\def\p@thanks#1{\footnotemark
+  \protected@xdef\@thanks{\@thanks
+    \protect{\noindent$\m@th^\thefootnote$~#1\protect\par}}}
+\if@titlepage
+  \newcommand{\maketitle}{\begin{titlepage}%
+  \let\footnotesize\small
+  \let\footnoterule\relax
+  \let\footnote\thanks
+  \null\vfil
+  \vskip 60\p@
+  \begin{center}%
+    {\LARGE \@title \par}%
+    \vskip 3em%
+    {\Large
+     \lineskip .75em%
+      \begin{tabular}[t]{c}%
+        \@author
+      \end{tabular}\par}%
+      \vskip 1.5em%
+    {\large \@date \par}%       % Set date in \large size.
+  \end{center}\par
+  \@thanks\vfil\null
+  \end{titlepage}%
+  \setcounter{footnote}{0}%
+  \global\let\thanks\relax
+  \global\let\maketitle\relax
+  \global\let\p@thanks\relax
+  \global\let\@thanks\@empty
+  \global\let\@author\@empty
+  \global\let\@date\@empty
+  \global\let\@title\@empty
+  \global\let\title\relax
+  \global\let\author\relax
+  \global\let\date\relax
+  \global\let\and\relax
+  }%
+\else
+  \newcommand{\maketitle}{\par
+  \begingroup
+    \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
+    \def\@makefnmark{\hbox{\ifydir $\m@th^{\@thefnmark}$
+      \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
+     \long\def\@makefntext##1{\parindent 1em\noindent
+       \hbox to1.8em{\hss$\m@th^{\@thefnmark}$}##1}%
+    \if@twocolumn
+      \ifnum \col@number=\@ne \@maketitle
+      \else \twocolumn[\@maketitle]%
+      \fi
+    \else
+      \newpage
+      \global\@topnum\z@   % Prevents figures from going at top of page.
+      \@maketitle
+    \fi
+     \thispagestyle{jpl@in}\@thanks
+  \endgroup
+  \setcounter{footnote}{0}%
+  \global\let\thanks\relax
+  \global\let\maketitle\relax
+  \global\let\p@thanks\relax
+  \global\let\@thanks\@empty
+  \global\let\@author\@empty
+  \global\let\@date\@empty
+  \global\let\@title\@empty
+  \global\let\title\relax
+  \global\let\author\relax
+  \global\let\date\relax
+  \global\let\and\relax
+  }
+  \def\@maketitle{%
+  \newpage\null
+  \vskip 2em%
+  \begin{center}%
+  \let\footnote\thanks
+    {\LARGE \@title \par}%
+    \vskip 1.5em%
+    {\large
+      \lineskip .5em%
+      \begin{tabular}[t]{c}%
+        \@author
+      \end{tabular}\par}%
+    \vskip 1em%
+    {\large \@date}%
+  \end{center}%
+  \par\vskip 1.5em}
+\fi
+\newcommand*{\chaptermark}[1]{}
+\setcounter{secnumdepth}{2}
+\newcounter{part}
+\newcounter{chapter}
+\newcounter{section}[chapter]
+\newcounter{subsection}[section]
+\newcounter{subsubsection}[subsection]
+\newcounter{paragraph}[subsubsection]
+\newcounter{subparagraph}[paragraph]
+\renewcommand{\thepart}{\@Roman\c@part}
+\renewcommand{\thechapter}{\@arabic\c@chapter}
+\renewcommand{\thesection}{\thechapter.\@arabic\c@section}
+\renewcommand{\thesubsection}{\thesection.\@arabic\c@subsection}
+\renewcommand{\thesubsubsection}{%
+   \thesubsection.\@arabic\c@subsubsection}
+\renewcommand{\theparagraph}{%
+   \thesubsubsection.\@arabic\c@paragraph}
+\renewcommand{\thesubparagraph}{%
+   \theparagraph.\@arabic\c@subparagraph}
+\newcommand{\@chapapp}{\prechaptername}
+\newcommand{\@chappos}{\postchaptername}
+\newcommand\frontmatter{%
+  \if@openright \cleardoublepage \else \clearpage \fi
+  \@mainmatterfalse\pagenumbering{roman}}
+\newcommand{\mainmatter}{%
+  \if@openright \cleardoublepage \else \clearpage \fi
+  \@mainmattertrue\pagenumbering{arabic}}
+\newcommand{\backmatter}{%
+  \if@openright \cleardoublepage \else \clearpage \fi
+  \@mainmatterfalse}
+\newcommand{\part}{%
+  \if@openright \cleardoublepage \else \clearpage \fi
+  \thispagestyle{empty}%
+  \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi
+  \null\vfil
+  \secdef\@part\@spart}
+\def\@part[#1]#2{%
+  \ifnum \c@secnumdepth >-2\relax
+    \refstepcounter{part}%
+    \addcontentsline{toc}{part}{%
+       \prepartname\thepart\postpartname\hspace{1em}#1}%
+  \else
+    \addcontentsline{toc}{part}{#1}%
+  \fi
+  \markboth{}{}%
+  {\centering
+   \interlinepenalty\@M\reset@font
+   \ifnum \c@secnumdepth >-2\relax
+     \huge\bfseries\prepartname\thepart\postpartname
+     \par\vskip20\p@
+   \fi
+   \Huge\bfseries#2\par}%
+   \@endpart}
+\def\@spart#1{{%
+  \centering
+  \interlinepenalty\@M\reset@font
+  \Huge\bfseries#1\par}%
+  \@endpart}
+\def\@endpart{\vfil\newpage
+   \if@twoside\null\thispagestyle{empty}\newpage\fi
+   \if@tempswa\twocolumn\fi}
+\newcommand{\chapter}{%
+  \if@openright\cleardoublepage\else\clearpage\fi
+  \thispagestyle{jpl@in}%
+  \global\@topnum\z@
+  \@afterindenttrue
+  \secdef\@chapter\@schapter}
+\def\@chapter[#1]#2{%
+  \ifnum \c@secnumdepth >\m@ne
+    \if@mainmatter
+    \refstepcounter{chapter}%
+    \typeout{\@chapapp\space\thechapter\space\@chappos}%
+    \addcontentsline{toc}{chapter}%
+      {\protect\numberline{\@chapapp\thechapter\@chappos}#1}%
+    \else\addcontentsline{toc}{chapter}{#1}\fi
+  \else
+    \addcontentsline{toc}{chapter}{#1}%
+  \fi
+  \chaptermark{#1}%
+  \addtocontents{lof}{\protect\addvspace{10\p@}}%
+  \addtocontents{lot}{\protect\addvspace{10\p@}}%
+  \@makechapterhead{#2}\@afterheading}
+\def\@makechapterhead#1{\hbox{}%
+  \vskip2\Cvs
+  {\parindent\z@
+   \raggedright
+   \reset@font\huge\bfseries
+   \leavevmode
+   \ifnum \c@secnumdepth >\m@ne
+     \setlength\@tempdima{\linewidth}%
+    \if@mainmatter
+     \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1zw}%
+     \addtolength\@tempdima{-\wd\z@}%
+     \unhbox\z@\nobreak
+    \fi
+     \vtop{\hsize\@tempdima#1}%
+   \else
+     #1\relax
+   \fi}\nobreak\vskip3\Cvs}
+\def\@schapter#1{%
+  \@makeschapterhead{#1}\@afterheading
+}
+\def\@makeschapterhead#1{\hbox{}%
+  \vskip2\Cvs
+  {\parindent\z@
+   \raggedright
+   \reset@font\huge\bfseries
+   \leavevmode
+   \setlength\@tempdima{\linewidth}%
+   \vtop{\hsize\@tempdima#1}}\vskip3\Cvs}
+\newcommand{\section}{\@startsection{section}{1}{\z@}%
+   {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
+   {.5\Cvs \@plus.3\Cvs}%
+   {\reset@font\Large\bfseries}}
+\newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
+   {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
+   {.5\Cvs \@plus.3\Cvs}%
+   {\reset@font\large\bfseries}}
+\newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
+   {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
+   {.5\Cvs \@plus.3\Cvs}%
+   {\reset@font\normalsize\bfseries}}
+\newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
+   {3.25ex \@plus 1ex \@minus .2ex}%
+   {-1em}%
+   {\reset@font\normalsize\bfseries}}
+\newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
+   {3.25ex \@plus 1ex \@minus .2ex}%
+   {-1em}%
+   {\reset@font\normalsize\bfseries}}
+\newcommand{\appendix}{\par
+  \setcounter{chapter}{0}%
+  \setcounter{section}{0}%
+  \renewcommand{\@chapapp}{\appendixname}%
+  \renewcommand{\@chappos}\space%
+  \renewcommand{\thechapter}{\@Alph\c@chapter}}
+\if@twocolumn
+  \setlength\leftmargini {2em}
+\else
+  \setlength\leftmargini {2.5em}
+\fi
+\setlength\leftmarginii  {2.2em}
+\setlength\leftmarginiii {1.87em}
+\setlength\leftmarginiv  {1.7em}
+\if@twocolumn
+  \setlength\leftmarginv {.5em}
+  \setlength\leftmarginvi{.5em}
+\else
+  \setlength\leftmarginv {1em}
+  \setlength\leftmarginvi{1em}
+\fi
+\setlength  \labelsep  {.5em}
+\setlength  \labelwidth{\leftmargini}
+\addtolength\labelwidth{-\labelsep}
+\@beginparpenalty -\@lowpenalty
+\@endparpenalty   -\@lowpenalty
+\@itempenalty     -\@lowpenalty
+\renewcommand{\theenumi}{\@arabic\c@enumi}
+\renewcommand{\theenumii}{\@alph\c@enumii}
+\renewcommand{\theenumiii}{\@roman\c@enumiii}
+\renewcommand{\theenumiv}{\@Alph\c@enumiv}
+\newcommand{\labelenumi}{\theenumi.}
+\newcommand{\labelenumii}{(\theenumii)}
+\newcommand{\labelenumiii}{\theenumiii.}
+\newcommand{\labelenumiv}{\theenumiv.}
+\renewcommand{\p@enumii}{\theenumi}
+\renewcommand{\p@enumiii}{\theenumi(\theenumii)}
+\renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
+\renewenvironment{enumerate}
+  {\ifnum \@enumdepth >\thr@@\@toodeep\else
+   \advance\@enumdepth\@ne
+   \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
+   \list{\csname label\@enumctr\endcsname}{%
+      \iftdir
+         \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
+           \else\topsep\z@\fi
+         \parskip\z@ \itemsep\z@ \parsep\z@
+         \labelwidth1zw \labelsep.3zw
+         \ifnum \@enumdepth=\@ne \leftmargin1zw\relax
+           \else\leftmargin\leftskip\fi
+         \advance\leftmargin 1zw
+      \fi
+         \usecounter{\@enumctr}%
+         \def\makelabel##1{\hss\llap{##1}}}%
+   \fi}{\endlist}
+\newcommand{\labelitemi}{\textbullet}
+\newcommand{\labelitemii}{%
+  \iftdir
+     {\textcircled{~}}
+  \else
+     {\normalfont\bfseries\textendash}
+  \fi
+}
+\newcommand{\labelitemiii}{\textasteriskcentered}
+\newcommand{\labelitemiv}{\textperiodcentered}
+\renewenvironment{itemize}
+  {\ifnum \@itemdepth >\thr@@\@toodeep\else
+   \advance\@itemdepth\@ne
+   \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
+   \expandafter
+   \list{\csname \@itemitem\endcsname}{%
+      \iftdir
+         \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
+           \else\topsep\z@\fi
+         \parskip\z@ \itemsep\z@ \parsep\z@
+         \labelwidth1zw \labelsep.3zw
+         \ifnum \@itemdepth =\@ne \leftmargin1zw\relax
+           \else\leftmargin\leftskip\fi
+         \advance\leftmargin 1zw
+      \fi
+         \def\makelabel##1{\hss\llap{##1}}}%
+   \fi}{\endlist}
+\newenvironment{description}
+  {\list{}{\labelwidth\z@ \itemindent-\leftmargin
+   \iftdir
+     \leftmargin\leftskip \advance\leftmargin3\Cwd
+     \rightmargin\rightskip
+     \labelsep=1zw \itemsep\z@
+     \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
+   \fi
+           \let\makelabel\descriptionlabel}}{\endlist}
+\newcommand{\descriptionlabel}[1]{%
+   \hspace\labelsep\normalfont\bfseries #1}
+\newenvironment{verse}
+  {\let\\\@centercr
+   \list{}{\itemsep\z@ \itemindent -1.5em%
+           \listparindent\itemindent
+           \rightmargin\leftmargin \advance\leftmargin 1.5em}%
+           \item\relax}{\endlist}
+\newenvironment{quotation}
+  {\list{}{\listparindent 1.5em%
+           \itemindent\listparindent
+           \rightmargin\leftmargin
+           \parsep\z@ \@plus\p@}%
+           \item\relax}{\endlist}
+\newenvironment{quote}
+  {\list{}{\rightmargin\leftmargin}%
+           \item\relax}{\endlist}
+\newcounter{figure}[chapter]
+\renewcommand{\thefigure}{%
+  \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@figure}
+\def\fps@figure{tbp}
+\def\ftype@figure{1}
+\def\ext@figure{lof}
+\def\fnum@figure{\figurename~\thefigure}
+\newenvironment{figure}
+               {\@float{figure}}
+               {\end@float}
+\newenvironment{figure*}
+               {\@dblfloat{figure}}
+               {\end@dblfloat}
+\newcounter{table}[chapter]
+\renewcommand{\thetable}{%
+  \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@table}
+\def\fps@table{tbp}
+\def\ftype@table{2}
+\def\ext@table{lot}
+\def\fnum@table{\tablename~\thetable}
+\newenvironment{table}
+               {\@float{table}}
+               {\end@float}
+\newenvironment{table*}
+               {\@dblfloat{table}}
+               {\end@dblfloat}
+\newlength\abovecaptionskip
+\newlength\belowcaptionskip
+\setlength\abovecaptionskip{10\p@}
+\setlength\belowcaptionskip{0\p@}
+\long\def\@makecaption#1#2{%
+  \vskip\abovecaptionskip
+  \iftdir\sbox\@tempboxa{#1\hskip1zw#2}%
+    \else\sbox\@tempboxa{#1: #2}%
+  \fi
+  \ifdim \wd\@tempboxa >\hsize
+    \iftdir #1\hskip1zw#2\relax\par
+      \else #1: #2\relax\par\fi
+  \else
+    \global \@minipagefalse
+    \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
+  \fi
+  \vskip\belowcaptionskip}
+\setlength\arraycolsep{5\p@}
+\setlength\tabcolsep{6\p@}
+\setlength\arrayrulewidth{.4\p@}
+\setlength\doublerulesep{2\p@}
+\setlength\tabbingsep{\labelsep}
+\skip\@mpfootins = \skip\footins
+\setlength\fboxsep{3\p@}
+\setlength\fboxrule{.4\p@}
+\@addtoreset{equation}{chapter}
+\renewcommand{\theequation}{%
+  \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
+\if@enablejfam
+  \if@compatibility\else
+    \DeclareSymbolFont{mincho}{JY1}{mc}{m}{n}
+    \DeclareSymbolFontAlphabet{\mathmc}{mincho}
+    \SetSymbolFont{mincho}{bold}{JY1}{gt}{m}{n}
+    \jfam\symmincho
+    \DeclareMathAlphabet{\mathgt}{JY1}{gt}{m}{n}
+  \fi
+  \if@mathrmmc
+    \AtBeginDocument{%
+    \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
+    \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
+  }%
+  \fi
+\else
+  \DeclareRobustCommand{\mathmc}{%
+    \@latex@error{Command \noexpand\mathmc invalid with\space
+       `disablejfam' class option.}\@eha
+  }
+  \DeclareRobustCommand{\mathgt}{%
+    \@latex@error{Command \noexpand\mathgt invalid with\space
+       `disablejfam' class option.}\@eha
+  }
+\fi
+\DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
+\DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
+\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
+\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
+\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
+\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
+\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
+\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
+\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
+\DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
+\DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
+\setcounter{tocdepth}{2}
+\newcommand{\@pnumwidth}{1.55em}
+\newcommand{\@tocrmarg}{2.55em}
+\newcommand{\@dotsep}{4.5}
+\newdimen\toclineskip
+\setlength\toclineskip{\z@}
+\newdimen\@lnumwidth
+\def\numberline#1{\hbox to\@lnumwidth{#1\hfil}}
+\def\@dottedtocline#1#2#3#4#5{%
+  \ifnum #1>\c@tocdepth \else
+    \vskip\toclineskip \@plus.2\p@
+    {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
+     \parindent #2\relax\@afterindenttrue
+     \interlinepenalty\@M
+     \leavevmode
+     \@lnumwidth #3\relax
+     \advance\leftskip \@lnumwidth \hbox{}\hskip -\leftskip
+     {#4}\nobreak
+     \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
+     \hfill\nobreak
+     \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
+     \par}%
+  \fi}
+\def\addcontentsline#1#2#3{%
+  \protected@write\@auxout
+    {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
+\@temptokena{\thepage}}%
+    {\string\@writefile{#1}%
+       {\protect\contentsline{#2}{#3}{\the\@temptokena}}}%
+}
+\newcommand{\tableofcontents}{%
+  \if@twocolumn\@restonecoltrue\onecolumn
+  \else\@restonecolfalse\fi
+  \chapter*{\contentsname
+    \@mkboth{\contentsname}{\contentsname}%
+  }\@starttoc{toc}%
+  \if@restonecol\twocolumn\fi
+}
+\newcommand*{\l@part}[2]{%
+  \ifnum \c@tocdepth >-2\relax
+    \addpenalty{-\@highpenalty}%
+    \addvspace{2.25em \@plus\p@}%
+    \begingroup
+    \parindent\z@\rightskip\@pnumwidth
+    \parfillskip-\@pnumwidth
+    {\leavevmode\large\bfseries
+     \setlength\@lnumwidth{4zw}%
+     #1\hfil\nobreak
+     \hbox to\@pnumwidth{\hss#2}}\par
+    \nobreak
+    \global\@nobreaktrue
+    \everypar{\global\@nobreakfalse\everypar{}}%
+     \endgroup
+  \fi}
+\newcommand*{\l@chapter}[2]{%
+  \ifnum \c@tocdepth >\m@ne
+    \addpenalty{-\@highpenalty}%
+    \addvspace{1.0em \@plus\p@}%
+    \begingroup
+      \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
+      \leavevmode\bfseries
+      \setlength\@lnumwidth{4zw}%
+      \advance\leftskip\@lnumwidth \hskip-\leftskip
+      #1\nobreak\hfil\nobreak\hbox to\@pnumwidth{\hss#2}\par
+      \penalty\@highpenalty
+    \endgroup
+  \fi}
+\newcommand*{\l@section}{\@dottedtocline{1}{1.5em}{2.3em}}
+\newcommand*{\l@subsection}   {\@dottedtocline{2}{3.8em}{3.2em}}
+\newcommand*{\l@subsubsection}{\@dottedtocline{3}{7.0em}{4.1em}}
+\newcommand*{\l@paragraph}    {\@dottedtocline{4}{10em}{5em}}
+\newcommand*{\l@subparagraph} {\@dottedtocline{5}{12em}{6em}}
+\newcommand{\listoffigures}{%
+  \if@twocolumn\@restonecoltrue\onecolumn
+  \else\@restonecolfalse\fi
+  \chapter*{\listfigurename
+  \@mkboth{\listfigurename}{\listfigurename}}%
+  \@starttoc{lof}%
+  \if@restonecol\twocolumn\fi
+}
+\newcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.3em}}
+\newcommand{\listoftables}{%
+  \if@twocolumn\@restonecoltrue\onecolumn
+  \else\@restonecolfalse\fi
+  \chapter*{\listtablename
+  \@mkboth{\listtablename}{\listtablename}}%
+  \@starttoc{lot}%
+  \if@restonecol\twocolumn\fi
+}
+\let\l@table\l@figure
+\newdimen\bibindent
+\setlength\bibindent{1.5em}
+\newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
+\newenvironment{thebibliography}[1]
+{\chapter*{\bibname\@mkboth{\bibname}{\bibname}}%
+   \list{\@biblabel{\@arabic\c@enumiv}}%
+        {\settowidth\labelwidth{\@biblabel{#1}}%
+         \leftmargin\labelwidth
+         \advance\leftmargin\labelsep
+         \@openbib@code
+         \usecounter{enumiv}%
+         \let\p@enumiv\@empty
+         \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+   \sloppy
+   \clubpenalty4000
+   \@clubpenalty\clubpenalty
+   \widowpenalty4000%
+   \sfcode`\.\@m}
+  {\def\@noitemerr
+    {\@latex@warning{Empty `thebibliography' environment}}%
+   \endlist}
+\let\@openbib@code\@empty
+\newenvironment{theindex}
+  {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
+   \columnseprule\z@ \columnsep 35\p@
+   \twocolumn[\@makeschapterhead{\indexname}]%
+   \@mkboth{\indexname}{\indexname}%
+   \thispagestyle{jpl@in}\parindent\z@
+   \parskip\z@ \@plus .3\p@\relax
+   \let\item\@idxitem}
+  {\if@restonecol\onecolumn\else\clearpage\fi}
+\newcommand{\@idxitem}{\par\hangindent 40\p@}
+\newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
+\newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
+\newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
+\renewcommand{\footnoterule}{%
+  \kern-3\p@
+  \hrule width .4\columnwidth
+  \kern 2.6\p@}
+\@addtoreset{footnote}{chapter}
+\newcommand\@makefntext[1]{\parindent 1em
+  \noindent\hbox to 1.8em{\hss\@makefnmark}#1}
+\newif\if$B@>Nq(B \$B@>Nq(Bfalse
+\def\$B@>Nq(B{\$B@>Nq(Btrue}
+\def\$BOBNq(B{\$B@>Nq(Bfalse}
+\newcount\heisei \heisei\year \advance\heisei-1988\relax
+\def\today{{%
+  \iftdir
+    \if$B@>Nq(B
+      \kansuji\number\year $BG/(B
+      \kansuji\number\month $B7n(B
+      \kansuji\number\day $BF|(B
+    \else
+      $BJ?@.(B\ifnum\heisei=1 $B85G/(B\else\kansuji\number\heisei $BG/(B\fi
+      \kansuji\number\month $B7n(B
+      \kansuji\number\day $BF|(B
+    \fi
+  \else
+    \if$B@>Nq(B
+      \number\year~$BG/(B
+      \number\month~$B7n(B
+      \number\day~$BF|(B
+    \else
+      $BJ?@.(B\ifnum\heisei=1 $B85G/(B\else\number\heisei~$BG/(B\fi
+      \number\month~$B7n(B
+      \number\day~$BF|(B
+    \fi
+  \fi}}
+\newcommand{\prepartname}{$BBh(B}
+\newcommand{\postpartname}{$BIt(B}
+\newcommand{\prechaptername}{$BBh(B}
+\newcommand{\postchaptername}{$B>O(B}
+\newcommand{\contentsname}{$BL\(B $B<!(B}
+\newcommand{\listfigurename}{$B?^(B $BL\(B $B<!(B}
+\newcommand{\listtablename}{$BI=(B $BL\(B $B<!(B}
+\newcommand{\bibname}{$B4XO"?^=q(B}
+\newcommand{\indexname}{$B:w(B $B0z(B}
+\newcommand{\figurename}{$B?^(B}
+\newcommand{\tablename}{$BI=(B}
+\newcommand{\appendixname}{$BIU(B $BO?(B}
+\pagestyle{headings}
+\pagenumbering{arabic}
+\raggedbottom
+\if@twocolumn
+  \twocolumn
+  \sloppy
+\else
+  \onecolumn
+\fi
+\if@twoside
+  \@mparswitchtrue
+\else
+  \@mparswitchfalse
+\fi
+\endinput
+%%
+%% End of file `jbook.cls'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/jbook.sty b/tex-ptex/files/texmf-dist/tex/platex/base/jbook.sty
new file mode 100644
index 0000000000..c257109c24
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/jbook.sty
@@ -0,0 +1,45 @@
+%%
+%% This is file `jbook.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% pl209.dtx  (with options: `style,jbook')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from jbook.sty.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file pl209.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: pl209.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\@obsoletefile{jbook.cls}{jbook.sty}
+\LoadClass{jbook}
+\endinput
+%%
+%% End of file `jbook.sty'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/jltxdoc.cls b/tex-ptex/files/texmf-dist/tex/platex/base/jltxdoc.cls
new file mode 100644
index 0000000000..a7389422f0
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/jltxdoc.cls
@@ -0,0 +1,91 @@
+%%
+%% This is file `jltxdoc.cls',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% jltxdoc.dtx  (with options: `class')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from jltxdoc.cls.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file jltxdoc.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: jltxdoc.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+
+\NeedsTeXFormat{pLaTeX2e}
+\ProvidesClass{jltxdoc}[1997/07/29 v1.0b Standard pLaTeX file]
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ltxdoc}}
+\ProcessOptions
+\LoadClass{ltxdoc}
+\renewcommand{\normalsize}{%
+    \@setfontsize\normalsize\@xpt{15}%
+  \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
+   \belowdisplayskip \abovedisplayskip
+   \let\@listi\@listI}
+\renewcommand{\small}{%
+  \@setfontsize\small\@ixpt{11}%
+  \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
+  \abovedisplayshortskip \z@ \@plus2\p@
+  \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 4\p@ \@plus2\p@ \@minus2\p@
+              \parsep 2\p@ \@plus\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\normalsize
+\setlength\parindent{1zw}
+\providecommand*{\file}[1]{\texttt{#1}}
+\providecommand*{\pstyle}[1]{\textsl{#1}}
+\providecommand*{\Lcount}[1]{\textsl{\small#1}}
+\providecommand*{\Lopt}[1]{\textsf{#1}}
+\providecommand\dst{{\normalfont\scshape docstrip}}
+\providecommand\NFSS{\textsf{NFSS}}
+\newcounter{@clineno}
+\def\mlineplus#1{\setcounter{@clineno}{\arabic{CodelineNo}}%
+   \addtocounter{@clineno}{#1}\arabic{@clineno}}
+\def\tsample#1{%
+  \hbox to\linewidth\bgroup\vrule width.1pt\hss
+    \vbox\bgroup\hrule height.1pt
+      \vskip.5\baselineskip
+      \vbox to\linewidth\bgroup\tate\hsize=#1\relax\vss}
+\def\endtsample{%
+      \vss\egroup
+      \vskip.5\baselineskip
+    \hrule height.1pt\egroup
+  \hss\vrule width.1pt\egroup}
+\def\DisableCrossrefs{\@bsphack\scan@allowedfalse\@esphack}
+\def\EnableCrossrefs{\@bsphack\scan@allowedtrue
+   \def\DisableCrossrefs{\@bsphack\scan@allowedfalse\@esphack}\@esphack}
+\xspcode"5C=3 %% \
+\xspcode"22=3 %% "
+\endinput
+%%
+%% End of file `jltxdoc.cls'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/jreport.cls b/tex-ptex/files/texmf-dist/tex/platex/base/jreport.cls
new file mode 100644
index 0000000000..6c8901f042
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/jreport.cls
@@ -0,0 +1,895 @@
+%%
+%% This is file `jreport.cls',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% jclasses.dtx  (with options: `report,yoko')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from jreport.cls.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file jclasses.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: jclasses.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\ProvidesClass{jreport}
+  [2006/06/27 v1.6
+ Standard pLaTeX class]
+\newcounter{@paper}
+\newif\if@landscape \@landscapefalse
+\newcommand{\@ptsize}{}
+\newif\if@restonecol
+\newif\if@titlepage
+\@titlepagetrue
+\newif\if@openright
+\hour\time \divide\hour by 60\relax
+\@tempcnta\hour \multiply\@tempcnta 60\relax
+\minute\time \advance\minute-\@tempcnta
+\newif\if@stysize \@stysizefalse
+\newif\if@enablejfam \@enablejfamtrue
+\newif\if@mathrmmc \@mathrmmcfalse
+\DeclareOption{a4paper}{\setcounter{@paper}{1}%
+  \setlength\paperheight {297mm}%
+  \setlength\paperwidth  {210mm}}
+\DeclareOption{a5paper}{\setcounter{@paper}{2}%
+  \setlength\paperheight {210mm}
+  \setlength\paperwidth  {148mm}}
+\DeclareOption{b4paper}{\setcounter{@paper}{3}%
+  \setlength\paperheight {364mm}
+  \setlength\paperwidth  {257mm}}
+\DeclareOption{b5paper}{\setcounter{@paper}{4}%
+  \setlength\paperheight {257mm}
+  \setlength\paperwidth  {182mm}}
+\DeclareOption{a4j}{\setcounter{@paper}{1}\@stysizetrue
+  \setlength\paperheight {297mm}%
+  \setlength\paperwidth  {210mm}}
+\DeclareOption{a5j}{\setcounter{@paper}{2}\@stysizetrue
+  \setlength\paperheight {210mm}
+  \setlength\paperwidth  {148mm}}
+\DeclareOption{b4j}{\setcounter{@paper}{3}\@stysizetrue
+  \setlength\paperheight {364mm}
+  \setlength\paperwidth  {257mm}}
+\DeclareOption{b5j}{\setcounter{@paper}{4}\@stysizetrue
+  \setlength\paperheight {257mm}
+  \setlength\paperwidth  {182mm}}
+\DeclareOption{a4p}{\setcounter{@paper}{1}\@stysizetrue
+  \setlength\paperheight {297mm}%
+  \setlength\paperwidth  {210mm}}
+\DeclareOption{a5p}{\setcounter{@paper}{2}\@stysizetrue
+  \setlength\paperheight {210mm}
+  \setlength\paperwidth  {148mm}}
+\DeclareOption{b4p}{\setcounter{@paper}{3}\@stysizetrue
+  \setlength\paperheight {364mm}
+  \setlength\paperwidth  {257mm}}
+\DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
+  \setlength\paperheight {257mm}
+  \setlength\paperwidth  {182mm}}
+\if@compatibility
+  \renewcommand{\@ptsize}{0}
+\else
+  \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
+\fi
+\DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
+\DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
+\DeclareOption{landscape}{\@landscapetrue
+  \setlength\@tempdima{\paperheight}%
+  \setlength\paperheight{\paperwidth}%
+  \setlength\paperwidth{\@tempdima}}
+\DeclareOption{tombow}{%
+  \tombowtrue \tombowdatetrue
+  \setlength{\@tombowwidth}{.1\p@}%
+  \@bannertoken{%
+     \jobname\space:\space\number\year/\number\month/\number\day
+      (\number\hour:\number\minute)}
+  \maketombowbox}
+\DeclareOption{tombo}{%
+  \tombowtrue \tombowdatefalse
+  \setlength{\@tombowwidth}{.1\p@}%
+  \maketombowbox}
+\DeclareOption{mentuke}{%
+  \tombowtrue \tombowdatefalse
+  \setlength{\@tombowwidth}{\z@}%
+  \maketombowbox}
+\DeclareOption{tate}{%
+  \AtBeginDocument{\tate\message{$B!T=DAH%b!<%I!U(B}%
+                   \adjustbaseline}%
+}
+\DeclareOption{oneside}{\@twosidefalse}
+\DeclareOption{twoside}{\@twosidetrue}
+\DeclareOption{onecolumn}{\@twocolumnfalse}
+\DeclareOption{twocolumn}{\@twocolumntrue}
+\DeclareOption{titlepage}{\@titlepagetrue}
+\DeclareOption{notitlepage}{\@titlepagefalse}
+\if@compatibility
+\else
+\DeclareOption{openright}{\@openrighttrue}
+\DeclareOption{openany}{\@openrightfalse}
+\fi
+\DeclareOption{leqno}{\input{leqno.clo}}
+\DeclareOption{fleqn}{\input{fleqn.clo}}
+\DeclareOption{openbib}{%
+  \AtEndOfPackage{%
+   \renewcommand\@openbib@code{%
+      \advance\leftmargin\bibindent
+      \itemindent -\bibindent
+      \listparindent \itemindent
+      \parsep \z@
+      }%
+   \renewcommand\newblock{\par}}}
+\if@compatibility
+  \@mathrmmctrue
+\else
+  \DeclareOption{disablejfam}{\@enablejfamfalse}
+  \DeclareOption{mathrmmc}{\@mathrmmctrue}
+\fi
+\DeclareOption{draft}{\setlength\overfullrule{5pt}}
+\DeclareOption{final}{\setlength\overfullrule{0pt}}
+\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,openany}
+\ProcessOptions\relax
+\input{jsize1\@ptsize.clo}
+\if@stysize
+  \setlength\columnsep{2\Cwd}
+\else
+  \setlength\columnsep{10\p@}
+\fi
+\setlength\columnseprule{0\p@}
+\setlength\lineskip{1\p@}
+\setlength\normallineskip{1\p@}
+\renewcommand{\baselinestretch}{}
+\setlength\parskip{0\p@ \@plus \p@}
+\setlength\parindent{1\Cwd}
+\@lowpenalty   51
+\@medpenalty  151
+\@highpenalty 301
+\setcounter{topnumber}{2}
+\setcounter{bottomnumber}{1}
+\setcounter{totalnumber}{3}
+\setcounter{dbltopnumber}{2}
+\renewcommand{\topfraction}{.7}
+\renewcommand{\bottomfraction}{.3}
+\renewcommand{\textfraction}{.2}
+\renewcommand{\floatpagefraction}{.5}
+\renewcommand{\dbltopfraction}{.7}
+\renewcommand{\dblfloatpagefraction}{.5}
+\def\ps@plain{\let\@mkboth\@gobbletwo
+   \let\ps@jpl@in\ps@plain
+   \let\@oddhead\@empty
+   \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
+   \let\@evenhead\@empty
+   \let\@evenfoot\@oddfoot}
+\let\ps@jpl@in\ps@plain
+\def\ps@headnombre{\let\@mkboth\@gobbletwo
+    \let\ps@jpl@in\ps@headnombre
+  \def\@evenhead{\thepage\hfil}%
+  \def\@oddhead{\hfil\thepage}%
+  \let\@oddfoot\@empty\let\@evenfoot\@empty}
+\def\ps@footnombre{\let\@mkboth\@gobbletwo
+    \let\ps@jpl@in\ps@footnombre
+  \def\@evenfoot{\thepage\hfil}%
+  \def\@oddfoot{\hfil\thepage}%
+  \let\@oddhead\@empty\let\@evenhead\@empty}
+\if@twoside
+  \def\ps@headings{\let\ps@jpl@in\ps@headnombre
+    \let\@oddfoot\@empty\let\@evenfoot\@empty
+    \def\@evenhead{\thepage\hfil\leftmark}%
+    \def\@oddhead{{\rightmark}\hfil\thepage}%
+    \let\@mkboth\markboth
+  \def\chaptermark##1{\markboth{%
+     \ifnum \c@secnumdepth >\m@ne
+         \@chapapp\thechapter\@chappos\hskip1zw
+     \fi
+     ##1}{}}%
+  \def\sectionmark##1{\markright{%
+     \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi
+     ##1}}%
+  }
+\else % if not twoside
+  \def\ps@headings{\let\ps@jpl@in\ps@headnombre
+    \let\@oddfoot\@empty
+    \def\@oddhead{{\rightmark}\hfil\thepage}%
+    \let\@mkboth\markboth
+\def\chaptermark##1{\markright{%
+   \ifnum \c@secnumdepth >\m@ne
+       \@chapapp\thechapter\@chappos\hskip1zw
+   \fi
+   ##1}}%
+  }
+\fi
+\if@twoside
+  \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
+    \def\@evenhead{\leftmark\hfil}% right page
+    \def\@evenfoot{\thepage\hfil}% right page
+    \def\@oddhead{\hfil\rightmark}% left page
+    \def\@oddfoot{\hfil\thepage}% left page
+  \let\@mkboth\markboth
+\def\chaptermark##1{\markboth{%
+     \ifnum \c@secnumdepth >\m@ne
+         \@chapapp\thechapter\@chappos\hskip1zw
+     \fi
+     ##1}{}}%
+  \def\sectionmark##1{\markright{%
+     \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi
+     ##1}}%
+  }
+\else % if one column
+  \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
+    \def\@oddhead{\hfil\rightmark}%
+    \def\@oddfoot{\hfil\thepage}%
+    \let\@mkboth\markboth
+  \def\chaptermark##1{\markright{%
+     \ifnum \c@secnumdepth >\m@ne
+         \@chapapp\thechapter\@chappos\hskip1zw
+     \fi
+     ##1}}%
+  }
+\fi
+\def\ps@myheadings{\let\ps@jpl@in\ps@plain%
+  \let\@oddfoot\@empty\let\@evenfoot\@empty
+  \def\@evenhead{\thepage\hfil\leftmark}%
+  \def\@oddhead{{\rightmark}\hfil\thepage}%
+  \let\@mkboth\@gobbletwo
+  \let\chaptermark\@gobble
+  \let\sectionmark\@gobble
+}
+\if@compatibility
+\newenvironment{titlepage}
+    {%
+     \if@twocolumn\@restonecoltrue\onecolumn
+     \else\@restonecolfalse\newpage\fi
+     \thispagestyle{empty}%
+     \setcounter{page}\z@
+    }%
+    {\if@restonecol\twocolumn\else\newpage\fi
+    }
+\else
+\newenvironment{titlepage}
+    {%
+      \if@twocolumn
+        \@restonecoltrue\onecolumn
+      \else
+        \@restonecolfalse\newpage
+      \fi
+      \thispagestyle{empty}%
+      \setcounter{page}\@ne
+    }%
+    {\if@restonecol\twocolumn \else \newpage \fi
+     \if@twoside\else
+        \setcounter{page}\@ne
+     \fi
+    }
+\fi
+\def\p@thanks#1{\footnotemark
+  \protected@xdef\@thanks{\@thanks
+    \protect{\noindent$\m@th^\thefootnote$~#1\protect\par}}}
+\if@titlepage
+  \newcommand{\maketitle}{\begin{titlepage}%
+  \let\footnotesize\small
+  \let\footnoterule\relax
+  \let\footnote\thanks
+  \null\vfil
+  \vskip 60\p@
+  \begin{center}%
+    {\LARGE \@title \par}%
+    \vskip 3em%
+    {\Large
+     \lineskip .75em%
+      \begin{tabular}[t]{c}%
+        \@author
+      \end{tabular}\par}%
+      \vskip 1.5em%
+    {\large \@date \par}%       % Set date in \large size.
+  \end{center}\par
+  \@thanks\vfil\null
+  \end{titlepage}%
+  \setcounter{footnote}{0}%
+  \global\let\thanks\relax
+  \global\let\maketitle\relax
+  \global\let\p@thanks\relax
+  \global\let\@thanks\@empty
+  \global\let\@author\@empty
+  \global\let\@date\@empty
+  \global\let\@title\@empty
+  \global\let\title\relax
+  \global\let\author\relax
+  \global\let\date\relax
+  \global\let\and\relax
+  }%
+\else
+  \newcommand{\maketitle}{\par
+  \begingroup
+    \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
+    \def\@makefnmark{\hbox{\ifydir $\m@th^{\@thefnmark}$
+      \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
+     \long\def\@makefntext##1{\parindent 1em\noindent
+       \hbox to1.8em{\hss$\m@th^{\@thefnmark}$}##1}%
+    \if@twocolumn
+      \ifnum \col@number=\@ne \@maketitle
+      \else \twocolumn[\@maketitle]%
+      \fi
+    \else
+      \newpage
+      \global\@topnum\z@   % Prevents figures from going at top of page.
+      \@maketitle
+    \fi
+     \thispagestyle{jpl@in}\@thanks
+  \endgroup
+  \setcounter{footnote}{0}%
+  \global\let\thanks\relax
+  \global\let\maketitle\relax
+  \global\let\p@thanks\relax
+  \global\let\@thanks\@empty
+  \global\let\@author\@empty
+  \global\let\@date\@empty
+  \global\let\@title\@empty
+  \global\let\title\relax
+  \global\let\author\relax
+  \global\let\date\relax
+  \global\let\and\relax
+  }
+  \def\@maketitle{%
+  \newpage\null
+  \vskip 2em%
+  \begin{center}%
+  \let\footnote\thanks
+    {\LARGE \@title \par}%
+    \vskip 1.5em%
+    {\large
+      \lineskip .5em%
+      \begin{tabular}[t]{c}%
+        \@author
+      \end{tabular}\par}%
+    \vskip 1em%
+    {\large \@date}%
+  \end{center}%
+  \par\vskip 1.5em}
+\fi
+\if@titlepage
+  \newenvironment{abstract}{%
+      \titlepage
+      \null\vfil
+      \@beginparpenalty\@lowpenalty
+      \begin{center}%
+        {\bfseries\abstractname}%
+        \@endparpenalty\@M
+      \end{center}}%
+      {\par\vfil\null\endtitlepage}
+\else
+  \newenvironment{abstract}{%
+    \if@twocolumn
+      \section*{\abstractname}%
+    \else
+      \small
+      \begin{center}%
+        {\bfseries\abstractname\vspace{-.5em}\vspace{\z@}}%
+      \end{center}%
+      \quotation
+    \fi}{\if@twocolumn\else\endquotation\fi}
+\fi
+\newcommand*{\chaptermark}[1]{}
+\setcounter{secnumdepth}{2}
+\newcounter{part}
+\newcounter{chapter}
+\newcounter{section}[chapter]
+\newcounter{subsection}[section]
+\newcounter{subsubsection}[subsection]
+\newcounter{paragraph}[subsubsection]
+\newcounter{subparagraph}[paragraph]
+\renewcommand{\thepart}{\@Roman\c@part}
+\renewcommand{\thechapter}{\@arabic\c@chapter}
+\renewcommand{\thesection}{\thechapter.\@arabic\c@section}
+\renewcommand{\thesubsection}{\thesection.\@arabic\c@subsection}
+\renewcommand{\thesubsubsection}{%
+   \thesubsection.\@arabic\c@subsubsection}
+\renewcommand{\theparagraph}{%
+   \thesubsubsection.\@arabic\c@paragraph}
+\renewcommand{\thesubparagraph}{%
+   \theparagraph.\@arabic\c@subparagraph}
+\newcommand{\@chapapp}{\prechaptername}
+\newcommand{\@chappos}{\postchaptername}
+\newcommand{\part}{%
+  \if@openright \cleardoublepage \else \clearpage \fi
+  \thispagestyle{empty}%
+  \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi
+  \null\vfil
+  \secdef\@part\@spart}
+\def\@part[#1]#2{%
+  \ifnum \c@secnumdepth >-2\relax
+    \refstepcounter{part}%
+    \addcontentsline{toc}{part}{%
+       \prepartname\thepart\postpartname\hspace{1em}#1}%
+  \else
+    \addcontentsline{toc}{part}{#1}%
+  \fi
+  \markboth{}{}%
+  {\centering
+   \interlinepenalty\@M\reset@font
+   \ifnum \c@secnumdepth >-2\relax
+     \huge\bfseries\prepartname\thepart\postpartname
+     \par\vskip20\p@
+   \fi
+   \Huge\bfseries#2\par}%
+   \@endpart}
+\def\@spart#1{{%
+  \centering
+  \interlinepenalty\@M\reset@font
+  \Huge\bfseries#1\par}%
+  \@endpart}
+\def\@endpart{\vfil\newpage
+   \if@twoside\null\thispagestyle{empty}\newpage\fi
+   \if@tempswa\twocolumn\fi}
+\newcommand{\chapter}{%
+  \if@openright\cleardoublepage\else\clearpage\fi
+  \thispagestyle{jpl@in}%
+  \global\@topnum\z@
+  \@afterindenttrue
+  \secdef\@chapter\@schapter}
+\def\@chapter[#1]#2{%
+  \ifnum \c@secnumdepth >\m@ne
+    \refstepcounter{chapter}%
+    \typeout{\@chapapp\space\thechapter\space\@chappos}%
+    \addcontentsline{toc}{chapter}%
+      {\protect\numberline{\@chapapp\thechapter\@chappos}#1}%
+  \else
+    \addcontentsline{toc}{chapter}{#1}%
+  \fi
+  \chaptermark{#1}%
+  \addtocontents{lof}{\protect\addvspace{10\p@}}%
+  \addtocontents{lot}{\protect\addvspace{10\p@}}%
+  \@makechapterhead{#2}\@afterheading}
+\def\@makechapterhead#1{\hbox{}%
+  \vskip2\Cvs
+  {\parindent\z@
+   \raggedright
+   \reset@font\huge\bfseries
+   \leavevmode
+   \ifnum \c@secnumdepth >\m@ne
+     \setlength\@tempdima{\linewidth}%
+     \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1zw}%
+     \addtolength\@tempdima{-\wd\z@}%
+     \unhbox\z@\nobreak
+     \vtop{\hsize\@tempdima#1}%
+   \else
+     #1\relax
+   \fi}\nobreak\vskip3\Cvs}
+\def\@schapter#1{%
+  \@makeschapterhead{#1}\@afterheading
+}
+\def\@makeschapterhead#1{\hbox{}%
+  \vskip2\Cvs
+  {\parindent\z@
+   \raggedright
+   \reset@font\huge\bfseries
+   \leavevmode
+   \setlength\@tempdima{\linewidth}%
+   \vtop{\hsize\@tempdima#1}}\vskip3\Cvs}
+\newcommand{\section}{\@startsection{section}{1}{\z@}%
+   {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
+   {.5\Cvs \@plus.3\Cvs}%
+   {\reset@font\Large\bfseries}}
+\newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
+   {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
+   {.5\Cvs \@plus.3\Cvs}%
+   {\reset@font\large\bfseries}}
+\newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
+   {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
+   {.5\Cvs \@plus.3\Cvs}%
+   {\reset@font\normalsize\bfseries}}
+\newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
+   {3.25ex \@plus 1ex \@minus .2ex}%
+   {-1em}%
+   {\reset@font\normalsize\bfseries}}
+\newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
+   {3.25ex \@plus 1ex \@minus .2ex}%
+   {-1em}%
+   {\reset@font\normalsize\bfseries}}
+\newcommand{\appendix}{\par
+  \setcounter{chapter}{0}%
+  \setcounter{section}{0}%
+  \renewcommand{\@chapapp}{\appendixname}%
+  \renewcommand{\@chappos}\space%
+  \renewcommand{\thechapter}{\@Alph\c@chapter}}
+\if@twocolumn
+  \setlength\leftmargini {2em}
+\else
+  \setlength\leftmargini {2.5em}
+\fi
+\setlength\leftmarginii  {2.2em}
+\setlength\leftmarginiii {1.87em}
+\setlength\leftmarginiv  {1.7em}
+\if@twocolumn
+  \setlength\leftmarginv {.5em}
+  \setlength\leftmarginvi{.5em}
+\else
+  \setlength\leftmarginv {1em}
+  \setlength\leftmarginvi{1em}
+\fi
+\setlength  \labelsep  {.5em}
+\setlength  \labelwidth{\leftmargini}
+\addtolength\labelwidth{-\labelsep}
+\@beginparpenalty -\@lowpenalty
+\@endparpenalty   -\@lowpenalty
+\@itempenalty     -\@lowpenalty
+\renewcommand{\theenumi}{\@arabic\c@enumi}
+\renewcommand{\theenumii}{\@alph\c@enumii}
+\renewcommand{\theenumiii}{\@roman\c@enumiii}
+\renewcommand{\theenumiv}{\@Alph\c@enumiv}
+\newcommand{\labelenumi}{\theenumi.}
+\newcommand{\labelenumii}{(\theenumii)}
+\newcommand{\labelenumiii}{\theenumiii.}
+\newcommand{\labelenumiv}{\theenumiv.}
+\renewcommand{\p@enumii}{\theenumi}
+\renewcommand{\p@enumiii}{\theenumi(\theenumii)}
+\renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
+\renewenvironment{enumerate}
+  {\ifnum \@enumdepth >\thr@@\@toodeep\else
+   \advance\@enumdepth\@ne
+   \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
+   \list{\csname label\@enumctr\endcsname}{%
+      \iftdir
+         \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
+           \else\topsep\z@\fi
+         \parskip\z@ \itemsep\z@ \parsep\z@
+         \labelwidth1zw \labelsep.3zw
+         \ifnum \@enumdepth=\@ne \leftmargin1zw\relax
+           \else\leftmargin\leftskip\fi
+         \advance\leftmargin 1zw
+      \fi
+         \usecounter{\@enumctr}%
+         \def\makelabel##1{\hss\llap{##1}}}%
+   \fi}{\endlist}
+\newcommand{\labelitemi}{\textbullet}
+\newcommand{\labelitemii}{%
+  \iftdir
+     {\textcircled{~}}
+  \else
+     {\normalfont\bfseries\textendash}
+  \fi
+}
+\newcommand{\labelitemiii}{\textasteriskcentered}
+\newcommand{\labelitemiv}{\textperiodcentered}
+\renewenvironment{itemize}
+  {\ifnum \@itemdepth >\thr@@\@toodeep\else
+   \advance\@itemdepth\@ne
+   \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
+   \expandafter
+   \list{\csname \@itemitem\endcsname}{%
+      \iftdir
+         \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
+           \else\topsep\z@\fi
+         \parskip\z@ \itemsep\z@ \parsep\z@
+         \labelwidth1zw \labelsep.3zw
+         \ifnum \@itemdepth =\@ne \leftmargin1zw\relax
+           \else\leftmargin\leftskip\fi
+         \advance\leftmargin 1zw
+      \fi
+         \def\makelabel##1{\hss\llap{##1}}}%
+   \fi}{\endlist}
+\newenvironment{description}
+  {\list{}{\labelwidth\z@ \itemindent-\leftmargin
+   \iftdir
+     \leftmargin\leftskip \advance\leftmargin3\Cwd
+     \rightmargin\rightskip
+     \labelsep=1zw \itemsep\z@
+     \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
+   \fi
+           \let\makelabel\descriptionlabel}}{\endlist}
+\newcommand{\descriptionlabel}[1]{%
+   \hspace\labelsep\normalfont\bfseries #1}
+\newenvironment{verse}
+  {\let\\\@centercr
+   \list{}{\itemsep\z@ \itemindent -1.5em%
+           \listparindent\itemindent
+           \rightmargin\leftmargin \advance\leftmargin 1.5em}%
+           \item\relax}{\endlist}
+\newenvironment{quotation}
+  {\list{}{\listparindent 1.5em%
+           \itemindent\listparindent
+           \rightmargin\leftmargin
+           \parsep\z@ \@plus\p@}%
+           \item\relax}{\endlist}
+\newenvironment{quote}
+  {\list{}{\rightmargin\leftmargin}%
+           \item\relax}{\endlist}
+\newcounter{figure}[chapter]
+\renewcommand{\thefigure}{%
+  \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@figure}
+\def\fps@figure{tbp}
+\def\ftype@figure{1}
+\def\ext@figure{lof}
+\def\fnum@figure{\figurename~\thefigure}
+\newenvironment{figure}
+               {\@float{figure}}
+               {\end@float}
+\newenvironment{figure*}
+               {\@dblfloat{figure}}
+               {\end@dblfloat}
+\newcounter{table}[chapter]
+\renewcommand{\thetable}{%
+  \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@table}
+\def\fps@table{tbp}
+\def\ftype@table{2}
+\def\ext@table{lot}
+\def\fnum@table{\tablename~\thetable}
+\newenvironment{table}
+               {\@float{table}}
+               {\end@float}
+\newenvironment{table*}
+               {\@dblfloat{table}}
+               {\end@dblfloat}
+\newlength\abovecaptionskip
+\newlength\belowcaptionskip
+\setlength\abovecaptionskip{10\p@}
+\setlength\belowcaptionskip{0\p@}
+\long\def\@makecaption#1#2{%
+  \vskip\abovecaptionskip
+  \iftdir\sbox\@tempboxa{#1\hskip1zw#2}%
+    \else\sbox\@tempboxa{#1: #2}%
+  \fi
+  \ifdim \wd\@tempboxa >\hsize
+    \iftdir #1\hskip1zw#2\relax\par
+      \else #1: #2\relax\par\fi
+  \else
+    \global \@minipagefalse
+    \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
+  \fi
+  \vskip\belowcaptionskip}
+\setlength\arraycolsep{5\p@}
+\setlength\tabcolsep{6\p@}
+\setlength\arrayrulewidth{.4\p@}
+\setlength\doublerulesep{2\p@}
+\setlength\tabbingsep{\labelsep}
+\skip\@mpfootins = \skip\footins
+\setlength\fboxsep{3\p@}
+\setlength\fboxrule{.4\p@}
+\@addtoreset{equation}{chapter}
+\renewcommand{\theequation}{%
+  \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
+\if@enablejfam
+  \if@compatibility\else
+    \DeclareSymbolFont{mincho}{JY1}{mc}{m}{n}
+    \DeclareSymbolFontAlphabet{\mathmc}{mincho}
+    \SetSymbolFont{mincho}{bold}{JY1}{gt}{m}{n}
+    \jfam\symmincho
+    \DeclareMathAlphabet{\mathgt}{JY1}{gt}{m}{n}
+  \fi
+  \if@mathrmmc
+    \AtBeginDocument{%
+    \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
+    \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
+  }%
+  \fi
+\else
+  \DeclareRobustCommand{\mathmc}{%
+    \@latex@error{Command \noexpand\mathmc invalid with\space
+       `disablejfam' class option.}\@eha
+  }
+  \DeclareRobustCommand{\mathgt}{%
+    \@latex@error{Command \noexpand\mathgt invalid with\space
+       `disablejfam' class option.}\@eha
+  }
+\fi
+\DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
+\DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
+\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
+\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
+\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
+\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
+\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
+\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
+\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
+\DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
+\DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
+\setcounter{tocdepth}{2}
+\newcommand{\@pnumwidth}{1.55em}
+\newcommand{\@tocrmarg}{2.55em}
+\newcommand{\@dotsep}{4.5}
+\newdimen\toclineskip
+\setlength\toclineskip{\z@}
+\newdimen\@lnumwidth
+\def\numberline#1{\hbox to\@lnumwidth{#1\hfil}}
+\def\@dottedtocline#1#2#3#4#5{%
+  \ifnum #1>\c@tocdepth \else
+    \vskip\toclineskip \@plus.2\p@
+    {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
+     \parindent #2\relax\@afterindenttrue
+     \interlinepenalty\@M
+     \leavevmode
+     \@lnumwidth #3\relax
+     \advance\leftskip \@lnumwidth \hbox{}\hskip -\leftskip
+     {#4}\nobreak
+     \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
+     \hfill\nobreak
+     \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
+     \par}%
+  \fi}
+\def\addcontentsline#1#2#3{%
+  \protected@write\@auxout
+    {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
+\@temptokena{\thepage}}%
+    {\string\@writefile{#1}%
+       {\protect\contentsline{#2}{#3}{\the\@temptokena}}}%
+}
+\newcommand{\tableofcontents}{%
+  \if@twocolumn\@restonecoltrue\onecolumn
+  \else\@restonecolfalse\fi
+  \chapter*{\contentsname
+    \@mkboth{\contentsname}{\contentsname}%
+  }\@starttoc{toc}%
+  \if@restonecol\twocolumn\fi
+}
+\newcommand*{\l@part}[2]{%
+  \ifnum \c@tocdepth >-2\relax
+    \addpenalty{-\@highpenalty}%
+    \addvspace{2.25em \@plus\p@}%
+    \begingroup
+    \parindent\z@\rightskip\@pnumwidth
+    \parfillskip-\@pnumwidth
+    {\leavevmode\large\bfseries
+     \setlength\@lnumwidth{4zw}%
+     #1\hfil\nobreak
+     \hbox to\@pnumwidth{\hss#2}}\par
+    \nobreak
+    \global\@nobreaktrue
+    \everypar{\global\@nobreakfalse\everypar{}}%
+     \endgroup
+  \fi}
+\newcommand*{\l@chapter}[2]{%
+  \ifnum \c@tocdepth >\m@ne
+    \addpenalty{-\@highpenalty}%
+    \addvspace{1.0em \@plus\p@}%
+    \begingroup
+      \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
+      \leavevmode\bfseries
+      \setlength\@lnumwidth{4zw}%
+      \advance\leftskip\@lnumwidth \hskip-\leftskip
+      #1\nobreak\hfil\nobreak\hbox to\@pnumwidth{\hss#2}\par
+      \penalty\@highpenalty
+    \endgroup
+  \fi}
+\newcommand*{\l@section}{\@dottedtocline{1}{1.5em}{2.3em}}
+\newcommand*{\l@subsection}   {\@dottedtocline{2}{3.8em}{3.2em}}
+\newcommand*{\l@subsubsection}{\@dottedtocline{3}{7.0em}{4.1em}}
+\newcommand*{\l@paragraph}    {\@dottedtocline{4}{10em}{5em}}
+\newcommand*{\l@subparagraph} {\@dottedtocline{5}{12em}{6em}}
+\newcommand{\listoffigures}{%
+  \if@twocolumn\@restonecoltrue\onecolumn
+  \else\@restonecolfalse\fi
+  \chapter*{\listfigurename
+  \@mkboth{\listfigurename}{\listfigurename}}%
+  \@starttoc{lof}%
+  \if@restonecol\twocolumn\fi
+}
+\newcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.3em}}
+\newcommand{\listoftables}{%
+  \if@twocolumn\@restonecoltrue\onecolumn
+  \else\@restonecolfalse\fi
+  \chapter*{\listtablename
+  \@mkboth{\listtablename}{\listtablename}}%
+  \@starttoc{lot}%
+  \if@restonecol\twocolumn\fi
+}
+\let\l@table\l@figure
+\newdimen\bibindent
+\setlength\bibindent{1.5em}
+\newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
+\newenvironment{thebibliography}[1]
+{\chapter*{\bibname\@mkboth{\bibname}{\bibname}}%
+   \list{\@biblabel{\@arabic\c@enumiv}}%
+        {\settowidth\labelwidth{\@biblabel{#1}}%
+         \leftmargin\labelwidth
+         \advance\leftmargin\labelsep
+         \@openbib@code
+         \usecounter{enumiv}%
+         \let\p@enumiv\@empty
+         \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+   \sloppy
+   \clubpenalty4000
+   \@clubpenalty\clubpenalty
+   \widowpenalty4000%
+   \sfcode`\.\@m}
+  {\def\@noitemerr
+    {\@latex@warning{Empty `thebibliography' environment}}%
+   \endlist}
+\let\@openbib@code\@empty
+\newenvironment{theindex}
+  {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
+   \columnseprule\z@ \columnsep 35\p@
+   \twocolumn[\@makeschapterhead{\indexname}]%
+   \@mkboth{\indexname}{\indexname}%
+   \thispagestyle{jpl@in}\parindent\z@
+   \parskip\z@ \@plus .3\p@\relax
+   \let\item\@idxitem}
+  {\if@restonecol\onecolumn\else\clearpage\fi}
+\newcommand{\@idxitem}{\par\hangindent 40\p@}
+\newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
+\newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
+\newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
+\renewcommand{\footnoterule}{%
+  \kern-3\p@
+  \hrule width .4\columnwidth
+  \kern 2.6\p@}
+\@addtoreset{footnote}{chapter}
+\newcommand\@makefntext[1]{\parindent 1em
+  \noindent\hbox to 1.8em{\hss\@makefnmark}#1}
+\newif\if$B@>Nq(B \$B@>Nq(Bfalse
+\def\$B@>Nq(B{\$B@>Nq(Btrue}
+\def\$BOBNq(B{\$B@>Nq(Bfalse}
+\newcount\heisei \heisei\year \advance\heisei-1988\relax
+\def\today{{%
+  \iftdir
+    \if$B@>Nq(B
+      \kansuji\number\year $BG/(B
+      \kansuji\number\month $B7n(B
+      \kansuji\number\day $BF|(B
+    \else
+      $BJ?@.(B\ifnum\heisei=1 $B85G/(B\else\kansuji\number\heisei $BG/(B\fi
+      \kansuji\number\month $B7n(B
+      \kansuji\number\day $BF|(B
+    \fi
+  \else
+    \if$B@>Nq(B
+      \number\year~$BG/(B
+      \number\month~$B7n(B
+      \number\day~$BF|(B
+    \else
+      $BJ?@.(B\ifnum\heisei=1 $B85G/(B\else\number\heisei~$BG/(B\fi
+      \number\month~$B7n(B
+      \number\day~$BF|(B
+    \fi
+  \fi}}
+\newcommand{\prepartname}{$BBh(B}
+\newcommand{\postpartname}{$BIt(B}
+\newcommand{\prechaptername}{$BBh(B}
+\newcommand{\postchaptername}{$B>O(B}
+\newcommand{\contentsname}{$BL\(B $B<!(B}
+\newcommand{\listfigurename}{$B?^(B $BL\(B $B<!(B}
+\newcommand{\listtablename}{$BI=(B $BL\(B $B<!(B}
+\newcommand{\bibname}{$B4XO"?^=q(B}
+\newcommand{\indexname}{$B:w(B $B0z(B}
+\newcommand{\figurename}{$B?^(B}
+\newcommand{\tablename}{$BI=(B}
+\newcommand{\appendixname}{$BIU(B $BO?(B}
+\newcommand{\abstractname}{$B35(B $BMW(B}
+\pagestyle{plain}
+\pagenumbering{arabic}
+\raggedbottom
+\if@twocolumn
+  \twocolumn
+  \sloppy
+\else
+  \onecolumn
+\fi
+\if@twoside
+  \@mparswitchtrue
+\else
+  \@mparswitchfalse
+\fi
+\endinput
+%%
+%% End of file `jreport.cls'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/jreport.sty b/tex-ptex/files/texmf-dist/tex/platex/base/jreport.sty
new file mode 100644
index 0000000000..ebcc1de073
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/jreport.sty
@@ -0,0 +1,45 @@
+%%
+%% This is file `jreport.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% pl209.dtx  (with options: `style,jreport')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from jreport.sty.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file pl209.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: pl209.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\@obsoletefile{jreport.cls}{jreport.sty}
+\LoadClass{jreport}
+\endinput
+%%
+%% End of file `jreport.sty'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/jsize10.clo b/tex-ptex/files/texmf-dist/tex/platex/base/jsize10.clo
new file mode 100644
index 0000000000..c72abf5398
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/jsize10.clo
@@ -0,0 +1,320 @@
+%%
+%% This is file `jsize10.clo',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% jclasses.dtx  (with options: `10pt,yoko')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from jsize10.clo.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file jclasses.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: jclasses.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\ProvidesFile{jsize10.clo}
+  [2006/06/27 v1.6
+  Standard pLaTeX file (size option)]
+\renewcommand{\normalsize}{%
+    \@setfontsize\normalsize\@xpt{15}%
+  \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
+   \belowdisplayskip \abovedisplayskip
+   \let\@listi\@listI}
+\normalsize
+\setbox0\hbox{\char\euc"A1A1}%
+\setlength\Cht{\ht0}
+\setlength\Cdp{\dp0}
+\setlength\Cwd{\wd0}
+\setlength\Cvs{\baselineskip}
+\setlength\Chs{\wd0}
+\newcommand{\small}{%
+  \@setfontsize\small\@ixpt{11}%
+  \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
+  \abovedisplayshortskip \z@ \@plus2\p@
+  \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 4\p@ \@plus2\p@ \@minus2\p@
+              \parsep 2\p@ \@plus\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\footnotesize}{%
+  \@setfontsize\footnotesize\@viiipt{9.5}%
+  \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@
+  \abovedisplayshortskip \z@ \@plus\p@
+  \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 3\p@ \@plus\p@ \@minus\p@
+              \parsep 2\p@ \@plus\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\scriptsize}{\@setfontsize\scriptsize\@viipt\@viiipt}
+\newcommand{\tiny}{\@setfontsize\tiny\@vpt\@vipt}
+\newcommand{\large}{\@setfontsize\large\@xiipt{17}}
+\newcommand{\Large}{\@setfontsize\Large\@xivpt{21}}
+\newcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{25}}
+\newcommand{\huge}{\@setfontsize\huge\@xxpt{28}}
+\newcommand{\Huge}{\@setfontsize\Huge\@xxvpt{33}}
+\setlength\headheight{12\p@}
+\setlength\headsep{25\p@}
+\setlength\topskip{1\Cht}
+\setlength\footskip{30\p@}
+\if@compatibility
+  \setlength\maxdepth{4\p@}
+\else
+  \setlength\maxdepth{.5\topskip}
+\fi
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textwidth{47\Cwd}
+      \else
+        \setlength\textwidth{28\Cwd}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textwidth{75\Cwd}
+      \else
+        \setlength\textwidth{60\Cwd}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textwidth{60\Cwd}
+      \else
+        \setlength\textwidth{37\Cwd}
+      \fi
+    \else % A4 ant other
+      \if@landscape
+        \setlength\textwidth{73\Cwd}
+      \else
+        \setlength\textwidth{47\Cwd}
+      \fi
+    \fi\fi\fi
+  \else
+    \if@twocolumn
+      \setlength\textwidth{52\Cwd}
+    \else
+      \setlength\textwidth{327\p@}
+    \fi
+  \fi
+\else
+  \if@stysize
+    \if@twocolumn
+      \setlength\textwidth{.8\paperwidth}
+    \else
+      \setlength\textwidth{.7\paperwidth}
+    \fi
+  \else
+    \setlength\@tempdima{\paperwidth}
+    \addtolength\@tempdima{-2in}
+    \setlength\@tempdimb{327\p@}
+    \if@twocolumn
+      \ifdim\@tempdima>2\@tempdimb\relax
+        \setlength\textwidth{2\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \else
+      \ifdim\@tempdima>\@tempdimb\relax
+        \setlength\textwidth{\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \fi
+  \fi
+\fi
+\@settopoint\textwidth
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textheight{17\Cvs}
+      \else
+        \setlength\textheight{28\Cvs}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textheight{38\Cvs}
+      \else
+        \setlength\textheight{57\Cvs}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textheight{22\Cvs}
+      \else
+        \setlength\textheight{35\Cvs}
+      \fi
+    \else % A4 and other
+      \if@landscape
+        \setlength\textheight{27\Cvs}
+      \else
+        \setlength\textheight{43\Cvs}
+      \fi
+    \fi\fi\fi
+    \addtolength\textheight{\topskip}
+  \else
+  \setlength\textheight{578\p@}
+  \fi
+\else
+  \if@stysize
+    \setlength\textheight{.75\paperheight}
+  \else
+    \setlength\@tempdima{\paperheight}
+    \addtolength\@tempdima{-2in}
+    \addtolength\@tempdima{-1.5in}
+    \divide\@tempdima\baselineskip
+    \@tempcnta\@tempdima
+    \setlength\textheight{\@tempcnta\baselineskip}
+  \fi
+\fi
+\addtolength\textheight{\topskip}
+\@settopoint\textheight
+\if@compatibility
+  \if@stysize
+    \setlength\topmargin{-.3in}
+  \else
+    \setlength\topmargin{27\p@}
+  \fi
+\else
+  \setlength\topmargin{\paperheight}
+  \addtolength\topmargin{-\headheight}
+  \addtolength\topmargin{-\headsep}
+  \addtolength\topmargin{-\textheight}
+  \addtolength\topmargin{-\footskip}
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \addtolength\topmargin{-1.3in}
+    \else
+      \addtolength\topmargin{-2.0in}
+    \fi
+  \else
+    \addtolength\topmargin{-2.0in}
+  \fi
+  \addtolength\topmargin{-.5\topmargin}
+\fi
+\@settopoint\topmargin
+\if@twocolumn
+  \setlength\marginparsep{10\p@}
+\else
+  \setlength\marginparsep{10\p@}
+\fi
+\setlength\marginparpush{5\p@}
+\if@compatibility
+    \if@twoside
+      \setlength\oddsidemargin   {44\p@}
+      \setlength\evensidemargin  {82\p@}
+      \setlength\marginparwidth {107\p@}
+    \else
+     \setlength\oddsidemargin   {60\p@}
+     \setlength\evensidemargin  {60\p@}
+     \setlength\marginparwidth  {90\p@}
+  \fi
+  \if@twocolumn
+     \setlength\oddsidemargin  {30\p@}
+     \setlength\evensidemargin {30\p@}
+     \setlength\marginparwidth {48\p@}
+  \fi
+  \if@stysize
+    \if@twocolumn\else
+      \setlength\oddsidemargin{0\p@}
+      \setlength\evensidemargin{0\p@}
+    \fi
+  \fi
+\else
+  \setlength\@tempdima{\paperwidth}
+  \addtolength\@tempdima{-\textwidth}
+  \if@twoside
+    \setlength\oddsidemargin{.4\@tempdima}
+  \else
+    \setlength\oddsidemargin{.5\@tempdima}
+  \fi
+  \addtolength\oddsidemargin{-1in}
+  \setlength\evensidemargin{\paperwidth}
+  \addtolength\evensidemargin{-2in}
+  \addtolength\evensidemargin{-\textwidth}
+  \addtolength\evensidemargin{-\oddsidemargin}
+  \@settopoint\oddsidemargin % 1999.1.6
+  \@settopoint\evensidemargin
+  \if@twoside
+    \setlength\marginparwidth{.6\@tempdima}
+    \addtolength\marginparwidth{-.4in}
+  \else
+    \setlength\marginparwidth{.5\@tempdima}
+    \addtolength\marginparwidth{-.4in}
+  \fi
+  \ifdim \marginparwidth >2in
+    \setlength\marginparwidth{2in}
+  \fi
+  \@settopoint\marginparwidth
+\fi
+\setlength\footnotesep{6.65\p@}
+\setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@}
+\setlength\floatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\intextsep   {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\dblfloatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\@fptop{0\p@ \@plus 1fil}
+\setlength\@fpsep{8\p@ \@plus 2fil}
+\setlength\@fpbot{0\p@ \@plus 1fil}
+\setlength\@dblfptop{0\p@ \@plus 1fil}
+\setlength\@dblfpsep{8\p@ \@plus 2fil}
+\setlength\@dblfpbot{0\p@ \@plus 1fil}
+\setlength\partopsep{2\p@ \@plus 1\p@ \@minus 1\p@}
+\def\@listi{\leftmargin\leftmargini
+  \parsep 4\p@ \@plus2\p@ \@minus\p@
+  \topsep 8\p@ \@plus2\p@ \@minus4\p@
+  \itemsep4\p@ \@plus2\p@ \@minus\p@}
+\let\@listI\@listi
+\@listi
+\def\@listii{\leftmargin\leftmarginii
+   \labelwidth\leftmarginii \advance\labelwidth-\labelsep
+   \topsep  4\p@ \@plus2\p@ \@minus\p@
+   \parsep  2\p@ \@plus\p@  \@minus\p@
+   \itemsep\parsep}
+\def\@listiii{\leftmargin\leftmarginiii
+   \labelwidth\leftmarginiii \advance\labelwidth-\labelsep
+   \topsep 2\p@  \@plus\p@\@minus\p@
+   \parsep\z@
+   \partopsep \p@ \@plus\z@ \@minus\p@
+   \itemsep\topsep}
+\def\@listiv {\leftmargin\leftmarginiv
+              \labelwidth\leftmarginiv
+              \advance\labelwidth-\labelsep}
+\def\@listv  {\leftmargin\leftmarginv
+              \labelwidth\leftmarginv
+              \advance\labelwidth-\labelsep}
+\def\@listvi {\leftmargin\leftmarginvi
+              \labelwidth\leftmarginvi
+              \advance\labelwidth-\labelsep}
+\endinput
+%%
+%% End of file `jsize10.clo'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/jsize11.clo b/tex-ptex/files/texmf-dist/tex/platex/base/jsize11.clo
new file mode 100644
index 0000000000..c79da31a58
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/jsize11.clo
@@ -0,0 +1,320 @@
+%%
+%% This is file `jsize11.clo',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% jclasses.dtx  (with options: `11pt,yoko')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from jsize11.clo.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file jclasses.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: jclasses.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\ProvidesFile{jsize11.clo}
+  [2006/06/27 v1.6
+  Standard pLaTeX file (size option)]
+\renewcommand{\normalsize}{%
+    \@setfontsize\normalsize\@xipt{15.5}%
+  \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
+   \belowdisplayskip \abovedisplayskip
+   \let\@listi\@listI}
+\normalsize
+\setbox0\hbox{\char\euc"A1A1}%
+\setlength\Cht{\ht0}
+\setlength\Cdp{\dp0}
+\setlength\Cwd{\wd0}
+\setlength\Cvs{\baselineskip}
+\setlength\Chs{\wd0}
+\newcommand{\small}{%
+  \@setfontsize\small\@xpt\@xiipt
+  \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 6\p@ \@plus2\p@ \@minus2\p@
+              \parsep 3\p@ \@plus2\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\footnotesize}{%
+  \@setfontsize\footnotesize\@ixpt{11}%
+  \abovedisplayskip 8\p@ \@plus2\p@ \@minus4\p@
+  \abovedisplayshortskip \z@ \@plus\p@
+  \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 4\p@ \@plus2\p@ \@minus2\p@
+              \parsep 2\p@ \@plus\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\scriptsize}{\@setfontsize\scriptsize\@viiipt{9.5}}
+\newcommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt}
+\newcommand{\large}{\@setfontsize\large\@xiipt{17}}
+\newcommand{\Large}{\@setfontsize\Large\@xivpt{21}}
+\newcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{25}}
+\newcommand{\huge}{\@setfontsize\huge\@xxpt{28}}
+\newcommand{\Huge}{\@setfontsize\Huge\@xxvpt{33}}
+\setlength\headheight{12\p@}
+\setlength\headsep{25\p@}
+\setlength\topskip{1\Cht}
+\setlength\footskip{30\p@}
+\if@compatibility
+  \setlength\maxdepth{4\p@}
+\else
+  \setlength\maxdepth{.5\topskip}
+\fi
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textwidth{42\Cwd}
+      \else
+        \setlength\textwidth{25\Cwd}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textwidth{69\Cwd}
+      \else
+        \setlength\textwidth{55\Cwd}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textwidth{55\Cwd}
+      \else
+        \setlength\textwidth{34\Cwd}
+      \fi
+    \else % A4 ant other
+      \if@landscape
+        \setlength\textwidth{68\Cwd}
+      \else
+        \setlength\textwidth{43\Cwd}
+      \fi
+    \fi\fi\fi
+  \else
+    \if@twocolumn
+      \setlength\textwidth{52\Cwd}
+    \else
+      \setlength\textwidth{342\p@}
+    \fi
+  \fi
+\else
+  \if@stysize
+    \if@twocolumn
+      \setlength\textwidth{.8\paperwidth}
+    \else
+      \setlength\textwidth{.7\paperwidth}
+    \fi
+  \else
+    \setlength\@tempdima{\paperwidth}
+    \addtolength\@tempdima{-2in}
+    \setlength\@tempdimb{342\p@}
+    \if@twocolumn
+      \ifdim\@tempdima>2\@tempdimb\relax
+        \setlength\textwidth{2\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \else
+      \ifdim\@tempdima>\@tempdimb\relax
+        \setlength\textwidth{\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \fi
+  \fi
+\fi
+\@settopoint\textwidth
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textheight{17\Cvs}
+      \else
+        \setlength\textheight{25\Cvs}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textheight{36\Cvs}
+      \else
+        \setlength\textheight{55\Cvs}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textheight{21\Cvs}
+      \else
+        \setlength\textheight{34\Cvs}
+      \fi
+    \else % A4 and other
+      \if@landscape
+        \setlength\textheight{26\Cvs}
+      \else
+        \setlength\textheight{42\Cvs}
+      \fi
+    \fi\fi\fi
+    \addtolength\textheight{\topskip}
+  \else
+  \setlength\textheight{580.4\p@}
+  \fi
+\else
+  \if@stysize
+    \setlength\textheight{.75\paperheight}
+  \else
+    \setlength\@tempdima{\paperheight}
+    \addtolength\@tempdima{-2in}
+    \addtolength\@tempdima{-1.5in}
+    \divide\@tempdima\baselineskip
+    \@tempcnta\@tempdima
+    \setlength\textheight{\@tempcnta\baselineskip}
+  \fi
+\fi
+\addtolength\textheight{\topskip}
+\@settopoint\textheight
+\if@compatibility
+  \if@stysize
+    \setlength\topmargin{-.3in}
+  \else
+    \setlength\topmargin{27\p@}
+  \fi
+\else
+  \setlength\topmargin{\paperheight}
+  \addtolength\topmargin{-\headheight}
+  \addtolength\topmargin{-\headsep}
+  \addtolength\topmargin{-\textheight}
+  \addtolength\topmargin{-\footskip}
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \addtolength\topmargin{-1.3in}
+    \else
+      \addtolength\topmargin{-2.0in}
+    \fi
+  \else
+    \addtolength\topmargin{-2.0in}
+  \fi
+  \addtolength\topmargin{-.5\topmargin}
+\fi
+\@settopoint\topmargin
+\if@twocolumn
+  \setlength\marginparsep{10\p@}
+\else
+  \setlength\marginparsep{10\p@}
+\fi
+\setlength\marginparpush{5\p@}
+\if@compatibility
+    \if@twoside
+      \setlength\oddsidemargin   {36\p@}
+      \setlength\evensidemargin  {74\p@}
+      \setlength\marginparwidth {100\p@}
+    \else
+     \setlength\oddsidemargin   {54\p@}
+     \setlength\evensidemargin  {54\p@}
+     \setlength\marginparwidth  {83\p@}
+  \fi
+  \if@twocolumn
+     \setlength\oddsidemargin  {30\p@}
+     \setlength\evensidemargin {30\p@}
+     \setlength\marginparwidth {48\p@}
+  \fi
+  \if@stysize
+    \if@twocolumn\else
+      \setlength\oddsidemargin{0\p@}
+      \setlength\evensidemargin{0\p@}
+    \fi
+  \fi
+\else
+  \setlength\@tempdima{\paperwidth}
+  \addtolength\@tempdima{-\textwidth}
+  \if@twoside
+    \setlength\oddsidemargin{.4\@tempdima}
+  \else
+    \setlength\oddsidemargin{.5\@tempdima}
+  \fi
+  \addtolength\oddsidemargin{-1in}
+  \setlength\evensidemargin{\paperwidth}
+  \addtolength\evensidemargin{-2in}
+  \addtolength\evensidemargin{-\textwidth}
+  \addtolength\evensidemargin{-\oddsidemargin}
+  \@settopoint\oddsidemargin % 1999.1.6
+  \@settopoint\evensidemargin
+  \if@twoside
+    \setlength\marginparwidth{.6\@tempdima}
+    \addtolength\marginparwidth{-.4in}
+  \else
+    \setlength\marginparwidth{.5\@tempdima}
+    \addtolength\marginparwidth{-.4in}
+  \fi
+  \ifdim \marginparwidth >2in
+    \setlength\marginparwidth{2in}
+  \fi
+  \@settopoint\marginparwidth
+\fi
+\setlength\footnotesep{7.7\p@}
+\setlength{\skip\footins}{10\p@ \@plus 4\p@ \@minus 2\p@}
+\setlength\floatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\intextsep   {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\dblfloatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\@fptop{0\p@ \@plus 1fil}
+\setlength\@fpsep{8\p@ \@plus 2fil}
+\setlength\@fpbot{0\p@ \@plus 1fil}
+\setlength\@dblfptop{0\p@ \@plus 1fil}
+\setlength\@dblfpsep{8\p@ \@plus 2fil}
+\setlength\@dblfpbot{0\p@ \@plus 1fil}
+\setlength\partopsep{3\p@ \@plus 1\p@ \@minus 1\p@}
+\def\@listi{\leftmargin\leftmargini
+  \parsep 4.5\p@ \@plus2\p@ \@minus\p@
+  \topsep 9\p@   \@plus3\p@ \@minus5\p@
+  \itemsep4.5\p@ \@plus2\p@ \@minus\p@}
+\let\@listI\@listi
+\@listi
+\def\@listii{\leftmargin\leftmarginii
+   \labelwidth\leftmarginii \advance\labelwidth-\labelsep
+   \topsep  4.5\p@ \@plus2\p@ \@minus\p@
+   \parsep  2\p@   \@plus\p@  \@minus\p@
+   \itemsep\parsep}
+\def\@listiii{\leftmargin\leftmarginiii
+   \labelwidth\leftmarginiii \advance\labelwidth-\labelsep
+   \topsep 2\p@  \@plus\p@\@minus\p@
+   \parsep\z@
+   \partopsep \p@ \@plus\z@ \@minus\p@
+   \itemsep\topsep}
+\def\@listiv {\leftmargin\leftmarginiv
+              \labelwidth\leftmarginiv
+              \advance\labelwidth-\labelsep}
+\def\@listv  {\leftmargin\leftmarginv
+              \labelwidth\leftmarginv
+              \advance\labelwidth-\labelsep}
+\def\@listvi {\leftmargin\leftmarginvi
+              \labelwidth\leftmarginvi
+              \advance\labelwidth-\labelsep}
+\endinput
+%%
+%% End of file `jsize11.clo'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/jsize12.clo b/tex-ptex/files/texmf-dist/tex/platex/base/jsize12.clo
new file mode 100644
index 0000000000..0ac723764a
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/jsize12.clo
@@ -0,0 +1,320 @@
+%%
+%% This is file `jsize12.clo',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% jclasses.dtx  (with options: `12pt,yoko')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from jsize12.clo.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file jclasses.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: jclasses.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\ProvidesFile{jsize12.clo}
+  [2006/06/27 v1.6
+  Standard pLaTeX file (size option)]
+\renewcommand{\normalsize}{%
+    \@setfontsize\normalsize\@xiipt{16.5}%
+  \abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
+   \belowdisplayskip \abovedisplayskip
+   \let\@listi\@listI}
+\normalsize
+\setbox0\hbox{\char\euc"A1A1}%
+\setlength\Cht{\ht0}
+\setlength\Cdp{\dp0}
+\setlength\Cwd{\wd0}
+\setlength\Cvs{\baselineskip}
+\setlength\Chs{\wd0}
+\newcommand{\small}{%
+  \@setfontsize\small\@xipt{13.6}%
+  \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 9\p@ \@plus3\p@ \@minus5\p@
+              \parsep 4.5\p@ \@plus2\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\footnotesize}{%
+  \@setfontsize\footnotesize\@xpt\@xiipt
+  \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 6\p@ \@plus2\p@ \@minus2\p@
+              \parsep 3\p@ \@plus2\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\scriptsize}{\@setfontsize\scriptsize\@viiipt{9.5}}
+\newcommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt}
+\newcommand{\large}{\@setfontsize\large\@xivpt{21}}
+\newcommand{\Large}{\@setfontsize\Large\@xviipt{25}}
+\newcommand{\LARGE}{\@setfontsize\LARGE\@xxpt{28}}
+\newcommand{\huge}{\@setfontsize\huge\@xxvpt{33}}
+\let\Huge=\huge
+\setlength\headheight{12\p@}
+\setlength\headsep{25\p@}
+\setlength\topskip{1\Cht}
+\setlength\footskip{30\p@}
+\if@compatibility
+  \setlength\maxdepth{4\p@}
+\else
+  \setlength\maxdepth{.5\topskip}
+\fi
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textwidth{40\Cwd}
+      \else
+        \setlength\textwidth{24\Cwd}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textwidth{63\Cwd}
+      \else
+        \setlength\textwidth{50\Cwd}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textwidth{50\Cwd}
+      \else
+        \setlength\textwidth{31\Cwd}
+      \fi
+    \else % A4 ant other
+      \if@landscape
+        \setlength\textwidth{61\Cwd}
+      \else
+        \setlength\textwidth{40\Cwd}
+      \fi
+    \fi\fi\fi
+  \else
+    \if@twocolumn
+      \setlength\textwidth{52\Cwd}
+    \else
+      \setlength\textwidth{372\p@}
+    \fi
+  \fi
+\else
+  \if@stysize
+    \if@twocolumn
+      \setlength\textwidth{.8\paperwidth}
+    \else
+      \setlength\textwidth{.7\paperwidth}
+    \fi
+  \else
+    \setlength\@tempdima{\paperwidth}
+    \addtolength\@tempdima{-2in}
+    \setlength\@tempdimb{372\p@}
+    \if@twocolumn
+      \ifdim\@tempdima>2\@tempdimb\relax
+        \setlength\textwidth{2\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \else
+      \ifdim\@tempdima>\@tempdimb\relax
+        \setlength\textwidth{\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \fi
+  \fi
+\fi
+\@settopoint\textwidth
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textheight{16\Cvs}
+      \else
+        \setlength\textheight{24\Cvs}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textheight{34\Cvs}
+      \else
+        \setlength\textheight{52\Cvs}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textheight{20\Cvs}
+      \else
+        \setlength\textheight{32\Cvs}
+      \fi
+    \else % A4 and other
+      \if@landscape
+        \setlength\textheight{25\Cvs}
+      \else
+        \setlength\textheight{39\Cvs}
+      \fi
+    \fi\fi\fi
+    \addtolength\textheight{\topskip}
+  \else
+  \setlength\textheight{586.5\p@}
+  \fi
+\else
+  \if@stysize
+    \setlength\textheight{.75\paperheight}
+  \else
+    \setlength\@tempdima{\paperheight}
+    \addtolength\@tempdima{-2in}
+    \addtolength\@tempdima{-1.5in}
+    \divide\@tempdima\baselineskip
+    \@tempcnta\@tempdima
+    \setlength\textheight{\@tempcnta\baselineskip}
+  \fi
+\fi
+\addtolength\textheight{\topskip}
+\@settopoint\textheight
+\if@compatibility
+  \if@stysize
+    \setlength\topmargin{-.3in}
+  \else
+    \setlength\topmargin{27\p@}
+  \fi
+\else
+  \setlength\topmargin{\paperheight}
+  \addtolength\topmargin{-\headheight}
+  \addtolength\topmargin{-\headsep}
+  \addtolength\topmargin{-\textheight}
+  \addtolength\topmargin{-\footskip}
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \addtolength\topmargin{-1.3in}
+    \else
+      \addtolength\topmargin{-2.0in}
+    \fi
+  \else
+    \addtolength\topmargin{-2.0in}
+  \fi
+  \addtolength\topmargin{-.5\topmargin}
+\fi
+\@settopoint\topmargin
+\if@twocolumn
+  \setlength\marginparsep{10\p@}
+\else
+  \setlength\marginparsep{10\p@}
+\fi
+\setlength\marginparpush{7\p@}
+\if@compatibility
+    \if@twoside
+      \setlength\oddsidemargin   {21\p@}
+      \setlength\evensidemargin  {59\p@}
+      \setlength\marginparwidth {85\p@}
+    \else
+     \setlength\oddsidemargin   {39.5\p@}
+     \setlength\evensidemargin  {39.5\p@}
+     \setlength\marginparwidth  {68\p@}
+  \fi
+  \if@twocolumn
+     \setlength\oddsidemargin  {30\p@}
+     \setlength\evensidemargin {30\p@}
+     \setlength\marginparwidth {48\p@}
+  \fi
+  \if@stysize
+    \if@twocolumn\else
+      \setlength\oddsidemargin{0\p@}
+      \setlength\evensidemargin{0\p@}
+    \fi
+  \fi
+\else
+  \setlength\@tempdima{\paperwidth}
+  \addtolength\@tempdima{-\textwidth}
+  \if@twoside
+    \setlength\oddsidemargin{.4\@tempdima}
+  \else
+    \setlength\oddsidemargin{.5\@tempdima}
+  \fi
+  \addtolength\oddsidemargin{-1in}
+  \setlength\evensidemargin{\paperwidth}
+  \addtolength\evensidemargin{-2in}
+  \addtolength\evensidemargin{-\textwidth}
+  \addtolength\evensidemargin{-\oddsidemargin}
+  \@settopoint\oddsidemargin % 1999.1.6
+  \@settopoint\evensidemargin
+  \if@twoside
+    \setlength\marginparwidth{.6\@tempdima}
+    \addtolength\marginparwidth{-.4in}
+  \else
+    \setlength\marginparwidth{.5\@tempdima}
+    \addtolength\marginparwidth{-.4in}
+  \fi
+  \ifdim \marginparwidth >2in
+    \setlength\marginparwidth{2in}
+  \fi
+  \@settopoint\marginparwidth
+\fi
+\setlength\footnotesep{8.4\p@}
+\setlength{\skip\footins}{10.8\p@ \@plus 4\p@ \@minus 2\p@}
+\setlength\floatsep    {12\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\intextsep   {14\p@ \@plus 4\p@ \@minus 4\p@}
+\setlength\dblfloatsep    {14\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\@fptop{0\p@ \@plus 1fil}
+\setlength\@fpsep{10\p@ \@plus 2fil}
+\setlength\@fpbot{0\p@ \@plus 1fil}
+\setlength\@dblfptop{0\p@ \@plus 1fil}
+\setlength\@dblfpsep{10\p@ \@plus 2fil}
+\setlength\@dblfpbot{0\p@ \@plus 1fil}
+\setlength\partopsep{3\p@ \@plus 2\p@ \@minus 2\p@}
+\def\@listi{\leftmargin\leftmargini
+  \parsep 5\p@  \@plus2.5\p@ \@minus\p@
+  \topsep 10\p@ \@plus4\p@   \@minus6\p@
+  \itemsep5\p@  \@plus2.5\p@ \@minus\p@}
+\let\@listI\@listi
+\@listi
+\def\@listii{\leftmargin\leftmarginii
+   \labelwidth\leftmarginii \advance\labelwidth-\labelsep
+   \topsep  5\p@   \@plus2.5\p@ \@minus\p@
+   \parsep  2.5\p@ \@plus\p@  \@minus\p@
+   \itemsep\parsep}
+\def\@listiii{\leftmargin\leftmarginiii
+   \labelwidth\leftmarginiii \advance\labelwidth-\labelsep
+   \topsep 2.5\p@\@plus\p@\@minus\p@
+   \parsep\z@
+   \partopsep \p@ \@plus\z@ \@minus\p@
+   \itemsep\topsep}
+\def\@listiv {\leftmargin\leftmarginiv
+              \labelwidth\leftmarginiv
+              \advance\labelwidth-\labelsep}
+\def\@listv  {\leftmargin\leftmarginv
+              \labelwidth\leftmarginv
+              \advance\labelwidth-\labelsep}
+\def\@listvi {\leftmargin\leftmarginvi
+              \labelwidth\leftmarginvi
+              \advance\labelwidth-\labelsep}
+\endinput
+%%
+%% End of file `jsize12.clo'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/jt1gt.fd b/tex-ptex/files/texmf-dist/tex/platex/base/jt1gt.fd
new file mode 100644
index 0000000000..4265f60588
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/jt1gt.fd
@@ -0,0 +1,51 @@
+%%
+%% This is file `jt1gt.fd',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% plfonts.dtx  (with options: `JT1gt')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from jt1gt.fd.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file plfonts.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: plfonts.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\ProvidesFile{jt1gt.fd}
+       [1997/01/24 v1.3 KANJI font defines]
+\DeclareKanjiFamily{JT1}{gt}{}
+\DeclareRelationFont{JT1}{gt}{m}{}{OT1}{cmr}{bx}{}
+\DeclareFontShape{JT1}{gt}{m}{n}{<5> <6> <7> <8> <9> <10> sgen*tgoth
+    <10.95><12><14.4><17.28><20.74><24.88> tgoth10
+    <-> tgoth10
+    }{}
+\DeclareFontShape{JT1}{gt}{bx}{n}{<->ssub*gt/m/n}{}
+\endinput
+%%
+%% End of file `jt1gt.fd'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/jt1mc.fd b/tex-ptex/files/texmf-dist/tex/platex/base/jt1mc.fd
new file mode 100644
index 0000000000..332c007314
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/jt1mc.fd
@@ -0,0 +1,52 @@
+%%
+%% This is file `jt1mc.fd',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% plfonts.dtx  (with options: `JT1mc')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from jt1mc.fd.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file plfonts.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: plfonts.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\ProvidesFile{jt1mc.fd}
+       [1997/01/24 v1.3 KANJI font defines]
+\DeclareKanjiFamily{JT1}{mc}{}
+\DeclareRelationFont{JT1}{mc}{m}{}{OT1}{cmr}{m}{}
+\DeclareRelationFont{JT1}{mc}{bx}{}{OT1}{cmr}{bx}{}
+\DeclareFontShape{JT1}{mc}{m}{n}{<5> <6> <7> <8> <9> <10> sgen*tmin
+    <10.95><12><14.4><17.28><20.74><24.88> tmin10
+    <-> tmin10
+    }{}
+\DeclareFontShape{JT1}{mc}{bx}{n}{<->ssub*gt/m/n}{}
+\endinput
+%%
+%% End of file `jt1mc.fd'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/jy1gt.fd b/tex-ptex/files/texmf-dist/tex/platex/base/jy1gt.fd
new file mode 100644
index 0000000000..5917b98802
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/jy1gt.fd
@@ -0,0 +1,51 @@
+%%
+%% This is file `jy1gt.fd',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% plfonts.dtx  (with options: `JY1gt')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from jy1gt.fd.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file plfonts.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: plfonts.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\ProvidesFile{jy1gt.fd}
+       [1997/01/24 v1.3 KANJI font defines]
+\DeclareKanjiFamily{JY1}{gt}{}
+\DeclareRelationFont{JY1}{gt}{m}{}{OT1}{cmr}{bx}{}
+\DeclareFontShape{JY1}{gt}{m}{n}{<5> <6> <7> <8> <9> <10> sgen*goth
+    <10.95><12><14.4><17.28><20.74><24.88> goth10
+    <-> goth10
+    }{}
+\DeclareFontShape{JY1}{gt}{bx}{n}{<->ssub*gt/m/n}{}
+\endinput
+%%
+%% End of file `jy1gt.fd'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/jy1mc.fd b/tex-ptex/files/texmf-dist/tex/platex/base/jy1mc.fd
new file mode 100644
index 0000000000..1da08f63d3
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/jy1mc.fd
@@ -0,0 +1,52 @@
+%%
+%% This is file `jy1mc.fd',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% plfonts.dtx  (with options: `JY1mc')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from jy1mc.fd.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file plfonts.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: plfonts.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\ProvidesFile{jy1mc.fd}
+       [1997/01/24 v1.3 KANJI font defines]
+\DeclareKanjiFamily{JY1}{mc}{}
+\DeclareRelationFont{JY1}{mc}{m}{}{OT1}{cmr}{m}{}
+\DeclareRelationFont{JY1}{mc}{bx}{}{OT1}{cmr}{bx}{}
+\DeclareFontShape{JY1}{mc}{m}{n}{<5> <6> <7> <8> <9> <10> sgen*min
+    <10.95><12><14.4><17.28><20.74><24.88> min10
+    <-> min10
+    }{}
+\DeclareFontShape{JY1}{mc}{bx}{n}{<->ssub*gt/m/n}{}
+\endinput
+%%
+%% End of file `jy1mc.fd'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/kinsoku.tex b/tex-ptex/files/texmf-dist/tex/platex/base/kinsoku.tex
new file mode 100644
index 0000000000..ba4e261de2
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/kinsoku.tex
@@ -0,0 +1,177 @@
+%%
+%% This is file `kinsoku.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% kinsoku.dtx  (with options: `plcore')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from kinsoku.tex.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file kinsoku.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: kinsoku.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\prebreakpenalty`!=10000
+\prebreakpenalty`"=10000
+\postbreakpenalty`\#=500
+\postbreakpenalty`\$=500
+\postbreakpenalty`\%=500
+\postbreakpenalty`\&=500
+\postbreakpenalty`\`=10000
+\prebreakpenalty`'=10000
+\prebreakpenalty`)=10000
+\postbreakpenalty`(=10000
+\prebreakpenalty`*=500
+\prebreakpenalty`+=500
+\prebreakpenalty`-=10000
+\prebreakpenalty`.=10000
+\prebreakpenalty`,=10000
+\prebreakpenalty`/=500
+\prebreakpenalty`;=10000
+\prebreakpenalty`?=10000
+\prebreakpenalty`:=10000
+\prebreakpenalty`]=10000
+\postbreakpenalty`[=10000
+\prebreakpenalty`$B!"(B=10000
+\prebreakpenalty`$B!#(B=10000
+\prebreakpenalty`$B!$(B=10000
+\prebreakpenalty`$B!%(B=10000
+\prebreakpenalty`$B!&(B=10000
+\prebreakpenalty`$B!'(B=10000
+\prebreakpenalty`$B!((B=10000
+\prebreakpenalty`$B!)(B=10000
+\prebreakpenalty`$B!*(B=10000
+\prebreakpenalty\jis"212B=10000
+\prebreakpenalty\jis"212C=10000
+\prebreakpenalty\jis"212D=10000
+\postbreakpenalty\jis"212E=10000
+\prebreakpenalty\jis"2139=10000
+\prebreakpenalty\jis"2144=250
+\prebreakpenalty\jis"2145=250
+\postbreakpenalty\jis"2146=10000
+\prebreakpenalty\jis"2147=5000
+\postbreakpenalty\jis"2148=5000
+\prebreakpenalty\jis"2149=5000
+\prebreakpenalty`$B!K(B=10000
+\postbreakpenalty`$B!J(B=10000
+\prebreakpenalty`$B!Q(B=10000
+\postbreakpenalty`$B!P(B=10000
+\prebreakpenalty`$B!O(B=10000
+\postbreakpenalty`$B!N(B=10000
+\postbreakpenalty`$B!F(B=10000
+\prebreakpenalty`$B!G(B=10000
+\postbreakpenalty\jis"214C=10000
+\prebreakpenalty\jis"214D=10000
+\postbreakpenalty\jis"2152=10000
+\prebreakpenalty\jis"2153=10000
+\postbreakpenalty\jis"2154=10000
+\prebreakpenalty\jis"2155=10000
+\postbreakpenalty\jis"2156=10000
+\prebreakpenalty\jis"2157=10000
+\postbreakpenalty\jis"2158=10000
+\prebreakpenalty\jis"2159=10000
+\postbreakpenalty\jis"215A=10000
+\prebreakpenalty\jis"215B=10000
+\prebreakpenalty`$B!<(B=10000
+\prebreakpenalty`$B!\(B=200
+\prebreakpenalty`$B!](B=200
+\prebreakpenalty`$B!a(B=200
+\postbreakpenalty`$B!t(B=200
+\postbreakpenalty`$B!p(B=200
+\postbreakpenalty`$B!s(B=200
+\postbreakpenalty`$B!u(B=200
+\prebreakpenalty`$B$!(B=150
+\prebreakpenalty`$B$#(B=150
+\prebreakpenalty`$B$%(B=150
+\prebreakpenalty`$B$'(B=150
+\prebreakpenalty`$B$)(B=150
+\prebreakpenalty`$B$C(B=150
+\prebreakpenalty`$B$c(B=150
+\prebreakpenalty`$B$e(B=150
+\prebreakpenalty`$B$g(B=150
+\prebreakpenalty\jis"246E=150
+\prebreakpenalty`$B%!(B=150
+\prebreakpenalty`$B%#(B=150
+\prebreakpenalty`$B%%(B=150
+\prebreakpenalty`$B%'(B=150
+\prebreakpenalty`$B%)(B=150
+\prebreakpenalty`$B%C(B=150
+\prebreakpenalty`$B%c(B=150
+\prebreakpenalty`$B%e(B=150
+\prebreakpenalty`$B%g(B=150
+\prebreakpenalty\jis"256E=150
+\prebreakpenalty\jis"2575=150
+\prebreakpenalty\jis"2576=150
+\xspcode`(=1
+\xspcode`)=2
+\xspcode`[=1
+\xspcode`]=2
+\xspcode``=1
+\xspcode`'=2
+\xspcode`;=2
+\xspcode`,=2
+\xspcode`.=2
+\inhibitxspcode`$B!"(B=1
+\inhibitxspcode`$B!#(B=1
+\inhibitxspcode`$B!$(B=1
+\inhibitxspcode`$B!%(B=1
+\inhibitxspcode`$B!((B=1
+\inhibitxspcode`$B!)(B=1
+\inhibitxspcode`$B!K(B=1
+\inhibitxspcode`$B!J(B=2
+\inhibitxspcode`$B!O(B=1
+\inhibitxspcode`$B!N(B=2
+\inhibitxspcode`$B!Q(B=1
+\inhibitxspcode`$B!P(B=2
+\inhibitxspcode`$B!F(B=2
+\inhibitxspcode`$B!G(B=1
+\inhibitxspcode`$B!H(B=2
+\inhibitxspcode`$B!I(B=1
+\inhibitxspcode`$B!L(B=2
+\inhibitxspcode`$B!M(B=1
+\inhibitxspcode`$B!R(B=2
+\inhibitxspcode`$B!S(B=1
+\inhibitxspcode`$B!T(B=2
+\inhibitxspcode`$B!U(B=1
+\inhibitxspcode`$B!V(B=2
+\inhibitxspcode`$B!W(B=1
+\inhibitxspcode`$B!X(B=2
+\inhibitxspcode`$B!Y(B=1
+\inhibitxspcode`$B!Z(B=2
+\inhibitxspcode`$B![(B=1
+\inhibitxspcode`$B!=(B=0
+\inhibitxspcode`$B!A(B=0
+\inhibitxspcode`$B!D(B=0
+\inhibitxspcode`$B!o(B=0
+\inhibitxspcode`$B!k(B=1
+\inhibitxspcode`$B!l(B=1
+\inhibitxspcode`$B!m(B=1
+\endinput
+%%
+%% End of file `kinsoku.tex'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/nidanfloat.sty b/tex-ptex/files/texmf-dist/tex/platex/base/nidanfloat.sty
new file mode 100644
index 0000000000..3d6a1f80f8
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/nidanfloat.sty
@@ -0,0 +1,655 @@
+%%
+%% This is file `nidanfloat.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% nidanfloat.dtx  (with options: `core')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from nidanfloat.sty.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file nidanfloat.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%%File: nidanfloat.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{nidanfloat}%
+  [2005/12/09 v2.7 Put double-floats at top/bottom within twocolumn mode]
+\DeclareOption{balance}{\AtEndDocument{\let\clearpage\balanceclearpage}}
+\DeclareOption{nobalance}{\relax}
+\ExecuteOptions{nobalance}
+\ProcessOptions
+\newcommand\dblbotfraction{0.5}
+\newcount\c@dblbotnumber
+\setcounter{dblbotnumber}{2}
+\newdimen\@dblbotroom
+\newcount\@dblbotnum
+\def\@dblfloatplacement{%
+   \global\@dbltopnum\c@dbltopnumber
+   \global\@dblbotnum\c@dblbotnumber % added
+   \global\@dbltoproom\dbltopfraction\@colht
+   \global\@dblbotroom\dblbotfraction\@colht % added
+   \@textmin\@colht
+     \advance\@textmin-\@dbltoproom
+     \advance\@textmin-\@dblbotroom % added
+   \@fpmin\dblfloatpagefraction\textheight
+   \@fptop\@dblfptop
+   \@fpsep\@dblfpsep
+   \@fpbot\@dblfpbot
+}
+\gdef\@dblbotlist{}
+\gdef\L@toplist{}
+\gdef\R@toplist{}
+\gdef\L@botlist{}
+\gdef\R@botlist{}
+\def\@dblfloat{%
+  \if@twocolumn\let\reserved@a\@dbflt\else\let\reserved@a\@float\fi
+  \reserved@a}
+\def\@dbflt#1{\@ifnextchar[{\@xdblfloat{#1}}{\@xdblfloat{#1}[tb]}}
+\def\@xdblfloat#1[#2]{%
+  \@xfloat{#1}[#2]\hsize\textwidth\linewidth\textwidth}
+\let\end@dblfloat\end@float
+\def\@addtocurcol{%
+  \ifdim\wd\@currbox>\columnwidth
+    \@addtodblcol
+  \else
+    \@insertfalse
+    \@setfloattypecounts
+    \ifnum\@fpstype=8 % is only `!p'
+    \else
+      \ifnum\@fpstype=24 % is only `p'
+      \else
+        \@flsettextmin
+        \advance\@textmin\@textfloatsheight
+        \@reqcolroom\@pageht
+        \ifdim\@textmin>\@reqcolroom \@reqcolroom\@textmin\fi
+        \advance\@reqcolroom\ht\@currbox
+        \ifdim\@colroom>\@reqcolroom
+          \@flsetnum\@colnum
+          \ifnum\@colnum>\z@
+            \@bitor\@currtype\@deferlist
+            \if@test
+            \else
+              \@bitor\@currtype{\L@botlist\R@botlist}%
+              \if@test
+                \@addtobot
+              \else
+                \ifodd\count\@currbox
+                  \advance\@reqcolroom\intextsep
+                  \ifdim\@colroom>\@reqcolroom
+                    \global\advance\@colnum\m@ne
+                    \global\advance\@textfloatsheight\ht\@currbox
+                    \global\advance\@textfloatsheight 2\intextsep
+                    \@cons\@midlist\@currbox
+                    \if@nobreak
+                      \nobreak
+                      \@nobreakfalse
+                      \everypar{}%
+                    \else
+                      \addpenalty \interlinepenalty
+                    \fi
+                    \vskip\intextsep
+                    \box\@currbox
+                    \penalty\interlinepenalty
+                    \vskip\intextsep
+                    \ifnum\outputpenalty<-\@Mii \vskip-\parskip \fi
+                    \outputpenalty\z@
+                    \@inserttrue
+                  \fi
+                \fi
+                \if@insert\else\@addtotoporbot\fi
+              \fi
+            \fi
+          \fi
+        \fi
+      \fi
+    \fi
+    \if@insert\else\@resethfps\@cons\@deferlist\@currbox\fi
+  \fi
+}
+\def\@addtotoporbot{%
+  \@getfpsbit \tw@
+  \ifodd\@tempcnta
+    \@flsetnum\@topnum
+    \ifnum\@topnum>\z@
+      \@tempswafalse
+      \@flcheckspace\@toproom\@toplist\L@toplist\R@toplist
+      \if@tempswa
+        \@bitor\@currtype{\@midlist\L@botlist\R@botlist}%
+        \if@test\else
+          \if@firstcolumn
+            \@flupdates \@topnum \@toproom \L@toplist
+          \else
+            \@flupdates \@topnum \@toproom \R@toplist
+          \fi
+          \@inserttrue
+        \fi
+      \fi
+    \fi
+  \fi
+  \if@insert\else\@addtobot\fi
+}
+\def\@addtobot{%
+  \@getfpsbit 4\relax
+  \ifodd\@tempcnta
+    \@flsetnum\@botnum
+    \ifnum\@botnum>\z@
+      \@tempswafalse
+      \@flcheckspace\@botroom\@botlist\L@botlist\R@botlist
+      \if@tempswa
+        \global\maxdepth\z@
+        \if@firstcolumn
+          \@flupdates \@botnum \@botroom \L@botlist
+        \else
+          \@flupdates \@botnum \@botroom \R@botlist
+        \fi
+        \@inserttrue
+      \fi
+    \fi
+  \fi
+}
+\let\org@addtonextcol\@addtonextcol
+\def\@addtonextcol{%
+  \ifdim\wd\@currbox>\columnwidth
+    \@addtodblcol
+  \else
+    \org@addtonextcol
+  \fi
+}
+\def\@addtodblcol{%
+  \begingroup
+  \@insertfalse
+  \@setfloattypecounts
+  \ifnum\@fpstype=8 % is only `!p'
+  \else
+    \ifnum\@fpstype=24 % is only `p'
+    \else
+      \@bitor\@currtype{\@dbldeferlist}
+      %\@bitor\@currtype{\@deferlist\@dbldeferlist}
+      \if@test
+      \else
+        \@tempswafalse
+        \@checkdblspace
+        \if@tempswa
+          \@addtodbltoporbot
+        \fi
+      \fi
+    \fi
+  \fi
+  \if@insert\else\@cons\@dbldeferlist\@currbox\fi
+  \endgroup
+}
+\def\@addtodbltoporbot{%
+  \@getfpsbit \tw@
+  \ifodd\@tempcnta
+    \@flsetnum\@dbltopnum
+    \ifnum\@dbltopnum>\z@
+      \@bitor\@currtype{%
+         \L@toplist\R@toplist\L@botlist\R@botlist\@dblbotlist}
+      \if@test
+      \else
+        \@tempswafalse
+        \@dblflcheckspace \@dbltoproom \@dbltoplist
+        \if@tempswa
+          \@tempdima-\ht\@currbox
+          \advance\@tempdima
+           -\ifx\@dbltoplist\@empty \dbltextfloatsep\else\dblfloatsep\fi
+          \global\advance\@dbltoproom\@tempdima
+          \global\advance\@dbltopnum\m@ne
+          \@cons\@dbltoplist\@currbox
+          \if@firstcolumn
+            \advance\@colroom\@tempdima
+            \global\advance\@colroom\maxdepth
+          \else
+            \@tempdima\textheight
+            \@chkdblfloatht\advance\@tempdima-\@floatht
+            \L@chkfloatht\advance\@tempdima-\@floatht
+            \vbadness=\@M \splittopskip=\topskip \splitmaxdepth=\maxdepth
+            \setbox\z@=\vbox{\unvcopy\@leftcolumn}%
+            \setbox\@ne=\vsplit\z@ to\@tempdima
+            \advance\@colroom-\ht\z@
+            \global\advance\@colroom-\dp\z@
+          \fi
+          \@inserttrue
+        \fi
+      \fi
+    \fi
+  \fi
+  \if@insert\else\@addtodblbot\fi
+}
+\def\@addtodblbot{%
+  \@getfpsbit 4\relax
+  \ifodd\@tempcnta
+    \@flsetnum\@botnum
+    \ifnum\@botnum>\z@
+      \@tempswafalse
+      \@dblflcheckspace \@dbltoproom \@dbltoplist
+      \if@tempswa
+        \@tempdima-\ht\@currbox \advance\@tempdima
+           -\ifx\@dblbotlist\@empty \dbltextfloatsep\else\dblfloatsep\fi
+        \global\advance\@dblbotroom\@tempdima
+        \global\advance\@dblbotnum\m@ne
+        \@cons\@dblbotlist\@currbox
+        \if@firstcolumn
+          \advance\@colroom\@tempdima
+          \global\advance\@colroom\maxdepth
+        \else
+          \@tempdima\textheight
+          \@chkdblfloatht\advance\@tempdima-\@floatht
+          \L@chkfloatht\advance\@tempdima-\@floatht
+          \vbadness=\@M \splittopskip=\topskip \splitmaxdepth=\maxdepth
+          \setbox\z@=\vbox{\unvcopy\@leftcolumn}%
+          \setbox\@ne=\vsplit\z@ to\@tempdima
+          \advance\@colroom-\ht\z@
+          \global\advance\@colroom-\dp\z@
+        \fi
+        \@inserttrue
+      \fi
+    \fi
+  \fi
+}
+\global\newdimen\@floatht \@floatht\z@
+\def \@flcheckspace #1#2#3#4{%
+   \advance \@reqcolroom
+  \if@twocolumn
+    \if@firstcolumn
+      \ifx #3\@empty \textfloatsep \else \floatsep \fi
+    \else
+      \ifx #4\@empty \textfloatsep \else \floatsep \fi
+    \fi
+  \else
+     \ifx #2\@empty \textfloatsep \else \floatsep \fi
+  \fi
+   \ifdim \@colroom>\@reqcolroom
+     \ifdim #1>\ht\@currbox
+       \@tempswatrue
+     \else
+       \ifnum \@fpstype<\sixt@@n
+         \@tempswatrue
+       \fi
+     \fi
+   \fi
+}
+\def\@dblflcheckspace#1#2{%
+  \@tempdima=#1\relax
+  \advance\@tempdima
+     -\ifx #2\@empty \dbltextfloatsep\else\dblfloatsep\fi
+  \ifdim\@tempdima>\ht\@currbox
+    \@tempswatrue
+  \else
+    \ifnum\@fpstype<\sixt@@n
+      \advance\@tempdima\@textmin
+      \if \@tempdima>\ht\@currbox
+        \@tempswatrue
+      \fi
+    \fi
+  \fi
+}
+\def\@checkdblspace{%
+   \@tempdima\@pageht\advance\@tempdima\@pagedp
+   \@tempdimb\textfraction\@colht
+   \ifdim\@tempdima<\@tempdimb \@tempdima\@tempdimb\fi
+   \if@firstcolumn\else
+     \advance\@tempdima\ht\@leftcolumn
+     \advance\@tempdima\dp\@leftcolumn
+   \fi
+   \L@chkfloatht\advance\@tempdima\@floatht
+   \R@chkfloatht\advance\@tempdima\@floatht
+   \@chkdblfloatht\advance\@tempdima\tw@\@floatht
+   \@tempdimb\ht\@currbox\advance\@tempdimb\dp\@currbox
+   \advance\@tempdimb
+      \ifdim\@floatht>\z@ \dbltextfloatsep\else\dblfloatsep\fi
+   \multiply\@tempdimb\tw@ \advance\@tempdima\@tempdimb
+   \ifdim\@tempdima>\tw@\textheight
+     \@tempswafalse
+   \else
+     \@tempswatrue
+   \fi
+}
+\def\tmp@comflelt#1{%
+  \setbox\@tempboxa
+  \vbox{\unvbox\@tempboxa\copy #1\vskip\floatsep}%
+}
+\def\tmp@comdblflelt#1{%
+  \setbox\@tempboxa
+  \vbox{\unvbox\@tempboxa\copy #1\vskip\dblfloatsep}%
+}
+\def\L@chkfloatht{\@floatht\z@
+  \ifx\L@toplist\@empty\else
+    \let\@elt\tmp@comflelt\setbox\@tempboxa\vbox{}\L@toplist
+    \setbox\@ne\vbox{\boxmaxdepth\maxdepth
+        \unvbox\@tempboxa\vskip-\floatsep\topfigrule\vskip\textfloatsep
+        }%
+    \let\@elt\relax \advance\@floatht\ht\@ne \advance\@floatht\dp\@ne
+  \fi
+  \ifx\L@botlist\@empty\else
+    \let\@elt\tmp@comflelt\setbox\@tempboxa\vbox{}\L@botlist
+    \setbox\@ne\vbox{\boxmaxdepth\maxdepth
+        \vskip\textfloatsep\botfigrule\unvbox\@tempboxa\vskip-\floatsep
+        }%
+    \let\@elt\relax \advance\@floatht\ht\@ne \advance\@floatht\dp\@ne
+  \fi
+  \global\@floatht\@floatht
+}
+\def\R@chkfloatht{\@floatht\z@
+  \ifx\R@toplist\@empty\else
+    \let\@elt\tmp@comflelt\setbox\@tempboxa\vbox{}\R@toplist
+    \setbox\@ne\vbox{\boxmaxdepth\maxdepth
+        \unvbox\@tempboxa\vskip-\floatsep\topfigrule\vskip\textfloatsep
+        }%
+    \let\@elt\relax \advance\@floatht\ht\@ne \advance\@floatht\dp\@ne
+  \fi
+  \ifx\R@botlist\@empty\else
+    \let\@elt\tmp@comflelt\setbox\@tempboxa\vbox{}\R@botlist
+    \setbox\@ne\vbox{\boxmaxdepth\maxdepth
+        \vskip\textfloatsep\botfigrule\unvbox\@tempboxa\vskip-\floatsep
+        }%
+    \let\@elt\relax \advance\@floatht\ht\@ne \advance\@floatht\dp\@ne
+  \fi
+  \global\@floatht\@floatht
+}
+\def\@chkdblfloatht{\@floatht\z@
+  \ifx\@dbltoplist\@empty\else
+    \let\@elt\tmp@comdblflelt\setbox\@tempboxa\vbox{}\@dbltoplist
+    \setbox\@ne\vbox{\boxmaxdepth\maxdepth
+        \unvbox\@tempboxa
+        \vskip-\dblfloatsep
+        \dblfigrule
+        \vskip\dbltextfloatsep
+        }%
+    \let\@elt\relax \advance\@floatht\ht\@ne \advance\@floatht\dp\@ne
+  \fi
+  \ifx\@dblbotlist\@empty\else
+    \let\@elt\tmp@comdblflelt\setbox\@tempboxa\vbox{}\@dblbotlist
+    \setbox\@ne\vbox{\boxmaxdepth\maxdepth
+        \vskip\dbltextfloatsep
+        \dblfigrule
+        \unvbox\@tempboxa
+        \vskip-\dblfloatsep
+        }%
+    \let\@elt\relax \advance\@floatht\ht\@ne \advance\@floatht\dp\@ne
+  \fi
+  \global\@floatht\@floatht
+}
+\global\newdimen\@fixht
+\def\@combinefloats{%
+  %%\boxmaxdepth\maxdepth
+  \if@twocolumn
+    \if@firstcolumn
+    \else
+      \@fixht\ht\@leftcolumn \advance\@fixht\dp\@leftcolumn
+      \@chkdblfloatht \@tempdima\@floatht
+      \L@chkfloatht \advance\@tempdima\@floatht
+      \advance\@fixht\@tempdima
+      \ifdim\@fixht>\textheight
+        \@fixht\textheight
+        \advance\@fixht-\@tempdima
+        \advance\@fixht\maxdepth
+        \vbadness=\@M \splittopskip=\topskip \splitmaxdepth=\maxdepth
+        \setbox\z@=\vsplit\@leftcolumn to\@fixht
+        \advance\@fixht-\maxdepth
+        \@tempdima\baselineskip \advance\@tempdima-\topskip
+        \setbox\@outputbox=\vbox to\@fixht{%
+            \ifvoid\@leftcolumn
+            \else
+              \unvbox\@leftcolumn\vskip\@tempdima
+            \fi\relax
+            \unvbox\@outputbox\vss}%
+        \setbox\@leftcolumn=\vbox to\@fixht{\unvbox\z@}%
+      \fi
+      \@fixht\ht\@leftcolumn
+        \advance\@fixht\dp\@leftcolumn \advance\@fixht\@floatht
+      \ifx\L@toplist\@empty\else\L@cflt\fi
+      \ifx\L@botlist\@empty\else\L@cflb\fi
+      \ifx\R@toplist\@empty\else\R@cflt\fi
+      \ifx\R@botlist\@empty\else\R@cflb\fi
+    \fi
+  \else
+      \ifx\@toplist\@empty\else\@cflt\fi
+      \ifx\@botlist\@empty\else\@cflb\fi
+  \fi
+}
+\def\L@cflt{%
+  \let\@elt\@comflelt\setbox\@tempboxa\vbox{}\L@toplist
+  \setbox\@leftcolumn\vbox to\@fixht{\boxmaxdepth\maxdepth
+      \unvbox\@tempboxa
+      \vskip-\floatsep\topfigrule\vskip\textfloatsep\unvbox\@leftcolumn
+      \vss}%
+  \let\@elt\relax
+  \xdef\@freelist{\@freelist\L@toplist}\global\let\L@toplist\@empty
+}
+\def\L@cflb{%
+  \let\@elt\@comflelt\setbox\@tempboxa\vbox{}\L@botlist
+  \setbox\@leftcolumn\vbox to\@fixht{\boxmaxdepth\maxdepth
+      \unvbox\@leftcolumn
+      \vskip\textfloatsep\botfigrule\unvbox\@tempboxa\vskip-\floatsep
+      \vss}%
+  \let\@elt\relax
+  \xdef\@freelist{\@freelist\L@botlist}\global\let\L@botlist\@empty
+}
+\def\R@cflt{%
+  \let\@elt\@comflelt\setbox\@tempboxa\vbox{}\R@toplist
+  \setbox\@outputbox\vbox to\@fixht{\boxmaxdepth\maxdepth
+      \unvbox\@tempboxa
+      \vskip-\floatsep\topfigrule\vskip\textfloatsep\unvbox\@outputbox
+      \vss}%
+  \let\@elt\relax
+  \xdef\@freelist{\@freelist\R@toplist}\global\let\R@toplist\@empty
+}
+\def\R@cflb{%
+  \let\@elt\@comflelt\setbox\@tempboxa\vbox{}\R@botlist
+  \setbox\@outputbox\vbox to\@fixht{\boxmaxdepth\maxdepth
+      \unvbox\@outputbox
+      \vskip\textfloatsep\botfigrule\unvbox\@tempboxa\vskip-\floatsep
+      \vss}%
+  \let\@elt\relax
+  \xdef\@freelist{\@freelist\R@botlist}\global\let\R@botlist\@empty
+}
+\def\@combinedblfloats{%
+  \ifx\@dbltoplist\@empty
+  \else
+    \let\@elt\@comdblflelt\setbox\@tempboxa\vbox{}\@dbltoplist
+    \setbox\@outputbox\vbox{\boxmaxdepth\maxdepth
+       \unvbox\@tempboxa
+       \vskip-\dblfloatsep
+       \dblfigrule
+       \vskip\dbltextfloatsep
+       \box\@outputbox}%
+    \let\@elt\relax\xdef\@freelist{\@freelist\@dbltoplist}%
+    \global\let\@dbltoplist\@empty
+  \fi
+  \ifx\@dblbotlist\@empty
+  \else
+    \let\@elt\@comdblflelt\setbox\@tempboxa\vbox{}\@dblbotlist
+    \setbox\@outputbox\vbox{\boxmaxdepth\maxdepth
+       \box\@outputbox
+       \vskip\dbltextfloatsep
+       \dblfigrule
+       \unvbox\@tempboxa
+       \vskip-\dblfloatsep
+       }%
+    \let\@elt\relax\xdef\@freelist{\@freelist\@dblbotlist}%
+    \global\let\@dblbotlist\@empty
+  \fi
+  \global\setbox\@outputbox\vbox to\textheight{\unvbox\@outputbox}%
+}
+\newif\if@balance \@balancefalse
+\newbox\@combinebox
+\def\@outputdblcol{%
+  \if@firstcolumn
+    \global\@firstcolumnfalse
+    \global\setbox\@leftcolumn\box\@outputbox
+    \@colht\textheight
+    \@chkdblfloatht\global\advance\@colht-\@floatht
+  \else
+    \global\@firstcolumntrue
+    \if@balance % $B:81&%+%i%`$r6QEy$KJ,3d(B
+      \@tempdima\baselineskip
+      \advance\@tempdima-\topskip
+      % $BO"7k(B
+      \setbox\@combinebox=\vbox{%
+          \unvbox\@leftcolumn\vskip\@tempdima\unvbox\@outputbox}%
+      \@tempdima\ht\@combinebox
+      \advance\@tempdima\dp\@combinebox
+      \divide\@tempdima\tw@
+      % $BJ,3d(B
+      \vbadness=\@M \splittopskip=\topskip \splitmaxdepth=\maxdepth
+      \setbox\@leftcolumn=\vsplit\@combinebox to\@tempdima
+      \setbox\@outputbox=\vtop{\unvbox\@combinebox}
+      \setbox\@leftcolumn=\vtop{\unvbox\@leftcolumn}
+    \fi
+    % $B@07A(B
+    \@tempdima\ht\@leftcolumn
+    \setbox\@outputbox\vbox to\@tempdima{%
+      \hb@xt@\textwidth{%
+        \hb@xt@\columnwidth{%
+           \vbox to\@tempdima{\box\@leftcolumn\vss}\hss}%
+        \hfil
+        \vrule width\columnseprule
+        \hfil
+        \hb@xt@\columnwidth{%
+           \vbox to\@tempdima{\box\@outputbox\vss}\hss}%
+      }%
+      \vss
+    }%
+    \@combinedblfloats
+    \@outputpage
+    \begingroup
+      \@dblfloatplacement
+      \@startdblcolumn
+      \@whilesw\if@fcolmade \fi{\@outputpage\@startdblcolumn}%
+    \endgroup
+  \fi
+  \global\@balancefalse
+}
+\def\@startdblcolumn{%
+  \global\@colht\textheight
+  \@tryfcolumn\@dbldeferlist
+  \if@fcolmade
+  \else
+    \begingroup
+      \let\reserved@b\@dbldeferlist
+      \global\let\@dbldeferlist\@empty
+      \let\@elt\@sdblcolelt
+      \reserved@b
+    \endgroup
+  \fi
+  \@chkdblfloatht
+  \global\advance\@colht-\@floatht
+}
+\def\@doclearpage{%
+  \ifvoid\footins
+    \setbox\@tempboxa\vsplit\@cclv to\z@ \unvbox\@tempboxa
+    \setbox\@tempboxa\box\@cclv
+    \xdef\@deferlist{%
+       \L@toplist\R@toplist\L@botlist\R@botlist\@deferlist}%
+    \global\let\L@toplist\@empty % changed from \@toplist
+    \global\let\R@toplist\@empty % added
+    \global\let\L@botlist\@empty % changed from \@botlist
+    \global\let\R@botlist\@empty % added
+    \global\@colroom\@colht
+    \ifx\@currlist\@empty
+    \else
+      \@latexerr{Float(s) lost}\@ehb
+        \global\let\@currlist\@empty
+    \fi
+    \@makefcolumn\@deferlist
+    \@whilesw\if@fcolmade \fi{\@opcol\@makefcolumn\@deferlist}%
+    \if@twocolumn
+      \if@firstcolumn
+        % added \@dblbotlist
+        \xdef\@dbldeferlist{\@dbltoplist\@dblbotlist\@dbldeferlist}%
+        \global\let\@dbltoplist\@empty
+        \global\let\@dblbotlist\@empty % added
+        \global\@colht\textheight
+        \begingroup
+          \@dblfloatplacement
+          \@makefcolumn\@dbldeferlist
+          \@whilesw\if@fcolmade \fi{\@outputpage
+                                    \@makefcolumn\@dbldeferlist}%
+        \endgroup
+      \else
+        \vbox{}\clearpage
+      \fi
+    \fi
+  \else
+    \setbox\@cclv\vbox{\box\@cclv\vfil}%
+    \@makecol\@opcol
+    \clearpage
+  \fi
+}
+\long\def\@topnewpage[#1]{%
+  %\@nodocument
+  \@next\@currbox\@freelist{}{}%
+  \global\setbox\@currbox
+    \color@vbox
+      \normalcolor
+      \vbox{\hsize\textwidth
+            \@parboxrestore
+            \col@number\@ne
+            #1%
+            \vskip-\dbltextfloatsep}%
+    \color@endbox
+  \ifdim\ht\@currbox>\textheight
+    \ht\@currbox\textheight
+  \fi
+  \global\count\@currbox\tw@
+  \@tempdima-\ht\@currbox
+  \advance\@tempdima-\dbltextfloatsep
+  \global\advance\@colht\@tempdima
+  \ifx\@dbltoplist\@empty
+  \else
+    \@latexerr{Float(s) lost}\@ehb
+    \let\@dbltoplist\@empty
+  \fi
+  \@cons\@dbltoplist\@currbox
+  \global\@dbltopnum\m@ne
+  \global\@dblbotnum\m@ne % added
+  \ifdim\@colht<2.5\baselineskip
+    \@latex@warning@no@line {Optional argument of \noexpand\twocolumn
+          too tall on page \thepage}%
+    \@emptycol
+    \if@firstcolumn
+    \else
+      \@emptycol
+    \fi
+  \else
+    \global\vsize\@colht
+    \global\@colroom\@colht
+    \@floatplacement
+  \fi
+  %\global\@dbltoproom\maxdimen
+  %\global\@dblbotroom\maxdimen
+  %\@addtodblcol
+}
+\def\balancenewpage{\par\vfil\global\@balancetrue\penalty-\@M}
+\def\balanceclearpage{\balancenewpage
+    \write\m@ne{}\vbox{}\global\@balancetrue\penalty-\@Mi}
+\endinput
+%%
+%% End of file `nidanfloat.sty'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/oldpfont.sty b/tex-ptex/files/texmf-dist/tex/platex/base/oldpfont.sty
new file mode 100644
index 0000000000..10e786a47e
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/oldpfont.sty
@@ -0,0 +1,78 @@
+%%
+%% This is file `oldpfont.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% pl209.dtx  (with options: `oldfonts')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from oldpfont.sty.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file pl209.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: pl209.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\RequirePackage{oldlfont}
+\RequirePackage{ptrace}
+\DeclareSymbolFont{mincho}{JY1}{mc}{m}{n}
+\DeclareSymbolFont{gothic}{JY1}{gt}{m}{n}
+\DeclareSymbolFontAlphabet\mathmc{mincho}
+\DeclareSymbolFontAlphabet\mathgt{gothic}
+\SetSymbolFont{mincho}{bold}{JY1}{gt}{m}{n}
+\jfam\symmincho
+\DeclareRobustCommand\mc{%
+    \kanjiencoding{\kanjiencodingdefault}%
+    \kanjifamily{\mcdefault}%
+    \kanjiseries{\kanjiseriesdefault}%
+    \kanjishape{\kanjishapedefault}%
+    \selectfont\mathgroup\symmincho}
+\DeclareRobustCommand\gt{%
+    \kanjiencoding{\kanjiencodingdefault}%
+    \kanjifamily{\gtdefault}%
+    \kanjiseries{\kanjiseriesdefault}%
+    \kanjishape{\kanjishapedefault}%
+    \selectfont\mathgroup\symgothic}
+\DeclareRobustCommand\bf{\normalfont\bfseries\mathgroup\symbold\jfam\symgothic}
+\DeclareRobustCommand\roman@normal{%
+    \romanencoding{\encodingdefault}%
+    \romanfamily{\familydefault}%
+    \romanseries{\seriesdefault}%
+    \romanshape{\shapedefault}%
+    \selectfont\ignorespaces}
+\DeclareRobustCommand\rm{\roman@normal\rmfamily\mathgroup\symoperators}
+\DeclareRobustCommand\sf{\roman@normal\sffamily\mathgroup\symsans}
+\DeclareRobustCommand\sl{\roman@normal\slshape\mathgroup\symslanted}
+\DeclareRobustCommand\sc{\roman@normal\scshape\mathgroup\symsmallcaps}
+\DeclareRobustCommand\it{\roman@normal\itshape\mathgroup\symitalic}
+\DeclareRobustCommand\tt{\roman@normal\ttfamily\mathgroup\symtypewriter}
+\DeclareRobustCommand\em{%
+  \@nomath\em
+  \ifdim \fontdimen\@ne\font>\z@\mc\rm\else\gt\it\fi}
+\endinput
+%%
+%% End of file `oldpfont.sty'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/pl209.def b/tex-ptex/files/texmf-dist/tex/platex/base/pl209.def
new file mode 100644
index 0000000000..315ef58039
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/pl209.def
@@ -0,0 +1,106 @@
+%%
+%% This is file `pl209.def',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% pl209.dtx  (with options: `pl209')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from pl209.def.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file pl209.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: pl209.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\typeout{Entering pLaTeX 2.09 compatibility mode.}
+\input{latex209.def}
+\RequirePackage{ptrace}
+\let\Rensuji\rensuji
+\let\prensuji\rensuji
+\def\@footnotemark{\leavevmode
+  \ifhmode\edef\@x@sf{\the\spacefactor}\fi
+  \ifydir\@makefnmark
+  \else\hbox to\z@{\hskip-.25zw\raise2\cht\@makefnmark\hss}\fi
+  \ifhmode\spacefactor\@x@sf\fi\relax}
+\def\@makefnmark{\hbox{\ifydir $\m@th^{\@thefnmark}$
+  \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}
+\fontencoding{JY1}
+\fontfamily{mc}
+\fontsize{10}{15}
+\DeclareSymbolFont{mincho}{JY1}{mc}{m}{n}
+\DeclareSymbolFont{gothic}{JY1}{gt}{m}{n}
+\DeclareSymbolFontAlphabet\mathmc{mincho}
+\DeclareSymbolFontAlphabet\mathgt{gothic}
+\SetSymbolFont{mincho}{bold}{JY1}{gt}{m}{n}
+\jfam\symmincho
+\DeclareRobustCommand\mc{%
+    \kanjiencoding{\kanjiencodingdefault}%
+    \kanjifamily{\mcdefault}%
+    \kanjiseries{\kanjiseriesdefault}%
+    \kanjishape{\kanjishapedefault}%
+    \selectfont\mathgroup\symmincho}
+\DeclareRobustCommand\gt{%
+    \kanjiencoding{\kanjiencodingdefault}%
+    \kanjifamily{\gtdefault}%
+    \kanjiseries{\kanjiseriesdefault}%
+    \kanjishape{\kanjishapedefault}%
+    \selectfont\mathgroup\symgothic}
+\DeclareRobustCommand\bf{\normalfont\bfseries\mathgroup\symbold\jfam\symgothic}
+\DeclareRobustCommand\roman@normal{%
+    \romanencoding{\encodingdefault}%
+    \romanfamily{\familydefault}%
+    \romanseries{\seriesdefault}%
+    \romanshape{\shapedefault}%
+    \selectfont\ignorespaces}
+\DeclareRobustCommand\rm{\roman@normal\rmfamily\mathgroup\symoperators}
+\DeclareRobustCommand\sf{\roman@normal\sffamily\mathgroup\symsans}
+\DeclareRobustCommand\sl{\roman@normal\slshape\mathgroup\symslanted}
+\DeclareRobustCommand\sc{\roman@normal\scshape\mathgroup\symsmallcaps}
+\DeclareRobustCommand\it{\roman@normal\itshape\mathgroup\symitalic}
+\DeclareRobustCommand\tt{\roman@normal\ttfamily\mathgroup\symtypewriter}
+\DeclareRobustCommand\em{%
+  \@nomath\em
+  \ifdim \fontdimen\@ne\font>\z@\mc\rm\else\gt\it\fi}
+\let\mcfam\symmincho
+\let\gtfam\symgothic
+\renewcommand\vpt   {\edef\f@size{\@vpt}\rm\mc}
+\renewcommand\vipt  {\edef\f@size{\@vipt}\rm\mc}
+\renewcommand\viipt {\edef\f@size{\@viipt}\rm\mc}
+\renewcommand\viiipt{\edef\f@size{\@viiipt}\rm\mc}
+\renewcommand\ixpt  {\edef\f@size{\@ixpt}\rm\mc}
+\renewcommand\xpt   {\edef\f@size{\@xpt}\rm\mc}
+\renewcommand\xipt  {\edef\f@size{\@xipt}\rm\mc}
+\renewcommand\xiipt {\edef\f@size{\@xiipt}\rm\mc}
+\renewcommand\xivpt {\edef\f@size{\@xivpt}\rm\mc}
+\renewcommand\xviipt{\edef\f@size{\@xviipt}\rm\mc}
+\renewcommand\xxpt  {\edef\f@size{\@xxpt}\rm\mc}
+\renewcommand\xxvpt {\edef\f@size{\@xxvpt}\rm\mc}
+\InputIfFileExists{pl209.cfg}{}{}
+\endinput
+%%
+%% End of file `pl209.def'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/platex.ltx b/tex-ptex/files/texmf-dist/tex/platex/base/platex.ltx
new file mode 100644
index 0000000000..549e732e79
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/platex.ltx
@@ -0,0 +1,57 @@
+%%
+%% This is file `platex.ltx',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% platex.dtx  (with options: `plcore')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from platex.ltx.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file platex.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: platex.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\let\orgdump\dump
+\let\dump\relax
+\input latex.ltx
+\typeout{**************************^^J%
+         *^^J%
+         * making pLaTeX format^^J%
+         *^^J%
+         **************************}
+\makeatletter
+\input plcore.ltx
+\makeatother
+\the\everyjob
+\let\dump\orgdump
+\dump
+\endinput
+\endinput
+%%
+%% End of file `platex.ltx'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/plcore.ltx b/tex-ptex/files/texmf-dist/tex/platex/base/plcore.ltx
new file mode 100644
index 0000000000..ccda16f4e6
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/plcore.ltx
@@ -0,0 +1,1060 @@
+%%
+%% This is file `plcore.ltx',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% plvers.dtx  (with options: `plcore')
+%% plfonts.dtx  (with options: `plcore')
+%% plcore.dtx  (with options: `plcore')
+%% plvers.dtx  (with options: `plfinal')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from plcore.ltx.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file plvers.dtx plfonts.dtx plcore.dtx plvers.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: plvers
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\def\pfmtname{pLaTeX2e}
+\def\pfmtversion{2006/11/10}
+%% File: plfonts.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\let\k@encoding\@empty
+\let\ck@encoding\@empty
+\def\cy@encoding{JY1}
+\def\ct@encoding{JT1}
+\let\k@family\@empty
+\let\k@series\@empty
+\let\k@shape\@empty
+\def\curr@kfontshape{\k@encoding/\k@family/\k@series/\k@shape}
+\def\rel@fontshape{\f@encoding/\f@family/\f@series/\f@shape}
+\newdimen\Cht
+\newdimen\cht
+\newdimen\Cdp
+\newdimen\cdp
+\newdimen\Cwd
+\newdimen\cwd
+\newdimen\Cvs
+\newdimen\cvs
+\newdimen\Chs
+\newdimen\chs
+\newdimen\cHT
+\let\afont\font
+\def\inlist@#1#2{%
+  \def\in@@##1<#1>##2##3\in@@{%
+    \ifx\in@##2\in@false\else\in@true\fi}%
+  \in@@#2<#1>\in@\in@@}
+\def\fam@elt{\noexpand\fam@elt}
+\def\enc@elt{\noexpand\enc@elt}
+\def\fenc@list{\enc@elt<OML>\enc@elt<T1>\enc@elt<OT1>\enc@elt<OMS>%
+               \enc@elt<OMX>\enc@elt<TS1>\enc@elt<U>}
+\let\kenc@list\@empty
+\let\kyenc@list\@empty
+\let\ktenc@list\@empty
+\def\kfam@list{\fam@elt<mc>\fam@elt<gt>}
+\def\ffam@list{\fam@elt<cmr>\fam@elt<cmss>\fam@elt<cmtt>%
+               \fam@elt<cmm>\fam@elt<cmsy>\fam@elt<cmex>}
+\let\notkfam@list\ffam@list
+\let\notffam@list\kfam@list
+\newbox\tstrutbox
+\newbox\zstrutbox
+\def\strut{\relax
+  \ifydir
+    \ifmmode\copy\strutbox\else\unhcopy\strutbox\fi
+  \else
+    \ifmmode\copy\tstrutbox\else\unhcopy\tstrutbox\fi
+  \fi}
+\def\tstrut{\relax\hbox{\tate
+   \ifmmode\copy\tstrutbox\else\unhcopy\tstrutbox\fi}}
+\def\zstrut{\relax\hbox{\tate
+   \ifmmode\copy\zstrutbox\else\unhcopy\zstrutbox\fi}}
+\def\DeclareFontEncoding{%
+  \begingroup
+  \nfss@catcodes
+  \expandafter\endgroup
+  \DeclareFontEncoding@}
+\def\DeclareFontEncoding@#1#2#3{%
+  \expandafter
+  \ifx\csname T@#1\endcsname\relax
+     \def\cdp@elt{\noexpand\cdp@elt}%
+     \xdef\cdp@list{\cdp@list\cdp@elt{#1}%
+                    {\default@family}{\default@series}%
+                    {\default@shape}}%
+     \expandafter\let\csname#1-cmd\endcsname\@changed@cmd
+     \def\enc@elt{\noexpand\enc@elt}%
+     \xdef\fenc@list{\fenc@list\enc@elt<#1>}%
+  \else
+     \@font@info{Redeclaring font encoding #1}%
+  \fi
+  \global\@namedef{T@#1}{#2}%
+  \global\@namedef{M@#1}{\default@M#3}%
+  \xdef\LastDeclaredEncoding{#1}%
+  }
+\def\DeclareKanjiEncoding#1{%
+  \@latex@warning{%
+     The \string\DeclareKanjiEncoding\space is obsoleted command.  Please use
+     \MessageBreak
+     the \string\DeclareTateKanjiEncoding\space for `Tate-kumi' encoding, and
+     \MessageBreak
+     the \string\DeclareYokoKanjiEncoding\space for `Yoko-kumi' encoding.
+     \MessageBreak
+     I treat the `#1' encoding as `Yoko-kumi'.}
+  \DeclareYokoKanjiEncoding{#1}%
+}
+\def\DeclareYokoKanjiEncoding{%
+  \begingroup
+  \nfss@catcodes
+  \expandafter\endgroup
+  \DeclareYokoKanjiEncoding@}
+\def\DeclareYokoKanjiEncoding@#1#2#3{%
+  \expandafter
+  \ifx\csname T@#1\endcsname\relax
+    \def\cdp@elt{\noexpand\cdp@elt}%
+    \xdef\cdp@list{\cdp@list\cdp@elt{#1}%
+                    {\default@k@family}{\default@k@series}%
+                    {\default@k@shape}}%
+    \expandafter\let\csname#1-cmd\endcsname\@changed@kcmd
+    \def\enc@elt{\noexpand\enc@elt}%
+    \xdef\kyenc@list{\kyenc@list\enc@elt<#1>}%
+    \xdef\kenc@list{\kenc@list\enc@elt<#1>}%
+  \else
+    \@font@info{Redeclaring KANJI (yoko) font encoding #1}%
+  \fi
+  \global\@namedef{T@#1}{#2}%
+  \global\@namedef{M@#1}{\default@KM#3}%
+  }
+\def\DeclareTateKanjiEncoding{%
+  \begingroup
+  \nfss@catcodes
+  \expandafter\endgroup
+  \DeclareTateKanjiEncoding@}
+\def\DeclareTateKanjiEncoding@#1#2#3{%
+  \expandafter
+  \ifx\csname T@#1\endcsname\relax
+    \def\cdp@elt{\noexpand\cdp@elt}%
+    \xdef\cdp@list{\cdp@list\cdp@elt{#1}%
+                    {\default@k@family}{\default@k@series}%
+                    {\default@k@shape}}%
+    \expandafter\let\csname#1-cmd\endcsname\@changed@kcmd
+    \def\enc@elt{\noexpand\enc@elt}%
+    \xdef\ktenc@list{\ktenc@list\enc@elt<#1>}%
+    \xdef\kenc@list{\kenc@list\enc@elt<#1>}%
+  \else
+    \@font@info{Redeclaring KANJI (tate) font encoding #1}%
+  \fi
+  \global\@namedef{T@#1}{#2}%
+  \global\@namedef{M@#1}{\default@KM#3}%
+  }
+\@onlypreamble\DeclareKanjiEncoding
+\@onlypreamble\DeclareYokoKanjiEncoding
+\@onlypreamble\DeclareYokoKanjiEncoding@
+\@onlypreamble\DeclareTateKanjiEncoding
+\@onlypreamble\DeclareTateKanjiEncoding@
+\def\DeclareKanjiEncodingDefaults#1#2{%
+  \ifx\relax#1\else
+    \ifx\default@KT\@empty\else
+      \@font@info{Overwriting KANJI encoding scheme text defaults}%
+    \fi
+    \gdef\default@KT{#1}%
+  \fi
+  \ifx\relax#2\else
+    \ifx\default@KM\@empty\else
+      \@font@info{Overwriting KANJI encoding scheme math defaults}%
+    \fi
+    \gdef\default@KM{#2}%
+  \fi}
+\let\default@KT\@empty
+\let\default@KM\@empty
+\@onlypreamble\DeclareKanjiEncodingDefaults
+\def\DeclareFontFamily#1#2#3{%
+ \@ifundefined{T@#1}%
+    {\@latex@error{Encoding scheme `#1' unknown}\@eha}%
+    {\edef\tmp@item{{#2}}%
+     \expandafter\expandafter\expandafter
+     \inlist@\expandafter\tmp@item\expandafter{\ffam@list}%
+     \ifin@ \else
+        \def\fam@elt{\noexpand\fam@elt}%
+        \xdef\ffam@list{\ffam@list\fam@elt<#2>}%
+     \fi
+     \def\reserved@a{#3}%
+     \global
+     \expandafter\let\csname #1+#2\expandafter\endcsname
+            \ifx \reserved@a\@empty
+              \@empty
+            \else \reserved@a
+            \fi
+    }%
+}
+\def\DeclareKanjiFamily#1#2#3{%
+ \@ifundefined{T@#1}%
+    {\@latex@error{KANJI Encoding scheme `#1' unknown}\@eha}%
+    {\edef\tmp@item{{#2}}%
+     \expandafter\expandafter\expandafter
+     \inlist@\expandafter\tmp@item\expandafter{\kfam@list}%
+     \ifin@ \else
+        \def\fam@elt{\noexpand\fam@elt}%
+        \xdef\kfam@list{\kfam@list\fam@elt<#2>}%
+     \fi
+     \def\reserved@a{#3}%
+     \global
+     \expandafter\let\csname #1+#2\expandafter\endcsname
+            \ifx \reserved@a\@empty
+              \@empty
+            \else \reserved@a
+            \fi
+     }%
+}
+\def\DeclareKanjiSubstitution#1#2#3#4{%
+  \expandafter\ifx\csname T@#1\endcsname\relax
+    \@latex@error{KANJI Encoding scheme `#1' unknown}\@eha
+  \else
+    \begingroup
+       \def\reserved@a{#1}%
+       \toks@{}%
+       \def\cdp@elt##1##2##3##4{%
+         \def\reserved@b{##1}%
+         \ifx\reserved@a\reserved@b
+           \addto@hook\toks@{\cdp@elt{#1}{#2}{#3}{#4}}%
+         \else
+           \addto@hook\toks@{\cdp@elt{##1}{##2}{##3}{##4}}%
+         \fi}%
+       \cdp@list
+       \xdef\cdp@list{\the\toks@}%
+    \endgroup
+    \global\@namedef{D@#1}{\def\default@family{#2}%
+                           \def\default@series{#3}%
+                           \def\default@shape{#4}}%
+  \fi}
+\def\DeclareErrorKanjiFont#1#2#3#4#5{%
+   \xdef\error@kfontshape{%
+      \noexpand\expandafter\noexpand\split@name\noexpand\string
+      \expandafter\noexpand\csname#1/#2/#3/#4/#5\endcsname
+      \noexpand\@nil}%
+   \gdef\default@k@family{#2}%
+   \gdef\default@k@series{#3}%
+   \gdef\default@k@shape{#4}%
+   \global\let\k@family\default@k@family
+   \global\let\k@series\default@k@series
+   \global\let\k@shape\default@k@shape
+   \gdef\f@size{#5}%
+   \gdef\f@baselineskip{#5pt}}
+\@onlypreamble\DeclareKanjiSubstitution
+\@onlypreamble\DeclareErrorKanjiFont
+\def\DeclareFixedFont#1#2#3#4#5#6{%
+   \begingroup
+      \let\afont\font
+      \math@fontsfalse
+      \every@math@size{}%
+      \fontsize{#6}\z@
+      \edef\tmp@item{{#2}}%
+      \expandafter\expandafter\expandafter
+      \inlist@\expandafter\tmp@item\expandafter{\kyenc@list}%
+      \ifin@
+        \usekanji{#2}{#3}{#4}{#5}%
+        \let\font\jfont
+      \else
+        \expandafter\expandafter\expandafter
+        \inlist@\expandafter\tmp@item\expandafter{\ktenc@list}%
+        \ifin@
+          \usekanji{#2}{#3}{#4}{#5}%
+          \let\font\tfont
+        \else
+          \useroman{#2}{#3}{#4}{#5}%
+          \let\font\afont
+        \fi
+      \fi
+      \global\expandafter\let\expandafter#1\the\font
+      \let\font\afont
+   \endgroup
+  }
+\def\reDeclareMathAlphabet#1#2#3{%
+  \edef#1{\noexpand\protect\expandafter\noexpand\csname%
+    \expandafter\@gobble\string#1\space\space\endcsname}%
+  \edef\@tempa{\expandafter\@gobble\string#2}%
+  \edef\@tempb{\expandafter\@gobble\string#3}%
+  \edef\@tempc{\string @\expandafter\@gobbletwo\string#2}%
+  \ifx\@tempc\@tempa%
+    \edef\@tempa{\expandafter\@gobbletwo\string#2}%
+    \edef\@tempb{\expandafter\@gobbletwo\string#3}%
+  \fi
+  \expandafter\edef\csname\expandafter\@gobble\string#1\space\space\endcsname%
+    {\noexpand\DualLang@mathalph@bet%
+      {\expandafter\noexpand\csname\@tempa\space\endcsname}%
+      {\expandafter\noexpand\csname\@tempb\space\endcsname}%
+  }%
+}
+\@onlypreamble\reDeclareMathAlphabet
+\def\DualLang@mathalph@bet#1#2{%
+  \relax\ifmmode
+    \ifx\math@bgroup\bgroup%     2e normal style     (\mathrm{...})
+      \bgroup\let\DualLang@Mfontsw\DLMfontsw@standard
+    \else
+      \ifx\math@bgroup\relax%    2e two letter style (\rm->\mathrm)
+        \let\DualLang@Mfontsw\DLMfontsw@oldstyle
+      \else
+        \ifx\math@bgroup\@empty% 2.09 oldlfont style ({\mathrm ...})
+          \let\DualLang@Mfontsw\DLMfontsw@oldlfont
+        \else%                   panic! assume 2e normal style
+          \bgroup\let\DualLang@Mfontsw\DLMfontsw@standard
+        \fi
+      \fi
+    \fi
+  \else
+    \let\DualLang@Mfontsw\@firstoftwo
+  \fi
+  \DualLang@Mfontsw{#1}{#2}%
+}
+\def\DLMfontsw@standard#1#2#3{#1{#2{#3}}\egroup}
+\def\DLMfontsw@oldstyle#1#2{#1\relax\@fontswitch\relax{#2}}
+\def\DLMfontsw@oldlfont#1#2{#1\relax#2\relax}
+\def\all@shape{all}%
+\def\DeclareRelationFont#1#2#3#4#5#6#7#8{%
+  \def\rel@shape{#4}%
+  \ifx\rel@shape\@empty
+     \global
+     \expandafter\def\csname rel@#1/#2/#3/all\endcsname{%
+       \romanencoding{#5}\romanfamily{#6}%
+       \romanseries{#7}}%
+  \else
+     \global
+     \expandafter\def\csname rel@#1/#2/#3/#4\endcsname{%
+       \romanencoding{#5}\romanfamily{#6}%
+       \romanseries{#7}\romanshape{#8}}%
+  \fi
+}
+\def\SetRelationFont#1#2#3#4#5#6#7#8{%
+  \def\rel@shape{#4}%
+  \ifx\rel@shape\@empty
+     \expandafter\def\csname rel@#1/#2/#3/all\endcsname{%
+       \romanencoding{#5}\romanfamily{#6}%
+       \romanseries{#7}}%
+  \else
+     \expandafter\def\csname rel@#1/#2/#3/#4\endcsname{%
+       \romanencoding{#5}\romanfamily{#6}%
+       \romanseries{#7}\romanshape{#8}}%
+  \fi
+}
+\newif\if@knjcmd
+\def\userelfont{\@knjcmdtrue}
+\DeclareRobustCommand\selectfont{%
+  \let\tmp@error@fontshape\error@fontshape
+  \let\error@fontshape\error@kfontshape
+  \edef\tmp@item{{\k@encoding}}%
+  \expandafter\expandafter\expandafter
+  \inlist@\expandafter\tmp@item\expandafter{\kyenc@list}%
+  \ifin@
+    \let\cy@encoding\k@encoding
+    \edef\ct@encoding{\csname t@enc@\k@encoding\endcsname}%
+  \else
+    \expandafter\expandafter\expandafter
+    \inlist@\expandafter\tmp@item\expandafter{\ktenc@list}%
+    \ifin@
+      \let\ct@encoding\k@encoding
+      \edef\cy@encoding{\csname y@enc@\k@encoding\endcsname}%
+    \else
+      \@latex@error{KANJI Encoding scheme `\k@encoding' unknown}\@eha
+    \fi
+  \fi
+  \let\font\tfont
+  \let\k@encoding\ct@encoding
+  \xdef\font@name{\csname\curr@kfontshape/\f@size\endcsname}%
+  \pickup@font
+  \font@name
+  \let\font\jfont
+  \let\k@encoding\cy@encoding
+  \xdef\font@name{\csname\curr@kfontshape/\f@size\endcsname}%
+  \pickup@font
+  \font@name
+  \expandafter\def\expandafter\k@encoding\tmp@item
+  \kenc@update
+  \let\error@fontshape\tmp@error@fontshape
+  \if@knjcmd \@knjcmdfalse
+    \expandafter\ifx
+    \csname rel@\k@encoding/\k@family/\k@series/\k@shape\endcsname\relax
+      \expandafter\ifx
+         \csname rel@\k@encoding/\k@family/\k@series/all\endcsname\relax
+      \else
+         \csname rel@\k@encoding/\k@family/\k@series/all\endcsname
+      \fi
+    \else
+       \csname rel@\k@encoding/\k@family/\k@series/\k@shape\endcsname
+    \fi
+  \fi
+  \let\font\afont
+  \xdef\font@name{\csname\curr@fontshape/\f@size\endcsname}%
+  \pickup@font
+  \font@name
+  \enc@update
+  \ifx\f@linespread\baselinestretch \else
+    \set@fontsize\baselinestretch\f@size\f@baselineskip
+  \fi
+  \size@update}
+\def\KanjiEncodingPair#1#2{\@namedef{t@enc@#1}{#2}\@namedef{y@enc@#2}{#1}}
+\KanjiEncodingPair{JY1}{JT1}
+\def\set@fontsize#1#2#3{%
+    \@defaultunits\@tempdimb#2pt\relax\@nnil
+    \edef\f@size{\strip@pt\@tempdimb}%
+    \@defaultunits\@tempskipa#3pt\relax\@nnil
+    \edef\f@baselineskip{\the\@tempskipa}%
+    \edef\f@linespread{#1}%
+    \let\baselinestretch\f@linespread
+    \def\size@update{%
+      \baselineskip\f@baselineskip\relax
+      \baselineskip\f@linespread\baselineskip
+      \normalbaselineskip\baselineskip
+      \adjustbaseline
+      \setbox\strutbox\hbox{\yoko
+          \vrule\@width\z@
+                \@height.7\baselineskip \@depth.3\baselineskip}%
+      \setbox\tstrutbox\hbox{\tate
+          \vrule\@width\z@
+                \@height.5\baselineskip \@depth.5\baselineskip}%
+      \setbox\zstrutbox\hbox{\tate
+          \vrule\@width\z@
+                \@height.7\baselineskip \@depth.3\baselineskip}%
+        \let\size@update\relax}}
+\newbox\adjust@box
+\newdimen\adjust@dimen
+\def\adjustbaseline{%
+    \setbox\adjust@box\hbox{\char\euc"A1A1}%
+    \cht\ht\adjust@box
+    \cdp\dp\adjust@box
+    \cwd\wd\adjust@box
+    \cvs\normalbaselineskip
+    \chs\cwd
+    \cHT\cht \advance\cHT\cdp
+  \iftdir
+    \setbox\adjust@box\hbox{\tbaselineshift\z@ M}%
+    \adjust@dimen\ht\adjust@box
+    \advance\adjust@dimen\dp\adjust@box
+    \advance\adjust@dimen-\cHT
+    \divide\adjust@dimen\tw@
+    \advance\adjust@dimen\cdp
+    \advance\adjust@dimen-\dp\adjust@box
+    \tbaselineshift\adjust@dimen
+  \fi}
+\DeclareRobustCommand\romanencoding[1]{%
+    \expandafter\ifx\csname T@#1\endcsname\relax
+      \@latex@error{Encoding scheme `#1' unknown}\@eha
+    \else
+      \edef\f@encoding{#1}%
+      \ifx\cf@encoding\f@encoding
+        \let\enc@update\relax
+      \else
+        \let\enc@update\@@enc@update
+      \fi
+    \fi
+}
+\DeclareRobustCommand\kanjiencoding[1]{%
+    \expandafter\ifx\csname T@#1\endcsname\relax
+      \@latex@error{KANJI Encoding scheme `#1' unknown}\@eha
+    \else
+      \edef\k@encoding{#1}%
+      \ifx\ck@encoding\k@encoding
+         \let\kenc@update\relax
+      \else
+         \let\kenc@update\@@kenc@update
+      \fi
+    \fi
+}
+\DeclareRobustCommand\fontencoding[1]{%
+  \edef\tmp@item{{#1}}%
+  \expandafter\expandafter\expandafter
+  \inlist@\expandafter\tmp@item\expandafter{\kenc@list}%
+  \ifin@ \kanjiencoding{#1}\else\romanencoding{#1}\fi}
+\def\@@kenc@update{%
+  \default@KT
+  \csname T@\k@encoding\endcsname
+  \csname D@\k@encoding\endcsname
+  \let\kenc@update\relax
+  \let\ck@encoding\k@encoding
+  \edef\tmp@item{{\k@encoding}}%
+  \expandafter\expandafter\expandafter
+  \inlist@\expandafter\tmp@item\expandafter{\kyenc@list}%
+  \ifin@ \let\cy@encoding\k@encoding
+  \else
+    \expandafter\expandafter\expandafter
+    \inlist@\expandafter\tmp@item\expandafter{\ktenc@list}%
+    \ifin@ \let\ct@encoding\k@encoding
+    \else
+      \@latex@error{KANJI Encoding scheme `\k@encoding' unknown}\@eha
+    \fi
+  \fi
+}
+\let\kenc@update\relax
+\def\@changed@kcmd#1#2{%
+   \ifx\protect\@typeset@protect
+      \@inmathwarn#1%
+      \expandafter\ifx\csname\ck@encoding\string#1\endcsname\relax
+         \expandafter\ifx\csname ?\string#1\endcsname\relax
+            \expandafter\def\csname ?\string#1\endcsname{%
+               \TextSymbolUnavailable#1%
+            }%
+         \fi
+         \global\expandafter\let
+               \csname\cf@encoding \string#1\expandafter\endcsname
+               \csname ?\string#1\endcsname
+      \fi
+      \csname\ck@encoding\string#1%
+         \expandafter\endcsname
+   \else
+      \noexpand#1%
+   \fi}
+\newif\if@notkfam
+\newif\if@notffam
+\newif\if@tempswz
+\DeclareRobustCommand\romanfamily[1]{\edef\f@family{#1}}
+\DeclareRobustCommand\kanjifamily[1]{\edef\k@family{#1}}
+\DeclareRobustCommand\fontfamily[1]{%
+  \edef\tmp@item{{#1}}%
+  \@notkfamfalse
+  \@notffamfalse
+  \expandafter\expandafter\expandafter
+  \inlist@\expandafter\tmp@item\expandafter{\kfam@list}%
+  \ifin@ \edef\k@family{#1}%
+  \else
+    \expandafter\expandafter\expandafter
+    \inlist@\expandafter\tmp@item\expandafter{\notkfam@list}%
+    \ifin@ \@notkfamtrue
+    \else
+      \@tempswzfalse
+      \def\fam@elt{\noexpand\fam@elt}%
+      \message{(I search kanjifont definition file:}%
+      \def\enc@elt<##1>{\message{.}%
+        \edef\reserved@a{\lowercase{\noexpand\IfFileExists{##1#1.fd}}}%
+        \reserved@a{\@tempswztrue}{}\relax}%
+      \kenc@list
+      \message{)}%
+      \if@tempswz
+        \edef\k@family{#1}%
+      \else
+        \@notkfamtrue
+        \xdef\notkfam@list{\notkfam@list\fam@elt<#1>}%
+      \fi
+  \fi\fi
+  \expandafter\expandafter\expandafter
+  \inlist@\expandafter\tmp@item\expandafter{\ffam@list}%
+  \ifin@ \edef\f@family{#1}\else
+    \expandafter\expandafter\expandafter
+    \inlist@\expandafter\tmp@item\expandafter{\notffam@list}%
+    \ifin@ \@notffamtrue \else
+      \@tempswzfalse
+      \def\fam@elt{\noexpand\fam@elt}%
+      \message{(I search font definition file:}%
+      \def\enc@elt<##1>{\message{.}%
+        \edef\reserved@a{\lowercase{\noexpand\IfFileExists{##1#1.fd}}}%
+        \reserved@a{\@tempswztrue}{}\relax}%
+      \fenc@list
+      \message{)}%
+      \if@tempswz
+        \edef\f@family{#1}%
+      \else
+        \@notffamtrue
+        \xdef\notffam@list{\notffam@list\fam@elt<#1>}%
+      \fi
+  \fi\fi
+  \if@notkfam\if@notffam
+      \edef\k@family{#1}\edef\f@family{#1}%
+  \fi\fi}
+\DeclareRobustCommand\romanseries[1]{\edef\f@series{#1}}
+\DeclareRobustCommand\kanjiseries[1]{\edef\k@series{#1}}
+\DeclareRobustCommand\fontseries[1]{\kanjiseries{#1}\romanseries{#1}}
+\DeclareRobustCommand\romanshape[1]{\edef\f@shape{#1}}
+\DeclareRobustCommand\kanjishape[1]{\edef\k@shape{#1}}
+\DeclareRobustCommand\fontshape[1]{\kanjishape{#1}\romanshape{#1}}
+\def\usekanji#1#2#3#4{%
+    \kanjiencoding{#1}\kanjifamily{#2}\kanjiseries{#3}\kanjishape{#4}%
+    \selectfont\ignorespaces}
+\def\useroman#1#2#3#4{%
+    \romanencoding{#1}\romanfamily{#2}\romanseries{#3}\romanshape{#4}%
+    \selectfont\ignorespaces}
+\def\usefont#1#2#3#4{%
+  \edef\tmp@item{{#1}}%
+  \expandafter\expandafter\expandafter
+  \inlist@\expandafter\tmp@item\expandafter{\kenc@list}%
+  \ifin@ \usekanji{#1}{#2}{#3}{#4}%
+  \else\useroman{#1}{#2}{#3}{#4}%
+  \fi}
+\DeclareRobustCommand\normalfont{%
+    \kanjiencoding{\kanjiencodingdefault}%
+    \kanjifamily{\kanjifamilydefault}%
+    \kanjiseries{\kanjiseriesdefault}%
+    \kanjishape{\kanjishapedefault}%
+    \romanencoding{\encodingdefault}%
+    \romanfamily{\familydefault}%
+    \romanseries{\seriesdefault}%
+    \romanshape{\shapedefault}%
+    \selectfont\ignorespaces}
+\adjustbaseline
+\let\reset@font\normalfont
+\DeclareRobustCommand\mcfamily
+        {\not@math@alphabet\mcfamily\mathmc
+         \kanjifamily\mcdefault\selectfont}
+\DeclareRobustCommand\gtfamily
+        {\not@math@alphabet\gtfamily\mathgt
+         \kanjifamily\gtdefault\selectfont}
+\let\romanprocess@table\process@table
+\def\kanjiprocess@table{%
+  \kanjiencoding{\kanjiencodingdefault}%
+  \kanjifamily{\kanjifamilydefault}%
+  \kanjiseries{\kanjiseriesdefault}%
+  \kanjishape{\kanjishapedefault}%
+}
+\def\process@table{%
+  \romanprocess@table
+  \kanjiprocess@table
+}
+\@onlypreamble\romanprocess@table
+\@onlypreamble\kanjiprocess@table
+\DeclareTextCommandDefault{\textunderscore}{%
+  \leavevmode\kern.06em
+  \iftdir\raise-\tbaselineshift\fi
+  \vbox{\hrule\@width.3em}}
+\InputIfFileExists{pldefs.cfg}
+           {\typeout{*************************************^^J%
+                     * Local config file pldefs.cfg used^^J%
+                     *************************************}}%
+           {\input{pldefs.ltx}}
+%% File: plcore.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\def\NeedsTeXFormat#1{%
+   \def\reserved@a{#1}%
+   \ifx\reserved@a\pfmtname
+     \expandafter\@needsPformat
+   \else
+     \ifx\reserved@a\fmtname
+       \expandafter\expandafter\expandafter\@needsformat
+     \else
+       \@latex@error{This file needs format `\reserved@a'%
+          \MessageBreak but this is `\pfmtname'}{%
+          The current input file will not be processed
+          further,\MessageBreak
+          because it was written for some other flavor of
+          TeX.\MessageBreak\@ehd}%
+       \endinput
+     \fi
+   \fi}
+\def\@needsPformat{\@ifnextchar[\@needsPf@rmat{}}
+\def\@needsPf@rmat[#1]{%
+    \@ifl@t@r\pfmtversion{#1}{}%
+    {\@latex@warning@no@line
+        {You have requested release `#1' of pLaTeX,\MessageBreak
+         but only release `\pfmtversion' is available}}}
+\@onlypreamble\@needsPformat
+\@onlypreamble\@needsPf@rmat
+\def\documentstyle{%
+  \makeatletter\input{pl209.def}\makeatother
+  \documentclass}
+\def\cleardoublepage{\clearpage\if@twoside
+  \ifodd\c@page
+    \iftdir
+      \hbox{}\thispagestyle{empty}\newpage
+      \if@twocolumn\hbox{}\newpage\fi
+    \fi
+  \else
+    \ifydir
+      \hbox{}\thispagestyle{empty}\newpage
+      \if@twocolumn\hbox{}\newpage\fi
+    \fi
+  \fi\fi}
+\def\@gnewline #1{%
+  \ifvmode
+    \@nolnerr
+  \else
+    \unskip \reserved@e {\reserved@f#1}\nobreak \hfil \break \null
+    \ignorespaces
+  \fi}
+\gdef\@makecol{%
+   \setbox\@outputbox\box\@cclv%
+   \xdef\@freelist{\@freelist\@midlist}%
+   \global \let \@midlist \@empty
+   \@combinefloats
+   \ifvbox\@kludgeins
+     \@makespecialcolbox
+   \else
+     \setbox\@outputbox \vbox to\@colht {%
+       \@texttop
+       \dimen@ \dp\@outputbox
+       \unvbox \@outputbox
+       \iftdir\hskip\z@
+       \else\vskip -\dimen@\fi
+       \@textbottom
+       \ifvoid\footins\else % for pLaTeX
+         \vskip \skip\footins
+         \color@begingroup
+            \normalcolor
+            \footnoterule
+            \unvbox \footins
+         \color@endgroup
+       \fi
+       }%
+   \fi
+   \global \maxdepth \@maxdepth
+}
+\gdef\@makespecialcolbox{%
+   \setbox\@outputbox \vbox {%
+     \@texttop
+     \dimen@ \dp\@outputbox
+     \unvbox\@outputbox
+     \vskip-\dimen@
+     }%
+   \@tempdima \@colht
+   \ifdim \wd\@kludgeins>\z@
+     \advance \@tempdima -\ht\@outputbox
+     \advance \@tempdima \pageshrink
+     \setbox\@outputbox \vbox to \@colht {%
+       \unvbox\@outputbox
+       \vskip \@tempdima
+       \@textbottom
+       \ifvoid\footins\else % for pLaTeX
+ \vskip\skip\footins
+         \color@begingroup
+            \normalcolor
+            \footnoterule
+            \unvbox \footins
+         \color@endgroup
+       \fi
+     }%
+   \else
+     \advance \@tempdima -\ht\@kludgeins
+     \setbox \@outputbox \vbox to \@colht {%
+       \vbox to \@tempdima {%
+         \unvbox\@outputbox
+         \@textbottom
+         \ifvoid\footins\else % for pLaTeX
+   \vskip\skip\footins
+           \color@begingroup
+              \normalcolor
+              \footnoterule
+              \unvbox \footins
+           \color@endgroup
+         \fi
+       }\vss}%
+   \fi
+   {\setbox \@tempboxa \box \@kludgeins}%
+}
+\def\@reinserts{%
+  \ifvoid\footins\else\insert\footins{%
+    \iftbox\footins\tate\else\yoko\fi
+    \unvbox\footins}\fi
+  \ifvbox\@kludgeins\insert\@kludgeins{\unvbox\@kludgeins}\fi
+}
+\newif\iftombow \tombowfalse
+\newif\iftombowdate \tombowdatetrue
+\newdimen\@tombowwidth
+\setlength{\@tombowwidth}{.1\p@}
+\newbox\@TL\newbox\@Tl
+\newbox\@TC
+\newbox\@TR\newbox\@Tr
+\newbox\@BL\newbox\@Bl
+\newbox\@BC
+\newbox\@BR\newbox\@Br
+\newbox\@CL
+\newbox\@CR
+\font\@bannerfont=cmtt9
+\newtoks\@bannertoken
+\@bannertoken{}
+\def\maketombowbox{%
+  \setbox\@TL\hbox to\z@{\yoko\hss
+      \vrule width13mm height\@tombowwidth depth\z@
+      \vrule height10mm width\@tombowwidth depth\z@
+      \iftombowdate
+        \raise4pt\hbox to\z@{\hskip5mm\@bannerfont\the\@bannertoken\hss}%
+      \fi}%
+  \setbox\@Tl\hbox to\z@{\yoko\hss
+      \vrule width10mm height\@tombowwidth depth\z@
+      \vrule height13mm width\@tombowwidth depth\z@}%
+  \setbox\@TC\hbox{\yoko
+      \vrule width10mm height\@tombowwidth depth\z@
+      \vrule height10mm width\@tombowwidth depth\z@
+      \vrule width10mm height\@tombowwidth depth\z@}%
+  \setbox\@TR\hbox to\z@{\yoko
+      \vrule height10mm width\@tombowwidth depth\z@
+      \vrule width13mm height\@tombowwidth depth\z@\hss}%
+  \setbox\@Tr\hbox to\z@{\yoko
+      \vrule height13mm width\@tombowwidth depth\z@
+      \vrule width10mm height\@tombowwidth depth\z@\hss}%
+  \setbox\@BL\hbox to\z@{\yoko\hss
+      \vrule width13mm depth\@tombowwidth height\z@
+      \vrule depth10mm width\@tombowwidth height\z@}%
+  \setbox\@Bl\hbox to\z@{\yoko\hss
+      \vrule width10mm depth\@tombowwidth height\z@
+      \vrule depth13mm width\@tombowwidth height\z@}%
+  \setbox\@BC\hbox{\yoko
+      \vrule width10mm depth\@tombowwidth height\z@
+      \vrule depth10mm width\@tombowwidth height\z@
+      \vrule width10mm depth\@tombowwidth height\z@}%
+  \setbox\@BR\hbox to\z@{\yoko
+      \vrule depth10mm width\@tombowwidth height\z@
+      \vrule width13mm depth\@tombowwidth height\z@\hss}%
+  \setbox\@Br\hbox to\z@{\yoko
+      \vrule depth13mm width\@tombowwidth height\z@
+      \vrule width10mm depth\@tombowwidth height\z@\hss}%
+  \setbox\@CL\hbox to\z@{\yoko\hss
+      \vrule width10mm height.5\@tombowwidth depth.5\@tombowwidth
+      \vrule height10mm depth10mm width\@tombowwidth}%
+  \setbox\@CR\hbox to\z@{\yoko
+      \vrule height10mm depth10mm width\@tombowwidth
+      \vrule height.5\@tombowwidth depth.5\@tombowwidth width10mm\hss}%
+}
+\def\@outputtombow{%
+  \iftombow
+  \vbox to\z@{\kern-13mm\relax
+    \moveleft3mm\vbox to\@@paperheight{%
+      \hbox to\@@paperwidth{\hskip3mm\relax
+         \copy\@TL\hfill\copy\@TC\hfill\copy\@TR\hskip3mm}%
+      \kern-10mm
+      \hbox to\@@paperwidth{\copy\@Tl\hfill\copy\@Tr}%
+      \vfill
+      \hbox to\@@paperwidth{\copy\@CL\hfill\copy\@CR}%
+      \vfill
+      \hbox to\@@paperwidth{\copy\@Bl\hfill\copy\@Br}%
+      \kern-10mm
+      \hbox to\@@paperwidth{\hskip3mm\relax
+         \copy\@BL\hfill\copy\@BC\hfill\copy\@BR\hskip3mm}%
+    }\vss
+  }%
+  \fi
+}
+\newdimen\@@paperheight
+\newdimen\@@paperwidth
+\newdimen\@@topmargin
+\def\@outputpage{%
+\begingroup % the \endgroup is put in by \aftergroup
+  \iftdir
+    \dimen\z@\textwidth \textwidth\textheight \textheight\dimen\z@
+  \fi
+  \let \protect \noexpand
+  \@resetactivechars
+  \global\let\@@if@newlist\if@newlist
+  \global\@newlistfalse
+  \@parboxrestore
+  \shipout\vbox{\yoko
+    \set@typeset@protect
+    \aftergroup\endgroup
+    \aftergroup\set@typeset@protect
+     \if@specialpage
+       \global\@specialpagefalse\@nameuse{ps@\@specialstyle}%
+     \fi
+     \if@twoside
+       \ifodd\count\z@ \let\@thehead\@oddhead \let\@thefoot\@oddfoot
+          \iftdir\let\@themargin\evensidemargin
+          \else\let\@themargin\oddsidemargin\fi
+       \else \let\@thehead\@evenhead
+          \let\@thefoot\@evenfoot
+           \iftdir\let\@themargin\oddsidemargin
+           \else\let\@themargin\evensidemargin\fi
+     \fi\fi
+     \@@topmargin\topmargin
+     \iftombow
+       \@@paperwidth\paperwidth \advance\@@paperwidth 6mm\relax
+       \@@paperheight\paperheight \advance\@@paperheight 16mm\relax
+       \advance\@@topmargin 1in\relax \advance\@themargin 1in\relax
+     \fi
+     \reset@font
+     \normalsize
+     \normalsfcodes
+     \let\label\@gobble
+     \let\index\@gobble
+     \let\glossary\@gobble
+     \baselineskip\z@skip \lineskip\z@skip \lineskiplimit\z@
+    \@begindvi
+    \@outputtombow
+    \vskip \@@topmargin
+    \moveright\@themargin\vbox{%
+      \setbox\@tempboxa \vbox to\headheight{%
+        \vfil
+        \color@hbox
+          \normalcolor
+          \hb@xt@\textwidth{\@thehead}%
+        \color@endbox
+      }%                        %% 22 Feb 87
+      \dp\@tempboxa \z@
+      \box\@tempboxa
+      \vskip \headsep
+      \box\@outputbox
+      \baselineskip \footskip
+      \color@hbox
+        \normalcolor
+        \hb@xt@\textwidth{\@thefoot}%
+      \color@endbox
+    }%
+  }%
+  \global\let\if@newlist\@@if@newlist
+  \global \@colht \textheight
+  \stepcounter{page}%
+  \let\firstmark\botmark
+}
+\renewcommand\@makefnmark{\hbox{%
+  \ifydir \@textsuperscript{\normalfont\@thefnmark}%
+  \else\hbox{\yoko\@textsuperscript{\normalfont\@thefnmark}}\fi}}
+\long\def\@footnotetext#1{%
+  \ifydir\def\@tempa{\yoko}\else\def\@tempa{\tate}\fi
+  \insert\footins{\@tempa%
+    \reset@font\footnotesize
+    \interlinepenalty\interfootnotelinepenalty
+    \splittopskip\footnotesep
+    \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+    \hsize\columnwidth \@parboxrestore
+    \protected@edef\@currentlabel{%
+       \csname p@footnote\endcsname\@thefnmark
+    }%
+    \color@begingroup
+      \@makefntext{%
+        \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
+    \color@endgroup}}
+\def\@footnotemark{\leavevmode
+  \ifhmode\edef\@x@sf{\the\spacefactor}\nobreak\fi
+  \ifydir\@makefnmark
+  \else\hbox to\z@{\hskip-.25zw\raise.9zh\@makefnmark\hss}\fi
+  \ifhmode\spacefactor\@x@sf\fi\relax}
+\def\@setref#1#2#3{%
+  \ifx#1\relax
+    \protect\G@refundefinedtrue
+    \nfss@text{\reset@font\bfseries ??}%
+    \@latex@warning{Reference `#3' on page \thepage \space
+              undefined}%
+  \else
+    \expandafter#2#1\relax% change \null to \relax
+  \fi}
+\if@compatibility\else
+\def\verb{\relax\ifmmode\hbox\else\leavevmode\fi
+  \bgroup
+    \verb@eol@error \let\do\@makeother \dospecials
+    \verbatim@font\@noligs
+    \@ifstar\@sverb\@verb}
+\fi
+\gdef\@stopfield{\null\color@endgroup\egroup}
+\newcommand\printglossary{\@input@{\jobname.gls}}
+\newcount\hour
+\newcount\minute
+%% File: plvers
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\IfFileExists{plpatch.ltx}
+  {\typeout{************************************^^J%
+            * Appliying patch file plpatch.ltx *^^J%
+            ************************************}
+  \def\pfmtversion@topatch{unknown}
+  \input{plpatch.ltx}
+  \ifx\pfmtversion\pfmtversion@topatch
+    \ifx\ppatch@level\@undefined
+      \typeout{^^J^^J^^J%
+   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J%
+   !! Patch file `plpatch.ltx' (for version <\pfmtversion@topatch>)^^J%
+   !! is not suitable for version <\pfmtversion> of pLaTeX.^^J^^J%
+   !! Please check if iniptex found an old patch file:^^J%
+   !! --- if so, rename it or delete it, and redo the^^J%
+   !!     iniptex run.^^J%
+   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J}%
+      \batchmode \@@end
+    \fi
+  \else
+      \typeout{^^J^^J^^J%
+   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J%
+   !! Patch file `plpatch.ltx' (for version <\pfmtversion@topatch>)^^J%
+   !! is not suitable for version <\pfmtversion> of pLaTeX.^^J%
+   !!^^J%
+   !! Please check if iniptex found an old patch file:^^J%
+   !! --- if so, rename it or delete it, and redo the^^J%
+   !!     iniptex run.^^J%
+   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J}%
+      \batchmode \@@end
+  \fi
+  \let\pfmtversion@topatch\relax
+  }{}
+\ifx\patch@level\@undefined
+  \ifx\ppatch@level\@undefined
+     \everyjob{\typeout{%
+        \pfmtname\space<\pfmtversion>\space
+          (based on \fmtname\space<\fmtversion>)}}
+  \else
+     \everyjob{\typeout{%
+        \pfmtname\space<\pfmtversion>+\ppatch@level\space
+          (based on \fmtname\space<\fmtversion>)}}
+  \fi
+\else
+  \ifx\ppatch@level\@undefined
+     \everyjob{\typeout{%
+        \pfmtname\space<\pfmtversion>\space
+          (based on \fmtname\space<\fmtversion>\space
+            patch level \patch@level)}}
+  \else
+     \everyjob{\typeout{%
+        \pfmtname\space<\pfmtversion>+\ppatch@level\space
+          (based on \fmtname\space<\fmtversion>\space
+            patch level \patch@level)}}
+  \fi
+\fi
+\endinput
+%%
+%% End of file `plcore.ltx'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/pldefs.ltx b/tex-ptex/files/texmf-dist/tex/platex/base/pldefs.ltx
new file mode 100644
index 0000000000..60020293e8
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/pldefs.ltx
@@ -0,0 +1,106 @@
+%%
+%% This is file `pldefs.ltx',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% plfonts.dtx  (with options: `pldefs,xpt')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from pldefs.ltx.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file plfonts.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: plfonts.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\ProvidesFile{pldefs.ltx}
+      [2000/07/13 v1.2 pLaTeX Kernel (Default settings)]
+\def \check@nocorr@ #1#2\nocorr#3\@nil {%
+  \let \check@icl \relax% \maybe@ic $B$+$iJQ99(B
+  \def \check@icr {\ifvmode \else \aftergroup \maybe@ic \fi}%
+  \def \reserved@a {\nocorr}%
+  \def \reserved@b {#1}%
+  \def \reserved@c {#3}%
+  \ifx \reserved@a \reserved@b
+    \ifx \reserved@c \@empty
+      \let \check@icl \@empty
+    \else
+      \let \check@icl \@empty
+      \let \check@icr \@empty
+    \fi
+  \else
+    \ifx \reserved@c \@empty
+    \else
+      \let \check@icr \@empty
+    \fi
+  \fi
+}
+\DeclareKanjiEncodingDefaults{}{}
+\DeclareErrorKanjiFont{JY1}{mc}{m}{n}{10}
+\DeclareYokoKanjiEncoding{JY1}{}{}
+\DeclareKanjiSubstitution{JY1}{mc}{m}{n}
+\DeclareTateKanjiEncoding{JT1}{}{}
+\DeclareKanjiSubstitution{JT1}{mc}{m}{n}
+\newcommand\mcdefault{mc}
+\newcommand\gtdefault{gt}
+\newcommand\kanjiencodingdefault{JY1}
+\newcommand\kanjifamilydefault{\mcdefault}
+\newcommand\kanjiseriesdefault{\mddefault}
+\newcommand\kanjishapedefault{\updefault}
+\kanjiencoding{JY1}
+\input{jy1mc.fd}
+\input{jy1gt.fd}
+\input{jt1mc.fd}
+\input{jt1gt.fd}
+\fontencoding{JT1}\selectfont
+\fontencoding{JY1}\selectfont
+\DeclareTextFontCommand{\textmc}{\mcfamily}
+\DeclareTextFontCommand{\textgt}{\gtfamily}
+\DeclareRobustCommand\em
+        {\@nomath\em \ifdim \fontdimen\@ne\font >\z@
+                       \mcfamily \upshape \else \gtfamily \itshape \fi}
+\DeclarePreloadSizes{JY1}{mc}{m}{n}{5,7,10,12}
+\DeclarePreloadSizes{JY1}{gt}{m}{n}{5,7,10,12}
+\DeclarePreloadSizes{JT1}{mc}{m}{n}{5,7,10,12}
+\DeclarePreloadSizes{JT1}{gt}{m}{n}{5,7,10,12}
+\InputIfFileExists{kinsoku.tex}%
+  {\message{Loading kinsoku patterns for japanese.}}
+  {\errhelp{The configuration for kinsoku is incorrectly installed.^^J%
+            If you don't understand this error message you need
+            to seek^^Jexpert advice.}%
+   \errmessage{OOPS! I can't find any kinsoku patterns for japanese^^J%
+               \space Think of getting some or the
+               platex2e setup will never succeed}\@@end}
+\kanjiskip=0pt plus .4pt minus .5pt
+\autospacing
+\xkanjiskip=.25zw plus1pt minus1pt
+\autoxspacing
+\jcharwidowpenalty=500
+\def\<{\inhibitglue}
+\endinput
+%%
+%% End of file `pldefs.ltx'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/plext.sty b/tex-ptex/files/texmf-dist/tex/platex/base/plext.sty
new file mode 100644
index 0000000000..34b48ada06
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/plext.sty
@@ -0,0 +1,566 @@
+%%
+%% This is file `plext.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% plext.dtx  (with options: `package')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from plext.sty.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file plext.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: plext.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\ProvidesPackage{plext}
+\ProvidesFile{plext.dtx}
+   [2001/09/26 v1.2 pLaTeX package file]
+\newif\if@rotsw
+\def\array{\let\@acol\@arrayacol \let\@classz\@arrayclassz
+ \let\@classiv\@arrayclassiv
+ \let\\\@arraycr\let\@halignto\@empty\X@tabarray}
+\def\tabular{\let\@halignto\@empty\X@tabular}
+\@namedef{tabular*}{\@ifnextchar<%>
+   {\@stabular}{\@stabular<Z>}}
+\def\X@tabarray{\@ifnextchar<%>
+   {\p@tabarray}{\p@tabarray<Z>}}
+\def\X@tabular{\@ifnextchar<%>
+   {\p@tabular}{\p@tabular<Z>}}
+\def\@stabular<#1>#2{\def\@halignto{to#2}\p@tabular<#1>}
+\def\p@tabular<#1>{\leavevmode \hbox \bgroup $\let\@acol\@tabacol
+   \let\@classz\@tabclassz
+   \let\@classiv\@tabclassiv \let\\\@tabularcr\p@tabarray<#1>}
+\def\p@tabarray<#1>{\m@th\@ifnextchar[%]
+   {\p@array<#1>}{\p@array<#1>[c]}}
+\def\p@array<#1>[#2]#3{\setbox\@arstrutbox\hbox{%
+  \iftdir
+    \if #1y\relax\yoko
+       \vrule\@height\arraystretch\ht\strutbox
+             \@depth\arraystretch\dp\strutbox \@width\z@
+    \else\if #1z\relax\@rotswtrue
+       \vrule\@height\arraystretch\ht\zstrutbox
+             \@depth\arraystretch\dp\zstrutbox \@width\z@
+    \else
+       \vrule\@height\arraystretch\ht\tstrutbox
+             \@depth\arraystretch\dp\tstrutbox \@width\z@
+    \fi\fi
+  \else
+    \if #1t\relax\hbox{\tate
+       \vrule\@height\arraystretch\ht\tstrutbox
+             \@depth\arraystretch\dp\tstrutbox \@width\z@}%
+    \else
+       \vrule\@height\arraystretch\ht\strutbox
+             \@depth\arraystretch\dp\strutbox \@width\z@
+    \fi
+  \fi}%
+  \fork@array@option<#1>[#2]%
+  \@mkpream{#3}\edef\@preamble{\ialign \noexpand\@halignto
+  \bgroup \tabskip\z@skip \@arstrut \@preamble \tabskip\z@skip \cr}%
+  \let\@startpbox\@@startpbox \let\@endpbox\@@endpbox
+  \let\tabularnewline\\%
+  \@begin@alignbox\bgroup\box@dir\adjustbaseline
+    \let\par\@empty
+    \let\@sharp##\let\protect\relax
+    \lineskip\z@skip\baselineskip\z@skip\@preamble}
+\def\endarray{\crcr\egroup\egroup\@end@alignbox}
+\def\endtabular{\crcr\egroup\egroup\@end@alignbox $\egroup}
+\expandafter \let \csname endtabular*\endcsname = \endtabular
+\def\fork@array@option<#1>[#2]{%
+\@rotswfalse
+\iftdir
+\if #1y\relax\let\box@dir\yoko
+  \if #2t\relax
+     \def\@begin@alignbox{\raise\cdp\vtop\bgroup\kern\z@\vbox}%
+     \let\@end@alignbox\egroup
+  \else\if #2b\relax
+     \def\@begin@alignbox{\lower\cdp\vbox\bgroup\vbox}%
+     \def\@end@alignbox{\kern\z@\egroup}%
+  \else
+     \let\@begin@alignbox\vcenter
+     \let\@end@alignbox\relax
+  \fi\fi
+\else\if #1z\relax\let\box@dir\relax\@rotswtrue
+  \if #2t\relax
+     \def\@begin@alignbox{\raise\cdp\vtop\bgroup\kern\z@\vbox}%
+     \let\@end@alignbox\egroup
+  \else\if #2b\relax
+     \def\@begin@alignbox{\lower\cdp\vbox\bgroup\vbox}%
+     \def\@end@alignbox{\kern\z@\egroup}%
+  \else
+     \let\@begin@alignbox\vcenter
+     \let\@end@alignbox\relax
+  \fi\fi
+\else\let\box@dir\tate
+  \if #2t\relax
+     \def\@begin@alignbox{\raise\cdp\vtop}%
+     \let\@end@alignbox\relax
+  \else\if #2b\relax
+     \let\@begin@alignbox\vbox
+     \let\@end@alignbox\relax
+  \else
+     \let\@begin@alignbox\vcenter
+     \let\@end@alignbox\relax
+  \fi\fi
+\fi\fi
+\else
+\if #1t\relax\let\box@dir\tate
+  \if #2t\relax
+     \def\@begin@alignbox{\vtop\bgroup\kern\z@\vbox}%
+     \let\@end@alignbox\egroup
+  \else\if #2b\relax
+     \def\@begin@alignbox{\vbox\bgroup\vbox}%
+     \def\@end@alignbox{\kern\z@\egroup}%
+  \else
+     \let\@begin@alignbox\vcenter
+     \let\@end@alignbox\relax
+  \fi\fi
+\else\let\box@dir\yoko
+  \if #2t\relax
+     \def\@begin@alignbox{\raise\cdp\vtop}%
+     \let\@end@alignbox\relax
+  \else\if #2b\relax
+     \let\@begin@alignbox\vbox
+     \let\@end@alignbox\relax
+  \else
+     \let\@begin@alignbox\vcenter
+     \let\@end@alignbox\relax
+  \fi\fi
+\fi\fi}
+\newbox\@floatbox
+\newdimen\floatwidth
+\newdimen\floatheight
+\newdimen\floatruletick \floatruletick=0.4pt
+\newdimen\captionfloatsep \captionfloatsep=10pt
+\def\caption@dir{Z}
+\let\captiondir\relax
+\newdimen\captionwidth \captionwidth\z@
+\def\caption@posa{Z}
+\def\caption@posb{Z}
+\newbox\@captionbox
+\def\captionfontsetup{\normalfont\normalsize}
+\def\layoutfloat{\@ifnextchar(%)
+   {\X@layoutfloat}{\X@layoutfloat(-5\p@,-5\p@)}}
+\def\X@layoutfloat(#1,#2){\@ifnextchar[%]
+   {\@layoutfloat(#1,#2)}{\@layoutfloat(#1,#2)[c]}}
+\long\def\@layoutfloat(#1,#2)[#3]#4{%
+  \setbox\z@\hbox{#4}%
+  \floatwidth=#1 \floatheight=#2 \edef\float@pos{#3}%
+  \ifdim\floatwidth<\z@
+     \floatwidth\wd\z@\floatruletick\z@
+  \fi
+  \ifdim\floatheight<\z@
+     \floatheight\ht\z@\advance\floatheight\dp\z@\relax
+     \floatruletick\z@
+  \fi
+  \setbox\@floatbox\vbox to\floatheight{\offinterlineskip
+    \hrule width\floatwidth height\floatruletick depth\z@
+    \vss\hbox to\floatwidth{%
+      \vrule width\floatruletick height\floatheight depth\z@
+      \hss\vbox to\floatheight{\hsize\floatwidth\vss#4\vss}\hss
+      \vrule width\floatruletick height\floatheight depth\z@
+    }\hrule width\floatwidth height\floatruletick depth\z@}}
+\def\DeclareLayoutCaption#1<#2>(#3)[#4#5]{%
+  \expandafter
+  \ifx\csname #1@layoutcaption\endcsname\relax \else
+    \@latex@info{Redeclaring capiton layout setting of '#1'}%
+  \fi
+  \expandafter
+  \gdef\csname #1@layoutcaption\endcsname{%
+     \if Z\caption@dir\def\caption@dir{#2}\fi
+     \ifdim\captionwidth=\z@ \captionwidth=#3\relax\fi
+     \if Z\caption@posa\def\caption@posa{#4}\fi
+     \if Z\caption@posb\def\caption@posb{#5}\fi}}
+\@onlypreamble\DeclareLayoutCaption
+\DeclareLayoutCaption{figure}<y>(.8\linewidth)[cd]
+\DeclareLayoutCaption{table}<y>(.8\linewidth)[cu]
+\def\layoutcaption{\def\caption@dir{Z}\captionwidth\z@
+  \def\caption@posa{Z}\def\caption@posb{Z}%
+  \@ifnextchar<\X@layoutcaption{%
+    \@ifnextchar(\@ilayoutcaption{%
+      \@ifnextchar[\@iilayoutcaption\relax}}}
+\def\X@layoutcaption<#1>{\def\caption@dir{#1}%
+  \@ifnextchar(\@ilayoutcaption{%
+    \@ifnextchar[\@iilayoutcaption\relax}}
+\def\@ilayoutcaption(#1){\setlength\captionwidth{#1}%
+  \@ifnextchar[{\@iilayoutcaption}{\relax}}
+\def\@iilayoutcaption[#1#2]{%
+  \def\caption@posa{#1}\def\caption@posb{#2}}
+\def\pcaption{\refstepcounter\@captype \@dblarg{\@pcaption\@captype}}
+\long\def\@pcaption#1[#2]#3{%
+  \addcontentsline{\csname ext@#1\endcsname}{#1}{%
+    \protect\numberline{\csname the#1\endcsname}{\ignorespaces#2}}%
+  \ifvoid\@floatbox
+     \latex@error{Use with `\protect\layoutfloat'.}\@eha
+  \fi
+  \make@pcaptionbox{#3}%
+  \@pboxswfalse
+  \setbox\@tempboxa\vbox{\hbox to\hsize{\if l\float@pos\else\hss\fi
+    \if l\caption@posb\box\@captionbox\kern\captionfloatsep\fi
+    \if t\caption@posa\vtop
+    \else\if b\caption@posa\vbox
+    \else\ifmmode\vcenter \else\@pboxswtrue $\vcenter \fi\fi\fi
+    {\if u\caption@posb\box\@captionbox\kern\captionfloatsep\fi
+     \unvbox\@floatbox
+     \if d\caption@posb\kern\captionfloatsep\box\@captionbox\fi}%
+    \if r\caption@posb\kern\captionfloatsep\box\@captionbox\fi
+    \if@pboxsw \m@th$\fi \if r\float@pos\else\hss\fi}}%
+  \par\vskip.25\baselineskip
+  \box\@tempboxa}
+\def\make@pcaptionbox#1{%
+  \expandafter
+  \ifx\csname\@captype @layoutcaption\endcsname\relax
+     \@latex@warning{Default caption layout of `\@captype' unknown.}%
+       \def\caption@dir{Z}\captionwidth\z@
+       \def\caption@posa{Z}\def\caption@posb{Z}%
+  \else
+     \csname \@captype @layoutcaption\endcsname
+  \fi
+  \@rotswfalse \@tempswafalse
+  \iftdir\if y\caption@dir \let\captiondir\yoko \@tempswatrue
+    \else\if z\caption@dir \let\captiondir\relax \@rotswtrue
+    \else\let\captiondir\tate\fi\fi
+  \else\if t\caption@dir\let\captiondir\tate \@tempswatrue
+    \else\let\captiondir\yoko\fi
+  \fi
+  \setbox0\hbox{\if@rotsw $\fi\hbox{\captiondir
+     \captionfontsetup\parindent\z@\inhibitglue
+     \csname fnum@\@captype\endcsname\char\euc"A1A1\relax#1}%
+  \if@rotsw \m@th$\fi}%
+  \if@tempswa \@tempdima\ht0 \else\@tempdima\wd0 \fi
+  \ifdim\@tempdima>\captionwidth \@tempdima\captionwidth \fi
+  \@pboxswfalse
+  \setbox0\hbox{\if@rotsw\ifmmode\@rotswfalse \else $\fi\fi
+    \if u\caption@posb\vbox
+    \else\if d\caption@posb\vbox
+    \else\if t\caption@posa\vtop
+    \else\if b\caption@posa\vbox
+    \else\ifmmode\vcenter\else\@pboxswtrue $\vcenter\fi
+    \fi\fi\fi\fi
+    {\hsize\@tempdima\kern\z@
+    \vbox{\captiondir\hsize\@tempdima
+      \captionfontsetup\parindent\z@\inhibitglue
+      \csname fnum@\@captype\endcsname\char\euc"A1A1\relax#1}\kern\z@
+    }\if@pboxsw \m@th$\fi \if@rotsw \m@th$\fi}%
+  \let\to@captionboxwidth\relax
+  \if l\caption@posb \else\if r\caption@posb\else
+  \def\to@captionboxwidth{to\floatwidth}\fi\fi
+  \setbox\@captionbox\hbox\to@captionboxwidth{%
+     \if t\caption@posa\else\hss\fi
+     \unhbox0\relax
+     \if b\caption@posa\else\hss\fi}}
+\def\minipage{\@ifnextchar<%>
+   {\X@minipage}{\X@minipage<Z>}}
+\def\X@minipage<#1>{\@ifnextchar[%]
+   {\@iminipage<#1>}{\@iiiminipage<#1>{c}\@empty[s]}}
+\def\@iminipage<#1>[#2]{\@ifnextchar[%]
+   {\@iiminipage<#1>{#2}}{\@iiiminipage<#1>{#2}\@empty[s]}}
+\def\@iiminipage<#1>#2[#3]{\@ifnextchar[%]
+   {\@iiiminipage<#1>{#2}{#3}}{\@iiiminipage<#1>{#2}{#3}[#2]}}
+\def\@iiiminipage<#1>#2#3[#4]#5{%
+  \leavevmode\bgroup
+  \setlength\@tempdima{#5}%
+  \def\@mpargs{<#1>{#2}{#3}[#4]{#5}}%
+  \@rotswfalse
+  \iftdir
+    \if #1y\relax\let\box@dir\yoko
+    \else\if #1z\relax\@rotswtrue \let\box@dir\relax
+    \else\let\box@dir\tate
+    \fi\fi
+  \else
+    \if #1t\relax\let\box@dir\tate
+    \else\let\box@dir\yoko
+    \fi
+  \fi
+  \setbox\@tempboxa\vbox\bgroup\box@dir
+    \if@rotsw \hsize\@tempdima\hbox\bgroup$\vbox\bgroup\fi
+    \adjustbaseline
+    \color@begingroup
+      \hsize\@tempdima
+      \textwidth\hsize \columnwidth\hsize
+      \@parboxrestore
+      \def\@mpfn{mpfootnote}\def\thempfn{\thempfootnote}%
+      \c@mpfootnote\z@
+      \let\@footnotetext\@mpfootnotetext
+      \let\@listdepth\@mplistdepth \@mplistdepth\z@
+      \@minipagerestore
+      \global\@minipagetrue %% \global added 24 May 89
+      \everypar{\global\@minipagefalse\everypar{}}}
+\def\endminipage{%
+    \par
+    \unskip
+    \ifvoid\@mpfootins\else
+      \vskip\skip\@mpfootins
+      \normalcolor
+      \footnoterule
+      \unvbox\@mpfootins
+    \fi
+    \global\@minipagefalse   %% added 24 May 89
+  \color@endgroup
+  \if@rotsw \egroup\m@th$\egroup\fi
+  \egroup
+  \expandafter\@iiiparbox\@mpargs{\unvbox\@tempboxa}\egroup}
+\def\parbox{\@ifnextchar<%>
+   {\X@parbox}{\X@parbox<Z>}}
+\def\X@parbox<#1>{\@ifnextchar[%]
+   {\@iparbox<#1>}{\@iiiparbox<#1>{c}\@empty[s]}}
+\def\@iparbox<#1>[#2]{\@ifnextchar[%]
+   {\@iiparbox<#1>{#2}}{\@iiiparbox<#1>{#2}\@empty[s]}}
+\def\@iiparbox<#1>#2[#3]{\@ifnextchar[%]%
+   {\@iiiparbox<#1>{#2}{#3}}{\@iiiparbox<#1>{#2}{#3}[#2]}}
+\long\def\@iiiparbox<#1>#2#3[#4]#5#6{%
+  \leavevmode\bgroup
+  \setlength\@tempdima{#5}%
+  \fork@parbox@option<#1>[#2]%
+\if@rotsw
+  \@begin@tempboxa\vbox{\box@dir\hsize\@tempdima
+    \hbox{$\vbox{\@parboxrestore\adjustbaseline#6\endgraf}\m@th$}}%
+\else
+  \@begin@tempboxa\vbox{\box@dir
+    \hsize\@tempdima\@parboxrestore\adjustbaseline#6\endgraf}%
+\fi
+    \ifx\@empty#3\relax\else
+      \setlength\@tempdimb{#3}%
+      \def\@parboxto{to\@tempdimb}%
+    \fi
+    \@begin@parbox\@parboxto{\box@dir\adjustbaseline
+       \let\hss\vss\let\unhbox\unvbox
+       \csname bm@#4\endcsname}\@end@parbox
+  \@end@tempboxa\egroup}
+\def\fork@parbox@option<#1>[#2]{%
+\@rotswfalse
+\iftdir
+\if #1y\relax\let\box@dir\yoko
+   \if #2t\relax
+      \def\@begin@parbox{\raise\cdp\vtop\bgroup\kern\z@\vtop}%
+      \let\@end@parbox\egroup
+   \else\if #2b\relax
+      \def\@begin@parbox{\lower\cdp\vbox\bgroup\vbox}%
+      \def\@end@parbox{\kern\z@\egroup}%
+   \else\ifmmode
+      \let\@begin@parbox\vcenter
+      \let\@end@parbox\relax
+   \else
+      \def\@begin@parbox{\hskip\tbaselineshift$\vcenter}%
+      \def\@end@parbox{\m@th$}%
+   \fi\fi\fi
+\else\if #1z\relax\@rotswtrue \let\box@dir\relax
+   \if #2t\relax
+      \def\@begin@parbox{\raise\cdp\vtop\bgroup\kern\z@\vtop}%
+      \let\@end@parbox\egroup
+   \else\if #2b\relax
+      \def\@begin@parbox{\lower\cdp\vbox\bgroup\vbox}%
+      \def\@end@parbox{\kern\z@\egroup}%
+   \else\ifmmode
+      \let\@begin@parbox\vcenter
+      \let\@end@parbox\relax
+   \else
+      \def\@begin@parbox{\hskip\tbaselineshift$\vcenter}%
+      \def\@end@parbox{\m@th$}%
+   \fi\fi\fi
+\else\let\box@dir\tate
+   \if #2t\relax
+      \let\@begin@parbox\vtop
+      \let\@end@parbox\relax
+   \else\if #2b\relax
+      \def\@begin@parbox{\lower\cdp\vbox}%
+      \let\@end@parbox\relax
+   \else\ifmmode
+      \let\@begin@parbox\vcenter
+      \let\@end@parbox\relax
+   \else
+      \def\@begin@parbox{$\vcenter}%
+      \def\@end@parbox{\m@th$}%
+   \fi\fi\fi
+\fi\fi
+\else
+\if #1t\relax\let\box@dir\tate
+   \if #2t\relax
+      \def\@begin@parbox{\vtop\bgroup\kern\z@\vbox}%
+      \let\@end@parbox\egroup
+   \else\if #2b\relax
+      \def\@begin@parbox{\vbox\bgroup\vbox}%
+      \def\@end@parbox{\kern\z@\egroup}%
+   \else\ifmmode
+      \let\@begin@parbox\vcenter
+      \let\@end@parbox\relax
+   \else
+      \def\@begin@parbox{$\vcenter}%
+      \def\@end@parbox{\m@th$}%
+   \fi\fi\fi
+\else\let\box@dir\yoko
+   \if #2t\relax
+      \let\@begin@parbox\vtop
+      \let\@end@parbox\relax
+   \else\if #2b\relax
+      \let\@begin@parbox\vbox
+      \let\@end@parbox\relax
+   \else\ifmmode
+      \let\@begin@parbox\vcenter
+      \let\@end@parbox\relax
+   \else
+      \def\@begin@parbox{$\vcenter}%
+      \def\@end@parbox{\m@th$}%
+   \fi\fi\fi
+\fi\fi}
+\def\pbox{\leavevmode\@ifnextchar<{\X@makePbox}{\X@makePbox<Z>}}
+\def\X@makePbox<#1>{%
+  \@ifnextchar[{\@imakePbox<#1>}{\@imakePbox<#1>[-5\p@]}}
+\def\@imakePbox<#1>[#2]{\@ifnextchar[%]
+  {\@iimakePbox<#1>{#2}}{\@iimakePbox<#1>{#2}[c]}}
+\def\@iimakePbox<#1>#2[#3]#4{%
+  \bgroup \@rotswfalse \@pboxswfalse
+  \iftdir
+    \if #1y\relax\let\box@dir\yoko
+    \else\if #1z\relax\@rotswtrue \let\box@dir\relax
+    \else\let\box@dir\tate
+    \fi\fi
+  \else
+    \if #1t\relax\let\box@dir\tate
+    \else\let\box@dir\yoko
+    \fi
+  \fi
+  \ifmmode\else\if@rotsw\@pboxswtrue\hbox\bgroup$\fi\fi
+    \ifdim #2 <\z@ \hbox{\box@dir#4}\else
+    \hbox to#2{\box@dir
+               \if #3l\relax\else\hss\fi
+               #4\relax
+               \if #3r\relax\else\hss\fi}\fi
+  \if@pboxsw \m@th$\egroup\fi\egroup}
+\def\picture{\@ifnextchar<%>
+   {\X@picture}{\X@picture<Z>}}
+\def\X@picture<#1>(#2,#3){\@ifnextchar(%)
+   {\@@picture<#1>(#2,#3)}{\@@picture<#1>(#2,#3)(0,0)}}
+\newdimen\save@ybaselineshift
+\newdimen\save@tbaselineshift
+\newdimen\@picwd
+\def\@@picture<#1>(#2,#3)(#4,#5){%
+  \save@ybaselineshift\ybaselineshift
+  \save@tbaselineshift\tbaselineshift
+  \iftdir
+    \if#1y\let\box@dir\yoko
+      \@picwd=#3\unitlength \@picht=#2\unitlength
+      \@tempdima=#5\unitlength \@tempdimb=#4\unitlength
+    \else\let\box@dir\tate
+      \@picwd=#2\unitlength \@picht=#3\unitlength
+      \@tempdima=#4\unitlength \@tempdimb=#5\unitlength
+    \fi
+  \else
+    \if#1t\let\box@dir\tate
+      \@picwd=#3\unitlength \@picht=#2\unitlength
+      \@tempdima=#5\unitlength \@tempdimb=#4\unitlength
+    \else\let\box@dir\yoko
+      \@picwd=#2\unitlength \@picht=#3\unitlength
+      \@tempdima=#4\unitlength \@tempdimb=#5\unitlength
+    \fi
+  \fi
+  \setbox\@picbox\hbox to\@picwd\bgroup\box@dir
+  \hskip-\@tempdima\lower\@tempdimb\hbox\bgroup
+  \ybaselineshift\z@ \tbaselineshift\z@
+  \ignorespaces}
+\def\endpicture{%
+  \egroup\hss\egroup
+  \ht\@picbox\@picht \wd\@picbox\@picwd \dp\@picbox\z@
+  \mbox{\box\@picbox}%
+  \ybaselineshift\save@ybaselineshift
+  \tbaselineshift\save@tbaselineshift}
+\let\org@put\put
+\def\put{\ybaselineshift\z@\tbaselineshift\z@\org@put}
+\let\org@line\line
+\def\line{\ybaselineshift\z@\tbaselineshift\z@\org@line}
+\let\org@vector\vector
+\def\vector{\ybaselineshift\z@\tbaselineshift\z@\org@vector}
+\let\org@dashbox\dashbox
+\def\dashbox{\ybaselineshift\z@\tbaselineshift\z@\org@dashbox}
+\let\org@oval\oval
+\def\oval{\ybaselineshift\z@\tbaselineshift\z@\org@oval}
+\let\org@circle\circle
+\def\circle{\ybaselineshift\z@\tbaselineshift\z@\org@circle}
+\newif\ifnot@advanceline
+\newskip\rensujiskip
+\rensujiskip=0.25\chs plus.25zw minus.25zw
+\DeclareRobustCommand\rensuji{%
+  \@ifstar{\not@advancelinetrue\@rensuji}{\@rensuji}}
+\def\@rensuji{\@ifnextchar[{\@@rensuji}{\@@rensuji[c]}}
+\def\@@rensuji[#1]#2{\ifydir\hbox{#2}\else
+  \hskip\rensujiskip
+  \ifvmode\leavevmode\fi
+  \ifnot@advanceline\not@advancelinefalse\else
+    \setbox\z@\hbox{\yoko#2}%
+    \@tempdima\ht\z@ \advance\@tempdima\dp\z@
+    \if #1c\relax\vrule\@width\z@ \@height.5\@tempdima \@depth.5\@tempdima
+    \else\if #1r\relax\vrule\@width\z@\@height\z@ \@depth\@tempdima
+    \else\vrule\@width\z@ \@height\@tempdima \@depth\z@
+    \fi\fi
+  \fi
+  \if #1c\relax\hbox to1zw{\yoko\hss#2\hss}%
+  \else\if #1r\relax\vbox{\hbox to1zw{\yoko\hss#2}}%
+  \else\vtop{\hbox to1zw{\yoko#2\hss}}%
+  \fi\fi
+  \hskip\rensujiskip
+\fi}
+\let\Rensuji\rensuji
+\let\prensuji\rensuji
+\def\Kanji#1{\expandafter\@Kanji\csname c@#1\endcsname}
+\def\@Kanji#1{\expandafter\kansuji\number #1}
+\def\kanji{\iftdir\expandafter\kansuji\fi}
+\def\boutenchar{\char\euc"A1A2}
+\def\bou#1{\ifvmode\leavevmode\fi\@bou#1\end}
+\def\@bou#1{%
+  \ifx#1\end \let\next=\relax
+  \else
+    \iftdir\if@rotsw
+      \hbox to\z@{\vbox to\z@{\boxmaxdepth\maxdimen
+        \vss\moveleft-0.2zw\hbox{\boutenchar}\nointerlineskip
+        \hbox{\char\euc"A1A1}}\hss}\nobreak#1\relax
+    \else
+      \hbox to\z@{\vbox to\z@{\boxmaxdepth\maxdimen
+        \vss\moveleft0.2zw\hbox{\yoko\boutenchar}\nointerlineskip
+        \hbox{\char\euc"A1A1}}\hss}\nobreak#1\relax
+    \fi\else
+      \hbox to\z@{\vbox to\z@{%
+        \vss\moveleft-0.2zw\hbox{\yoko\boutenchar}\nointerlineskip
+        \hbox{\char\euc"A1A1}}\hss}\nobreak#1\relax
+    \fi
+    \let\next=\@bou
+  \fi\next}
+\def\kasen#1{%
+  \ifydir\underline{#1}%
+  \else\if@rotsw\underline{#1}\else
+    \setbox\z@\hbox{#1}\leavevmode\raise.7zw
+    \hbox to\z@{\vrule\@width\wd\z@ \@depth\z@ \@height.4\p@\hss}%
+    \box\z@
+  \fi\fi}
+\def\@eqnnum{{\reset@font\rmfamily \normalcolor
+  \iftdir\raise.25zh\hbox{\yoko(\theequation)}%
+  \else (\theequation)\fi}}
+\def\@thecounter#1{\noexpand\rensuji{\noexpand\arabic{#1}}}
+\def\@thmcounter#1{\noexpand\rensuji{\noexpand\arabic{#1}}}
+\endinput
+%%
+%% End of file `plext.sty'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/plnews.cls b/tex-ptex/files/texmf-dist/tex/platex/base/plnews.cls
new file mode 100644
index 0000000000..a39b6cbb99
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/plnews.cls
@@ -0,0 +1,100 @@
+\NeedsTeXFormat{pLaTeX2e}
+\ProvidesClass{plnews}[1997/02/01 v1.0a Standard pLaTeX class]
+
+\InputIfFileExists{polnews.cfg}%
+  {\ClassInfo{plnews}{Using local configuration file}}%
+  {\ClassInfo{plnews}{No local configuration file}}
+
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{plnews}}
+\ProcessOptions
+\LoadClass[a4j,twocolumn,oneside]{jarticle}
+\RequirePackage{shortvrb}
+\MakeShortVerb{\|}
+\setlength{\footskip}{15mm}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% \maketitle parameters.
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\title{p\LaTeX~$B%K%e!<%9(B}
+\newcommand{\@titlefont}{\normalfont\Huge}
+
+\newcommand{\publicationmonth}{\renewcommand{\@month}}
+\newcommand{\@month}{\ClassError{ltnews}
+   {No \protect\publicationmonth~given}\@eha}
+
+\newcommand{\publicationyear}{\renewcommand{\@year}}
+\newcommand{\@year}{\ClassError{ltnews}
+   {No \protect\publicationyear~given}\@eha}
+
+\newcommand{\publicationissue}{\renewcommand{\@issue}}
+\newcommand{\@issue}{\ClassError{ltnews}
+   {No \protect\publicationissue~given}\@eha}
+\newcommand{\issuename}{Issue}
+
+\renewcommand{\maketitle}{%
+   \twocolumn[{%
+      \parbox[t][7\baselineskip]{\textwidth}{%
+         \@titlefont\@title\hspace{3mm}%
+         \normalsize $BBh(B{\@issue}$B9f(B\\[\medskipamount]
+         \normalfont{\@year}$BG/(B{\@month}$B7n(B~$BH/9T(B\\
+         $B:n@.<T!'(B\begin{tabular}[t]{l}
+                 \@author
+                 \end{tabular}%
+      }%
+   }]%
+}
+
+\newcommand{\ps@titlepage}{%
+   \renewcommand{\@oddhead}{\hfill}%
+   \renewcommand{\@evenhead}{\hfill}%
+   \renewcommand{\@oddfoot}{\@title~$BBh(B{\@issue}$B9f(B\hfil\thepage}%
+   \renewcommand{\@evenfoot}{\@title~$BBh(B{\@issue}$B9f(B\hfil\thepage}%
+}
+\pagestyle{titlepage}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Sectioning
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\renewcommand{\section}{%
+    \@startsection{section}{1}{\z@}
+       {1.5\Cvs \@plus.6\Cvs \@minus.2\Cvs}%
+       {.5\Cvs \@plus.3\Cvs}{\reset@font\Large\bfseries}
+}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Page Layout
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\setlength{\topmargin}{0pt}
+\setlength{\headheight}{0pt}
+\setlength{\headsep}{0pt}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% itemize
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\renewenvironment{itemize}
+  {\ifnum \@itemdepth >3\relax\@toodeep\else
+   \advance\@itemdepth\@ne
+   \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
+   \expandafter
+   \list{\csname \@itemitem\endcsname}{%
+      \iftdir
+         \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
+           \else\topsep\z@\fi
+         \labelwidth1zw \labelsep.3zw
+         \ifnum \@itemdepth =\@ne \leftmargin1zw\relax
+           \else\leftmargin\leftskip\fi
+         \advance\leftmargin 1zw
+      \fi
+      \parskip\z@ \itemsep\z@ \parsep\z@ % KN 1998/08/10
+      \def\makelabel##1{\hss\llap{##1}}}%
+   \fi}{\endlist}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% misc.
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\def\file#1{\textsf{#1}}
+\def\option#1{\texttt{#1}}
+\xspcode"5C=3  % \
+\xspcode"3C=3  % <
+\xspcode"3E=3  % >
+
+\endinput
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/ptrace.sty b/tex-ptex/files/texmf-dist/tex/platex/base/ptrace.sty
new file mode 100644
index 0000000000..a056df709c
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/ptrace.sty
@@ -0,0 +1,154 @@
+%%
+%% This is file `ptrace.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% plfonts.dtx  (with options: `trace')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from ptrace.sty.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file plfonts.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: plfonts.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\DeclareRobustCommand\selectfont{%
+  \let\tmp@error@fontshape\error@fontshape
+  \let\error@fontshape\error@kfontshape
+  \edef\tmp@item{{\k@encoding}}%
+  \expandafter\expandafter\expandafter
+  \inlist@\expandafter\tmp@item\expandafter{\kyenc@list}%
+  \ifin@
+    \let\cy@encoding\k@encoding
+    \edef\ct@encoding{\csname t@enc@\k@encoding\endcsname}%
+  \else
+    \expandafter\expandafter\expandafter
+    \inlist@\expandafter\tmp@item\expandafter{\ktenc@list}%
+    \ifin@
+      \let\ct@encoding\k@encoding
+      \edef\cy@encoding{\csname y@enc@\k@encoding\endcsname}%
+    \else
+      \@latex@error{KANJI Encoding scheme `\k@encoding' unknown}\@eha
+    \fi
+  \fi
+  \let\font\tfont
+  \let\k@encoding\ct@encoding
+  \xdef\font@name{\csname\curr@kfontshape/\f@size\endcsname}%
+  \pickup@font
+  \font@name
+  \let\font\jfont
+  \let\k@encoding\cy@encoding
+  \xdef\font@name{\csname\curr@kfontshape/\f@size\endcsname}%
+  \pickup@font
+  \font@name
+  \expandafter\def\expandafter\k@encoding\tmp@item
+  \kenc@update
+  \let\error@fontshape\tmp@error@fontshape
+  \if@knjcmd \@knjcmdfalse
+    \expandafter\ifx
+    \csname rel@\k@encoding/\k@family/\k@series/\k@shape\endcsname\relax
+      \expandafter\ifx
+         \csname rel@\k@encoding/\k@family/\k@series/all\endcsname\relax
+      \else
+         \csname rel@\k@encoding/\k@family/\k@series/all\endcsname
+      \fi
+    \else
+       \csname rel@\k@encoding/\k@family/\k@series/\k@shape\endcsname
+    \fi
+  \fi
+  \let\font\afont
+  \xdef\font@name{\csname\curr@fontshape/\f@size\endcsname}%
+  \pickup@font
+  \font@name
+\ifnum \tracingfonts>\tw@
+  \@font@info{Roman:Switching to \font@name}\fi
+  \enc@update
+  \ifx\f@linespread\baselinestretch \else
+    \set@fontsize\baselinestretch\f@size\f@baselineskip
+  \fi
+  \size@update}
+\def\KanjiEncodingPair#1#2{\@namedef{t@enc@#1}{#2}\@namedef{y@enc@#2}{#1}}
+\KanjiEncodingPair{JY1}{JT1}
+\def\set@fontsize#1#2#3{%
+    \@defaultunits\@tempdimb#2pt\relax\@nnil
+    \edef\f@size{\strip@pt\@tempdimb}%
+    \@defaultunits\@tempskipa#3pt\relax\@nnil
+    \edef\f@baselineskip{\the\@tempskipa}%
+    \edef\f@linespread{#1}%
+    \let\baselinestretch\f@linespread
+    \def\size@update{%
+      \baselineskip\f@baselineskip\relax
+      \baselineskip\f@linespread\baselineskip
+      \normalbaselineskip\baselineskip
+      \adjustbaseline
+      \setbox\strutbox\hbox{\yoko
+          \vrule\@width\z@
+                \@height.7\baselineskip \@depth.3\baselineskip}%
+      \setbox\tstrutbox\hbox{\tate
+          \vrule\@width\z@
+                \@height.5\baselineskip \@depth.5\baselineskip}%
+      \setbox\zstrutbox\hbox{\tate
+          \vrule\@width\z@
+                \@height.7\baselineskip \@depth.3\baselineskip}%
+     \ifnum \tracingfonts>\tw@
+       \ifx\f@linespread\@empty
+         \let\reserved@a\@empty
+       \else
+         \def\reserved@a{\f@linespread x}%
+       \fi
+       \@font@info{Changing size to\space
+             \f@size/\reserved@a \f@baselineskip}%
+       \aftergroup\type@restoreinfo
+     \fi
+        \let\size@update\relax}}
+\newbox\adjust@box
+\newdimen\adjust@dimen
+\def\adjustbaseline{%
+    \setbox\adjust@box\hbox{\char\euc"A1A1}%
+    \cht\ht\adjust@box
+    \cdp\dp\adjust@box
+    \cwd\wd\adjust@box
+    \cvs\normalbaselineskip
+    \chs\cwd
+    \cHT\cht \advance\cHT\cdp
+  \iftdir
+    \setbox\adjust@box\hbox{\tbaselineshift\z@ M}%
+    \adjust@dimen\ht\adjust@box
+    \advance\adjust@dimen\dp\adjust@box
+    \advance\adjust@dimen-\cHT
+    \divide\adjust@dimen\tw@
+    \advance\adjust@dimen\cdp
+    \advance\adjust@dimen-\dp\adjust@box
+    \tbaselineshift\adjust@dimen
+  \ifnum \tracingfonts>\tw@
+    \typeout{baselineshift:\the\tbaselineshift}
+  \fi
+  \fi}
+\endinput
+%%
+%% End of file `ptrace.sty'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/tarticle.cls b/tex-ptex/files/texmf-dist/tex/platex/base/tarticle.cls
new file mode 100644
index 0000000000..a41d4f8663
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/tarticle.cls
@@ -0,0 +1,808 @@
+%%
+%% This is file `tarticle.cls',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% jclasses.dtx  (with options: `article,tate')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from tarticle.cls.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file jclasses.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: jclasses.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\ProvidesClass{tarticle}
+  [2006/06/27 v1.6
+ Standard pLaTeX class]
+\newcounter{@paper}
+\newif\if@landscape \@landscapefalse
+\newcommand{\@ptsize}{}
+\newif\if@restonecol
+\newif\if@titlepage
+\@titlepagefalse
+\hour\time \divide\hour by 60\relax
+\@tempcnta\hour \multiply\@tempcnta 60\relax
+\minute\time \advance\minute-\@tempcnta
+\newif\if@stysize \@stysizefalse
+\newif\if@enablejfam \@enablejfamtrue
+\newif\if@mathrmmc \@mathrmmcfalse
+\DeclareOption{a4paper}{\setcounter{@paper}{1}%
+  \setlength\paperheight {297mm}%
+  \setlength\paperwidth  {210mm}}
+\DeclareOption{a5paper}{\setcounter{@paper}{2}%
+  \setlength\paperheight {210mm}
+  \setlength\paperwidth  {148mm}}
+\DeclareOption{b4paper}{\setcounter{@paper}{3}%
+  \setlength\paperheight {364mm}
+  \setlength\paperwidth  {257mm}}
+\DeclareOption{b5paper}{\setcounter{@paper}{4}%
+  \setlength\paperheight {257mm}
+  \setlength\paperwidth  {182mm}}
+\DeclareOption{a4j}{\setcounter{@paper}{1}\@stysizetrue
+  \setlength\paperheight {297mm}%
+  \setlength\paperwidth  {210mm}}
+\DeclareOption{a5j}{\setcounter{@paper}{2}\@stysizetrue
+  \setlength\paperheight {210mm}
+  \setlength\paperwidth  {148mm}}
+\DeclareOption{b4j}{\setcounter{@paper}{3}\@stysizetrue
+  \setlength\paperheight {364mm}
+  \setlength\paperwidth  {257mm}}
+\DeclareOption{b5j}{\setcounter{@paper}{4}\@stysizetrue
+  \setlength\paperheight {257mm}
+  \setlength\paperwidth  {182mm}}
+\DeclareOption{a4p}{\setcounter{@paper}{1}\@stysizetrue
+  \setlength\paperheight {297mm}%
+  \setlength\paperwidth  {210mm}}
+\DeclareOption{a5p}{\setcounter{@paper}{2}\@stysizetrue
+  \setlength\paperheight {210mm}
+  \setlength\paperwidth  {148mm}}
+\DeclareOption{b4p}{\setcounter{@paper}{3}\@stysizetrue
+  \setlength\paperheight {364mm}
+  \setlength\paperwidth  {257mm}}
+\DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
+  \setlength\paperheight {257mm}
+  \setlength\paperwidth  {182mm}}
+\if@compatibility
+  \renewcommand{\@ptsize}{0}
+\else
+  \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
+\fi
+\DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
+\DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
+\DeclareOption{landscape}{\@landscapetrue
+  \setlength\@tempdima{\paperheight}%
+  \setlength\paperheight{\paperwidth}%
+  \setlength\paperwidth{\@tempdima}}
+\DeclareOption{tombow}{%
+  \tombowtrue \tombowdatetrue
+  \setlength{\@tombowwidth}{.1\p@}%
+  \@bannertoken{%
+     \jobname\space:\space\number\year/\number\month/\number\day
+      (\number\hour:\number\minute)}
+  \maketombowbox}
+\DeclareOption{tombo}{%
+  \tombowtrue \tombowdatefalse
+  \setlength{\@tombowwidth}{.1\p@}%
+  \maketombowbox}
+\DeclareOption{mentuke}{%
+  \tombowtrue \tombowdatefalse
+  \setlength{\@tombowwidth}{\z@}%
+  \maketombowbox}
+\DeclareOption{tate}{%
+  \AtBeginDocument{\tate\message{$B!T=DAH%b!<%I!U(B}%
+                   \adjustbaseline}%
+}
+\DeclareOption{oneside}{\@twosidefalse}
+\DeclareOption{twoside}{\@twosidetrue}
+\DeclareOption{onecolumn}{\@twocolumnfalse}
+\DeclareOption{twocolumn}{\@twocolumntrue}
+\DeclareOption{titlepage}{\@titlepagetrue}
+\DeclareOption{notitlepage}{\@titlepagefalse}
+\DeclareOption{leqno}{\input{leqno.clo}}
+\DeclareOption{fleqn}{\input{fleqn.clo}}
+\DeclareOption{openbib}{%
+  \AtEndOfPackage{%
+   \renewcommand\@openbib@code{%
+      \advance\leftmargin\bibindent
+      \itemindent -\bibindent
+      \listparindent \itemindent
+      \parsep \z@
+      }%
+   \renewcommand\newblock{\par}}}
+\if@compatibility
+  \@mathrmmctrue
+\else
+  \DeclareOption{disablejfam}{\@enablejfamfalse}
+  \DeclareOption{mathrmmc}{\@mathrmmctrue}
+\fi
+\DeclareOption{draft}{\setlength\overfullrule{5pt}}
+\DeclareOption{final}{\setlength\overfullrule{0pt}}
+\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,tate}
+\ProcessOptions\relax
+\input{tsize1\@ptsize.clo}
+\RequirePackage{plext}
+\if@stysize
+  \setlength\columnsep{3\Cwd}
+\else
+  \setlength\columnsep{10\p@}
+\fi
+\setlength\columnseprule{0\p@}
+\setlength\lineskip{1\p@}
+\setlength\normallineskip{1\p@}
+\renewcommand{\baselinestretch}{}
+\setlength\parskip{0\p@ \@plus \p@}
+\setlength\parindent{1\Cwd}
+\@lowpenalty   51
+\@medpenalty  151
+\@highpenalty 301
+\setcounter{topnumber}{2}
+\setcounter{bottomnumber}{1}
+\setcounter{totalnumber}{3}
+\setcounter{dbltopnumber}{2}
+\renewcommand{\topfraction}{.7}
+\renewcommand{\bottomfraction}{.3}
+\renewcommand{\textfraction}{.2}
+\renewcommand{\floatpagefraction}{.5}
+\renewcommand{\dbltopfraction}{.7}
+\renewcommand{\dblfloatpagefraction}{.5}
+\def\ps@plain{\let\@mkboth\@gobbletwo
+   \let\ps@jpl@in\ps@plain
+   \let\@oddhead\@empty
+   \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
+   \let\@evenhead\@empty
+   \let\@evenfoot\@oddfoot}
+\let\ps@jpl@in\ps@plain
+\def\ps@headnombre{\let\@mkboth\@gobbletwo
+    \let\ps@jpl@in\ps@headnombre
+  \def\@evenhead{\hfil\thepage}%
+  \def\@oddhead{\thepage\hfil}%
+  \let\@oddfoot\@empty\let\@evenfoot\@empty}
+\def\ps@footnombre{\let\@mkboth\@gobbletwo
+    \let\ps@jpl@in\ps@footnombre
+  \def\@evenfoot{\hfil\thepage}%
+  \def\@oddfoot{\thepage\hfil}%
+  \let\@oddhead\@empty\let\@evenhead\@empty}
+\if@twoside
+  \def\ps@headings{\let\ps@jpl@in\ps@headnombre
+    \let\@oddfoot\@empty\let\@evenfoot\@empty
+    \def\@evenhead{{\leftmark}\hfil\thepage}%
+    \def\@oddhead{\thepage\hfil\rightmark}%
+    \let\@mkboth\markboth
+    \def\sectionmark##1{\markboth{%
+       \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi
+       ##1}{}}%
+    \def\subsectionmark##1{\markright{%
+       \ifnum \c@secnumdepth >\@ne \thesubsection.\hskip1zw\fi
+       ##1}}%
+  }
+\else % if not twoside
+  \def\ps@headings{\let\ps@jpl@in\ps@headnombre
+    \let\@oddfoot\@empty
+    \def\@oddhead{\thepage\hfil\rightmark}%
+    \let\@mkboth\markboth
+  \def\sectionmark##1{\markright{%
+     \ifnum \c@secnumdepth >\m@ne \thesection.\hskip1zw\fi
+     ##1}}%
+  }
+\fi
+\if@twoside
+  \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
+    \def\@evenhead{\hfil\leftmark}% right page
+    \def\@evenfoot{\hfil\thepage}% right page
+    \def\@oddhead{\rightmark\hfil}% left page
+    \def\@oddfoot{\thepage\hfil}% left page
+  \let\@mkboth\markboth
+  \def\sectionmark##1{\markboth{%
+     \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi
+     ##1}{}}%
+  \def\subsectionmark##1{\markright{%
+     \ifnum \c@secnumdepth >\@ne \thesubsection.\hskip1zw\fi
+     ##1}}%
+  }
+\else % if one column
+  \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
+    \def\@oddhead{\rightmark\hfil}%
+    \def\@oddfoot{\thepage\hfil}%
+    \let\@mkboth\markboth
+  \def\sectionmark##1{\markright{%
+     \ifnum \c@secnumdepth >\m@ne \thesection.\hskip1zw\fi
+     ##1}}%
+  }
+\fi
+\def\ps@myheadings{\let\ps@jpl@in\ps@plain%
+  \let\@oddfoot\@empty\let\@evenfoot\@empty
+  \def\@evenhead{{\leftmark}\hfil\thepage}%
+  \def\@oddhead{\thepage\hfil\rightmark}%
+  \let\@mkboth\@gobbletwo
+  \let\sectionmark\@gobble
+  \let\subsectionmark\@gobble
+}
+\if@compatibility
+\newenvironment{titlepage}
+    {%
+     \if@twocolumn\@restonecoltrue\onecolumn
+     \else\@restonecolfalse\newpage\fi
+     \thispagestyle{empty}%
+     \setcounter{page}\z@
+    }%
+    {\if@restonecol\twocolumn\else\newpage\fi
+    }
+\else
+\newenvironment{titlepage}
+    {%
+      \if@twocolumn
+        \@restonecoltrue\onecolumn
+      \else
+        \@restonecolfalse\newpage
+      \fi
+      \thispagestyle{empty}%
+      \setcounter{page}\@ne
+    }%
+    {\if@restonecol\twocolumn \else \newpage \fi
+     \if@twoside\else
+        \setcounter{page}\@ne
+     \fi
+    }
+\fi
+\def\p@thanks#1{\footnotemark
+  \protected@xdef\@thanks{\@thanks
+    \protect{\noindent$\m@th^\thefootnote$~#1\protect\par}}}
+\if@titlepage
+  \newcommand{\maketitle}{\begin{titlepage}%
+  \let\footnotesize\small
+  \let\footnoterule\relax
+  \let\thanks\p@thanks
+  \let\footnote\thanks
+  \vbox to\textheight\bgroup\tate\hsize\textwidth
+  \null\vfil
+  \vskip 60\p@
+  \begin{center}%
+    {\LARGE \@title \par}%
+    \vskip 3em%
+    {\Large
+     \lineskip .75em%
+      \begin{tabular}[t]{c}%
+        \@author
+      \end{tabular}\par}%
+      \vskip 1.5em%
+    {\large \@date \par}%       % Set date in \large size.
+  \end{center}\par
+  \vfil{\centering\@thanks}\vfil\null
+  \egroup
+  \end{titlepage}%
+  \setcounter{footnote}{0}%
+  \global\let\thanks\relax
+  \global\let\maketitle\relax
+  \global\let\p@thanks\relax
+  \global\let\@thanks\@empty
+  \global\let\@author\@empty
+  \global\let\@date\@empty
+  \global\let\@title\@empty
+  \global\let\title\relax
+  \global\let\author\relax
+  \global\let\date\relax
+  \global\let\and\relax
+  }%
+\else
+  \newcommand{\maketitle}{\par
+  \begingroup
+    \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
+    \def\@makefnmark{\hbox{\ifydir $\m@th^{\@thefnmark}$
+      \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
+    \long\def\@makefntext##1{\parindent 1zw\noindent
+       \hbox to 2zw{\hss\@makefnmark}##1}%
+    \if@twocolumn
+      \ifnum \col@number=\@ne \@maketitle
+      \else \twocolumn[\@maketitle]%
+      \fi
+    \else
+      \newpage
+      \global\@topnum\z@   % Prevents figures from going at top of page.
+      \@maketitle
+    \fi
+     \thispagestyle{jpl@in}\@thanks
+  \endgroup
+  \setcounter{footnote}{0}%
+  \global\let\thanks\relax
+  \global\let\maketitle\relax
+  \global\let\p@thanks\relax
+  \global\let\@thanks\@empty
+  \global\let\@author\@empty
+  \global\let\@date\@empty
+  \global\let\@title\@empty
+  \global\let\title\relax
+  \global\let\author\relax
+  \global\let\date\relax
+  \global\let\and\relax
+  }
+  \def\@maketitle{%
+  \newpage\null
+  \vskip 2em%
+  \begin{center}%
+  \let\footnote\p@thanks
+    {\LARGE \@title \par}%
+    \vskip 1.5em%
+    {\large
+      \lineskip .5em%
+      \begin{tabular}[t]{c}%
+        \@author
+      \end{tabular}\par}%
+    \vskip 1em%
+    {\large \@date}%
+  \end{center}%
+  \par\vskip 1.5em}
+\fi
+\if@titlepage
+  \newenvironment{abstract}{%
+      \titlepage
+      \null\vfil
+      \@beginparpenalty\@lowpenalty
+      \begin{center}%
+        {\bfseries\abstractname}%
+        \@endparpenalty\@M
+      \end{center}}%
+      {\par\vfil\null\endtitlepage}
+\else
+  \newenvironment{abstract}{%
+    \if@twocolumn
+      \section*{\abstractname}%
+    \else
+      \small
+      \begin{center}%
+        {\bfseries\abstractname\vspace{-.5em}\vspace{\z@}}%
+      \end{center}%
+      \quotation
+    \fi}{\if@twocolumn\else\endquotation\fi}
+\fi
+\setcounter{secnumdepth}{3}
+\newcounter{part}
+\newcounter{section}
+\newcounter{subsection}[section]
+\newcounter{subsubsection}[subsection]
+\newcounter{paragraph}[subsubsection]
+\newcounter{subparagraph}[paragraph]
+\renewcommand{\thepart}{\rensuji{\@Roman\c@part}}
+\renewcommand{\thesection}{\rensuji{\@arabic\c@section}}
+\renewcommand{\thesubsection}{\thesection$B!&(B\rensuji{\@arabic\c@subsection}}
+\renewcommand{\thesubsubsection}{%
+   \thesubsection$B!&(B\rensuji{\@arabic\c@subsubsection}}
+\renewcommand{\theparagraph}{%
+   \thesubsubsection$B!&(B\rensuji{\@arabic\c@paragraph}}
+\renewcommand{\thesubparagraph}{%
+   \theparagraph$B!&(B\rensuji{\@arabic\c@subparagraph}}
+\newcommand{\part}{\par\addvspace{4ex}%
+  \@afterindenttrue
+  \secdef\@part\@spart}
+\def\@part[#1]#2{%
+  \ifnum \c@secnumdepth >\m@ne
+    \refstepcounter{part}%
+    \addcontentsline{toc}{part}{%
+       \prepartname\thepart\postpartname\hspace{1zw}#1}%
+  \else
+    \addcontentsline{toc}{part}{#1}%
+  \fi
+  \markboth{}{}%
+  {\parindent\z@\raggedright
+   \interlinepenalty\@M\reset@font
+   \ifnum \c@secnumdepth >\m@ne
+     \Large\bfseries\prepartname\thepart\postpartname
+     \par\nobreak
+   \fi
+   \huge\bfseries#2\par}%
+  \nobreak\vskip3ex\@afterheading}
+\def\@spart#1{{%
+  \parindent\z@\raggedright
+  \interlinepenalty\@M\reset@font
+  \huge\bfseries#1\par}%
+  \nobreak\vskip3ex\@afterheading}
+\newcommand{\section}{\@startsection{section}{1}{\z@}%
+   {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
+   {.5\Cvs \@plus.3\Cvs}%
+   {\reset@font\Large\bfseries}}
+\newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
+   {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
+   {.5\Cvs \@plus.3\Cvs}%
+   {\reset@font\large\bfseries}}
+\newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
+   {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
+   {.5\Cvs \@plus.3\Cvs}%
+   {\reset@font\normalsize\bfseries}}
+\newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
+   {3.25ex \@plus 1ex \@minus .2ex}%
+   {-1em}%
+   {\reset@font\normalsize\bfseries}}
+\newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
+   {3.25ex \@plus 1ex \@minus .2ex}%
+   {-1em}%
+   {\reset@font\normalsize\bfseries}}
+\newcommand{\appendix}{\par
+  \setcounter{section}{0}%
+  \setcounter{subsection}{0}%
+  \renewcommand{\thesection}{\rensuji{\@Alph\c@section}}}
+\if@twocolumn
+  \setlength\leftmargini {2em}
+\else
+  \setlength\leftmargini {2.5em}
+\fi
+\setlength\leftmarginii  {2.2em}
+\setlength\leftmarginiii {1.87em}
+\setlength\leftmarginiv  {1.7em}
+\if@twocolumn
+  \setlength\leftmarginv {.5em}
+  \setlength\leftmarginvi{.5em}
+\else
+  \setlength\leftmarginv {1em}
+  \setlength\leftmarginvi{1em}
+\fi
+\setlength  \labelsep  {.5em}
+\setlength  \labelwidth{\leftmargini}
+\addtolength\labelwidth{-\labelsep}
+\@beginparpenalty -\@lowpenalty
+\@endparpenalty   -\@lowpenalty
+\@itempenalty     -\@lowpenalty
+\renewcommand{\theenumi}{\rensuji{\@arabic\c@enumi}}
+\renewcommand{\theenumii}{\rensuji{(\@alph\c@enumii)}}
+\renewcommand{\theenumiii}{\rensuji{\@roman\c@enumiii}}
+\renewcommand{\theenumiv}{\rensuji{\@Alph\c@enumiv}}
+\newcommand{\labelenumi}{\theenumi}
+\newcommand{\labelenumii}{\theenumii}
+\newcommand{\labelenumiii}{\theenumiii}
+\newcommand{\labelenumiv}{\theenumiv}
+\renewcommand{\p@enumii}{\theenumi}
+\renewcommand{\p@enumiii}{\theenumi(\theenumii)}
+\renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
+\renewenvironment{enumerate}
+  {\ifnum \@enumdepth >\thr@@\@toodeep\else
+   \advance\@enumdepth\@ne
+   \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
+   \list{\csname label\@enumctr\endcsname}{%
+      \iftdir
+         \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
+           \else\topsep\z@\fi
+         \parskip\z@ \itemsep\z@ \parsep\z@
+         \labelwidth1zw \labelsep.3zw
+         \ifnum \@enumdepth=\@ne \leftmargin1zw\relax
+           \else\leftmargin\leftskip\fi
+         \advance\leftmargin 1zw
+      \fi
+         \usecounter{\@enumctr}%
+         \def\makelabel##1{\hss\llap{##1}}}%
+   \fi}{\endlist}
+\newcommand{\labelitemi}{\textbullet}
+\newcommand{\labelitemii}{%
+  \iftdir
+     {\textcircled{~}}
+  \else
+     {\normalfont\bfseries\textendash}
+  \fi
+}
+\newcommand{\labelitemiii}{\textasteriskcentered}
+\newcommand{\labelitemiv}{\textperiodcentered}
+\renewenvironment{itemize}
+  {\ifnum \@itemdepth >\thr@@\@toodeep\else
+   \advance\@itemdepth\@ne
+   \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
+   \expandafter
+   \list{\csname \@itemitem\endcsname}{%
+      \iftdir
+         \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
+           \else\topsep\z@\fi
+         \parskip\z@ \itemsep\z@ \parsep\z@
+         \labelwidth1zw \labelsep.3zw
+         \ifnum \@itemdepth =\@ne \leftmargin1zw\relax
+           \else\leftmargin\leftskip\fi
+         \advance\leftmargin 1zw
+      \fi
+         \def\makelabel##1{\hss\llap{##1}}}%
+   \fi}{\endlist}
+\newenvironment{description}
+  {\list{}{\labelwidth\z@ \itemindent-\leftmargin
+   \iftdir
+     \leftmargin\leftskip \advance\leftmargin3\Cwd
+     \rightmargin\rightskip
+     \labelsep=1zw \itemsep\z@
+     \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
+   \fi
+           \let\makelabel\descriptionlabel}}{\endlist}
+\newcommand{\descriptionlabel}[1]{%
+   \hspace\labelsep\normalfont\bfseries #1}
+\newenvironment{verse}
+  {\let\\\@centercr
+   \list{}{\itemsep\z@ \itemindent -1.5em%
+           \listparindent\itemindent
+           \rightmargin\leftmargin \advance\leftmargin 1.5em}%
+           \item\relax}{\endlist}
+\newenvironment{quotation}
+  {\list{}{\listparindent 1.5em%
+           \itemindent\listparindent
+           \rightmargin\leftmargin
+           \parsep\z@ \@plus\p@}%
+           \item\relax}{\endlist}
+\newenvironment{quote}
+  {\list{}{\rightmargin\leftmargin}%
+           \item\relax}{\endlist}
+\newcounter{figure}
+\renewcommand{\thefigure}{\rensuji{\@arabic\c@figure}}
+\def\fps@figure{tbp}
+\def\ftype@figure{1}
+\def\ext@figure{lof}
+\def\fnum@figure{\figurename\thefigure}
+\newenvironment{figure}
+               {\@float{figure}}
+               {\end@float}
+\newenvironment{figure*}
+               {\@dblfloat{figure}}
+               {\end@dblfloat}
+\newcounter{table}
+\renewcommand{\thetable}{\rensuji{\@arabic\c@table}}
+\def\fps@table{tbp}
+\def\ftype@table{2}
+\def\ext@table{lot}
+\def\fnum@table{\tablename\thetable}
+\newenvironment{table}
+               {\@float{table}}
+               {\end@float}
+\newenvironment{table*}
+               {\@dblfloat{table}}
+               {\end@dblfloat}
+\newlength\abovecaptionskip
+\newlength\belowcaptionskip
+\setlength\abovecaptionskip{10\p@}
+\setlength\belowcaptionskip{0\p@}
+\long\def\@makecaption#1#2{%
+  \vskip\abovecaptionskip
+  \iftdir\sbox\@tempboxa{#1\hskip1zw#2}%
+    \else\sbox\@tempboxa{#1: #2}%
+  \fi
+  \ifdim \wd\@tempboxa >\hsize
+    \iftdir #1\hskip1zw#2\relax\par
+      \else #1: #2\relax\par\fi
+  \else
+    \global \@minipagefalse
+    \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
+  \fi
+  \vskip\belowcaptionskip}
+\setlength\arraycolsep{5\p@}
+\setlength\tabcolsep{6\p@}
+\setlength\arrayrulewidth{.4\p@}
+\setlength\doublerulesep{2\p@}
+\setlength\tabbingsep{\labelsep}
+\skip\@mpfootins = \skip\footins
+\setlength\fboxsep{3\p@}
+\setlength\fboxrule{.4\p@}
+\renewcommand{\theequation}{\@arabic\c@equation}
+\if@enablejfam
+  \if@compatibility\else
+    \DeclareSymbolFont{mincho}{JY1}{mc}{m}{n}
+    \DeclareSymbolFontAlphabet{\mathmc}{mincho}
+    \SetSymbolFont{mincho}{bold}{JY1}{gt}{m}{n}
+    \jfam\symmincho
+    \DeclareMathAlphabet{\mathgt}{JY1}{gt}{m}{n}
+  \fi
+  \if@mathrmmc
+    \AtBeginDocument{%
+    \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
+    \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
+  }%
+  \fi
+\else
+  \DeclareRobustCommand{\mathmc}{%
+    \@latex@error{Command \noexpand\mathmc invalid with\space
+       `disablejfam' class option.}\@eha
+  }
+  \DeclareRobustCommand{\mathgt}{%
+    \@latex@error{Command \noexpand\mathgt invalid with\space
+       `disablejfam' class option.}\@eha
+  }
+\fi
+\DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
+\DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
+\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
+\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
+\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
+\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
+\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
+\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
+\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
+\DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
+\DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
+\setcounter{tocdepth}{3}
+\newcommand{\@pnumwidth}{1.55em}
+\newcommand{\@tocrmarg}{2.55em}
+\newcommand{\@dotsep}{4.5}
+\newdimen\toclineskip
+\setlength\toclineskip{2\p@}
+\newdimen\@lnumwidth
+\def\numberline#1{\hbox to\@lnumwidth{#1\hfil}}
+\def\@dottedtocline#1#2#3#4#5{%
+  \ifnum #1>\c@tocdepth \else
+    \vskip\toclineskip \@plus.2\p@
+    {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
+     \parindent #2\relax\@afterindenttrue
+     \interlinepenalty\@M
+     \leavevmode
+     \@lnumwidth #3\relax
+     \advance\leftskip \@lnumwidth \hbox{}\hskip -\leftskip
+     {#4}\nobreak
+     \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
+     \hfill\nobreak
+     \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
+     \par}%
+  \fi}
+\def\addcontentsline#1#2#3{%
+  \protected@write\@auxout
+    {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
+\@temptokena{\rensuji{\thepage}}}%
+    {\string\@writefile{#1}%
+       {\protect\contentsline{#2}{#3}{\the\@temptokena}}}%
+}
+\newcommand{\tableofcontents}{%
+  \section*{\contentsname
+    \@mkboth{\contentsname}{\contentsname}%
+  }\@starttoc{toc}%
+}
+\newcommand*{\l@part}[2]{%
+  \ifnum \c@tocdepth >-2\relax
+    \addpenalty{\@secpenalty}%
+    \addvspace{2.25em \@plus\p@}%
+    \begingroup
+    \parindent\z@\rightskip\@pnumwidth
+    \parfillskip-\@pnumwidth
+    {\leavevmode\large\bfseries
+     \setlength\@lnumwidth{4zw}%
+     #1\hfil\nobreak
+     \hbox to\@pnumwidth{\hss#2}}\par
+    \nobreak
+    \if@compatibility
+    \global\@nobreaktrue
+    \everypar{\global\@nobreakfalse\everypar{}}%
+    \fi
+     \endgroup
+  \fi}
+\newcommand*{\l@section}[2]{%
+  \ifnum \c@tocdepth >\z@
+    \addpenalty{\@secpenalty}%
+    \addvspace{1.0em \@plus\p@}%
+    \begingroup
+      \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
+      \leavevmode\bfseries
+      \setlength\@lnumwidth{1.5em}%
+      \advance\leftskip\@lnumwidth \hskip-\leftskip
+      #1\nobreak\hfil\nobreak\hbox to\@pnumwidth{\hss#2}\par
+    \endgroup
+  \fi}
+\newcommand*{\l@subsection}   {\@dottedtocline{2}{1zw}{4zw}}
+\newcommand*{\l@subsubsection}{\@dottedtocline{3}{2zw}{6zw}}
+\newcommand*{\l@paragraph}    {\@dottedtocline{4}{3zw}{8zw}}
+\newcommand*{\l@subparagraph} {\@dottedtocline{5}{4zw}{9zw}}
+\newcommand{\listoffigures}{%
+    \section*{\listfigurename
+  \@mkboth{\listfigurename}{\listfigurename}}%
+  \@starttoc{lof}%
+}
+\newcommand*{\l@figure}{\@dottedtocline{1}{1zw}{4zw}}
+\newcommand{\listoftables}{%
+    \section*{\listtablename
+  \@mkboth{\listtablename}{\listtablename}}%
+  \@starttoc{lot}%
+}
+\let\l@table\l@figure
+\newdimen\bibindent
+\setlength\bibindent{1.5em}
+\newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
+\newenvironment{thebibliography}[1]
+{\section*{\refname\@mkboth{\refname}{\refname}}%
+   \list{\@biblabel{\@arabic\c@enumiv}}%
+        {\settowidth\labelwidth{\@biblabel{#1}}%
+         \leftmargin\labelwidth
+         \advance\leftmargin\labelsep
+         \@openbib@code
+         \usecounter{enumiv}%
+         \let\p@enumiv\@empty
+         \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+   \sloppy
+   \clubpenalty4000
+   \@clubpenalty\clubpenalty
+   \widowpenalty4000%
+   \sfcode`\.\@m}
+  {\def\@noitemerr
+    {\@latex@warning{Empty `thebibliography' environment}}%
+   \endlist}
+\let\@openbib@code\@empty
+\newenvironment{theindex}
+  {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
+   \columnseprule\z@ \columnsep 35\p@
+   \twocolumn[\section*{\indexname}]%
+   \@mkboth{\indexname}{\indexname}%
+   \thispagestyle{jpl@in}\parindent\z@
+   \parskip\z@ \@plus .3\p@\relax
+   \let\item\@idxitem}
+  {\if@restonecol\onecolumn\else\clearpage\fi}
+\newcommand{\@idxitem}{\par\hangindent 40\p@}
+\newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
+\newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
+\newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
+\renewcommand{\footnoterule}{%
+  \kern-3\p@
+  \hrule width .4\columnwidth
+  \kern 2.6\p@}
+\newcommand\@makefntext[1]{\parindent 1zw
+  \noindent\hbox to 2zw{\hss\@makefnmark}#1}
+\newif\if$B@>Nq(B \$B@>Nq(Bfalse
+\def\$B@>Nq(B{\$B@>Nq(Btrue}
+\def\$BOBNq(B{\$B@>Nq(Bfalse}
+\newcount\heisei \heisei\year \advance\heisei-1988\relax
+\def\today{{%
+  \iftdir
+    \if$B@>Nq(B
+      \kansuji\number\year $BG/(B
+      \kansuji\number\month $B7n(B
+      \kansuji\number\day $BF|(B
+    \else
+      $BJ?@.(B\ifnum\heisei=1 $B85G/(B\else\kansuji\number\heisei $BG/(B\fi
+      \kansuji\number\month $B7n(B
+      \kansuji\number\day $BF|(B
+    \fi
+  \else
+    \if$B@>Nq(B
+      \number\year~$BG/(B
+      \number\month~$B7n(B
+      \number\day~$BF|(B
+    \else
+      $BJ?@.(B\ifnum\heisei=1 $B85G/(B\else\number\heisei~$BG/(B\fi
+      \number\month~$B7n(B
+      \number\day~$BF|(B
+    \fi
+  \fi}}
+\newcommand{\prepartname}{$BBh(B}
+\newcommand{\postpartname}{$BIt(B}
+\newcommand{\contentsname}{$BL\(B $B<!(B}
+\newcommand{\listfigurename}{$B?^(B $BL\(B $B<!(B}
+\newcommand{\listtablename}{$BI=(B $BL\(B $B<!(B}
+\newcommand{\refname}{$B;29MJ88%(B}
+\newcommand{\indexname}{$B:w(B $B0z(B}
+\newcommand{\figurename}{$B?^(B}
+\newcommand{\tablename}{$BI=(B}
+\newcommand{\appendixname}{$BIU(B $BO?(B}
+\newcommand{\abstractname}{$B35(B $BMW(B}
+\pagestyle{plain}
+\pagenumbering{arabic}
+\raggedbottom
+\if@twocolumn
+  \twocolumn
+  \sloppy
+\else
+  \onecolumn
+\fi
+\normalmarginpar
+\@mparswitchfalse
+\endinput
+%%
+%% End of file `tarticle.cls'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/tarticle.sty b/tex-ptex/files/texmf-dist/tex/platex/base/tarticle.sty
new file mode 100644
index 0000000000..33584416ac
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/tarticle.sty
@@ -0,0 +1,45 @@
+%%
+%% This is file `tarticle.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% pl209.dtx  (with options: `style,tarticle')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from tarticle.sty.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file pl209.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: pl209.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\@obsoletefile{tarticle.cls}{tarticle.sty}
+\LoadClass{tarticle}
+\endinput
+%%
+%% End of file `tarticle.sty'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/tascmac.sty b/tex-ptex/files/texmf-dist/tex/platex/base/tascmac.sty
new file mode 100644
index 0000000000..7bfe0b6406
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/tascmac.sty
@@ -0,0 +1,171 @@
+% "tascmac" document style option for tate gumi.
+%
+% Copyright (C) by 1993, ASCII Corporation & Impress Corporation.
+%
+% 2006/07/14 (ST): itembox, screen environment bug fix.
+% 2002/04/01 (KN): ASCII logo macros
+% 1998/11/27 (KN and FTEXers): itembox
+% 1998/02/27 (KN): set \tbaselineshift in minipage environment.
+%
+% ascmac.sty 10/28 '88
+% ASCII special macros
+\newdimen\@savetbaselineshift
+\newdimen\@saveybaselineshift
+%
+%% ASCII logo
+\def\@@ASCII#1#2#3{\shortstack{#1 ASCII \\[#3]
+  \fontsize{#2}{\z@}\usefont{OT1}{cmss}{m}{n}ASCII CORPORATION}}
+\def\ascii{\@ifundefined{@ascii}{\font\@ascii=ascii10 scaled \magstep4}{}%
+\@@ASCII\@ascii{5pt}{-6pt}}
+\def\Ascii{\@ifundefined{@Ascii}{\font\@Ascii=ascii10 scaled \magstep5}{}%
+\@@ASCII\@Ascii{6pt}{-7pt}}
+\def\ASCII{\@ifundefined{@ASCII}{\font\@ASCII=ascii36}{}%
+\@@ASCII\@ASCII{9pt}{-9pt}}
+%%
+%% boxnote environment
+\font\@ascgrp=ascgrp
+\newbox\scb@x \newbox\scscb@x
+\newdimen\@bw\newbox\@nbox\newbox\@nbody
+\def\boxnote{\par\vspace{\baselineskip}
+\@savetbaselineshift\tbaselineshift\tbaselineshift\z@
+\setbox\@nbox=\hbox{\@ascgrp\vrule width1.08pt depth35pt b\hss a\hss b}
+\@whiledim \wd\@nbox<\hsize \do{
+\setbox\@nbox=\hbox{\@ascgrp\unhbox\@nbox \hss a\hss b}}
+\setbox\@nbox=\hbox to\hsize{\@ascgrp\unhbox\@nbox \hss a\hss b%
+\vrule width1.08pt depth35pt}
+\@bw=\wd\@nbox\advance\@bw -40pt
+\begin{lrbox}{\@nbody}\begin{minipage}{\@bw}% (KN:1998/02/27)
+  \tbaselineshift\@savetbaselineshift}%
+\def\endboxnote{\end{minipage}\end{lrbox}%
+\vbox{\parindent=0pt\offinterlineskip\copy\@nbox
+\hbox to\wd\@nbox{\vrule width1.08pt\hfil\box\@nbody\hfil\vrule width1.08pt}
+\hbox to\wd\@nbox{\vrule width1.08pt height15pt\hfil
+\vrule width1.08pt height15pt}\hrule height1.08pt}}
+%%
+%% screen environment
+\newdimen\@scw
+\def\@hobox#1#2#3{\hbox to\@scw{\@oval(#3,#3)[#1]\hfil\@oval(#3,#3)[#2]}}
+\def\@vrf@#1#2{\vskip#1\leaders\vrule width#2\vfil\vskip#1}
+\def\screen{%
+\@savetbaselineshift\tbaselineshift \tbaselineshift\z@
+\@ifnextchar[{\@screen}{\@screen[0]}}
+\def\@screen[#1]{\ifcase#1\def\@r{20}\def\@s{9.8pt}\def\@sx{10pt}\or
+\def\@r{18}\def\@s{8.8pt}\def\@sx{9pt}\or
+\def\@r{16}\def\@s{7.8pt}\def\@sx{8pt}\or
+\def\@r{14}\def\@s{6.8pt}\def\@sx{7pt}\or
+\def\@r{12}\def\@s{5.8pt}\def\@sx{6pt}\or
+\def\@r{10}\def\@s{4.8pt}\def\@sx{5pt}\or
+\def\@r{8}\def\@s{3.8pt}\def\@sx{4pt}\or
+\def\@r{6}\def\@s{2.8pt}\def\@sx{3pt}\else
+\def\@r{4}\def\@s{1.8pt}\def\@sx{2pt}\fi
+\par\vspace{.3\baselineskip}\@scw\linewidth \advance\@scw -\@r pt
+\setbox\scb@x=\hbox to\@scw\bgroup\begin{minipage}{\@scw}% (KN:1998/02/27)
+  \tbaselineshift\@savetbaselineshift}%
+\def\endscreen{\end{minipage}\egroup%
+\setbox\scscb@x=\hbox to\linewidth{\hfil\vbox{\offinterlineskip%
+\thinlines\setlength{\unitlength}{1pt}\hrule\kern\@s%
+\@hobox{tl}{tr}{\@r}\kern-\@sx\box\scb@x\@hobox{bl}{br}{\@r}%
+\kern-.4pt\hrule}\hfil}\dimen0=\ht\scscb@x%
+\noindent\hbox to\linewidth{\hbox to.2pt{\vbox to\dimen0{\@vrf@{\@sx}{.4pt}}%
+\hss}\box\scscb@x\hbox to.25pt{\hss\vbox to\dimen0{\@vrf@{\@sx}{.4pt}}}\hss}}%
+%% 
+%% itembox environment
+%%   replace \box0 with \@iboxstr; thanks FTEXers (1998/11/27)
+\newdimen\@itemh\newtoks\@iboxpos\newbox\@iboxstr
+\def\@hleader{\leaders\hrule height .8pt\hfil}
+\def\itembox{\@ifnextchar[{\@itembox}{\@itembox[c]}}
+\def\@itembox[#1]#2{%
+  \@savetbaselineshift\tbaselineshift\tbaselineshift\z@
+  \par\vspace{.3\baselineskip}%
+  \setbox\@iboxstr=\hbox{#2}\@itemh\ht\@iboxstr\advance\@itemh\dp\@iboxstr
+  \vspace{.5\@itemh}\bgroup\@scw\linewidth
+  \advance\@scw-20pt\@iboxpos={#1}%
+  \setbox\scb@x=\hbox to\@scw\bgroup\begin{minipage}{\@scw}%
+  \tbaselineshift\@savetbaselineshift% (KN:1998/02/27)
+  \vspace*{.5\@itemh}}%
+\def\enditembox{\end{minipage}\egroup%
+  \setbox\scscb@x=\hbox to\linewidth{\hfil\vbox{\offinterlineskip%
+  \thicklines\setlength{\unitlength}{1pt}%
+  \hbox to\@scw{\if l\the\@iboxpos\else\@hleader\fi
+    \space\vbox to.8pt{\vss\hbox{\box\@iboxstr}\vss}%
+    \space\if r\the\@iboxpos\else \@hleader\fi}\kern9.6pt
+  \@hobox{tl}{tr}{20}\kern-10pt\box\scb@x\@hobox{bl}{br}{20}%
+  \kern-.8pt\hrule height.8pt}\hfil}\dimen0=\ht\scscb@x%
+  \noindent\hbox to\linewidth{\hbox to.6pt{\vbox to\dimen0{\@vrf@{10pt}{.8pt}}%
+  \hss}\box\scscb@x\hbox to.6pt{\hss\vbox to\dimen0{\@vrf@{10pt}{.9pt}}}%
+  \hss}\egroup}
+%%
+%% \keytop
+\def\keytop{\@ifnextchar[{\@keytop}{\@keytop[d]}}
+\def\@keytop[#1]#2{\tbaselineshift\z@
+{\setbox0=\hbox{\shortstack{#2}}%
+\dimen0=\wd0\advance\dimen0 5pt\dimen1=\dp0\advance\dimen1 2.5pt%
+\setbox\scscb@x=\hbox to\dimen0{%
+\iftdir\tate\else\yoko\fi
+\@scw\wd0\hfil\vtop{\offinterlineskip
+\thinlines\setlength{\unitlength}{1pt}\hrule\kern2.3pt\@hobox{tl}{tr}5%
+\kern-2.4pt\box0\@hobox{bl}{br}5\kern-.25pt\hrule}\hfil}\dimen0=\dp\scscb@x%
+\setbox0=\vbox{\hbox{\hbox to0pt{\hss\vtop to\dimen0{\@vrf@{2.5pt}{.4pt}}}%
+\box\scscb@x\hbox to.2pt{\hss\vtop to\dimen0{\@vrf@{2.5pt}{.4pt}}}}}%
+\if #1c $\vcenter{\box0}$ \else \if #1t\else\if #1b\boxmaxdepth=0pt\else
+\boxmaxdepth=\dimen1\fi\fi \mbox{}\vbox{\box0}\fi}}
+%
+%% \yen
+%
+% \changes{1996/03/13}{v1.1}{Append \cs{leavevmode} in
+%     \cs{yen}, \cs{return}, \cs{Return} command.}
+%
+\def\yen{\leavevmode\hbox{\iftdir\yoko\fi
+\setbox0=\hbox{Y}Y\kern-.97\wd0\vbox{\hrule height.1ex width.98\wd0
+\kern.33ex\hrule height.1ex width.98\wd0\kern.45ex}}}
+%
+%% return-key
+\def\return{\leavevmode\hbox{\iftdir\yoko\fi\@ascgrp\char"20}}
+\def\Return{\leavevmode\hbox{\iftdir\yoko\fi\@ascgrp @}}
+%
+%% \mask & \maskbox
+\newbox\@bwsp \newbox\@@bwsp\newcount\@bcal
+\def\setdim@#1#2{\@bcal=#2\divide#1\@bcal\multiply#1\@bcal\advance#1 1.001#2}
+\def\mask#1#2{\tbaselineshift\z@
+{\setbox\@bwsp=\hbox{#1}\setbox0=\hbox{\@ascgrp#2}%
+\dimen0=\wd\@bwsp\dimen1=\ht\@bwsp\advance\dimen1\dp\@bwsp\dimen2=-\dimen1
+\setdim@{\dimen0}{\wd0}\setdim@{\dimen1}{\ht0}%
+\setbox\@@bwsp=\hbox to\dimen0{\leaders
+\vtop to\dimen1{\leaders\hbox{\@ascgrp#2}\vfil}\hfil}%
+\advance\dimen2\dp\@@bwsp\divide\dimen2 2
+\advance\dimen2\dp\@bwsp\boxmaxdepth=\dimen2
+\setbox\@@bwsp=\vbox{\box\@@bwsp}%
+\mbox{}\hbox to\wd\@@bwsp{\hbox to0pt{\box\@@bwsp\hss}\hss\unhbox\@bwsp\hss}}}
+%
+%  \Maskbox{width}{height}{mask_char}{pos}{rule_wid}{body}
+\def\@setdim#1#2{\@bcal=#2\divide#1\@bcal\multiply#1\@bcal\advance#1 .001#2}
+\def\Maskbox#1#2#3#4#5#6{{\tbaselineshift\z@
+\setbox0=\hbox{\@ascgrp#3}%
+\dimen0=#1\@setdim{\dimen0}{\wd0}\dimen1=#2\@setdim{\dimen1}{\ht0}%
+\ifx#4c\skip0=0pt plus1fil\skip1=\skip0\fi
+\ifx#4r\skip0=0pt plus1fil\skip1=0pt\fi
+\ifx#4l\skip1=0pt plus1fil\skip0=0pt\fi
+\hbox{\hbox to0pt{\hbox to\dimen0{\leaders\vbox to\dimen1{\leaders
+\hbox{\@ascgrp#3}\vfil}\hfil}\hss}%
+\vrule width#5\vbox to\dimen1{\hrule height#5\vfil
+\dimen3=#5\advance\dimen0-2\dimen3\advance\dimen0 .15pt
+\hbox to\dimen0{\hskip\skip0\relax#6\hskip\skip1}%
+\vfil\hrule height#5}\vrule width#5}}}
+\def\maskbox#1#2#3#4#5{\Maskbox{#1}{#2}{#3}{#4}{0pt}{#5}}
+%
+%% shadebox environment
+\newdimen\shaderule\shaderule 5pt
+\def\shadebox{\dimen0\linewidth \advance\dimen0-20pt 
+\advance\dimen0-2\fboxrule \advance\dimen0-\shaderule
+\setbox\@tempboxa=\hbox\bgroup\minipage{\dimen0}}
+\def\endshadebox{\endminipage\egroup\dimen0=10pt \advance\dimen0-\fboxrule
+\setbox\@tempboxa=\hbox{\kern\dimen0\unhbox\@tempboxa\kern\dimen0}%
+\setbox0=\vbox{\hrule \@height \fboxrule
+\hbox{\vrule \@width \fboxrule \hskip-\fboxrule
+\vbox{\vskip\fboxsep \box\@tempboxa\vskip\fboxsep}%
+\hskip-\fboxrule\vrule \@width \fboxrule}\hrule \@height \fboxrule}%
+\dimen0=\ht0 \advance\dimen0-\shaderule
+\hbox{\hbox to \shaderule{\copy0\hss}\kern 0pt
+\vrule width\wd0 height0pt depth\shaderule\hskip-\shaderule
+\vrule width\shaderule height\dimen0}}
+
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/tbk10.clo b/tex-ptex/files/texmf-dist/tex/platex/base/tbk10.clo
new file mode 100644
index 0000000000..83aa6042fc
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/tbk10.clo
@@ -0,0 +1,323 @@
+%%
+%% This is file `tbk10.clo',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% jclasses.dtx  (with options: `10pt,bk,tate')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from tbk10.clo.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file jclasses.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: jclasses.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\ProvidesFile{tbk10.clo}
+  [2006/06/27 v1.6
+  Standard pLaTeX file (size option)]
+\renewcommand{\normalsize}{%
+    \@setfontsize\normalsize\@xpt{17}%
+  \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
+   \belowdisplayskip \abovedisplayskip
+   \let\@listi\@listI}
+\def\kanjiencodingdefault{JT1}%
+\kanjiencoding{\kanjiencodingdefault}%
+\normalsize
+\setbox0\hbox{\char\euc"A1A1}%
+\setlength\Cht{\ht0}
+\setlength\Cdp{\dp0}
+\setlength\Cwd{\wd0}
+\setlength\Cvs{\baselineskip}
+\setlength\Chs{\wd0}
+\newcommand{\small}{%
+  \@setfontsize\small\@ixpt{11}%
+  \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
+  \abovedisplayshortskip \z@ \@plus2\p@
+  \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 4\p@ \@plus2\p@ \@minus2\p@
+              \parsep 2\p@ \@plus\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\footnotesize}{%
+  \@setfontsize\footnotesize\@viiipt{9.5}%
+  \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@
+  \abovedisplayshortskip \z@ \@plus\p@
+  \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 3\p@ \@plus\p@ \@minus\p@
+              \parsep 2\p@ \@plus\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\scriptsize}{\@setfontsize\scriptsize\@viipt\@viiipt}
+\newcommand{\tiny}{\@setfontsize\tiny\@vpt\@vipt}
+\newcommand{\large}{\@setfontsize\large\@xiipt{17}}
+\newcommand{\Large}{\@setfontsize\Large\@xivpt{21}}
+\newcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{25}}
+\newcommand{\huge}{\@setfontsize\huge\@xxpt{28}}
+\newcommand{\Huge}{\@setfontsize\Huge\@xxvpt{33}}
+\setlength\headheight{12\p@}
+\if@stysize
+  \ifnum\c@@paper=2 % A5
+    \setlength\headsep{6mm}
+  \else % A4, B4, B5 and other
+    \setlength\headsep{8mm}
+  \fi
+\else
+    \setlength\headsep{8mm}
+\fi
+\setlength\topskip{1\Cht}
+\setlength\footskip{14mm}
+\if@compatibility
+  \setlength\maxdepth{4\p@}
+\else
+  \setlength\maxdepth{.5\topskip}
+\fi
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textwidth{27\Cwd}
+      \else
+        \setlength\textwidth{46\Cwd}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textwidth{53\Cwd}
+      \else
+        \setlength\textwidth{85\Cwd}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textwidth{34\Cwd}
+      \else
+        \setlength\textwidth{55\Cwd}
+      \fi
+    \else % A4 ant other
+      \if@landscape
+        \setlength\textwidth{41\Cwd}
+      \else
+        \setlength\textwidth{67\Cwd}
+      \fi
+    \fi\fi\fi
+  \else
+    \if@twocolumn
+      \setlength\textwidth{52\Cwd}
+    \else
+      \setlength\textwidth{67\Cwd}
+    \fi
+  \fi
+\else
+  \if@stysize
+    \if@twocolumn
+      \setlength\textwidth{.8\paperheight}
+    \else
+      \setlength\textwidth{.7\paperheight}
+    \fi
+  \else
+    \setlength\@tempdima{\paperheight}
+    \addtolength\@tempdima{-2in}
+    \addtolength\@tempdima{-1.3in}
+    \setlength\@tempdimb{67\Cwd}
+    \if@twocolumn
+      \ifdim\@tempdima>2\@tempdimb\relax
+        \setlength\textwidth{2\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \else
+      \ifdim\@tempdima>\@tempdimb\relax
+        \setlength\textwidth{\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \fi
+  \fi
+\fi
+\@settopoint\textwidth
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textheight{26\Cvs}
+      \else
+        \setlength\textheight{16\Cvs}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textheight{48\Cvs}
+      \else
+        \setlength\textheight{33\Cvs}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textheight{34\Cvs}
+      \else
+        \setlength\textheight{21\Cvs}
+      \fi
+    \else % A4 and other
+      \if@landscape
+        \setlength\textheight{41\Cvs}
+      \else
+        \setlength\textheight{26\Cvs}
+      \fi
+    \fi\fi\fi
+    \addtolength\textheight{\Cht}
+    \addtolength\textheight{\Cdp}
+  \else
+  \setlength\textheight{26\Cvs}
+  \fi
+\else
+  \if@stysize
+    \setlength\textheight{.75\paperwidth}
+  \else
+    \setlength\@tempdima{\paperwidth}
+    \addtolength\@tempdima{-2in}
+    \divide\@tempdima\baselineskip
+    \@tempcnta\@tempdima
+    \setlength\textheight{\@tempcnta\baselineskip}
+  \fi
+\fi
+\addtolength\textheight{\topskip}
+\@settopoint\textheight
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \setlength\topmargin{.8in}
+    \else % A4, B4, B5 and other
+      \setlength\topmargin{32mm}
+    \fi
+  \else
+    \setlength\topmargin{32mm}
+  \fi
+  \addtolength\topmargin{-1in}
+  \addtolength\topmargin{-\headheight}
+  \addtolength\topmargin{-\headsep}
+\else
+  \setlength\topmargin{\paperheight}
+  \addtolength\topmargin{-\headheight}
+  \addtolength\topmargin{-\headsep}
+  \addtolength\topmargin{-\textwidth}
+  \addtolength\topmargin{-\footskip}
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \addtolength\topmargin{-1.3in}
+    \else
+      \addtolength\topmargin{-2.0in}
+    \fi
+  \else
+    \addtolength\topmargin{-2.8in}
+  \fi
+  \addtolength\topmargin{-.5\topmargin}
+\fi
+\@settopoint\topmargin
+\if@twocolumn
+  \setlength\marginparsep{10\p@}
+\else
+  \setlength\marginparsep{15\p@}
+\fi
+\setlength\marginparpush{7\p@}
+\if@compatibility
+   \setlength\oddsidemargin{0\p@}
+   \setlength\evensidemargin{0\p@}
+  \if@stysize
+    \if@twocolumn\else
+      \setlength\oddsidemargin{0\p@}
+      \setlength\evensidemargin{0\p@}
+    \fi
+  \fi
+\else
+  \setlength\@tempdima{\paperwidth}
+  \addtolength\@tempdima{-\textheight}
+  \if@twoside
+    \setlength\oddsidemargin{.6\@tempdima}
+  \else
+    \setlength\oddsidemargin{.5\@tempdima}
+  \fi
+  \addtolength\oddsidemargin{-1in}
+  \setlength\evensidemargin{\paperwidth}
+  \addtolength\evensidemargin{-2in}
+  \addtolength\evensidemargin{-\textheight}
+  \addtolength\evensidemargin{-\oddsidemargin}
+  \@settopoint\oddsidemargin % 1999.1.6
+  \@settopoint\evensidemargin
+  \setlength\@tempdima{\paperheight}
+  \addtolength\@tempdima{-\textwidth}
+  \addtolength\@tempdima{-\topmargin}
+  \addtolength\@tempdima{-\headheight}
+  \addtolength\@tempdima{-\headsep}
+  \addtolength\@tempdima{-\footskip}
+  \setlength\marginparwidth{.5\@tempdima}
+  \@settopoint\marginparwidth
+\fi
+\setlength\footnotesep{6.65\p@}
+\setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@}
+\setlength\floatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\intextsep   {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\dblfloatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\@fptop{0\p@ \@plus 1fil}
+\setlength\@fpsep{8\p@ \@plus 2fil}
+\setlength\@fpbot{0\p@ \@plus 1fil}
+\setlength\@dblfptop{0\p@ \@plus 1fil}
+\setlength\@dblfpsep{8\p@ \@plus 2fil}
+\setlength\@dblfpbot{0\p@ \@plus 1fil}
+\setlength\partopsep{2\p@ \@plus 1\p@ \@minus 1\p@}
+\def\@listi{\leftmargin\leftmargini
+  \parsep 4\p@ \@plus2\p@ \@minus\p@
+  \topsep 8\p@ \@plus2\p@ \@minus4\p@
+  \itemsep4\p@ \@plus2\p@ \@minus\p@}
+\let\@listI\@listi
+\@listi
+\def\@listii{\leftmargin\leftmarginii
+   \labelwidth\leftmarginii \advance\labelwidth-\labelsep
+   \topsep  4\p@ \@plus2\p@ \@minus\p@
+   \parsep  2\p@ \@plus\p@  \@minus\p@
+   \itemsep\parsep}
+\def\@listiii{\leftmargin\leftmarginiii
+   \labelwidth\leftmarginiii \advance\labelwidth-\labelsep
+   \topsep 2\p@  \@plus\p@\@minus\p@
+   \parsep\z@
+   \partopsep \p@ \@plus\z@ \@minus\p@
+   \itemsep\topsep}
+\def\@listiv {\leftmargin\leftmarginiv
+              \labelwidth\leftmarginiv
+              \advance\labelwidth-\labelsep}
+\def\@listv  {\leftmargin\leftmarginv
+              \labelwidth\leftmarginv
+              \advance\labelwidth-\labelsep}
+\def\@listvi {\leftmargin\leftmarginvi
+              \labelwidth\leftmarginvi
+              \advance\labelwidth-\labelsep}
+\endinput
+%%
+%% End of file `tbk10.clo'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/tbk11.clo b/tex-ptex/files/texmf-dist/tex/platex/base/tbk11.clo
new file mode 100644
index 0000000000..cb35b1acc5
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/tbk11.clo
@@ -0,0 +1,323 @@
+%%
+%% This is file `tbk11.clo',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% jclasses.dtx  (with options: `11pt,bk,tate')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from tbk11.clo.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file jclasses.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: jclasses.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\ProvidesFile{tbk11.clo}
+  [2006/06/27 v1.6
+  Standard pLaTeX file (size option)]
+\renewcommand{\normalsize}{%
+    \@setfontsize\normalsize\@xipt{17}%
+  \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
+   \belowdisplayskip \abovedisplayskip
+   \let\@listi\@listI}
+\def\kanjiencodingdefault{JT1}%
+\kanjiencoding{\kanjiencodingdefault}%
+\normalsize
+\setbox0\hbox{\char\euc"A1A1}%
+\setlength\Cht{\ht0}
+\setlength\Cdp{\dp0}
+\setlength\Cwd{\wd0}
+\setlength\Cvs{\baselineskip}
+\setlength\Chs{\wd0}
+\newcommand{\small}{%
+  \@setfontsize\small\@xpt\@xiipt
+  \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 6\p@ \@plus2\p@ \@minus2\p@
+              \parsep 3\p@ \@plus2\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\footnotesize}{%
+  \@setfontsize\footnotesize\@ixpt{11}%
+  \abovedisplayskip 8\p@ \@plus2\p@ \@minus4\p@
+  \abovedisplayshortskip \z@ \@plus\p@
+  \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 4\p@ \@plus2\p@ \@minus2\p@
+              \parsep 2\p@ \@plus\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\scriptsize}{\@setfontsize\scriptsize\@viiipt{9.5}}
+\newcommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt}
+\newcommand{\large}{\@setfontsize\large\@xiipt{17}}
+\newcommand{\Large}{\@setfontsize\Large\@xivpt{21}}
+\newcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{25}}
+\newcommand{\huge}{\@setfontsize\huge\@xxpt{28}}
+\newcommand{\Huge}{\@setfontsize\Huge\@xxvpt{33}}
+\setlength\headheight{12\p@}
+\if@stysize
+  \ifnum\c@@paper=2 % A5
+    \setlength\headsep{6mm}
+  \else % A4, B4, B5 and other
+    \setlength\headsep{8mm}
+  \fi
+\else
+    \setlength\headsep{8mm}
+\fi
+\setlength\topskip{1\Cht}
+\setlength\footskip{14mm}
+\if@compatibility
+  \setlength\maxdepth{4\p@}
+\else
+  \setlength\maxdepth{.5\topskip}
+\fi
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textwidth{25\Cwd}
+      \else
+        \setlength\textwidth{42\Cwd}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textwidth{49\Cwd}
+      \else
+        \setlength\textwidth{76\Cwd}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textwidth{31\Cwd}
+      \else
+        \setlength\textwidth{51\Cwd}
+      \fi
+    \else % A4 ant other
+      \if@landscape
+        \setlength\textwidth{38\Cwd}
+      \else
+        \setlength\textwidth{61\Cwd}
+      \fi
+    \fi\fi\fi
+  \else
+    \if@twocolumn
+      \setlength\textwidth{52\Cwd}
+    \else
+      \setlength\textwidth{61\Cwd}
+    \fi
+  \fi
+\else
+  \if@stysize
+    \if@twocolumn
+      \setlength\textwidth{.8\paperheight}
+    \else
+      \setlength\textwidth{.7\paperheight}
+    \fi
+  \else
+    \setlength\@tempdima{\paperheight}
+    \addtolength\@tempdima{-2in}
+    \addtolength\@tempdima{-1.3in}
+    \setlength\@tempdimb{61\Cwd}
+    \if@twocolumn
+      \ifdim\@tempdima>2\@tempdimb\relax
+        \setlength\textwidth{2\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \else
+      \ifdim\@tempdima>\@tempdimb\relax
+        \setlength\textwidth{\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \fi
+  \fi
+\fi
+\@settopoint\textwidth
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textheight{26\Cvs}
+      \else
+        \setlength\textheight{16\Cvs}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textheight{48\Cvs}
+      \else
+        \setlength\textheight{33\Cvs}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textheight{34\Cvs}
+      \else
+        \setlength\textheight{21\Cvs}
+      \fi
+    \else % A4 and other
+      \if@landscape
+        \setlength\textheight{41\Cvs}
+      \else
+        \setlength\textheight{26\Cvs}
+      \fi
+    \fi\fi\fi
+    \addtolength\textheight{\Cht}
+    \addtolength\textheight{\Cdp}
+  \else
+  \setlength\textheight{25\Cvs}
+  \fi
+\else
+  \if@stysize
+    \setlength\textheight{.75\paperwidth}
+  \else
+    \setlength\@tempdima{\paperwidth}
+    \addtolength\@tempdima{-2in}
+    \divide\@tempdima\baselineskip
+    \@tempcnta\@tempdima
+    \setlength\textheight{\@tempcnta\baselineskip}
+  \fi
+\fi
+\addtolength\textheight{\topskip}
+\@settopoint\textheight
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \setlength\topmargin{.8in}
+    \else % A4, B4, B5 and other
+      \setlength\topmargin{32mm}
+    \fi
+  \else
+    \setlength\topmargin{32mm}
+  \fi
+  \addtolength\topmargin{-1in}
+  \addtolength\topmargin{-\headheight}
+  \addtolength\topmargin{-\headsep}
+\else
+  \setlength\topmargin{\paperheight}
+  \addtolength\topmargin{-\headheight}
+  \addtolength\topmargin{-\headsep}
+  \addtolength\topmargin{-\textwidth}
+  \addtolength\topmargin{-\footskip}
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \addtolength\topmargin{-1.3in}
+    \else
+      \addtolength\topmargin{-2.0in}
+    \fi
+  \else
+    \addtolength\topmargin{-2.8in}
+  \fi
+  \addtolength\topmargin{-.5\topmargin}
+\fi
+\@settopoint\topmargin
+\if@twocolumn
+  \setlength\marginparsep{10\p@}
+\else
+  \setlength\marginparsep{15\p@}
+\fi
+\setlength\marginparpush{7\p@}
+\if@compatibility
+   \setlength\oddsidemargin{0\p@}
+   \setlength\evensidemargin{0\p@}
+  \if@stysize
+    \if@twocolumn\else
+      \setlength\oddsidemargin{0\p@}
+      \setlength\evensidemargin{0\p@}
+    \fi
+  \fi
+\else
+  \setlength\@tempdima{\paperwidth}
+  \addtolength\@tempdima{-\textheight}
+  \if@twoside
+    \setlength\oddsidemargin{.6\@tempdima}
+  \else
+    \setlength\oddsidemargin{.5\@tempdima}
+  \fi
+  \addtolength\oddsidemargin{-1in}
+  \setlength\evensidemargin{\paperwidth}
+  \addtolength\evensidemargin{-2in}
+  \addtolength\evensidemargin{-\textheight}
+  \addtolength\evensidemargin{-\oddsidemargin}
+  \@settopoint\oddsidemargin % 1999.1.6
+  \@settopoint\evensidemargin
+  \setlength\@tempdima{\paperheight}
+  \addtolength\@tempdima{-\textwidth}
+  \addtolength\@tempdima{-\topmargin}
+  \addtolength\@tempdima{-\headheight}
+  \addtolength\@tempdima{-\headsep}
+  \addtolength\@tempdima{-\footskip}
+  \setlength\marginparwidth{.5\@tempdima}
+  \@settopoint\marginparwidth
+\fi
+\setlength\footnotesep{7.7\p@}
+\setlength{\skip\footins}{10\p@ \@plus 4\p@ \@minus 2\p@}
+\setlength\floatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\intextsep   {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\dblfloatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\@fptop{0\p@ \@plus 1fil}
+\setlength\@fpsep{8\p@ \@plus 2fil}
+\setlength\@fpbot{0\p@ \@plus 1fil}
+\setlength\@dblfptop{0\p@ \@plus 1fil}
+\setlength\@dblfpsep{8\p@ \@plus 2fil}
+\setlength\@dblfpbot{0\p@ \@plus 1fil}
+\setlength\partopsep{3\p@ \@plus 1\p@ \@minus 1\p@}
+\def\@listi{\leftmargin\leftmargini
+  \parsep 4.5\p@ \@plus2\p@ \@minus\p@
+  \topsep 9\p@   \@plus3\p@ \@minus5\p@
+  \itemsep4.5\p@ \@plus2\p@ \@minus\p@}
+\let\@listI\@listi
+\@listi
+\def\@listii{\leftmargin\leftmarginii
+   \labelwidth\leftmarginii \advance\labelwidth-\labelsep
+   \topsep  4.5\p@ \@plus2\p@ \@minus\p@
+   \parsep  2\p@   \@plus\p@  \@minus\p@
+   \itemsep\parsep}
+\def\@listiii{\leftmargin\leftmarginiii
+   \labelwidth\leftmarginiii \advance\labelwidth-\labelsep
+   \topsep 2\p@  \@plus\p@\@minus\p@
+   \parsep\z@
+   \partopsep \p@ \@plus\z@ \@minus\p@
+   \itemsep\topsep}
+\def\@listiv {\leftmargin\leftmarginiv
+              \labelwidth\leftmarginiv
+              \advance\labelwidth-\labelsep}
+\def\@listv  {\leftmargin\leftmarginv
+              \labelwidth\leftmarginv
+              \advance\labelwidth-\labelsep}
+\def\@listvi {\leftmargin\leftmarginvi
+              \labelwidth\leftmarginvi
+              \advance\labelwidth-\labelsep}
+\endinput
+%%
+%% End of file `tbk11.clo'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/tbk12.clo b/tex-ptex/files/texmf-dist/tex/platex/base/tbk12.clo
new file mode 100644
index 0000000000..58a8bb9379
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/tbk12.clo
@@ -0,0 +1,323 @@
+%%
+%% This is file `tbk12.clo',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% jclasses.dtx  (with options: `12pt,bk,tate')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from tbk12.clo.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file jclasses.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: jclasses.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\ProvidesFile{tbk12.clo}
+  [2006/06/27 v1.6
+  Standard pLaTeX file (size option)]
+\renewcommand{\normalsize}{%
+    \@setfontsize\normalsize\@xiipt{18}%
+  \abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
+   \belowdisplayskip \abovedisplayskip
+   \let\@listi\@listI}
+\def\kanjiencodingdefault{JT1}%
+\kanjiencoding{\kanjiencodingdefault}%
+\normalsize
+\setbox0\hbox{\char\euc"A1A1}%
+\setlength\Cht{\ht0}
+\setlength\Cdp{\dp0}
+\setlength\Cwd{\wd0}
+\setlength\Cvs{\baselineskip}
+\setlength\Chs{\wd0}
+\newcommand{\small}{%
+  \@setfontsize\small\@xipt{13.6}%
+  \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 9\p@ \@plus3\p@ \@minus5\p@
+              \parsep 4.5\p@ \@plus2\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\footnotesize}{%
+  \@setfontsize\footnotesize\@xpt\@xiipt
+  \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 6\p@ \@plus2\p@ \@minus2\p@
+              \parsep 3\p@ \@plus2\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\scriptsize}{\@setfontsize\scriptsize\@viiipt{9.5}}
+\newcommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt}
+\newcommand{\large}{\@setfontsize\large\@xivpt{21}}
+\newcommand{\Large}{\@setfontsize\Large\@xviipt{25}}
+\newcommand{\LARGE}{\@setfontsize\LARGE\@xxpt{28}}
+\newcommand{\huge}{\@setfontsize\huge\@xxvpt{33}}
+\let\Huge=\huge
+\setlength\headheight{12\p@}
+\if@stysize
+  \ifnum\c@@paper=2 % A5
+    \setlength\headsep{6mm}
+  \else % A4, B4, B5 and other
+    \setlength\headsep{8mm}
+  \fi
+\else
+    \setlength\headsep{8mm}
+\fi
+\setlength\topskip{1\Cht}
+\setlength\footskip{14mm}
+\if@compatibility
+  \setlength\maxdepth{4\p@}
+\else
+  \setlength\maxdepth{.5\topskip}
+\fi
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textwidth{23\Cwd}
+      \else
+        \setlength\textwidth{38\Cwd}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textwidth{44\Cwd}
+      \else
+        \setlength\textwidth{69\Cwd}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textwidth{28\Cwd}
+      \else
+        \setlength\textwidth{47\Cwd}
+      \fi
+    \else % A4 ant other
+      \if@landscape
+        \setlength\textwidth{35\Cwd}
+      \else
+        \setlength\textwidth{57\Cwd}
+      \fi
+    \fi\fi\fi
+  \else
+    \if@twocolumn
+      \setlength\textwidth{52\Cwd}
+    \else
+      \setlength\textwidth{57\Cwd}
+    \fi
+  \fi
+\else
+  \if@stysize
+    \if@twocolumn
+      \setlength\textwidth{.8\paperheight}
+    \else
+      \setlength\textwidth{.7\paperheight}
+    \fi
+  \else
+    \setlength\@tempdima{\paperheight}
+    \addtolength\@tempdima{-2in}
+    \addtolength\@tempdima{-1.3in}
+    \setlength\@tempdimb{57\Cwd}
+    \if@twocolumn
+      \ifdim\@tempdima>2\@tempdimb\relax
+        \setlength\textwidth{2\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \else
+      \ifdim\@tempdima>\@tempdimb\relax
+        \setlength\textwidth{\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \fi
+  \fi
+\fi
+\@settopoint\textwidth
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textheight{25\Cvs}
+      \else
+        \setlength\textheight{15\Cvs}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textheight{45\Cvs}
+      \else
+        \setlength\textheight{31\Cvs}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textheight{32\Cvs}
+      \else
+        \setlength\textheight{20\Cvs}
+      \fi
+    \else % A4 and other
+      \if@landscape
+        \setlength\textheight{38\Cvs}
+      \else
+        \setlength\textheight{22\Cvs}
+      \fi
+    \fi\fi\fi
+    \addtolength\textheight{\Cht}
+    \addtolength\textheight{\Cdp}
+  \else
+  \setlength\textheight{24\Cvs}
+  \fi
+\else
+  \if@stysize
+    \setlength\textheight{.75\paperwidth}
+  \else
+    \setlength\@tempdima{\paperwidth}
+    \addtolength\@tempdima{-2in}
+    \divide\@tempdima\baselineskip
+    \@tempcnta\@tempdima
+    \setlength\textheight{\@tempcnta\baselineskip}
+  \fi
+\fi
+\addtolength\textheight{\topskip}
+\@settopoint\textheight
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \setlength\topmargin{.8in}
+    \else % A4, B4, B5 and other
+      \setlength\topmargin{32mm}
+    \fi
+  \else
+    \setlength\topmargin{32mm}
+  \fi
+  \addtolength\topmargin{-1in}
+  \addtolength\topmargin{-\headheight}
+  \addtolength\topmargin{-\headsep}
+\else
+  \setlength\topmargin{\paperheight}
+  \addtolength\topmargin{-\headheight}
+  \addtolength\topmargin{-\headsep}
+  \addtolength\topmargin{-\textwidth}
+  \addtolength\topmargin{-\footskip}
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \addtolength\topmargin{-1.3in}
+    \else
+      \addtolength\topmargin{-2.0in}
+    \fi
+  \else
+    \addtolength\topmargin{-2.8in}
+  \fi
+  \addtolength\topmargin{-.5\topmargin}
+\fi
+\@settopoint\topmargin
+\if@twocolumn
+  \setlength\marginparsep{10\p@}
+\else
+  \setlength\marginparsep{15\p@}
+\fi
+\setlength\marginparpush{7\p@}
+\if@compatibility
+   \setlength\oddsidemargin{0\p@}
+   \setlength\evensidemargin{0\p@}
+  \if@stysize
+    \if@twocolumn\else
+      \setlength\oddsidemargin{0\p@}
+      \setlength\evensidemargin{0\p@}
+    \fi
+  \fi
+\else
+  \setlength\@tempdima{\paperwidth}
+  \addtolength\@tempdima{-\textheight}
+  \if@twoside
+    \setlength\oddsidemargin{.6\@tempdima}
+  \else
+    \setlength\oddsidemargin{.5\@tempdima}
+  \fi
+  \addtolength\oddsidemargin{-1in}
+  \setlength\evensidemargin{\paperwidth}
+  \addtolength\evensidemargin{-2in}
+  \addtolength\evensidemargin{-\textheight}
+  \addtolength\evensidemargin{-\oddsidemargin}
+  \@settopoint\oddsidemargin % 1999.1.6
+  \@settopoint\evensidemargin
+  \setlength\@tempdima{\paperheight}
+  \addtolength\@tempdima{-\textwidth}
+  \addtolength\@tempdima{-\topmargin}
+  \addtolength\@tempdima{-\headheight}
+  \addtolength\@tempdima{-\headsep}
+  \addtolength\@tempdima{-\footskip}
+  \setlength\marginparwidth{.5\@tempdima}
+  \@settopoint\marginparwidth
+\fi
+\setlength\footnotesep{8.4\p@}
+\setlength{\skip\footins}{10.8\p@ \@plus 4\p@ \@minus 2\p@}
+\setlength\floatsep    {12\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\intextsep   {14\p@ \@plus 4\p@ \@minus 4\p@}
+\setlength\dblfloatsep    {14\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\@fptop{0\p@ \@plus 1fil}
+\setlength\@fpsep{10\p@ \@plus 2fil}
+\setlength\@fpbot{0\p@ \@plus 1fil}
+\setlength\@dblfptop{0\p@ \@plus 1fil}
+\setlength\@dblfpsep{10\p@ \@plus 2fil}
+\setlength\@dblfpbot{0\p@ \@plus 1fil}
+\setlength\partopsep{3\p@ \@plus 2\p@ \@minus 2\p@}
+\def\@listi{\leftmargin\leftmargini
+  \parsep 5\p@  \@plus2.5\p@ \@minus\p@
+  \topsep 10\p@ \@plus4\p@   \@minus6\p@
+  \itemsep5\p@  \@plus2.5\p@ \@minus\p@}
+\let\@listI\@listi
+\@listi
+\def\@listii{\leftmargin\leftmarginii
+   \labelwidth\leftmarginii \advance\labelwidth-\labelsep
+   \topsep  5\p@   \@plus2.5\p@ \@minus\p@
+   \parsep  2.5\p@ \@plus\p@  \@minus\p@
+   \itemsep\parsep}
+\def\@listiii{\leftmargin\leftmarginiii
+   \labelwidth\leftmarginiii \advance\labelwidth-\labelsep
+   \topsep 2.5\p@\@plus\p@\@minus\p@
+   \parsep\z@
+   \partopsep \p@ \@plus\z@ \@minus\p@
+   \itemsep\topsep}
+\def\@listiv {\leftmargin\leftmarginiv
+              \labelwidth\leftmarginiv
+              \advance\labelwidth-\labelsep}
+\def\@listv  {\leftmargin\leftmarginv
+              \labelwidth\leftmarginv
+              \advance\labelwidth-\labelsep}
+\def\@listvi {\leftmargin\leftmarginvi
+              \labelwidth\leftmarginvi
+              \advance\labelwidth-\labelsep}
+\endinput
+%%
+%% End of file `tbk12.clo'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/tbook.cls b/tex-ptex/files/texmf-dist/tex/platex/base/tbook.cls
new file mode 100644
index 0000000000..2557943f29
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/tbook.cls
@@ -0,0 +1,898 @@
+%%
+%% This is file `tbook.cls',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% jclasses.dtx  (with options: `book,tate')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from tbook.cls.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file jclasses.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: jclasses.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\ProvidesClass{tbook}
+  [2006/06/27 v1.6
+ Standard pLaTeX class]
+\newcounter{@paper}
+\newif\if@landscape \@landscapefalse
+\newcommand{\@ptsize}{}
+\newif\if@restonecol
+\newif\if@titlepage
+\@titlepagetrue
+\newif\if@openright
+\newif\if@mainmatter \@mainmattertrue
+\hour\time \divide\hour by 60\relax
+\@tempcnta\hour \multiply\@tempcnta 60\relax
+\minute\time \advance\minute-\@tempcnta
+\newif\if@stysize \@stysizefalse
+\newif\if@enablejfam \@enablejfamtrue
+\newif\if@mathrmmc \@mathrmmcfalse
+\DeclareOption{a4paper}{\setcounter{@paper}{1}%
+  \setlength\paperheight {297mm}%
+  \setlength\paperwidth  {210mm}}
+\DeclareOption{a5paper}{\setcounter{@paper}{2}%
+  \setlength\paperheight {210mm}
+  \setlength\paperwidth  {148mm}}
+\DeclareOption{b4paper}{\setcounter{@paper}{3}%
+  \setlength\paperheight {364mm}
+  \setlength\paperwidth  {257mm}}
+\DeclareOption{b5paper}{\setcounter{@paper}{4}%
+  \setlength\paperheight {257mm}
+  \setlength\paperwidth  {182mm}}
+\DeclareOption{a4j}{\setcounter{@paper}{1}\@stysizetrue
+  \setlength\paperheight {297mm}%
+  \setlength\paperwidth  {210mm}}
+\DeclareOption{a5j}{\setcounter{@paper}{2}\@stysizetrue
+  \setlength\paperheight {210mm}
+  \setlength\paperwidth  {148mm}}
+\DeclareOption{b4j}{\setcounter{@paper}{3}\@stysizetrue
+  \setlength\paperheight {364mm}
+  \setlength\paperwidth  {257mm}}
+\DeclareOption{b5j}{\setcounter{@paper}{4}\@stysizetrue
+  \setlength\paperheight {257mm}
+  \setlength\paperwidth  {182mm}}
+\DeclareOption{a4p}{\setcounter{@paper}{1}\@stysizetrue
+  \setlength\paperheight {297mm}%
+  \setlength\paperwidth  {210mm}}
+\DeclareOption{a5p}{\setcounter{@paper}{2}\@stysizetrue
+  \setlength\paperheight {210mm}
+  \setlength\paperwidth  {148mm}}
+\DeclareOption{b4p}{\setcounter{@paper}{3}\@stysizetrue
+  \setlength\paperheight {364mm}
+  \setlength\paperwidth  {257mm}}
+\DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
+  \setlength\paperheight {257mm}
+  \setlength\paperwidth  {182mm}}
+\if@compatibility
+  \renewcommand{\@ptsize}{0}
+\else
+  \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
+\fi
+\DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
+\DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
+\DeclareOption{landscape}{\@landscapetrue
+  \setlength\@tempdima{\paperheight}%
+  \setlength\paperheight{\paperwidth}%
+  \setlength\paperwidth{\@tempdima}}
+\DeclareOption{tombow}{%
+  \tombowtrue \tombowdatetrue
+  \setlength{\@tombowwidth}{.1\p@}%
+  \@bannertoken{%
+     \jobname\space:\space\number\year/\number\month/\number\day
+      (\number\hour:\number\minute)}
+  \maketombowbox}
+\DeclareOption{tombo}{%
+  \tombowtrue \tombowdatefalse
+  \setlength{\@tombowwidth}{.1\p@}%
+  \maketombowbox}
+\DeclareOption{mentuke}{%
+  \tombowtrue \tombowdatefalse
+  \setlength{\@tombowwidth}{\z@}%
+  \maketombowbox}
+\DeclareOption{tate}{%
+  \AtBeginDocument{\tate\message{$B!T=DAH%b!<%I!U(B}%
+                   \adjustbaseline}%
+}
+\DeclareOption{oneside}{\@twosidefalse}
+\DeclareOption{twoside}{\@twosidetrue}
+\DeclareOption{onecolumn}{\@twocolumnfalse}
+\DeclareOption{twocolumn}{\@twocolumntrue}
+\DeclareOption{titlepage}{\@titlepagetrue}
+\DeclareOption{notitlepage}{\@titlepagefalse}
+\if@compatibility
+\@openrighttrue
+\else
+\DeclareOption{openright}{\@openrighttrue}
+\DeclareOption{openany}{\@openrightfalse}
+\fi
+\DeclareOption{leqno}{\input{leqno.clo}}
+\DeclareOption{fleqn}{\input{fleqn.clo}}
+\DeclareOption{openbib}{%
+  \AtEndOfPackage{%
+   \renewcommand\@openbib@code{%
+      \advance\leftmargin\bibindent
+      \itemindent -\bibindent
+      \listparindent \itemindent
+      \parsep \z@
+      }%
+   \renewcommand\newblock{\par}}}
+\if@compatibility
+  \@mathrmmctrue
+\else
+  \DeclareOption{disablejfam}{\@enablejfamfalse}
+  \DeclareOption{mathrmmc}{\@mathrmmctrue}
+\fi
+\DeclareOption{draft}{\setlength\overfullrule{5pt}}
+\DeclareOption{final}{\setlength\overfullrule{0pt}}
+\ExecuteOptions{a4paper,10pt,twoside,onecolumn,final,openright,tate}
+\ProcessOptions\relax
+\input{tbk1\@ptsize.clo}
+\RequirePackage{plext}
+\if@stysize
+  \setlength\columnsep{3\Cwd}
+\else
+  \setlength\columnsep{10\p@}
+\fi
+\setlength\columnseprule{0\p@}
+\setlength\lineskip{1\p@}
+\setlength\normallineskip{1\p@}
+\renewcommand{\baselinestretch}{}
+\setlength\parskip{0\p@ \@plus \p@}
+\setlength\parindent{1\Cwd}
+\@lowpenalty   51
+\@medpenalty  151
+\@highpenalty 301
+\setcounter{topnumber}{2}
+\setcounter{bottomnumber}{1}
+\setcounter{totalnumber}{3}
+\setcounter{dbltopnumber}{2}
+\renewcommand{\topfraction}{.7}
+\renewcommand{\bottomfraction}{.3}
+\renewcommand{\textfraction}{.2}
+\renewcommand{\floatpagefraction}{.5}
+\renewcommand{\dbltopfraction}{.7}
+\renewcommand{\dblfloatpagefraction}{.5}
+\def\ps@plain{\let\@mkboth\@gobbletwo
+   \let\ps@jpl@in\ps@plain
+   \let\@oddhead\@empty
+   \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
+   \let\@evenhead\@empty
+   \let\@evenfoot\@oddfoot}
+\let\ps@jpl@in\ps@plain
+\def\ps@headnombre{\let\@mkboth\@gobbletwo
+    \let\ps@jpl@in\ps@headnombre
+  \def\@evenhead{\hfil\thepage}%
+  \def\@oddhead{\thepage\hfil}%
+  \let\@oddfoot\@empty\let\@evenfoot\@empty}
+\def\ps@footnombre{\let\@mkboth\@gobbletwo
+    \let\ps@jpl@in\ps@footnombre
+  \def\@evenfoot{\hfil\thepage}%
+  \def\@oddfoot{\thepage\hfil}%
+  \let\@oddhead\@empty\let\@evenhead\@empty}
+\if@twoside
+  \def\ps@headings{\let\ps@jpl@in\ps@headnombre
+    \let\@oddfoot\@empty\let\@evenfoot\@empty
+    \def\@evenhead{{\leftmark}\hfil\thepage}%
+    \def\@oddhead{\thepage\hfil\rightmark}%
+    \let\@mkboth\markboth
+  \def\chaptermark##1{\markboth{%
+     \ifnum \c@secnumdepth >\m@ne
+         \if@mainmatter
+         \@chapapp\thechapter\@chappos\hskip1zw
+         \fi
+     \fi
+     ##1}{}}%
+  \def\sectionmark##1{\markright{%
+     \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi
+     ##1}}%
+  }
+\else % if not twoside
+  \def\ps@headings{\let\ps@jpl@in\ps@headnombre
+    \let\@oddfoot\@empty
+    \def\@oddhead{\thepage\hfil\rightmark}%
+    \let\@mkboth\markboth
+\def\chaptermark##1{\markright{%
+   \ifnum \c@secnumdepth >\m@ne
+         \if@mainmatter
+       \@chapapp\thechapter\@chappos\hskip1zw
+         \fi
+   \fi
+   ##1}}%
+  }
+\fi
+\if@twoside
+  \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
+    \def\@evenhead{\hfil\leftmark}% right page
+    \def\@evenfoot{\hfil\thepage}% right page
+    \def\@oddhead{\rightmark\hfil}% left page
+    \def\@oddfoot{\thepage\hfil}% left page
+  \let\@mkboth\markboth
+\def\chaptermark##1{\markboth{%
+     \ifnum \c@secnumdepth >\m@ne
+         \if@mainmatter
+         \@chapapp\thechapter\@chappos\hskip1zw
+         \fi
+     \fi
+     ##1}{}}%
+  \def\sectionmark##1{\markright{%
+     \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi
+     ##1}}%
+  }
+\else % if one column
+  \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
+    \def\@oddhead{\rightmark\hfil}%
+    \def\@oddfoot{\thepage\hfil}%
+    \let\@mkboth\markboth
+  \def\chaptermark##1{\markright{%
+     \ifnum \c@secnumdepth >\m@ne
+         \if@mainmatter
+         \@chapapp\thechapter\@chappos\hskip1zw
+         \fi
+     \fi
+     ##1}}%
+  }
+\fi
+\def\ps@myheadings{\let\ps@jpl@in\ps@plain%
+  \let\@oddfoot\@empty\let\@evenfoot\@empty
+  \def\@evenhead{{\leftmark}\hfil\thepage}%
+  \def\@oddhead{\thepage\hfil\rightmark}%
+  \let\@mkboth\@gobbletwo
+  \let\chaptermark\@gobble
+  \let\sectionmark\@gobble
+}
+\if@compatibility
+\newenvironment{titlepage}
+    {%
+      \cleardoublepage
+     \if@twocolumn\@restonecoltrue\onecolumn
+     \else\@restonecolfalse\newpage\fi
+     \thispagestyle{empty}%
+     \setcounter{page}\z@
+    }%
+    {\if@restonecol\twocolumn\else\newpage\fi
+    }
+\else
+\newenvironment{titlepage}
+    {%
+      \cleardoublepage
+      \if@twocolumn
+        \@restonecoltrue\onecolumn
+      \else
+        \@restonecolfalse\newpage
+      \fi
+      \thispagestyle{empty}%
+      \setcounter{page}\@ne
+    }%
+    {\if@restonecol\twocolumn \else \newpage \fi
+     \if@twoside\else
+        \setcounter{page}\@ne
+     \fi
+    }
+\fi
+\def\p@thanks#1{\footnotemark
+  \protected@xdef\@thanks{\@thanks
+    \protect{\noindent$\m@th^\thefootnote$~#1\protect\par}}}
+\if@titlepage
+  \newcommand{\maketitle}{\begin{titlepage}%
+  \let\footnotesize\small
+  \let\footnoterule\relax
+  \let\thanks\p@thanks
+  \let\footnote\thanks
+  \vbox to\textheight\bgroup\tate\hsize\textwidth
+  \null\vfil
+  \vskip 60\p@
+  \begin{center}%
+    {\LARGE \@title \par}%
+    \vskip 3em%
+    {\Large
+     \lineskip .75em%
+      \begin{tabular}[t]{c}%
+        \@author
+      \end{tabular}\par}%
+      \vskip 1.5em%
+    {\large \@date \par}%       % Set date in \large size.
+  \end{center}\par
+  \vfil{\centering\@thanks}\vfil\null
+  \egroup
+  \end{titlepage}%
+  \setcounter{footnote}{0}%
+  \global\let\thanks\relax
+  \global\let\maketitle\relax
+  \global\let\p@thanks\relax
+  \global\let\@thanks\@empty
+  \global\let\@author\@empty
+  \global\let\@date\@empty
+  \global\let\@title\@empty
+  \global\let\title\relax
+  \global\let\author\relax
+  \global\let\date\relax
+  \global\let\and\relax
+  }%
+\else
+  \newcommand{\maketitle}{\par
+  \begingroup
+    \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
+    \def\@makefnmark{\hbox{\ifydir $\m@th^{\@thefnmark}$
+      \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
+    \long\def\@makefntext##1{\parindent 1zw\noindent
+       \hbox to 2zw{\hss\@makefnmark}##1}%
+    \if@twocolumn
+      \ifnum \col@number=\@ne \@maketitle
+      \else \twocolumn[\@maketitle]%
+      \fi
+    \else
+      \newpage
+      \global\@topnum\z@   % Prevents figures from going at top of page.
+      \@maketitle
+    \fi
+     \thispagestyle{jpl@in}\@thanks
+  \endgroup
+  \setcounter{footnote}{0}%
+  \global\let\thanks\relax
+  \global\let\maketitle\relax
+  \global\let\p@thanks\relax
+  \global\let\@thanks\@empty
+  \global\let\@author\@empty
+  \global\let\@date\@empty
+  \global\let\@title\@empty
+  \global\let\title\relax
+  \global\let\author\relax
+  \global\let\date\relax
+  \global\let\and\relax
+  }
+  \def\@maketitle{%
+  \newpage\null
+  \vskip 2em%
+  \begin{center}%
+  \let\footnote\p@thanks
+    {\LARGE \@title \par}%
+    \vskip 1.5em%
+    {\large
+      \lineskip .5em%
+      \begin{tabular}[t]{c}%
+        \@author
+      \end{tabular}\par}%
+    \vskip 1em%
+    {\large \@date}%
+  \end{center}%
+  \par\vskip 1.5em}
+\fi
+\newcommand*{\chaptermark}[1]{}
+\setcounter{secnumdepth}{2}
+\newcounter{part}
+\newcounter{chapter}
+\newcounter{section}[chapter]
+\newcounter{subsection}[section]
+\newcounter{subsubsection}[subsection]
+\newcounter{paragraph}[subsubsection]
+\newcounter{subparagraph}[paragraph]
+\renewcommand{\thepart}{\rensuji{\@Roman\c@part}}
+\renewcommand{\thechapter}{\rensuji{\@arabic\c@chapter}}
+\renewcommand{\thesection}{\thechapter$B!&(B\rensuji{\@arabic\c@section}}
+\renewcommand{\thesubsection}{\thesection$B!&(B\rensuji{\@arabic\c@subsection}}
+\renewcommand{\thesubsubsection}{%
+   \thesubsection$B!&(B\rensuji{\@arabic\c@subsubsection}}
+\renewcommand{\theparagraph}{%
+   \thesubsubsection$B!&(B\rensuji{\@arabic\c@paragraph}}
+\renewcommand{\thesubparagraph}{%
+   \theparagraph$B!&(B\rensuji{\@arabic\c@subparagraph}}
+\newcommand{\@chapapp}{\prechaptername}
+\newcommand{\@chappos}{\postchaptername}
+\newcommand\frontmatter{%
+  \if@openright \cleardoublepage \else \clearpage \fi
+  \@mainmatterfalse\pagenumbering{roman}}
+\newcommand{\mainmatter}{%
+  \if@openright \cleardoublepage \else \clearpage \fi
+  \@mainmattertrue\pagenumbering{arabic}}
+\newcommand{\backmatter}{%
+  \if@openright \cleardoublepage \else \clearpage \fi
+  \@mainmatterfalse}
+\newcommand{\part}{%
+  \if@openright \cleardoublepage \else \clearpage \fi
+  \thispagestyle{empty}%
+  \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi
+  \null\vfil
+  \secdef\@part\@spart}
+\def\@part[#1]#2{%
+  \ifnum \c@secnumdepth >-2\relax
+    \refstepcounter{part}%
+    \addcontentsline{toc}{part}{%
+       \prepartname\thepart\postpartname\hspace{1em}#1}%
+  \else
+    \addcontentsline{toc}{part}{#1}%
+  \fi
+  \markboth{}{}%
+  {\centering
+   \interlinepenalty\@M\reset@font
+   \ifnum \c@secnumdepth >-2\relax
+     \huge\bfseries\prepartname\thepart\postpartname
+     \par\vskip20\p@
+   \fi
+   \Huge\bfseries#2\par}%
+   \@endpart}
+\def\@spart#1{{%
+  \centering
+  \interlinepenalty\@M\reset@font
+  \Huge\bfseries#1\par}%
+  \@endpart}
+\def\@endpart{\vfil\newpage
+   \if@twoside\null\thispagestyle{empty}\newpage\fi
+   \if@tempswa\twocolumn\fi}
+\newcommand{\chapter}{%
+  \if@openright\cleardoublepage\else\clearpage\fi
+  \thispagestyle{jpl@in}%
+  \global\@topnum\z@
+  \@afterindenttrue
+  \secdef\@chapter\@schapter}
+\def\@chapter[#1]#2{%
+  \ifnum \c@secnumdepth >\m@ne
+    \if@mainmatter
+    \refstepcounter{chapter}%
+    \typeout{\@chapapp\space\thechapter\space\@chappos}%
+    \addcontentsline{toc}{chapter}%
+      {\protect\numberline{\@chapapp\thechapter\@chappos}#1}%
+    \else\addcontentsline{toc}{chapter}{#1}\fi
+  \else
+    \addcontentsline{toc}{chapter}{#1}%
+  \fi
+  \chaptermark{#1}%
+  \addtocontents{lof}{\protect\addvspace{10\p@}}%
+  \addtocontents{lot}{\protect\addvspace{10\p@}}%
+  \@makechapterhead{#2}\@afterheading}
+\def\@makechapterhead#1{\hbox{}%
+  \vskip2\Cvs
+  {\parindent\z@
+   \raggedright
+   \reset@font\huge\bfseries
+   \leavevmode
+   \ifnum \c@secnumdepth >\m@ne
+     \setlength\@tempdima{\linewidth}%
+    \if@mainmatter
+     \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1zw}%
+     \addtolength\@tempdima{-\wd\z@}%
+     \unhbox\z@\nobreak
+    \fi
+     \vtop{\hsize\@tempdima#1}%
+   \else
+     #1\relax
+   \fi}\nobreak\vskip3\Cvs}
+\def\@schapter#1{%
+  \@makeschapterhead{#1}\@afterheading
+}
+\def\@makeschapterhead#1{\hbox{}%
+  \vskip2\Cvs
+  {\parindent\z@
+   \raggedright
+   \reset@font\huge\bfseries
+   \leavevmode
+   \setlength\@tempdima{\linewidth}%
+   \vtop{\hsize\@tempdima#1}}\vskip3\Cvs}
+\newcommand{\section}{\@startsection{section}{1}{\z@}%
+   {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
+   {.5\Cvs \@plus.3\Cvs}%
+   {\reset@font\Large\bfseries}}
+\newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
+   {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
+   {.5\Cvs \@plus.3\Cvs}%
+   {\reset@font\large\bfseries}}
+\newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
+   {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
+   {.5\Cvs \@plus.3\Cvs}%
+   {\reset@font\normalsize\bfseries}}
+\newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
+   {3.25ex \@plus 1ex \@minus .2ex}%
+   {-1em}%
+   {\reset@font\normalsize\bfseries}}
+\newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
+   {3.25ex \@plus 1ex \@minus .2ex}%
+   {-1em}%
+   {\reset@font\normalsize\bfseries}}
+\newcommand{\appendix}{\par
+  \setcounter{chapter}{0}%
+  \setcounter{section}{0}%
+  \renewcommand{\@chapapp}{\appendixname}%
+  \renewcommand{\@chappos}\space%
+  \renewcommand{\thechapter}{\rensuji{\@Alph\c@chapter}}}
+\if@twocolumn
+  \setlength\leftmargini {2em}
+\else
+  \setlength\leftmargini {2.5em}
+\fi
+\setlength\leftmarginii  {2.2em}
+\setlength\leftmarginiii {1.87em}
+\setlength\leftmarginiv  {1.7em}
+\if@twocolumn
+  \setlength\leftmarginv {.5em}
+  \setlength\leftmarginvi{.5em}
+\else
+  \setlength\leftmarginv {1em}
+  \setlength\leftmarginvi{1em}
+\fi
+\setlength  \labelsep  {.5em}
+\setlength  \labelwidth{\leftmargini}
+\addtolength\labelwidth{-\labelsep}
+\@beginparpenalty -\@lowpenalty
+\@endparpenalty   -\@lowpenalty
+\@itempenalty     -\@lowpenalty
+\renewcommand{\theenumi}{\rensuji{\@arabic\c@enumi}}
+\renewcommand{\theenumii}{\rensuji{(\@alph\c@enumii)}}
+\renewcommand{\theenumiii}{\rensuji{\@roman\c@enumiii}}
+\renewcommand{\theenumiv}{\rensuji{\@Alph\c@enumiv}}
+\newcommand{\labelenumi}{\theenumi}
+\newcommand{\labelenumii}{\theenumii}
+\newcommand{\labelenumiii}{\theenumiii}
+\newcommand{\labelenumiv}{\theenumiv}
+\renewcommand{\p@enumii}{\theenumi}
+\renewcommand{\p@enumiii}{\theenumi(\theenumii)}
+\renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
+\renewenvironment{enumerate}
+  {\ifnum \@enumdepth >\thr@@\@toodeep\else
+   \advance\@enumdepth\@ne
+   \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
+   \list{\csname label\@enumctr\endcsname}{%
+      \iftdir
+         \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
+           \else\topsep\z@\fi
+         \parskip\z@ \itemsep\z@ \parsep\z@
+         \labelwidth1zw \labelsep.3zw
+         \ifnum \@enumdepth=\@ne \leftmargin1zw\relax
+           \else\leftmargin\leftskip\fi
+         \advance\leftmargin 1zw
+      \fi
+         \usecounter{\@enumctr}%
+         \def\makelabel##1{\hss\llap{##1}}}%
+   \fi}{\endlist}
+\newcommand{\labelitemi}{\textbullet}
+\newcommand{\labelitemii}{%
+  \iftdir
+     {\textcircled{~}}
+  \else
+     {\normalfont\bfseries\textendash}
+  \fi
+}
+\newcommand{\labelitemiii}{\textasteriskcentered}
+\newcommand{\labelitemiv}{\textperiodcentered}
+\renewenvironment{itemize}
+  {\ifnum \@itemdepth >\thr@@\@toodeep\else
+   \advance\@itemdepth\@ne
+   \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
+   \expandafter
+   \list{\csname \@itemitem\endcsname}{%
+      \iftdir
+         \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
+           \else\topsep\z@\fi
+         \parskip\z@ \itemsep\z@ \parsep\z@
+         \labelwidth1zw \labelsep.3zw
+         \ifnum \@itemdepth =\@ne \leftmargin1zw\relax
+           \else\leftmargin\leftskip\fi
+         \advance\leftmargin 1zw
+      \fi
+         \def\makelabel##1{\hss\llap{##1}}}%
+   \fi}{\endlist}
+\newenvironment{description}
+  {\list{}{\labelwidth\z@ \itemindent-\leftmargin
+   \iftdir
+     \leftmargin\leftskip \advance\leftmargin3\Cwd
+     \rightmargin\rightskip
+     \labelsep=1zw \itemsep\z@
+     \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
+   \fi
+           \let\makelabel\descriptionlabel}}{\endlist}
+\newcommand{\descriptionlabel}[1]{%
+   \hspace\labelsep\normalfont\bfseries #1}
+\newenvironment{verse}
+  {\let\\\@centercr
+   \list{}{\itemsep\z@ \itemindent -1.5em%
+           \listparindent\itemindent
+           \rightmargin\leftmargin \advance\leftmargin 1.5em}%
+           \item\relax}{\endlist}
+\newenvironment{quotation}
+  {\list{}{\listparindent 1.5em%
+           \itemindent\listparindent
+           \rightmargin\leftmargin
+           \parsep\z@ \@plus\p@}%
+           \item\relax}{\endlist}
+\newenvironment{quote}
+  {\list{}{\rightmargin\leftmargin}%
+           \item\relax}{\endlist}
+\newcounter{figure}[chapter]
+\renewcommand{\thefigure}{%
+  \ifnum\c@chapter>\z@\thechapter{}$B!&(B\fi\rensuji{\@arabic\c@figure}}
+\def\fps@figure{tbp}
+\def\ftype@figure{1}
+\def\ext@figure{lof}
+\def\fnum@figure{\figurename\thefigure}
+\newenvironment{figure}
+               {\@float{figure}}
+               {\end@float}
+\newenvironment{figure*}
+               {\@dblfloat{figure}}
+               {\end@dblfloat}
+\newcounter{table}[chapter]
+\renewcommand{\thetable}{%
+  \ifnum\c@chapter>\z@\thechapter{}$B!&(B\fi\rensuji{\@arabic\c@table}}
+\def\fps@table{tbp}
+\def\ftype@table{2}
+\def\ext@table{lot}
+\def\fnum@table{\tablename\thetable}
+\newenvironment{table}
+               {\@float{table}}
+               {\end@float}
+\newenvironment{table*}
+               {\@dblfloat{table}}
+               {\end@dblfloat}
+\newlength\abovecaptionskip
+\newlength\belowcaptionskip
+\setlength\abovecaptionskip{10\p@}
+\setlength\belowcaptionskip{0\p@}
+\long\def\@makecaption#1#2{%
+  \vskip\abovecaptionskip
+  \iftdir\sbox\@tempboxa{#1\hskip1zw#2}%
+    \else\sbox\@tempboxa{#1: #2}%
+  \fi
+  \ifdim \wd\@tempboxa >\hsize
+    \iftdir #1\hskip1zw#2\relax\par
+      \else #1: #2\relax\par\fi
+  \else
+    \global \@minipagefalse
+    \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
+  \fi
+  \vskip\belowcaptionskip}
+\setlength\arraycolsep{5\p@}
+\setlength\tabcolsep{6\p@}
+\setlength\arrayrulewidth{.4\p@}
+\setlength\doublerulesep{2\p@}
+\setlength\tabbingsep{\labelsep}
+\skip\@mpfootins = \skip\footins
+\setlength\fboxsep{3\p@}
+\setlength\fboxrule{.4\p@}
+\@addtoreset{equation}{chapter}
+\renewcommand{\theequation}{%
+  \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
+\if@enablejfam
+  \if@compatibility\else
+    \DeclareSymbolFont{mincho}{JY1}{mc}{m}{n}
+    \DeclareSymbolFontAlphabet{\mathmc}{mincho}
+    \SetSymbolFont{mincho}{bold}{JY1}{gt}{m}{n}
+    \jfam\symmincho
+    \DeclareMathAlphabet{\mathgt}{JY1}{gt}{m}{n}
+  \fi
+  \if@mathrmmc
+    \AtBeginDocument{%
+    \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
+    \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
+  }%
+  \fi
+\else
+  \DeclareRobustCommand{\mathmc}{%
+    \@latex@error{Command \noexpand\mathmc invalid with\space
+       `disablejfam' class option.}\@eha
+  }
+  \DeclareRobustCommand{\mathgt}{%
+    \@latex@error{Command \noexpand\mathgt invalid with\space
+       `disablejfam' class option.}\@eha
+  }
+\fi
+\DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
+\DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
+\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
+\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
+\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
+\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
+\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
+\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
+\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
+\DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
+\DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
+\setcounter{tocdepth}{2}
+\newcommand{\@pnumwidth}{1.55em}
+\newcommand{\@tocrmarg}{2.55em}
+\newcommand{\@dotsep}{4.5}
+\newdimen\toclineskip
+\setlength\toclineskip{2\p@}
+\newdimen\@lnumwidth
+\def\numberline#1{\hbox to\@lnumwidth{#1\hfil}}
+\def\@dottedtocline#1#2#3#4#5{%
+  \ifnum #1>\c@tocdepth \else
+    \vskip\toclineskip \@plus.2\p@
+    {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
+     \parindent #2\relax\@afterindenttrue
+     \interlinepenalty\@M
+     \leavevmode
+     \@lnumwidth #3\relax
+     \advance\leftskip \@lnumwidth \hbox{}\hskip -\leftskip
+     {#4}\nobreak
+     \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
+     \hfill\nobreak
+     \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
+     \par}%
+  \fi}
+\def\addcontentsline#1#2#3{%
+  \protected@write\@auxout
+    {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
+\@temptokena{\rensuji{\thepage}}}%
+    {\string\@writefile{#1}%
+       {\protect\contentsline{#2}{#3}{\the\@temptokena}}}%
+}
+\newcommand{\tableofcontents}{%
+  \if@twocolumn\@restonecoltrue\onecolumn
+  \else\@restonecolfalse\fi
+  \chapter*{\contentsname
+    \@mkboth{\contentsname}{\contentsname}%
+  }\@starttoc{toc}%
+  \if@restonecol\twocolumn\fi
+}
+\newcommand*{\l@part}[2]{%
+  \ifnum \c@tocdepth >-2\relax
+    \addpenalty{-\@highpenalty}%
+    \addvspace{2.25em \@plus\p@}%
+    \begingroup
+    \parindent\z@\rightskip\@pnumwidth
+    \parfillskip-\@pnumwidth
+    {\leavevmode\large\bfseries
+     \setlength\@lnumwidth{4zw}%
+     #1\hfil\nobreak
+     \hbox to\@pnumwidth{\hss#2}}\par
+    \nobreak
+    \global\@nobreaktrue
+    \everypar{\global\@nobreakfalse\everypar{}}%
+     \endgroup
+  \fi}
+\newcommand*{\l@chapter}[2]{%
+  \ifnum \c@tocdepth >\m@ne
+    \addpenalty{-\@highpenalty}%
+    \addvspace{1.0em \@plus\p@}%
+    \begingroup
+      \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
+      \leavevmode\bfseries
+      \setlength\@lnumwidth{4zw}%
+      \advance\leftskip\@lnumwidth \hskip-\leftskip
+      #1\nobreak\hfil\nobreak\hbox to\@pnumwidth{\hss#2}\par
+      \penalty\@highpenalty
+    \endgroup
+  \fi}
+\newcommand*{\l@section}{\@dottedtocline{1}{1zw}{4zw}}
+\newcommand*{\l@subsection}   {\@dottedtocline{2}{2zw}{6zw}}
+\newcommand*{\l@subsubsection}{\@dottedtocline{3}{3zw}{8zw}}
+\newcommand*{\l@paragraph}    {\@dottedtocline{4}{4zw}{9zw}}
+\newcommand*{\l@subparagraph} {\@dottedtocline{5}{5zw}{10zw}}
+\newcommand{\listoffigures}{%
+  \if@twocolumn\@restonecoltrue\onecolumn
+  \else\@restonecolfalse\fi
+  \chapter*{\listfigurename
+  \@mkboth{\listfigurename}{\listfigurename}}%
+  \@starttoc{lof}%
+  \if@restonecol\twocolumn\fi
+}
+\newcommand*{\l@figure}{\@dottedtocline{1}{1zw}{4zw}}
+\newcommand{\listoftables}{%
+  \if@twocolumn\@restonecoltrue\onecolumn
+  \else\@restonecolfalse\fi
+  \chapter*{\listtablename
+  \@mkboth{\listtablename}{\listtablename}}%
+  \@starttoc{lot}%
+  \if@restonecol\twocolumn\fi
+}
+\let\l@table\l@figure
+\newdimen\bibindent
+\setlength\bibindent{1.5em}
+\newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
+\newenvironment{thebibliography}[1]
+{\chapter*{\bibname\@mkboth{\bibname}{\bibname}}%
+   \list{\@biblabel{\@arabic\c@enumiv}}%
+        {\settowidth\labelwidth{\@biblabel{#1}}%
+         \leftmargin\labelwidth
+         \advance\leftmargin\labelsep
+         \@openbib@code
+         \usecounter{enumiv}%
+         \let\p@enumiv\@empty
+         \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+   \sloppy
+   \clubpenalty4000
+   \@clubpenalty\clubpenalty
+   \widowpenalty4000%
+   \sfcode`\.\@m}
+  {\def\@noitemerr
+    {\@latex@warning{Empty `thebibliography' environment}}%
+   \endlist}
+\let\@openbib@code\@empty
+\newenvironment{theindex}
+  {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
+   \columnseprule\z@ \columnsep 35\p@
+   \twocolumn[\@makeschapterhead{\indexname}]%
+   \@mkboth{\indexname}{\indexname}%
+   \thispagestyle{jpl@in}\parindent\z@
+   \parskip\z@ \@plus .3\p@\relax
+   \let\item\@idxitem}
+  {\if@restonecol\onecolumn\else\clearpage\fi}
+\newcommand{\@idxitem}{\par\hangindent 40\p@}
+\newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
+\newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
+\newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
+\renewcommand{\footnoterule}{%
+  \kern-3\p@
+  \hrule width .4\columnwidth
+  \kern 2.6\p@}
+\@addtoreset{footnote}{chapter}
+\newcommand\@makefntext[1]{\parindent 1zw
+  \noindent\hbox to 2zw{\hss\@makefnmark}#1}
+\newif\if$B@>Nq(B \$B@>Nq(Bfalse
+\def\$B@>Nq(B{\$B@>Nq(Btrue}
+\def\$BOBNq(B{\$B@>Nq(Bfalse}
+\newcount\heisei \heisei\year \advance\heisei-1988\relax
+\def\today{{%
+  \iftdir
+    \if$B@>Nq(B
+      \kansuji\number\year $BG/(B
+      \kansuji\number\month $B7n(B
+      \kansuji\number\day $BF|(B
+    \else
+      $BJ?@.(B\ifnum\heisei=1 $B85G/(B\else\kansuji\number\heisei $BG/(B\fi
+      \kansuji\number\month $B7n(B
+      \kansuji\number\day $BF|(B
+    \fi
+  \else
+    \if$B@>Nq(B
+      \number\year~$BG/(B
+      \number\month~$B7n(B
+      \number\day~$BF|(B
+    \else
+      $BJ?@.(B\ifnum\heisei=1 $B85G/(B\else\number\heisei~$BG/(B\fi
+      \number\month~$B7n(B
+      \number\day~$BF|(B
+    \fi
+  \fi}}
+\newcommand{\prepartname}{$BBh(B}
+\newcommand{\postpartname}{$BIt(B}
+\newcommand{\prechaptername}{$BBh(B}
+\newcommand{\postchaptername}{$B>O(B}
+\newcommand{\contentsname}{$BL\(B $B<!(B}
+\newcommand{\listfigurename}{$B?^(B $BL\(B $B<!(B}
+\newcommand{\listtablename}{$BI=(B $BL\(B $B<!(B}
+\newcommand{\bibname}{$B4XO"?^=q(B}
+\newcommand{\indexname}{$B:w(B $B0z(B}
+\newcommand{\figurename}{$B?^(B}
+\newcommand{\tablename}{$BI=(B}
+\newcommand{\appendixname}{$BIU(B $BO?(B}
+\pagestyle{headings}
+\pagenumbering{arabic}
+\raggedbottom
+\if@twocolumn
+  \twocolumn
+  \sloppy
+\else
+  \onecolumn
+\fi
+\normalmarginpar
+\@mparswitchfalse
+\endinput
+%%
+%% End of file `tbook.cls'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/tbook.sty b/tex-ptex/files/texmf-dist/tex/platex/base/tbook.sty
new file mode 100644
index 0000000000..d5abd550cd
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/tbook.sty
@@ -0,0 +1,45 @@
+%%
+%% This is file `tbook.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% pl209.dtx  (with options: `style,tbook')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from tbook.sty.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file pl209.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: pl209.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\@obsoletefile{tbook.cls}{tbook.sty}
+\LoadClass{tbook}
+\endinput
+%%
+%% End of file `tbook.sty'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/treport.cls b/tex-ptex/files/texmf-dist/tex/platex/base/treport.cls
new file mode 100644
index 0000000000..f840e6e5ae
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/treport.cls
@@ -0,0 +1,896 @@
+%%
+%% This is file `treport.cls',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% jclasses.dtx  (with options: `report,tate')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from treport.cls.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file jclasses.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: jclasses.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\ProvidesClass{treport}
+  [2006/06/27 v1.6
+ Standard pLaTeX class]
+\newcounter{@paper}
+\newif\if@landscape \@landscapefalse
+\newcommand{\@ptsize}{}
+\newif\if@restonecol
+\newif\if@titlepage
+\@titlepagetrue
+\newif\if@openright
+\hour\time \divide\hour by 60\relax
+\@tempcnta\hour \multiply\@tempcnta 60\relax
+\minute\time \advance\minute-\@tempcnta
+\newif\if@stysize \@stysizefalse
+\newif\if@enablejfam \@enablejfamtrue
+\newif\if@mathrmmc \@mathrmmcfalse
+\DeclareOption{a4paper}{\setcounter{@paper}{1}%
+  \setlength\paperheight {297mm}%
+  \setlength\paperwidth  {210mm}}
+\DeclareOption{a5paper}{\setcounter{@paper}{2}%
+  \setlength\paperheight {210mm}
+  \setlength\paperwidth  {148mm}}
+\DeclareOption{b4paper}{\setcounter{@paper}{3}%
+  \setlength\paperheight {364mm}
+  \setlength\paperwidth  {257mm}}
+\DeclareOption{b5paper}{\setcounter{@paper}{4}%
+  \setlength\paperheight {257mm}
+  \setlength\paperwidth  {182mm}}
+\DeclareOption{a4j}{\setcounter{@paper}{1}\@stysizetrue
+  \setlength\paperheight {297mm}%
+  \setlength\paperwidth  {210mm}}
+\DeclareOption{a5j}{\setcounter{@paper}{2}\@stysizetrue
+  \setlength\paperheight {210mm}
+  \setlength\paperwidth  {148mm}}
+\DeclareOption{b4j}{\setcounter{@paper}{3}\@stysizetrue
+  \setlength\paperheight {364mm}
+  \setlength\paperwidth  {257mm}}
+\DeclareOption{b5j}{\setcounter{@paper}{4}\@stysizetrue
+  \setlength\paperheight {257mm}
+  \setlength\paperwidth  {182mm}}
+\DeclareOption{a4p}{\setcounter{@paper}{1}\@stysizetrue
+  \setlength\paperheight {297mm}%
+  \setlength\paperwidth  {210mm}}
+\DeclareOption{a5p}{\setcounter{@paper}{2}\@stysizetrue
+  \setlength\paperheight {210mm}
+  \setlength\paperwidth  {148mm}}
+\DeclareOption{b4p}{\setcounter{@paper}{3}\@stysizetrue
+  \setlength\paperheight {364mm}
+  \setlength\paperwidth  {257mm}}
+\DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
+  \setlength\paperheight {257mm}
+  \setlength\paperwidth  {182mm}}
+\if@compatibility
+  \renewcommand{\@ptsize}{0}
+\else
+  \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
+\fi
+\DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
+\DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
+\DeclareOption{landscape}{\@landscapetrue
+  \setlength\@tempdima{\paperheight}%
+  \setlength\paperheight{\paperwidth}%
+  \setlength\paperwidth{\@tempdima}}
+\DeclareOption{tombow}{%
+  \tombowtrue \tombowdatetrue
+  \setlength{\@tombowwidth}{.1\p@}%
+  \@bannertoken{%
+     \jobname\space:\space\number\year/\number\month/\number\day
+      (\number\hour:\number\minute)}
+  \maketombowbox}
+\DeclareOption{tombo}{%
+  \tombowtrue \tombowdatefalse
+  \setlength{\@tombowwidth}{.1\p@}%
+  \maketombowbox}
+\DeclareOption{mentuke}{%
+  \tombowtrue \tombowdatefalse
+  \setlength{\@tombowwidth}{\z@}%
+  \maketombowbox}
+\DeclareOption{tate}{%
+  \AtBeginDocument{\tate\message{$B!T=DAH%b!<%I!U(B}%
+                   \adjustbaseline}%
+}
+\DeclareOption{oneside}{\@twosidefalse}
+\DeclareOption{twoside}{\@twosidetrue}
+\DeclareOption{onecolumn}{\@twocolumnfalse}
+\DeclareOption{twocolumn}{\@twocolumntrue}
+\DeclareOption{titlepage}{\@titlepagetrue}
+\DeclareOption{notitlepage}{\@titlepagefalse}
+\if@compatibility
+\else
+\DeclareOption{openright}{\@openrighttrue}
+\DeclareOption{openany}{\@openrightfalse}
+\fi
+\DeclareOption{leqno}{\input{leqno.clo}}
+\DeclareOption{fleqn}{\input{fleqn.clo}}
+\DeclareOption{openbib}{%
+  \AtEndOfPackage{%
+   \renewcommand\@openbib@code{%
+      \advance\leftmargin\bibindent
+      \itemindent -\bibindent
+      \listparindent \itemindent
+      \parsep \z@
+      }%
+   \renewcommand\newblock{\par}}}
+\if@compatibility
+  \@mathrmmctrue
+\else
+  \DeclareOption{disablejfam}{\@enablejfamfalse}
+  \DeclareOption{mathrmmc}{\@mathrmmctrue}
+\fi
+\DeclareOption{draft}{\setlength\overfullrule{5pt}}
+\DeclareOption{final}{\setlength\overfullrule{0pt}}
+\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,openany,tate}
+\ProcessOptions\relax
+\input{tsize1\@ptsize.clo}
+\RequirePackage{plext}
+\if@stysize
+  \setlength\columnsep{3\Cwd}
+\else
+  \setlength\columnsep{10\p@}
+\fi
+\setlength\columnseprule{0\p@}
+\setlength\lineskip{1\p@}
+\setlength\normallineskip{1\p@}
+\renewcommand{\baselinestretch}{}
+\setlength\parskip{0\p@ \@plus \p@}
+\setlength\parindent{1\Cwd}
+\@lowpenalty   51
+\@medpenalty  151
+\@highpenalty 301
+\setcounter{topnumber}{2}
+\setcounter{bottomnumber}{1}
+\setcounter{totalnumber}{3}
+\setcounter{dbltopnumber}{2}
+\renewcommand{\topfraction}{.7}
+\renewcommand{\bottomfraction}{.3}
+\renewcommand{\textfraction}{.2}
+\renewcommand{\floatpagefraction}{.5}
+\renewcommand{\dbltopfraction}{.7}
+\renewcommand{\dblfloatpagefraction}{.5}
+\def\ps@plain{\let\@mkboth\@gobbletwo
+   \let\ps@jpl@in\ps@plain
+   \let\@oddhead\@empty
+   \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
+   \let\@evenhead\@empty
+   \let\@evenfoot\@oddfoot}
+\let\ps@jpl@in\ps@plain
+\def\ps@headnombre{\let\@mkboth\@gobbletwo
+    \let\ps@jpl@in\ps@headnombre
+  \def\@evenhead{\hfil\thepage}%
+  \def\@oddhead{\thepage\hfil}%
+  \let\@oddfoot\@empty\let\@evenfoot\@empty}
+\def\ps@footnombre{\let\@mkboth\@gobbletwo
+    \let\ps@jpl@in\ps@footnombre
+  \def\@evenfoot{\hfil\thepage}%
+  \def\@oddfoot{\thepage\hfil}%
+  \let\@oddhead\@empty\let\@evenhead\@empty}
+\if@twoside
+  \def\ps@headings{\let\ps@jpl@in\ps@headnombre
+    \let\@oddfoot\@empty\let\@evenfoot\@empty
+    \def\@evenhead{{\leftmark}\hfil\thepage}%
+    \def\@oddhead{\thepage\hfil\rightmark}%
+    \let\@mkboth\markboth
+  \def\chaptermark##1{\markboth{%
+     \ifnum \c@secnumdepth >\m@ne
+         \@chapapp\thechapter\@chappos\hskip1zw
+     \fi
+     ##1}{}}%
+  \def\sectionmark##1{\markright{%
+     \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi
+     ##1}}%
+  }
+\else % if not twoside
+  \def\ps@headings{\let\ps@jpl@in\ps@headnombre
+    \let\@oddfoot\@empty
+    \def\@oddhead{\thepage\hfil\rightmark}%
+    \let\@mkboth\markboth
+\def\chaptermark##1{\markright{%
+   \ifnum \c@secnumdepth >\m@ne
+       \@chapapp\thechapter\@chappos\hskip1zw
+   \fi
+   ##1}}%
+  }
+\fi
+\if@twoside
+  \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
+    \def\@evenhead{\hfil\leftmark}% right page
+    \def\@evenfoot{\hfil\thepage}% right page
+    \def\@oddhead{\rightmark\hfil}% left page
+    \def\@oddfoot{\thepage\hfil}% left page
+  \let\@mkboth\markboth
+\def\chaptermark##1{\markboth{%
+     \ifnum \c@secnumdepth >\m@ne
+         \@chapapp\thechapter\@chappos\hskip1zw
+     \fi
+     ##1}{}}%
+  \def\sectionmark##1{\markright{%
+     \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi
+     ##1}}%
+  }
+\else % if one column
+  \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
+    \def\@oddhead{\rightmark\hfil}%
+    \def\@oddfoot{\thepage\hfil}%
+    \let\@mkboth\markboth
+  \def\chaptermark##1{\markright{%
+     \ifnum \c@secnumdepth >\m@ne
+         \@chapapp\thechapter\@chappos\hskip1zw
+     \fi
+     ##1}}%
+  }
+\fi
+\def\ps@myheadings{\let\ps@jpl@in\ps@plain%
+  \let\@oddfoot\@empty\let\@evenfoot\@empty
+  \def\@evenhead{{\leftmark}\hfil\thepage}%
+  \def\@oddhead{\thepage\hfil\rightmark}%
+  \let\@mkboth\@gobbletwo
+  \let\chaptermark\@gobble
+  \let\sectionmark\@gobble
+}
+\if@compatibility
+\newenvironment{titlepage}
+    {%
+     \if@twocolumn\@restonecoltrue\onecolumn
+     \else\@restonecolfalse\newpage\fi
+     \thispagestyle{empty}%
+     \setcounter{page}\z@
+    }%
+    {\if@restonecol\twocolumn\else\newpage\fi
+    }
+\else
+\newenvironment{titlepage}
+    {%
+      \if@twocolumn
+        \@restonecoltrue\onecolumn
+      \else
+        \@restonecolfalse\newpage
+      \fi
+      \thispagestyle{empty}%
+      \setcounter{page}\@ne
+    }%
+    {\if@restonecol\twocolumn \else \newpage \fi
+     \if@twoside\else
+        \setcounter{page}\@ne
+     \fi
+    }
+\fi
+\def\p@thanks#1{\footnotemark
+  \protected@xdef\@thanks{\@thanks
+    \protect{\noindent$\m@th^\thefootnote$~#1\protect\par}}}
+\if@titlepage
+  \newcommand{\maketitle}{\begin{titlepage}%
+  \let\footnotesize\small
+  \let\footnoterule\relax
+  \let\thanks\p@thanks
+  \let\footnote\thanks
+  \vbox to\textheight\bgroup\tate\hsize\textwidth
+  \null\vfil
+  \vskip 60\p@
+  \begin{center}%
+    {\LARGE \@title \par}%
+    \vskip 3em%
+    {\Large
+     \lineskip .75em%
+      \begin{tabular}[t]{c}%
+        \@author
+      \end{tabular}\par}%
+      \vskip 1.5em%
+    {\large \@date \par}%       % Set date in \large size.
+  \end{center}\par
+  \vfil{\centering\@thanks}\vfil\null
+  \egroup
+  \end{titlepage}%
+  \setcounter{footnote}{0}%
+  \global\let\thanks\relax
+  \global\let\maketitle\relax
+  \global\let\p@thanks\relax
+  \global\let\@thanks\@empty
+  \global\let\@author\@empty
+  \global\let\@date\@empty
+  \global\let\@title\@empty
+  \global\let\title\relax
+  \global\let\author\relax
+  \global\let\date\relax
+  \global\let\and\relax
+  }%
+\else
+  \newcommand{\maketitle}{\par
+  \begingroup
+    \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
+    \def\@makefnmark{\hbox{\ifydir $\m@th^{\@thefnmark}$
+      \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
+    \long\def\@makefntext##1{\parindent 1zw\noindent
+       \hbox to 2zw{\hss\@makefnmark}##1}%
+    \if@twocolumn
+      \ifnum \col@number=\@ne \@maketitle
+      \else \twocolumn[\@maketitle]%
+      \fi
+    \else
+      \newpage
+      \global\@topnum\z@   % Prevents figures from going at top of page.
+      \@maketitle
+    \fi
+     \thispagestyle{jpl@in}\@thanks
+  \endgroup
+  \setcounter{footnote}{0}%
+  \global\let\thanks\relax
+  \global\let\maketitle\relax
+  \global\let\p@thanks\relax
+  \global\let\@thanks\@empty
+  \global\let\@author\@empty
+  \global\let\@date\@empty
+  \global\let\@title\@empty
+  \global\let\title\relax
+  \global\let\author\relax
+  \global\let\date\relax
+  \global\let\and\relax
+  }
+  \def\@maketitle{%
+  \newpage\null
+  \vskip 2em%
+  \begin{center}%
+  \let\footnote\p@thanks
+    {\LARGE \@title \par}%
+    \vskip 1.5em%
+    {\large
+      \lineskip .5em%
+      \begin{tabular}[t]{c}%
+        \@author
+      \end{tabular}\par}%
+    \vskip 1em%
+    {\large \@date}%
+  \end{center}%
+  \par\vskip 1.5em}
+\fi
+\if@titlepage
+  \newenvironment{abstract}{%
+      \titlepage
+      \null\vfil
+      \@beginparpenalty\@lowpenalty
+      \begin{center}%
+        {\bfseries\abstractname}%
+        \@endparpenalty\@M
+      \end{center}}%
+      {\par\vfil\null\endtitlepage}
+\else
+  \newenvironment{abstract}{%
+    \if@twocolumn
+      \section*{\abstractname}%
+    \else
+      \small
+      \begin{center}%
+        {\bfseries\abstractname\vspace{-.5em}\vspace{\z@}}%
+      \end{center}%
+      \quotation
+    \fi}{\if@twocolumn\else\endquotation\fi}
+\fi
+\newcommand*{\chaptermark}[1]{}
+\setcounter{secnumdepth}{2}
+\newcounter{part}
+\newcounter{chapter}
+\newcounter{section}[chapter]
+\newcounter{subsection}[section]
+\newcounter{subsubsection}[subsection]
+\newcounter{paragraph}[subsubsection]
+\newcounter{subparagraph}[paragraph]
+\renewcommand{\thepart}{\rensuji{\@Roman\c@part}}
+\renewcommand{\thechapter}{\rensuji{\@arabic\c@chapter}}
+\renewcommand{\thesection}{\thechapter$B!&(B\rensuji{\@arabic\c@section}}
+\renewcommand{\thesubsection}{\thesection$B!&(B\rensuji{\@arabic\c@subsection}}
+\renewcommand{\thesubsubsection}{%
+   \thesubsection$B!&(B\rensuji{\@arabic\c@subsubsection}}
+\renewcommand{\theparagraph}{%
+   \thesubsubsection$B!&(B\rensuji{\@arabic\c@paragraph}}
+\renewcommand{\thesubparagraph}{%
+   \theparagraph$B!&(B\rensuji{\@arabic\c@subparagraph}}
+\newcommand{\@chapapp}{\prechaptername}
+\newcommand{\@chappos}{\postchaptername}
+\newcommand{\part}{%
+  \if@openright \cleardoublepage \else \clearpage \fi
+  \thispagestyle{empty}%
+  \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi
+  \null\vfil
+  \secdef\@part\@spart}
+\def\@part[#1]#2{%
+  \ifnum \c@secnumdepth >-2\relax
+    \refstepcounter{part}%
+    \addcontentsline{toc}{part}{%
+       \prepartname\thepart\postpartname\hspace{1em}#1}%
+  \else
+    \addcontentsline{toc}{part}{#1}%
+  \fi
+  \markboth{}{}%
+  {\centering
+   \interlinepenalty\@M\reset@font
+   \ifnum \c@secnumdepth >-2\relax
+     \huge\bfseries\prepartname\thepart\postpartname
+     \par\vskip20\p@
+   \fi
+   \Huge\bfseries#2\par}%
+   \@endpart}
+\def\@spart#1{{%
+  \centering
+  \interlinepenalty\@M\reset@font
+  \Huge\bfseries#1\par}%
+  \@endpart}
+\def\@endpart{\vfil\newpage
+   \if@twoside\null\thispagestyle{empty}\newpage\fi
+   \if@tempswa\twocolumn\fi}
+\newcommand{\chapter}{%
+  \if@openright\cleardoublepage\else\clearpage\fi
+  \thispagestyle{jpl@in}%
+  \global\@topnum\z@
+  \@afterindenttrue
+  \secdef\@chapter\@schapter}
+\def\@chapter[#1]#2{%
+  \ifnum \c@secnumdepth >\m@ne
+    \refstepcounter{chapter}%
+    \typeout{\@chapapp\space\thechapter\space\@chappos}%
+    \addcontentsline{toc}{chapter}%
+      {\protect\numberline{\@chapapp\thechapter\@chappos}#1}%
+  \else
+    \addcontentsline{toc}{chapter}{#1}%
+  \fi
+  \chaptermark{#1}%
+  \addtocontents{lof}{\protect\addvspace{10\p@}}%
+  \addtocontents{lot}{\protect\addvspace{10\p@}}%
+  \@makechapterhead{#2}\@afterheading}
+\def\@makechapterhead#1{\hbox{}%
+  \vskip2\Cvs
+  {\parindent\z@
+   \raggedright
+   \reset@font\huge\bfseries
+   \leavevmode
+   \ifnum \c@secnumdepth >\m@ne
+     \setlength\@tempdima{\linewidth}%
+     \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1zw}%
+     \addtolength\@tempdima{-\wd\z@}%
+     \unhbox\z@\nobreak
+     \vtop{\hsize\@tempdima#1}%
+   \else
+     #1\relax
+   \fi}\nobreak\vskip3\Cvs}
+\def\@schapter#1{%
+  \@makeschapterhead{#1}\@afterheading
+}
+\def\@makeschapterhead#1{\hbox{}%
+  \vskip2\Cvs
+  {\parindent\z@
+   \raggedright
+   \reset@font\huge\bfseries
+   \leavevmode
+   \setlength\@tempdima{\linewidth}%
+   \vtop{\hsize\@tempdima#1}}\vskip3\Cvs}
+\newcommand{\section}{\@startsection{section}{1}{\z@}%
+   {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
+   {.5\Cvs \@plus.3\Cvs}%
+   {\reset@font\Large\bfseries}}
+\newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
+   {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
+   {.5\Cvs \@plus.3\Cvs}%
+   {\reset@font\large\bfseries}}
+\newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
+   {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
+   {.5\Cvs \@plus.3\Cvs}%
+   {\reset@font\normalsize\bfseries}}
+\newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
+   {3.25ex \@plus 1ex \@minus .2ex}%
+   {-1em}%
+   {\reset@font\normalsize\bfseries}}
+\newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
+   {3.25ex \@plus 1ex \@minus .2ex}%
+   {-1em}%
+   {\reset@font\normalsize\bfseries}}
+\newcommand{\appendix}{\par
+  \setcounter{chapter}{0}%
+  \setcounter{section}{0}%
+  \renewcommand{\@chapapp}{\appendixname}%
+  \renewcommand{\@chappos}\space%
+  \renewcommand{\thechapter}{\rensuji{\@Alph\c@chapter}}}
+\if@twocolumn
+  \setlength\leftmargini {2em}
+\else
+  \setlength\leftmargini {2.5em}
+\fi
+\setlength\leftmarginii  {2.2em}
+\setlength\leftmarginiii {1.87em}
+\setlength\leftmarginiv  {1.7em}
+\if@twocolumn
+  \setlength\leftmarginv {.5em}
+  \setlength\leftmarginvi{.5em}
+\else
+  \setlength\leftmarginv {1em}
+  \setlength\leftmarginvi{1em}
+\fi
+\setlength  \labelsep  {.5em}
+\setlength  \labelwidth{\leftmargini}
+\addtolength\labelwidth{-\labelsep}
+\@beginparpenalty -\@lowpenalty
+\@endparpenalty   -\@lowpenalty
+\@itempenalty     -\@lowpenalty
+\renewcommand{\theenumi}{\rensuji{\@arabic\c@enumi}}
+\renewcommand{\theenumii}{\rensuji{(\@alph\c@enumii)}}
+\renewcommand{\theenumiii}{\rensuji{\@roman\c@enumiii}}
+\renewcommand{\theenumiv}{\rensuji{\@Alph\c@enumiv}}
+\newcommand{\labelenumi}{\theenumi}
+\newcommand{\labelenumii}{\theenumii}
+\newcommand{\labelenumiii}{\theenumiii}
+\newcommand{\labelenumiv}{\theenumiv}
+\renewcommand{\p@enumii}{\theenumi}
+\renewcommand{\p@enumiii}{\theenumi(\theenumii)}
+\renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
+\renewenvironment{enumerate}
+  {\ifnum \@enumdepth >\thr@@\@toodeep\else
+   \advance\@enumdepth\@ne
+   \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
+   \list{\csname label\@enumctr\endcsname}{%
+      \iftdir
+         \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
+           \else\topsep\z@\fi
+         \parskip\z@ \itemsep\z@ \parsep\z@
+         \labelwidth1zw \labelsep.3zw
+         \ifnum \@enumdepth=\@ne \leftmargin1zw\relax
+           \else\leftmargin\leftskip\fi
+         \advance\leftmargin 1zw
+      \fi
+         \usecounter{\@enumctr}%
+         \def\makelabel##1{\hss\llap{##1}}}%
+   \fi}{\endlist}
+\newcommand{\labelitemi}{\textbullet}
+\newcommand{\labelitemii}{%
+  \iftdir
+     {\textcircled{~}}
+  \else
+     {\normalfont\bfseries\textendash}
+  \fi
+}
+\newcommand{\labelitemiii}{\textasteriskcentered}
+\newcommand{\labelitemiv}{\textperiodcentered}
+\renewenvironment{itemize}
+  {\ifnum \@itemdepth >\thr@@\@toodeep\else
+   \advance\@itemdepth\@ne
+   \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
+   \expandafter
+   \list{\csname \@itemitem\endcsname}{%
+      \iftdir
+         \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
+           \else\topsep\z@\fi
+         \parskip\z@ \itemsep\z@ \parsep\z@
+         \labelwidth1zw \labelsep.3zw
+         \ifnum \@itemdepth =\@ne \leftmargin1zw\relax
+           \else\leftmargin\leftskip\fi
+         \advance\leftmargin 1zw
+      \fi
+         \def\makelabel##1{\hss\llap{##1}}}%
+   \fi}{\endlist}
+\newenvironment{description}
+  {\list{}{\labelwidth\z@ \itemindent-\leftmargin
+   \iftdir
+     \leftmargin\leftskip \advance\leftmargin3\Cwd
+     \rightmargin\rightskip
+     \labelsep=1zw \itemsep\z@
+     \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
+   \fi
+           \let\makelabel\descriptionlabel}}{\endlist}
+\newcommand{\descriptionlabel}[1]{%
+   \hspace\labelsep\normalfont\bfseries #1}
+\newenvironment{verse}
+  {\let\\\@centercr
+   \list{}{\itemsep\z@ \itemindent -1.5em%
+           \listparindent\itemindent
+           \rightmargin\leftmargin \advance\leftmargin 1.5em}%
+           \item\relax}{\endlist}
+\newenvironment{quotation}
+  {\list{}{\listparindent 1.5em%
+           \itemindent\listparindent
+           \rightmargin\leftmargin
+           \parsep\z@ \@plus\p@}%
+           \item\relax}{\endlist}
+\newenvironment{quote}
+  {\list{}{\rightmargin\leftmargin}%
+           \item\relax}{\endlist}
+\newcounter{figure}[chapter]
+\renewcommand{\thefigure}{%
+  \ifnum\c@chapter>\z@\thechapter{}$B!&(B\fi\rensuji{\@arabic\c@figure}}
+\def\fps@figure{tbp}
+\def\ftype@figure{1}
+\def\ext@figure{lof}
+\def\fnum@figure{\figurename\thefigure}
+\newenvironment{figure}
+               {\@float{figure}}
+               {\end@float}
+\newenvironment{figure*}
+               {\@dblfloat{figure}}
+               {\end@dblfloat}
+\newcounter{table}[chapter]
+\renewcommand{\thetable}{%
+  \ifnum\c@chapter>\z@\thechapter{}$B!&(B\fi\rensuji{\@arabic\c@table}}
+\def\fps@table{tbp}
+\def\ftype@table{2}
+\def\ext@table{lot}
+\def\fnum@table{\tablename\thetable}
+\newenvironment{table}
+               {\@float{table}}
+               {\end@float}
+\newenvironment{table*}
+               {\@dblfloat{table}}
+               {\end@dblfloat}
+\newlength\abovecaptionskip
+\newlength\belowcaptionskip
+\setlength\abovecaptionskip{10\p@}
+\setlength\belowcaptionskip{0\p@}
+\long\def\@makecaption#1#2{%
+  \vskip\abovecaptionskip
+  \iftdir\sbox\@tempboxa{#1\hskip1zw#2}%
+    \else\sbox\@tempboxa{#1: #2}%
+  \fi
+  \ifdim \wd\@tempboxa >\hsize
+    \iftdir #1\hskip1zw#2\relax\par
+      \else #1: #2\relax\par\fi
+  \else
+    \global \@minipagefalse
+    \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
+  \fi
+  \vskip\belowcaptionskip}
+\setlength\arraycolsep{5\p@}
+\setlength\tabcolsep{6\p@}
+\setlength\arrayrulewidth{.4\p@}
+\setlength\doublerulesep{2\p@}
+\setlength\tabbingsep{\labelsep}
+\skip\@mpfootins = \skip\footins
+\setlength\fboxsep{3\p@}
+\setlength\fboxrule{.4\p@}
+\@addtoreset{equation}{chapter}
+\renewcommand{\theequation}{%
+  \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
+\if@enablejfam
+  \if@compatibility\else
+    \DeclareSymbolFont{mincho}{JY1}{mc}{m}{n}
+    \DeclareSymbolFontAlphabet{\mathmc}{mincho}
+    \SetSymbolFont{mincho}{bold}{JY1}{gt}{m}{n}
+    \jfam\symmincho
+    \DeclareMathAlphabet{\mathgt}{JY1}{gt}{m}{n}
+  \fi
+  \if@mathrmmc
+    \AtBeginDocument{%
+    \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
+    \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
+  }%
+  \fi
+\else
+  \DeclareRobustCommand{\mathmc}{%
+    \@latex@error{Command \noexpand\mathmc invalid with\space
+       `disablejfam' class option.}\@eha
+  }
+  \DeclareRobustCommand{\mathgt}{%
+    \@latex@error{Command \noexpand\mathgt invalid with\space
+       `disablejfam' class option.}\@eha
+  }
+\fi
+\DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
+\DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
+\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
+\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
+\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
+\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
+\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
+\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
+\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
+\DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
+\DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
+\setcounter{tocdepth}{2}
+\newcommand{\@pnumwidth}{1.55em}
+\newcommand{\@tocrmarg}{2.55em}
+\newcommand{\@dotsep}{4.5}
+\newdimen\toclineskip
+\setlength\toclineskip{2\p@}
+\newdimen\@lnumwidth
+\def\numberline#1{\hbox to\@lnumwidth{#1\hfil}}
+\def\@dottedtocline#1#2#3#4#5{%
+  \ifnum #1>\c@tocdepth \else
+    \vskip\toclineskip \@plus.2\p@
+    {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
+     \parindent #2\relax\@afterindenttrue
+     \interlinepenalty\@M
+     \leavevmode
+     \@lnumwidth #3\relax
+     \advance\leftskip \@lnumwidth \hbox{}\hskip -\leftskip
+     {#4}\nobreak
+     \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
+     \hfill\nobreak
+     \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
+     \par}%
+  \fi}
+\def\addcontentsline#1#2#3{%
+  \protected@write\@auxout
+    {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
+\@temptokena{\rensuji{\thepage}}}%
+    {\string\@writefile{#1}%
+       {\protect\contentsline{#2}{#3}{\the\@temptokena}}}%
+}
+\newcommand{\tableofcontents}{%
+  \if@twocolumn\@restonecoltrue\onecolumn
+  \else\@restonecolfalse\fi
+  \chapter*{\contentsname
+    \@mkboth{\contentsname}{\contentsname}%
+  }\@starttoc{toc}%
+  \if@restonecol\twocolumn\fi
+}
+\newcommand*{\l@part}[2]{%
+  \ifnum \c@tocdepth >-2\relax
+    \addpenalty{-\@highpenalty}%
+    \addvspace{2.25em \@plus\p@}%
+    \begingroup
+    \parindent\z@\rightskip\@pnumwidth
+    \parfillskip-\@pnumwidth
+    {\leavevmode\large\bfseries
+     \setlength\@lnumwidth{4zw}%
+     #1\hfil\nobreak
+     \hbox to\@pnumwidth{\hss#2}}\par
+    \nobreak
+    \global\@nobreaktrue
+    \everypar{\global\@nobreakfalse\everypar{}}%
+     \endgroup
+  \fi}
+\newcommand*{\l@chapter}[2]{%
+  \ifnum \c@tocdepth >\m@ne
+    \addpenalty{-\@highpenalty}%
+    \addvspace{1.0em \@plus\p@}%
+    \begingroup
+      \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
+      \leavevmode\bfseries
+      \setlength\@lnumwidth{4zw}%
+      \advance\leftskip\@lnumwidth \hskip-\leftskip
+      #1\nobreak\hfil\nobreak\hbox to\@pnumwidth{\hss#2}\par
+      \penalty\@highpenalty
+    \endgroup
+  \fi}
+\newcommand*{\l@section}{\@dottedtocline{1}{1zw}{4zw}}
+\newcommand*{\l@subsection}   {\@dottedtocline{2}{2zw}{6zw}}
+\newcommand*{\l@subsubsection}{\@dottedtocline{3}{3zw}{8zw}}
+\newcommand*{\l@paragraph}    {\@dottedtocline{4}{4zw}{9zw}}
+\newcommand*{\l@subparagraph} {\@dottedtocline{5}{5zw}{10zw}}
+\newcommand{\listoffigures}{%
+  \if@twocolumn\@restonecoltrue\onecolumn
+  \else\@restonecolfalse\fi
+  \chapter*{\listfigurename
+  \@mkboth{\listfigurename}{\listfigurename}}%
+  \@starttoc{lof}%
+  \if@restonecol\twocolumn\fi
+}
+\newcommand*{\l@figure}{\@dottedtocline{1}{1zw}{4zw}}
+\newcommand{\listoftables}{%
+  \if@twocolumn\@restonecoltrue\onecolumn
+  \else\@restonecolfalse\fi
+  \chapter*{\listtablename
+  \@mkboth{\listtablename}{\listtablename}}%
+  \@starttoc{lot}%
+  \if@restonecol\twocolumn\fi
+}
+\let\l@table\l@figure
+\newdimen\bibindent
+\setlength\bibindent{1.5em}
+\newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
+\newenvironment{thebibliography}[1]
+{\chapter*{\bibname\@mkboth{\bibname}{\bibname}}%
+   \list{\@biblabel{\@arabic\c@enumiv}}%
+        {\settowidth\labelwidth{\@biblabel{#1}}%
+         \leftmargin\labelwidth
+         \advance\leftmargin\labelsep
+         \@openbib@code
+         \usecounter{enumiv}%
+         \let\p@enumiv\@empty
+         \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+   \sloppy
+   \clubpenalty4000
+   \@clubpenalty\clubpenalty
+   \widowpenalty4000%
+   \sfcode`\.\@m}
+  {\def\@noitemerr
+    {\@latex@warning{Empty `thebibliography' environment}}%
+   \endlist}
+\let\@openbib@code\@empty
+\newenvironment{theindex}
+  {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
+   \columnseprule\z@ \columnsep 35\p@
+   \twocolumn[\@makeschapterhead{\indexname}]%
+   \@mkboth{\indexname}{\indexname}%
+   \thispagestyle{jpl@in}\parindent\z@
+   \parskip\z@ \@plus .3\p@\relax
+   \let\item\@idxitem}
+  {\if@restonecol\onecolumn\else\clearpage\fi}
+\newcommand{\@idxitem}{\par\hangindent 40\p@}
+\newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
+\newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
+\newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
+\renewcommand{\footnoterule}{%
+  \kern-3\p@
+  \hrule width .4\columnwidth
+  \kern 2.6\p@}
+\@addtoreset{footnote}{chapter}
+\newcommand\@makefntext[1]{\parindent 1zw
+  \noindent\hbox to 2zw{\hss\@makefnmark}#1}
+\newif\if$B@>Nq(B \$B@>Nq(Bfalse
+\def\$B@>Nq(B{\$B@>Nq(Btrue}
+\def\$BOBNq(B{\$B@>Nq(Bfalse}
+\newcount\heisei \heisei\year \advance\heisei-1988\relax
+\def\today{{%
+  \iftdir
+    \if$B@>Nq(B
+      \kansuji\number\year $BG/(B
+      \kansuji\number\month $B7n(B
+      \kansuji\number\day $BF|(B
+    \else
+      $BJ?@.(B\ifnum\heisei=1 $B85G/(B\else\kansuji\number\heisei $BG/(B\fi
+      \kansuji\number\month $B7n(B
+      \kansuji\number\day $BF|(B
+    \fi
+  \else
+    \if$B@>Nq(B
+      \number\year~$BG/(B
+      \number\month~$B7n(B
+      \number\day~$BF|(B
+    \else
+      $BJ?@.(B\ifnum\heisei=1 $B85G/(B\else\number\heisei~$BG/(B\fi
+      \number\month~$B7n(B
+      \number\day~$BF|(B
+    \fi
+  \fi}}
+\newcommand{\prepartname}{$BBh(B}
+\newcommand{\postpartname}{$BIt(B}
+\newcommand{\prechaptername}{$BBh(B}
+\newcommand{\postchaptername}{$B>O(B}
+\newcommand{\contentsname}{$BL\(B $B<!(B}
+\newcommand{\listfigurename}{$B?^(B $BL\(B $B<!(B}
+\newcommand{\listtablename}{$BI=(B $BL\(B $B<!(B}
+\newcommand{\bibname}{$B4XO"?^=q(B}
+\newcommand{\indexname}{$B:w(B $B0z(B}
+\newcommand{\figurename}{$B?^(B}
+\newcommand{\tablename}{$BI=(B}
+\newcommand{\appendixname}{$BIU(B $BO?(B}
+\newcommand{\abstractname}{$B35(B $BMW(B}
+\pagestyle{plain}
+\pagenumbering{arabic}
+\raggedbottom
+\if@twocolumn
+  \twocolumn
+  \sloppy
+\else
+  \onecolumn
+\fi
+\normalmarginpar
+\@mparswitchfalse
+\endinput
+%%
+%% End of file `treport.cls'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/treport.sty b/tex-ptex/files/texmf-dist/tex/platex/base/treport.sty
new file mode 100644
index 0000000000..b39249ed6f
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/treport.sty
@@ -0,0 +1,45 @@
+%%
+%% This is file `treport.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% pl209.dtx  (with options: `style,treport')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from treport.sty.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file pl209.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: pl209.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\@obsoletefile{treport.cls}{treport.sty}
+\LoadClass{treport}
+\endinput
+%%
+%% End of file `treport.sty'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/tsize10.clo b/tex-ptex/files/texmf-dist/tex/platex/base/tsize10.clo
new file mode 100644
index 0000000000..7ad76d7e7d
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/tsize10.clo
@@ -0,0 +1,323 @@
+%%
+%% This is file `tsize10.clo',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% jclasses.dtx  (with options: `10pt,tate')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from tsize10.clo.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file jclasses.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: jclasses.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\ProvidesFile{tsize10.clo}
+  [2006/06/27 v1.6
+  Standard pLaTeX file (size option)]
+\renewcommand{\normalsize}{%
+    \@setfontsize\normalsize\@xpt{17}%
+  \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
+   \belowdisplayskip \abovedisplayskip
+   \let\@listi\@listI}
+\def\kanjiencodingdefault{JT1}%
+\kanjiencoding{\kanjiencodingdefault}%
+\normalsize
+\setbox0\hbox{\char\euc"A1A1}%
+\setlength\Cht{\ht0}
+\setlength\Cdp{\dp0}
+\setlength\Cwd{\wd0}
+\setlength\Cvs{\baselineskip}
+\setlength\Chs{\wd0}
+\newcommand{\small}{%
+  \@setfontsize\small\@ixpt{11}%
+  \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
+  \abovedisplayshortskip \z@ \@plus2\p@
+  \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 4\p@ \@plus2\p@ \@minus2\p@
+              \parsep 2\p@ \@plus\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\footnotesize}{%
+  \@setfontsize\footnotesize\@viiipt{9.5}%
+  \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@
+  \abovedisplayshortskip \z@ \@plus\p@
+  \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 3\p@ \@plus\p@ \@minus\p@
+              \parsep 2\p@ \@plus\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\scriptsize}{\@setfontsize\scriptsize\@viipt\@viiipt}
+\newcommand{\tiny}{\@setfontsize\tiny\@vpt\@vipt}
+\newcommand{\large}{\@setfontsize\large\@xiipt{17}}
+\newcommand{\Large}{\@setfontsize\Large\@xivpt{21}}
+\newcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{25}}
+\newcommand{\huge}{\@setfontsize\huge\@xxpt{28}}
+\newcommand{\Huge}{\@setfontsize\Huge\@xxvpt{33}}
+\setlength\headheight{12\p@}
+\if@stysize
+  \ifnum\c@@paper=2 % A5
+    \setlength\headsep{6mm}
+  \else % A4, B4, B5 and other
+    \setlength\headsep{8mm}
+  \fi
+\else
+    \setlength\headsep{8mm}
+\fi
+\setlength\topskip{1\Cht}
+\setlength\footskip{14mm}
+\if@compatibility
+  \setlength\maxdepth{4\p@}
+\else
+  \setlength\maxdepth{.5\topskip}
+\fi
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textwidth{27\Cwd}
+      \else
+        \setlength\textwidth{46\Cwd}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textwidth{53\Cwd}
+      \else
+        \setlength\textwidth{85\Cwd}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textwidth{34\Cwd}
+      \else
+        \setlength\textwidth{55\Cwd}
+      \fi
+    \else % A4 ant other
+      \if@landscape
+        \setlength\textwidth{41\Cwd}
+      \else
+        \setlength\textwidth{67\Cwd}
+      \fi
+    \fi\fi\fi
+  \else
+    \if@twocolumn
+      \setlength\textwidth{52\Cwd}
+    \else
+      \setlength\textwidth{67\Cwd}
+    \fi
+  \fi
+\else
+  \if@stysize
+    \if@twocolumn
+      \setlength\textwidth{.8\paperheight}
+    \else
+      \setlength\textwidth{.7\paperheight}
+    \fi
+  \else
+    \setlength\@tempdima{\paperheight}
+    \addtolength\@tempdima{-2in}
+    \addtolength\@tempdima{-1.3in}
+    \setlength\@tempdimb{67\Cwd}
+    \if@twocolumn
+      \ifdim\@tempdima>2\@tempdimb\relax
+        \setlength\textwidth{2\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \else
+      \ifdim\@tempdima>\@tempdimb\relax
+        \setlength\textwidth{\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \fi
+  \fi
+\fi
+\@settopoint\textwidth
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textheight{26\Cvs}
+      \else
+        \setlength\textheight{16\Cvs}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textheight{48\Cvs}
+      \else
+        \setlength\textheight{33\Cvs}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textheight{34\Cvs}
+      \else
+        \setlength\textheight{21\Cvs}
+      \fi
+    \else % A4 and other
+      \if@landscape
+        \setlength\textheight{41\Cvs}
+      \else
+        \setlength\textheight{26\Cvs}
+      \fi
+    \fi\fi\fi
+    \addtolength\textheight{\Cht}
+    \addtolength\textheight{\Cdp}
+  \else
+  \setlength\textheight{26\Cvs}
+  \fi
+\else
+  \if@stysize
+    \setlength\textheight{.78\paperwidth}
+  \else
+    \setlength\@tempdima{\paperwidth}
+    \addtolength\@tempdima{-2in}
+    \divide\@tempdima\baselineskip
+    \@tempcnta\@tempdima
+    \setlength\textheight{\@tempcnta\baselineskip}
+  \fi
+\fi
+\addtolength\textheight{\topskip}
+\@settopoint\textheight
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \setlength\topmargin{.8in}
+    \else % A4, B4, B5 and other
+      \setlength\topmargin{32mm}
+    \fi
+  \else
+    \setlength\topmargin{32mm}
+  \fi
+  \addtolength\topmargin{-1in}
+  \addtolength\topmargin{-\headheight}
+  \addtolength\topmargin{-\headsep}
+\else
+  \setlength\topmargin{\paperheight}
+  \addtolength\topmargin{-\headheight}
+  \addtolength\topmargin{-\headsep}
+  \addtolength\topmargin{-\textwidth}
+  \addtolength\topmargin{-\footskip}
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \addtolength\topmargin{-1.3in}
+    \else
+      \addtolength\topmargin{-2.0in}
+    \fi
+  \else
+    \addtolength\topmargin{-2.8in}
+  \fi
+  \addtolength\topmargin{-.5\topmargin}
+\fi
+\@settopoint\topmargin
+\if@twocolumn
+  \setlength\marginparsep{10\p@}
+\else
+  \setlength\marginparsep{15\p@}
+\fi
+\setlength\marginparpush{7\p@}
+\if@compatibility
+   \setlength\oddsidemargin{0\p@}
+   \setlength\evensidemargin{0\p@}
+  \if@stysize
+    \if@twocolumn\else
+      \setlength\oddsidemargin{0\p@}
+      \setlength\evensidemargin{0\p@}
+    \fi
+  \fi
+\else
+  \setlength\@tempdima{\paperwidth}
+  \addtolength\@tempdima{-\textheight}
+  \if@twoside
+    \setlength\oddsidemargin{.6\@tempdima}
+  \else
+    \setlength\oddsidemargin{.5\@tempdima}
+  \fi
+  \addtolength\oddsidemargin{-1in}
+  \setlength\evensidemargin{\paperwidth}
+  \addtolength\evensidemargin{-2in}
+  \addtolength\evensidemargin{-\textheight}
+  \addtolength\evensidemargin{-\oddsidemargin}
+  \@settopoint\oddsidemargin % 1999.1.6
+  \@settopoint\evensidemargin
+  \setlength\@tempdima{\paperheight}
+  \addtolength\@tempdima{-\textwidth}
+  \addtolength\@tempdima{-\topmargin}
+  \addtolength\@tempdima{-\headheight}
+  \addtolength\@tempdima{-\headsep}
+  \addtolength\@tempdima{-\footskip}
+  \setlength\marginparwidth{.5\@tempdima}
+  \@settopoint\marginparwidth
+\fi
+\setlength\footnotesep{6.65\p@}
+\setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@}
+\setlength\floatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\intextsep   {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\dblfloatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\@fptop{0\p@ \@plus 1fil}
+\setlength\@fpsep{8\p@ \@plus 2fil}
+\setlength\@fpbot{0\p@ \@plus 1fil}
+\setlength\@dblfptop{0\p@ \@plus 1fil}
+\setlength\@dblfpsep{8\p@ \@plus 2fil}
+\setlength\@dblfpbot{0\p@ \@plus 1fil}
+\setlength\partopsep{2\p@ \@plus 1\p@ \@minus 1\p@}
+\def\@listi{\leftmargin\leftmargini
+  \parsep 4\p@ \@plus2\p@ \@minus\p@
+  \topsep 8\p@ \@plus2\p@ \@minus4\p@
+  \itemsep4\p@ \@plus2\p@ \@minus\p@}
+\let\@listI\@listi
+\@listi
+\def\@listii{\leftmargin\leftmarginii
+   \labelwidth\leftmarginii \advance\labelwidth-\labelsep
+   \topsep  4\p@ \@plus2\p@ \@minus\p@
+   \parsep  2\p@ \@plus\p@  \@minus\p@
+   \itemsep\parsep}
+\def\@listiii{\leftmargin\leftmarginiii
+   \labelwidth\leftmarginiii \advance\labelwidth-\labelsep
+   \topsep 2\p@  \@plus\p@\@minus\p@
+   \parsep\z@
+   \partopsep \p@ \@plus\z@ \@minus\p@
+   \itemsep\topsep}
+\def\@listiv {\leftmargin\leftmarginiv
+              \labelwidth\leftmarginiv
+              \advance\labelwidth-\labelsep}
+\def\@listv  {\leftmargin\leftmarginv
+              \labelwidth\leftmarginv
+              \advance\labelwidth-\labelsep}
+\def\@listvi {\leftmargin\leftmarginvi
+              \labelwidth\leftmarginvi
+              \advance\labelwidth-\labelsep}
+\endinput
+%%
+%% End of file `tsize10.clo'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/tsize11.clo b/tex-ptex/files/texmf-dist/tex/platex/base/tsize11.clo
new file mode 100644
index 0000000000..d52ccba620
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/tsize11.clo
@@ -0,0 +1,323 @@
+%%
+%% This is file `tsize11.clo',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% jclasses.dtx  (with options: `11pt,tate')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from tsize11.clo.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file jclasses.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: jclasses.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\ProvidesFile{tsize11.clo}
+  [2006/06/27 v1.6
+  Standard pLaTeX file (size option)]
+\renewcommand{\normalsize}{%
+    \@setfontsize\normalsize\@xipt{17}%
+  \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
+   \belowdisplayskip \abovedisplayskip
+   \let\@listi\@listI}
+\def\kanjiencodingdefault{JT1}%
+\kanjiencoding{\kanjiencodingdefault}%
+\normalsize
+\setbox0\hbox{\char\euc"A1A1}%
+\setlength\Cht{\ht0}
+\setlength\Cdp{\dp0}
+\setlength\Cwd{\wd0}
+\setlength\Cvs{\baselineskip}
+\setlength\Chs{\wd0}
+\newcommand{\small}{%
+  \@setfontsize\small\@xpt\@xiipt
+  \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 6\p@ \@plus2\p@ \@minus2\p@
+              \parsep 3\p@ \@plus2\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\footnotesize}{%
+  \@setfontsize\footnotesize\@ixpt{11}%
+  \abovedisplayskip 8\p@ \@plus2\p@ \@minus4\p@
+  \abovedisplayshortskip \z@ \@plus\p@
+  \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 4\p@ \@plus2\p@ \@minus2\p@
+              \parsep 2\p@ \@plus\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\scriptsize}{\@setfontsize\scriptsize\@viiipt{9.5}}
+\newcommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt}
+\newcommand{\large}{\@setfontsize\large\@xiipt{17}}
+\newcommand{\Large}{\@setfontsize\Large\@xivpt{21}}
+\newcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{25}}
+\newcommand{\huge}{\@setfontsize\huge\@xxpt{28}}
+\newcommand{\Huge}{\@setfontsize\Huge\@xxvpt{33}}
+\setlength\headheight{12\p@}
+\if@stysize
+  \ifnum\c@@paper=2 % A5
+    \setlength\headsep{6mm}
+  \else % A4, B4, B5 and other
+    \setlength\headsep{8mm}
+  \fi
+\else
+    \setlength\headsep{8mm}
+\fi
+\setlength\topskip{1\Cht}
+\setlength\footskip{14mm}
+\if@compatibility
+  \setlength\maxdepth{4\p@}
+\else
+  \setlength\maxdepth{.5\topskip}
+\fi
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textwidth{25\Cwd}
+      \else
+        \setlength\textwidth{42\Cwd}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textwidth{49\Cwd}
+      \else
+        \setlength\textwidth{76\Cwd}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textwidth{31\Cwd}
+      \else
+        \setlength\textwidth{51\Cwd}
+      \fi
+    \else % A4 ant other
+      \if@landscape
+        \setlength\textwidth{38\Cwd}
+      \else
+        \setlength\textwidth{61\Cwd}
+      \fi
+    \fi\fi\fi
+  \else
+    \if@twocolumn
+      \setlength\textwidth{52\Cwd}
+    \else
+      \setlength\textwidth{61\Cwd}
+    \fi
+  \fi
+\else
+  \if@stysize
+    \if@twocolumn
+      \setlength\textwidth{.8\paperheight}
+    \else
+      \setlength\textwidth{.7\paperheight}
+    \fi
+  \else
+    \setlength\@tempdima{\paperheight}
+    \addtolength\@tempdima{-2in}
+    \addtolength\@tempdima{-1.3in}
+    \setlength\@tempdimb{61\Cwd}
+    \if@twocolumn
+      \ifdim\@tempdima>2\@tempdimb\relax
+        \setlength\textwidth{2\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \else
+      \ifdim\@tempdima>\@tempdimb\relax
+        \setlength\textwidth{\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \fi
+  \fi
+\fi
+\@settopoint\textwidth
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textheight{26\Cvs}
+      \else
+        \setlength\textheight{16\Cvs}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textheight{48\Cvs}
+      \else
+        \setlength\textheight{33\Cvs}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textheight{34\Cvs}
+      \else
+        \setlength\textheight{21\Cvs}
+      \fi
+    \else % A4 and other
+      \if@landscape
+        \setlength\textheight{41\Cvs}
+      \else
+        \setlength\textheight{26\Cvs}
+      \fi
+    \fi\fi\fi
+    \addtolength\textheight{\Cht}
+    \addtolength\textheight{\Cdp}
+  \else
+  \setlength\textheight{25\Cvs}
+  \fi
+\else
+  \if@stysize
+    \setlength\textheight{.78\paperwidth}
+  \else
+    \setlength\@tempdima{\paperwidth}
+    \addtolength\@tempdima{-2in}
+    \divide\@tempdima\baselineskip
+    \@tempcnta\@tempdima
+    \setlength\textheight{\@tempcnta\baselineskip}
+  \fi
+\fi
+\addtolength\textheight{\topskip}
+\@settopoint\textheight
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \setlength\topmargin{.8in}
+    \else % A4, B4, B5 and other
+      \setlength\topmargin{32mm}
+    \fi
+  \else
+    \setlength\topmargin{32mm}
+  \fi
+  \addtolength\topmargin{-1in}
+  \addtolength\topmargin{-\headheight}
+  \addtolength\topmargin{-\headsep}
+\else
+  \setlength\topmargin{\paperheight}
+  \addtolength\topmargin{-\headheight}
+  \addtolength\topmargin{-\headsep}
+  \addtolength\topmargin{-\textwidth}
+  \addtolength\topmargin{-\footskip}
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \addtolength\topmargin{-1.3in}
+    \else
+      \addtolength\topmargin{-2.0in}
+    \fi
+  \else
+    \addtolength\topmargin{-2.8in}
+  \fi
+  \addtolength\topmargin{-.5\topmargin}
+\fi
+\@settopoint\topmargin
+\if@twocolumn
+  \setlength\marginparsep{10\p@}
+\else
+  \setlength\marginparsep{15\p@}
+\fi
+\setlength\marginparpush{7\p@}
+\if@compatibility
+   \setlength\oddsidemargin{0\p@}
+   \setlength\evensidemargin{0\p@}
+  \if@stysize
+    \if@twocolumn\else
+      \setlength\oddsidemargin{0\p@}
+      \setlength\evensidemargin{0\p@}
+    \fi
+  \fi
+\else
+  \setlength\@tempdima{\paperwidth}
+  \addtolength\@tempdima{-\textheight}
+  \if@twoside
+    \setlength\oddsidemargin{.6\@tempdima}
+  \else
+    \setlength\oddsidemargin{.5\@tempdima}
+  \fi
+  \addtolength\oddsidemargin{-1in}
+  \setlength\evensidemargin{\paperwidth}
+  \addtolength\evensidemargin{-2in}
+  \addtolength\evensidemargin{-\textheight}
+  \addtolength\evensidemargin{-\oddsidemargin}
+  \@settopoint\oddsidemargin % 1999.1.6
+  \@settopoint\evensidemargin
+  \setlength\@tempdima{\paperheight}
+  \addtolength\@tempdima{-\textwidth}
+  \addtolength\@tempdima{-\topmargin}
+  \addtolength\@tempdima{-\headheight}
+  \addtolength\@tempdima{-\headsep}
+  \addtolength\@tempdima{-\footskip}
+  \setlength\marginparwidth{.5\@tempdima}
+  \@settopoint\marginparwidth
+\fi
+\setlength\footnotesep{7.7\p@}
+\setlength{\skip\footins}{10\p@ \@plus 4\p@ \@minus 2\p@}
+\setlength\floatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\intextsep   {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\dblfloatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\@fptop{0\p@ \@plus 1fil}
+\setlength\@fpsep{8\p@ \@plus 2fil}
+\setlength\@fpbot{0\p@ \@plus 1fil}
+\setlength\@dblfptop{0\p@ \@plus 1fil}
+\setlength\@dblfpsep{8\p@ \@plus 2fil}
+\setlength\@dblfpbot{0\p@ \@plus 1fil}
+\setlength\partopsep{3\p@ \@plus 1\p@ \@minus 1\p@}
+\def\@listi{\leftmargin\leftmargini
+  \parsep 4.5\p@ \@plus2\p@ \@minus\p@
+  \topsep 9\p@   \@plus3\p@ \@minus5\p@
+  \itemsep4.5\p@ \@plus2\p@ \@minus\p@}
+\let\@listI\@listi
+\@listi
+\def\@listii{\leftmargin\leftmarginii
+   \labelwidth\leftmarginii \advance\labelwidth-\labelsep
+   \topsep  4.5\p@ \@plus2\p@ \@minus\p@
+   \parsep  2\p@   \@plus\p@  \@minus\p@
+   \itemsep\parsep}
+\def\@listiii{\leftmargin\leftmarginiii
+   \labelwidth\leftmarginiii \advance\labelwidth-\labelsep
+   \topsep 2\p@  \@plus\p@\@minus\p@
+   \parsep\z@
+   \partopsep \p@ \@plus\z@ \@minus\p@
+   \itemsep\topsep}
+\def\@listiv {\leftmargin\leftmarginiv
+              \labelwidth\leftmarginiv
+              \advance\labelwidth-\labelsep}
+\def\@listv  {\leftmargin\leftmarginv
+              \labelwidth\leftmarginv
+              \advance\labelwidth-\labelsep}
+\def\@listvi {\leftmargin\leftmarginvi
+              \labelwidth\leftmarginvi
+              \advance\labelwidth-\labelsep}
+\endinput
+%%
+%% End of file `tsize11.clo'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/base/tsize12.clo b/tex-ptex/files/texmf-dist/tex/platex/base/tsize12.clo
new file mode 100644
index 0000000000..b48041a143
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/base/tsize12.clo
@@ -0,0 +1,323 @@
+%%
+%% This is file `tsize12.clo',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% jclasses.dtx  (with options: `12pt,tate')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from tsize12.clo.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file jclasses.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%% File: jclasses.dtx
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+\NeedsTeXFormat{pLaTeX2e}
+\ProvidesFile{tsize12.clo}
+  [2006/06/27 v1.6
+  Standard pLaTeX file (size option)]
+\renewcommand{\normalsize}{%
+    \@setfontsize\normalsize\@xiipt{18}%
+  \abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
+   \belowdisplayskip \abovedisplayskip
+   \let\@listi\@listI}
+\def\kanjiencodingdefault{JT1}%
+\kanjiencoding{\kanjiencodingdefault}%
+\normalsize
+\setbox0\hbox{\char\euc"A1A1}%
+\setlength\Cht{\ht0}
+\setlength\Cdp{\dp0}
+\setlength\Cwd{\wd0}
+\setlength\Cvs{\baselineskip}
+\setlength\Chs{\wd0}
+\newcommand{\small}{%
+  \@setfontsize\small\@xipt{13.6}%
+  \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 9\p@ \@plus3\p@ \@minus5\p@
+              \parsep 4.5\p@ \@plus2\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\footnotesize}{%
+  \@setfontsize\footnotesize\@xpt\@xiipt
+  \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
+  \abovedisplayshortskip \z@ \@plus3\p@
+  \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
+  \def\@listi{\leftmargin\leftmargini
+              \topsep 6\p@ \@plus2\p@ \@minus2\p@
+              \parsep 3\p@ \@plus2\p@ \@minus\p@
+              \itemsep \parsep}%
+  \belowdisplayskip \abovedisplayskip}
+\newcommand{\scriptsize}{\@setfontsize\scriptsize\@viiipt{9.5}}
+\newcommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt}
+\newcommand{\large}{\@setfontsize\large\@xivpt{21}}
+\newcommand{\Large}{\@setfontsize\Large\@xviipt{25}}
+\newcommand{\LARGE}{\@setfontsize\LARGE\@xxpt{28}}
+\newcommand{\huge}{\@setfontsize\huge\@xxvpt{33}}
+\let\Huge=\huge
+\setlength\headheight{12\p@}
+\if@stysize
+  \ifnum\c@@paper=2 % A5
+    \setlength\headsep{6mm}
+  \else % A4, B4, B5 and other
+    \setlength\headsep{8mm}
+  \fi
+\else
+    \setlength\headsep{8mm}
+\fi
+\setlength\topskip{1\Cht}
+\setlength\footskip{14mm}
+\if@compatibility
+  \setlength\maxdepth{4\p@}
+\else
+  \setlength\maxdepth{.5\topskip}
+\fi
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textwidth{23\Cwd}
+      \else
+        \setlength\textwidth{38\Cwd}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textwidth{44\Cwd}
+      \else
+        \setlength\textwidth{69\Cwd}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textwidth{28\Cwd}
+      \else
+        \setlength\textwidth{47\Cwd}
+      \fi
+    \else % A4 ant other
+      \if@landscape
+        \setlength\textwidth{35\Cwd}
+      \else
+        \setlength\textwidth{57\Cwd}
+      \fi
+    \fi\fi\fi
+  \else
+    \if@twocolumn
+      \setlength\textwidth{52\Cwd}
+    \else
+      \setlength\textwidth{57\Cwd}
+    \fi
+  \fi
+\else
+  \if@stysize
+    \if@twocolumn
+      \setlength\textwidth{.8\paperheight}
+    \else
+      \setlength\textwidth{.7\paperheight}
+    \fi
+  \else
+    \setlength\@tempdima{\paperheight}
+    \addtolength\@tempdima{-2in}
+    \addtolength\@tempdima{-1.3in}
+    \setlength\@tempdimb{57\Cwd}
+    \if@twocolumn
+      \ifdim\@tempdima>2\@tempdimb\relax
+        \setlength\textwidth{2\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \else
+      \ifdim\@tempdima>\@tempdimb\relax
+        \setlength\textwidth{\@tempdimb}
+      \else
+        \setlength\textwidth{\@tempdima}
+      \fi
+    \fi
+  \fi
+\fi
+\@settopoint\textwidth
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \if@landscape
+        \setlength\textheight{25\Cvs}
+      \else
+        \setlength\textheight{15\Cvs}
+      \fi
+    \else\ifnum\c@@paper=3 % B4
+      \if@landscape
+        \setlength\textheight{45\Cvs}
+      \else
+        \setlength\textheight{31\Cvs}
+      \fi
+    \else\ifnum\c@@paper=4 % B5
+      \if@landscape
+        \setlength\textheight{32\Cvs}
+      \else
+        \setlength\textheight{20\Cvs}
+      \fi
+    \else % A4 and other
+      \if@landscape
+        \setlength\textheight{38\Cvs}
+      \else
+        \setlength\textheight{22\Cvs}
+      \fi
+    \fi\fi\fi
+    \addtolength\textheight{\Cht}
+    \addtolength\textheight{\Cdp}
+  \else
+  \setlength\textheight{24\Cvs}
+  \fi
+\else
+  \if@stysize
+    \setlength\textheight{.78\paperwidth}
+  \else
+    \setlength\@tempdima{\paperwidth}
+    \addtolength\@tempdima{-2in}
+    \divide\@tempdima\baselineskip
+    \@tempcnta\@tempdima
+    \setlength\textheight{\@tempcnta\baselineskip}
+  \fi
+\fi
+\addtolength\textheight{\topskip}
+\@settopoint\textheight
+\if@compatibility
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \setlength\topmargin{.8in}
+    \else % A4, B4, B5 and other
+      \setlength\topmargin{32mm}
+    \fi
+  \else
+    \setlength\topmargin{32mm}
+  \fi
+  \addtolength\topmargin{-1in}
+  \addtolength\topmargin{-\headheight}
+  \addtolength\topmargin{-\headsep}
+\else
+  \setlength\topmargin{\paperheight}
+  \addtolength\topmargin{-\headheight}
+  \addtolength\topmargin{-\headsep}
+  \addtolength\topmargin{-\textwidth}
+  \addtolength\topmargin{-\footskip}
+  \if@stysize
+    \ifnum\c@@paper=2 % A5
+      \addtolength\topmargin{-1.3in}
+    \else
+      \addtolength\topmargin{-2.0in}
+    \fi
+  \else
+    \addtolength\topmargin{-2.8in}
+  \fi
+  \addtolength\topmargin{-.5\topmargin}
+\fi
+\@settopoint\topmargin
+\if@twocolumn
+  \setlength\marginparsep{10\p@}
+\else
+  \setlength\marginparsep{15\p@}
+\fi
+\setlength\marginparpush{7\p@}
+\if@compatibility
+   \setlength\oddsidemargin{0\p@}
+   \setlength\evensidemargin{0\p@}
+  \if@stysize
+    \if@twocolumn\else
+      \setlength\oddsidemargin{0\p@}
+      \setlength\evensidemargin{0\p@}
+    \fi
+  \fi
+\else
+  \setlength\@tempdima{\paperwidth}
+  \addtolength\@tempdima{-\textheight}
+  \if@twoside
+    \setlength\oddsidemargin{.6\@tempdima}
+  \else
+    \setlength\oddsidemargin{.5\@tempdima}
+  \fi
+  \addtolength\oddsidemargin{-1in}
+  \setlength\evensidemargin{\paperwidth}
+  \addtolength\evensidemargin{-2in}
+  \addtolength\evensidemargin{-\textheight}
+  \addtolength\evensidemargin{-\oddsidemargin}
+  \@settopoint\oddsidemargin % 1999.1.6
+  \@settopoint\evensidemargin
+  \setlength\@tempdima{\paperheight}
+  \addtolength\@tempdima{-\textwidth}
+  \addtolength\@tempdima{-\topmargin}
+  \addtolength\@tempdima{-\headheight}
+  \addtolength\@tempdima{-\headsep}
+  \addtolength\@tempdima{-\footskip}
+  \setlength\marginparwidth{.5\@tempdima}
+  \@settopoint\marginparwidth
+\fi
+\setlength\footnotesep{8.4\p@}
+\setlength{\skip\footins}{10.8\p@ \@plus 4\p@ \@minus 2\p@}
+\setlength\floatsep    {12\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\intextsep   {14\p@ \@plus 4\p@ \@minus 4\p@}
+\setlength\dblfloatsep    {14\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\@fptop{0\p@ \@plus 1fil}
+\setlength\@fpsep{10\p@ \@plus 2fil}
+\setlength\@fpbot{0\p@ \@plus 1fil}
+\setlength\@dblfptop{0\p@ \@plus 1fil}
+\setlength\@dblfpsep{10\p@ \@plus 2fil}
+\setlength\@dblfpbot{0\p@ \@plus 1fil}
+\setlength\partopsep{3\p@ \@plus 2\p@ \@minus 2\p@}
+\def\@listi{\leftmargin\leftmargini
+  \parsep 5\p@  \@plus2.5\p@ \@minus\p@
+  \topsep 10\p@ \@plus4\p@   \@minus6\p@
+  \itemsep5\p@  \@plus2.5\p@ \@minus\p@}
+\let\@listI\@listi
+\@listi
+\def\@listii{\leftmargin\leftmarginii
+   \labelwidth\leftmarginii \advance\labelwidth-\labelsep
+   \topsep  5\p@   \@plus2.5\p@ \@minus\p@
+   \parsep  2.5\p@ \@plus\p@  \@minus\p@
+   \itemsep\parsep}
+\def\@listiii{\leftmargin\leftmarginiii
+   \labelwidth\leftmarginiii \advance\labelwidth-\labelsep
+   \topsep 2.5\p@\@plus\p@\@minus\p@
+   \parsep\z@
+   \partopsep \p@ \@plus\z@ \@minus\p@
+   \itemsep\topsep}
+\def\@listiv {\leftmargin\leftmarginiv
+              \labelwidth\leftmarginiv
+              \advance\labelwidth-\labelsep}
+\def\@listv  {\leftmargin\leftmarginv
+              \labelwidth\leftmarginv
+              \advance\labelwidth-\labelsep}
+\def\@listvi {\leftmargin\leftmarginvi
+              \labelwidth\leftmarginvi
+              \advance\labelwidth-\labelsep}
+\endinput
+%%
+%% End of file `tsize12.clo'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/config/hyphen.cfg b/tex-ptex/files/texmf-dist/tex/platex/config/hyphen.cfg
new file mode 100644
index 0000000000..0f6cb944d6
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/config/hyphen.cfg
@@ -0,0 +1,244 @@
+%%
+%% This is file `hyphen.cfg',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% babel.dtx  (with options: `patterns')
+%% This is a generated file.
+%% 
+%% Copyright 2012-2014 Javier Bezos and Johannes L. Braams.
+%% Copyright 1989-2008 Johannes L. Braams and any individual authors
+%% listed elsewhere in this file.  All rights reserved.
+%% 
+%% This file was generated from file(s) of the Babel system.
+%% ---------------------------------------------------------
+%% 
+%% It may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%%   http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2003/12/01 or later.
+%% 
+%% This work has the LPPL maintenance status "maintained".
+%% 
+%% The Current Maintainer of this work is Javier Bezos.
+%% 
+%% This file may only be distributed together with a copy of the Babel
+%% system. You may however distribute the Babel system without
+%% such generated files.
+%% 
+%% The list of all files belonging to the Babel distribution is
+%% given in the file `manifest.bbl'. See also `legal.bbl for additional
+%% information.
+%% 
+%% The list of derived (unpacked) files belonging to the distribution
+%% and covered by LPPL is defined by the unpacking scripts (with
+%% extension .ins) which are part of the distribution.
+%% File 'babel.dtx'
+%%\ProvidesFile{babel.dtx}[2014/09/25 v3.9l The Babel package]
+%% Babel package for LaTeX2e.
+%% Copyright (C) 1989-2008 by Johannes Braams,
+%%                            TeXniek
+%%                            all rights reserved.
+%% Copyright (C) 2013-2014 by Johannes Braams
+%%                            TeXniek
+%%                            by Javier Bezos
+%%                            all rights reserved.
+\ifx\ProvidesFile\@undefined
+  \def\ProvidesFile#1[#2 #3 #4]{%
+    \wlog{File: #1 #4 #3 <#2>}%
+    \let\ProvidesFile\@undefined}
+\fi
+\ProvidesFile{hyphen.cfg}[2014/09/25 3.9l Babel hyphens]
+\xdef\bbl@format{\jobname}
+\ifx\AtBeginDocument\@undefined
+  \def\@empty{}
+  \let\orig@dump\dump
+  \def\dump{%
+    \ifx\@ztryfc\@undefined
+    \else
+      \toks0=\expandafter{\@preamblecmds}%
+      \edef\@preamblecmds{\noexpand\@begindocumenthook\the\toks0}%
+      \def\@begindocumenthook{}%
+    \fi
+    \let\dump\orig@dump\let\orig@dump\@undefined\dump}
+\fi
+\ifx\language\@undefined
+  \csname newcount\endcsname\language
+\fi
+\ifx\newlanguage\@undefined
+  \csname newcount\endcsname\last@language
+  \def\addlanguage#1{%
+    \global\advance\last@language\@ne
+    \ifnum\last@language<\@cclvi
+    \else
+        \errmessage{No room for a new \string\language!}%
+    \fi
+    \global\chardef#1\last@language
+    \wlog{\string#1 = \string\language\the\last@language}}
+\else
+  \countdef\last@language=19
+  \def\addlanguage{\alloc@9\language\chardef\@cclvi}
+\fi
+\toks8{Babel <3.9l> and hyphenation patterns for }%
+\def\process@line#1#2 #3 #4 {%
+  \ifx=#1%
+    \process@synonym{#2}%
+  \else
+    \process@language{#1#2}{#3}{#4}%
+  \fi
+  \ignorespaces}
+\toks@{}
+\def\bbl@languages{}
+\def\process@synonym#1{%
+  \ifnum\last@language=\m@ne
+    \toks@\expandafter{\the\toks@\relax\process@synonym{#1}}%
+  \else
+    \expandafter\chardef\csname l@#1\endcsname\last@language
+    \wlog{\string\l@#1=\string\language\the\last@language}%
+    \expandafter\let\csname #1hyphenmins\expandafter\endcsname
+      \csname\languagename hyphenmins\endcsname
+    \let\bbl@elt\relax
+    \edef\bbl@languages{\bbl@languages\bbl@elt{#1}{\the\last@language}{}{}}%
+  \fi}
+\def\process@language#1#2#3{%
+  \expandafter\addlanguage\csname l@#1\endcsname
+  \expandafter\language\csname l@#1\endcsname
+  \edef\languagename{#1}%
+  \bbl@hook@everylanguage{#1}%
+  \bbl@get@enc#1::\@@@
+  \begingroup
+    \lefthyphenmin\m@ne
+    \bbl@hook@loadpatterns{#2}%
+    \ifnum\lefthyphenmin=\m@ne
+    \else
+      \expandafter\xdef\csname #1hyphenmins\endcsname{%
+        \the\lefthyphenmin\the\righthyphenmin}%
+    \fi
+  \endgroup
+  \def\bbl@tempa{#3}%
+  \ifx\bbl@tempa\@empty\else
+    \bbl@hook@loadexceptions{#3}%
+  \fi
+  \let\bbl@elt\relax
+  \edef\bbl@languages{%
+    \bbl@languages\bbl@elt{#1}{\the\language}{#2}{\bbl@tempa}}%
+  \ifnum\the\language=\z@
+    \expandafter\ifx\csname #1hyphenmins\endcsname\relax
+      \set@hyphenmins\tw@\thr@@\relax
+    \else
+      \expandafter\expandafter\expandafter\set@hyphenmins
+        \csname #1hyphenmins\endcsname
+    \fi
+    \the\toks@
+    \toks@{}%
+  \fi}
+\def\bbl@get@enc#1:#2:#3\@@@{\def\bbl@hyph@enc{#2}}
+\def\bbl@hook@everylanguage#1{}
+\def\bbl@hook@loadpatterns#1{\input #1\relax}
+\let\bbl@hook@loadexceptions\bbl@hook@loadpatterns
+\let\bbl@hook@loadkernel\bbl@hook@loadpatterns
+\begingroup
+  \def\AddBabelHook#1#2{%
+    \expandafter\ifx\csname bbl@hook@#2\endcsname\relax
+      \def\next{\toks1}%
+    \else
+      \def\next{\expandafter\gdef\csname bbl@hook@#2\endcsname####1}%
+    \fi
+    \next}
+  \ifx\directlua\@undefined
+    \ifx\XeTeXinputencoding\@undefined\else
+      \input xebabel.def
+    \fi
+  \else
+    \input luababel.def
+  \fi
+  \openin1 = babel-\bbl%format.cfg@localhost
+  \ifeof1
+  \else
+    \input babel-\bbl%format.cfg@localhost\relax
+  \fi
+  \closein1
+\endgroup
+\bbl@hook@loadkernel{switch.def}
+\openin1 = language.dat
+\def\languagename{english}%
+\ifeof1
+  \message{I couldn't find the file language.dat,\space
+           I will try the file hyphen.tex}
+  \input hyphen.tex\relax
+  \chardef\l@english\z@
+\else
+  \last@language\m@ne
+  \loop
+    \endlinechar\m@ne
+    \read1 to \bbl@line
+    \endlinechar`\^^M
+    \if T\ifeof1F\fi T\relax
+      \ifx\bbl@line\@empty\else
+        \edef\bbl@line{\bbl@line\space\space\space}%
+        \expandafter\process@line\bbl@line\relax
+      \fi
+  \repeat
+  \begingroup
+    \def\bbl@elt#1#2#3#4{%
+      \global\language=#2\relax
+      \gdef\languagename{#1}%
+      \def\bbl@elt##1##2##3##4{}}%
+    \bbl@languages
+  \endgroup
+\fi
+\closein1
+\if/\the\toks@/\else
+  \errhelp{language.dat loads no language, only synonyms}
+  \errmessage{Orphan language synonym}
+\fi
+\edef\bbl@tempa{%
+  \everyjob{%
+    \the\everyjob
+    \ifx\typeout\@undefined
+      \immediate\write16%
+    \else
+      \noexpand\typeout
+    \fi
+    {\the\toks8 \the\last@language\space languages loaded.}}}
+\bbl@tempa
+\let\bbl@line\@undefined
+\let\process@line\@undefined
+\let\process@synonym\@undefined
+\let\process@language\@undefined
+\let\bbl@get@enc\@undefined
+\let\bbl@hyph@enc\@undefined
+\let\bbl@tempa\@undefined
+\let\bbl@hook@loadkernel\@undefined
+\let\bbl@hook@everylanguage\@undefined
+\let\bbl@hook@loadpatterns\@undefined
+\let\bbl@hook@loadexceptions\@undefined
+%%
+%% ( written by Tono san ) 
+%%
+\ifx\platexDUMP\@undefined\else
+    \edef\platexBANNER{\the\toks8 \the\last@language\space languages\space}%
+\fi%%
+%%
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+\endinput
+%%
+%% End of file `hyphen.cfg'.
diff --git a/tex-ptex/files/texmf-dist/tex/platex/config/platex.ini b/tex-ptex/files/texmf-dist/tex/platex/config/platex.ini
new file mode 100644
index 0000000000..425e839808
--- /dev/null
+++ b/tex-ptex/files/texmf-dist/tex/platex/config/platex.ini
@@ -0,0 +1,31 @@
+%% for pLaTeX (ASCII Nihongo LaTeX)
+%% written by Tono san
+%%
+\begingroup  \catcode`\{=1  \catcode`\}=2%
+    \immediate\write20{<<< making "platex with Babel" format >>>}
+    \def\platexTMP{%
+        \let\platexDUMP=\dump
+        \let\dump=\endinput
+    }
+    \expandafter
+\endgroup \platexTMP
+%
+%%  \scrollmode
+\input platex.ltx
+%
+\begingroup  \makeatletter%
+    \@temptokena=\expandafter{\platexBANNER}
+    \edef\platexTMP{%
+        \the\everyjob\noexpand\typeout{\the\@temptokena loaded.}%
+    }%
+    \everyjob=\expandafter{\platexTMP}%
+    \edef\platexTMP{%
+        \noexpand\let\noexpand\platexBANNER=\noexpand\@undefined
+        \noexpand\let\noexpand\dump=\noexpand\platexDUMP
+        \noexpand\let\noexpand\platexDUMP=\noexpand\@undefined
+        \noexpand\everyjob={\the\everyjob}%
+    }
+    \expandafter
+\endgroup \platexTMP
+\dump
+\endinput


Home | Main Index | Thread Index | Old Index