summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/platex/base/plext.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/platex/base/plext.sty')
-rw-r--r--Master/texmf-dist/tex/platex/base/plext.sty32
1 files changed, 19 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/platex/base/plext.sty b/Master/texmf-dist/tex/platex/base/plext.sty
index dd503892abc..3d6e4be9ec3 100644
--- a/Master/texmf-dist/tex/platex/base/plext.sty
+++ b/Master/texmf-dist/tex/platex/base/plext.sty
@@ -15,7 +15,7 @@
%% File: plext.dtx
\NeedsTeXFormat{pLaTeX2e}
\ProvidesPackage{plext}
- [2016/11/19 v1.2c pLaTeX package file (community edition)]
+ [2017/03/28 v1.2f pLaTeX package file (community edition)]
\newif\if@rotsw
\def\array{\let\@acol\@arrayacol \let\@classz\@arrayclassz
\let\@classiv\@arrayclassiv
@@ -73,10 +73,16 @@
\iftdir
\if #1y\relax\let\box@dir\yoko
\if #2t\relax
- \def\@begin@alignbox{\raise\cdp\vtop\bgroup\kern\z@\vbox}%
+ \def\@begin@alignbox{%
+ \@tempdima=\tbaselineshift
+ \advance\@tempdima-\ybaselineshift
+ \raise\@tempdima\vtop\bgroup\kern\z@\vtop}%
\let\@end@alignbox\egroup
\else\if #2b\relax
- \def\@begin@alignbox{\lower\cdp\vbox\bgroup\vbox}%
+ \def\@begin@alignbox{%
+ \@tempdima=\tbaselineshift
+ \advance\@tempdima-\ybaselineshift
+ \raise\@tempdima\vbox\bgroup\vbox}%
\def\@end@alignbox{\kern\z@\egroup}%
\else
\let\@begin@alignbox\vcenter
@@ -95,7 +101,7 @@
\fi\fi
\else\let\box@dir\tate
\if #2t\relax
- \def\@begin@alignbox{\raise\cdp\vtop}%
+ \let\@begin@alignbox\vtop
\let\@end@alignbox\relax
\else\if #2b\relax
\let\@begin@alignbox\vbox
@@ -119,7 +125,7 @@
\fi\fi
\else\let\box@dir\yoko
\if #2t\relax
- \def\@begin@alignbox{\raise\cdp\vtop}%
+ \let\@begin@alignbox\vtop
\let\@end@alignbox\relax
\else\if #2b\relax
\let\@begin@alignbox\vbox
@@ -301,7 +307,7 @@
\if@rotsw \egroup\m@th$\egroup\fi
\egroup
\expandafter\@iiiparbox\@mpargs{\unvbox\@tempboxa}\egroup}
-\def\parbox{\@ifnextchar<%>
+\DeclareRobustCommand\parbox{\@ifnextchar<%>
{\X@parbox}{\X@parbox<Z>}}
\def\X@parbox<#1>{\@ifnextchar[%]
{\@iparbox<#1>}{\@iiiparbox<#1>{c}\relax[s]}}
@@ -333,7 +339,7 @@
\iftdir
\if #1y\relax\let\box@dir\yoko
\if #2t\relax
- \def\@begin@parbox{\raise\cdp\vtop\bgroup\kern\z@\vtop}%
+ \def\@begin@parbox{\raise\cht\vtop\bgroup\kern\z@\vtop}%
\let\@end@parbox\egroup
\else\if #2b\relax
\def\@begin@parbox{\lower\cdp\vbox\bgroup\vbox}%
@@ -342,7 +348,7 @@
\let\@begin@parbox\vcenter
\let\@end@parbox\relax
\else
- \def\@begin@parbox{\hskip\tbaselineshift$\vcenter}%
+ \def\@begin@parbox{$\vcenter}%
\def\@end@parbox{\m@th$}%
\fi\fi\fi
\else\if #1z\relax\@rotswtrue \let\box@dir\relax
@@ -356,7 +362,7 @@
\let\@begin@parbox\vcenter
\let\@end@parbox\relax
\else
- \def\@begin@parbox{\hskip\tbaselineshift$\vcenter}%
+ \def\@begin@parbox{$\vcenter}%
\def\@end@parbox{\m@th$}%
\fi\fi\fi
\else\let\box@dir\tate
@@ -364,7 +370,7 @@
\let\@begin@parbox\vtop
\let\@end@parbox\relax
\else\if #2b\relax
- \def\@begin@parbox{\lower\cdp\vbox}%
+ \let\@begin@parbox\vbox
\let\@end@parbox\relax
\else\ifmmode
\let\@begin@parbox\vcenter
@@ -377,10 +383,10 @@
\else
\if #1t\relax\let\box@dir\tate
\if #2t\relax
- \def\@begin@parbox{\vtop\bgroup\kern\z@\vbox}%
+ \def\@begin@parbox{\raise\cht\vtop\bgroup\kern\z@\vtop}%
\let\@end@parbox\egroup
\else\if #2b\relax
- \def\@begin@parbox{\vbox\bgroup\vbox}%
+ \def\@begin@parbox{\lower\cdp\vbox\bgroup\vbox}%
\def\@end@parbox{\kern\z@\egroup}%
\else\ifmmode
\let\@begin@parbox\vcenter
@@ -504,7 +510,7 @@
\let\Rensuji\rensuji
\let\prensuji\rensuji
\def\Kanji#1{\expandafter\@Kanji\csname c@#1\endcsname}
-\def\@Kanji#1{\expandafter\kansuji\number #1}
+\def\@Kanji#1{\kansuji #1}
\def\kanji{\iftdir\expandafter\kansuji\fi}
\def\boutenchar{\char\euc"A1A2}
\def\bou#1{\ifvmode\leavevmode\fi\@bou#1\end}