diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/reledmac/reledpar.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/reledmac/reledpar.sty | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/reledmac/reledpar.sty b/Master/texmf-dist/tex/latex/reledmac/reledpar.sty index 438858dee0c..15719b6d6d2 100644 --- a/Master/texmf-dist/tex/latex/reledmac/reledpar.sty +++ b/Master/texmf-dist/tex/latex/reledmac/reledpar.sty @@ -29,7 +29,7 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{reledpar}[2016/03/23 v2.8.0 reledmac extension for parallel texts]% +\ProvidesPackage{reledpar}[2016/05/08 v2.9.0 reledmac extension for parallel texts]% \RequirePackage{xspace}% \RequirePackage{xkeyval} @@ -122,6 +122,9 @@ Such behavior is deprecated.\MessageBreak% Use instead #1R or #1* in your preamble.}% } +\newcommand{\led@error@missing@numbering}[1]{% + \reledpar@error{Missing \string\pstart…\string\pend\space inside `#1` environment}{\@ehc}% +}% \newcount\section@numR \section@numR=\z@ \pst@rtedLfalse @@ -758,6 +761,9 @@ \let\old@startstanza\@startstanza \def\@startstanza[##1]{\global\instanzaLtrue\old@startstanza[##1]} }{ + \expandafter\ifvoid\csname l@dLcolrawbox1\endcsname% + \led@error@missing@numbering{Leftside}% + \fi% \Leftsidehookend} \newcommand*{\Leftsidehook}{} \newcommand*{\Leftsidehookend}{} @@ -785,6 +791,9 @@ \def\@startstanza[##1]{\global\instanzaRtrue\old@startstanza[##1]} }{% \ledRcolfalse + \expandafter\ifvoid\csname l@dRcolrawbox1\endcsname% + \led@error@missing@numbering{Rightside}% + \fi% \Rightsidehookend } @@ -1687,14 +1696,18 @@ \global\advance\stanza@count\@ne \@astanza@line}% \def\&{\@stopastanza}% - \pstart[#1]% + \ifboolexpr{not test{\ifdefvoid{\at@every@stanza}} and test{\ifstrempty{#1}}}% + {\pstart[\at@every@stanza]}% + {\pstart[#1]}% \@astanza@line \let\par\relax\ignorespaces%No paragraph in verses }{} \newcommandx{\@stopastanza}[1][1,usedefault]{% - \endlock\mbox{}% - \pend[#1]% + \endlock\mbox{}% + \ifboolexpr{not test{\ifdefvoid{\at@every@stop@stanza}} and test{\ifstrempty{#1}}}% + {\pend[\at@every@stop@stanza]}% + {\pend[#1]}% }% \newcommand*{\@astanza@line}{% \ifnum\value{stanzaindentsrepetition}=0 |