summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/platex/base/plext.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-04-16 22:05:53 +0000
committerKarl Berry <karl@freefriends.org>2017-04-16 22:05:53 +0000
commit8e7cee93b8e73580a81e4d353d4843345b2c2998 (patch)
tree2fc7e286869016f51b0a334d7d085740cbc3576b /Master/texmf-dist/tex/platex/base/plext.sty
parentd1a1a8aa97b00e8dfb3d1b8366c29591e0a65ea7 (diff)
platex (16apr17)
git-svn-id: svn://tug.org/texlive/trunk@43852 c570f23f-e606-0410-a88d-b1316a301751
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}