summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bxjaprnind
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-09-13 22:06:15 +0000
committerKarl Berry <karl@freefriends.org>2017-09-13 22:06:15 +0000
commitc15b52b518c7d48d1a35d11dd2ba8c34ca8ee373 (patch)
tree8c361f5c81e9ea582f2c70d8f17e6b949f879ef6 /Master/texmf-dist/tex/latex/bxjaprnind
parent9c81c7895426957aac1406ed821d52edb456f85b (diff)
bxjaprnind (14sep17)
git-svn-id: svn://tug.org/texlive/trunk@45291 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bxjaprnind')
-rw-r--r--Master/texmf-dist/tex/latex/bxjaprnind/bxjaprnind.sty31
1 files changed, 30 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/bxjaprnind/bxjaprnind.sty b/Master/texmf-dist/tex/latex/bxjaprnind/bxjaprnind.sty
index ac2b9028950..77196e842f1 100644
--- a/Master/texmf-dist/tex/latex/bxjaprnind/bxjaprnind.sty
+++ b/Master/texmf-dist/tex/latex/bxjaprnind/bxjaprnind.sty
@@ -3,7 +3,7 @@
%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{bxjaprnind}[2013/05/05 v0.3a]
+\ProvidesPackage{bxjaprnind}[2017/09/12 v0.3b]
\def\bxpi@pkgname{bxjaprnind}
\def\bxpi@error{\PackageError\bxpi@pkgname}
@@ -109,6 +109,8 @@
\newbool{bxpi@forceind}
%% \bxpi@choice
\let\bxpi@choice\relax
+%% \bxpi@special
+\let\bxpi@special\relax
%%<*> \useparheadparenindent
\bxNewrobustcmd*{\useparheadparenindent}{
@@ -165,6 +167,7 @@
\bxpi@prnindtrue
\bxpi@forceindfalse
\let\bxpi@choice=m
+ \let\bxpi@special\relax
\kernel@ifnextchar[{
\bxpi@prnind@a
}{%else
@@ -185,6 +188,7 @@
\bxpi@forceindfalse
\let\bxpi@choice=l
\let\bxpi@value\bxpi@linehead
+ \let\bxpi@special\relax
}
%% \bxpi@parse@arg{<str>}
@@ -234,6 +238,19 @@
\bxpi@forceindfalse
\let\bxpi@choice=p
\let\bxpi@value\bxpi@parhead
+ \let\bxpi@special\relax
+ \futurelet\bxpi@tok\bxpi@par@hook@a
+}
+\def\bxpi@par@hook@a{
+ \bxIfx{\bxpi@tok\special}{
+ \bxpi@par@hook@b
+ }{%else
+ \bxpi@paren@indent
+ }
+}
+\def\bxpi@par@hook@b#1#2{
+ \def\bxpi@special{#2}
+\bxDebug{special:#2}
\bxpi@paren@indent
}
@@ -250,6 +267,7 @@
\ifbool{bxpi@prnind}{
\futurelet\bxpi@tok\bxpi@prnindent@a
}{%else
+ \bxpi@put@special
\ignorespaces
}
}
@@ -262,6 +280,7 @@
}{\bxIfCharToken\bxpi@tok{
\bxpi@prnindent@b
}{%else
+ \bxpi@put@special
\ignorespaces
}}
}
@@ -280,6 +299,7 @@
\fi
\bxpi@prnindent@c
}
+ \bxpi@put@special
#1
}
\def\bxpi@prnindent@c{
@@ -292,6 +312,15 @@
\bxpi@inhibitglue
}
+%% \bxpi@put@special
+\def\bxpi@put@special{
+ \ifx\bxpi@special\relax\else
+\bxDebug{put-special:}
+ \special{\bxpi@special}
+ \let\bxpi@special\relax
+ \fi
+}
+
%% \bxpi@if@open@paren
\def\bxpi@if@open@paren#1{
\bxIfcsundef{bxpi@P/#1}