Skip to content

Commit

Permalink
plext.dtx: Add \leavevmode to \@@rensuji for yoko dir (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
aminophen committed Nov 6, 2016
1 parent c778a48 commit 2f009e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
11 changes: 8 additions & 3 deletions plext.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
% \changes{v1.2a}{2016/08/20}{\cs{parbox}$BA08e$NM>J,$J(B\cs{xkanjiskip}$B$r:o=|(B}
% \changes{v1.2a}{2016/08/20}{$B2#AH$G(B\texttt{<t>}$B$r;XDj$7$?>l9g$K(B
% \cs{@arstrutbox}$B$rM>7W$K(B\cs{hbox}$B$KF~$l$F$$$?$N$r=$@5(B}
% \changes{v1.2b}{2016/11/07}{$B2#AH$GCJMn$NF,$K(B\cs{rensuji}$B$r;H$($k(B
% $B$h$&$K(B\cs{leavevmode}$B$rDI2C$7$F=$@5(B}
% \fi
%
% \iffalse
Expand All @@ -43,7 +45,7 @@
\ProvidesFile{plext.dtx}
%</driver>
%<package>\ProvidesPackage{plext}
[2016/08/20 v1.2a pLaTeX package file (community edition)]
[2016/11/07 v1.2b pLaTeX package file (community edition)]
%<*driver>
\documentclass{jltxdoc}
\usepackage{plext}
Expand Down Expand Up @@ -1083,13 +1085,16 @@
% |\rensuji|$B$O!"(B|*|$B7A<0$+$I$&$+$rD4$Y$^$9!#(B
% |\@rensuji|$B$O!"0LCV%*%W%7%g%s$rD4$Y$^$9!#(B
% |\@@rensuji|$B$,(B|\rensuji|$B$NFbIt7A<0$G$9!#(B
% \changes{v1.2b}{2016/11/07}{$B2#AH$GCJMn$NF,$K(B\cs{rensuji}$B$r;H$($k(B
% $B$h$&$K(B\cs{leavevmode}$B$rDI2C$7$F=$@5(B}
% \begin{macrocode}
\DeclareRobustCommand\rensuji{%
\@ifstar{\not@advancelinetrue\@rensuji}{\@rensuji}}
\def\@rensuji{\@ifnextchar[{\@@rensuji}{\@@rensuji[c]}}
\def\@@rensuji[#1]#2{\ifydir\hbox{#2}\else
\hskip\rensujiskip
\def\@@rensuji[#1]#2{%
\ifvmode\leavevmode\fi
\ifydir\hbox{#2}\else
\hskip\rensujiskip
\ifnot@advanceline\not@advancelinefalse\else
\setbox\z@\hbox{\yoko#2}%
\@tempdima\ht\z@ \advance\@tempdima\dp\z@
Expand Down
7 changes: 4 additions & 3 deletions plext.sty
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
%% File: plext.dtx
\NeedsTeXFormat{pLaTeX2e}
\ProvidesPackage{plext}
[2016/08/20 v1.2a pLaTeX package file (community edition)]
[2016/11/07 v1.2b pLaTeX package file (community edition)]
\newif\if@rotsw
\def\array{\let\@acol\@arrayacol \let\@classz\@arrayclassz
\let\@classiv\@arrayclassiv
Expand Down Expand Up @@ -482,9 +482,10 @@
\DeclareRobustCommand\rensuji{%
\@ifstar{\not@advancelinetrue\@rensuji}{\@rensuji}}
\def\@rensuji{\@ifnextchar[{\@@rensuji}{\@@rensuji[c]}}
\def\@@rensuji[#1]#2{\ifydir\hbox{#2}\else
\hskip\rensujiskip
\def\@@rensuji[#1]#2{%
\ifvmode\leavevmode\fi
\ifydir\hbox{#2}\else
\hskip\rensujiskip
\ifnot@advanceline\not@advancelinefalse\else
\setbox\z@\hbox{\yoko#2}%
\@tempdima\ht\z@ \advance\@tempdima\dp\z@
Expand Down

0 comments on commit 2f009e9

Please sign in to comment.