diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/reledmac/reledpar.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/reledmac/reledpar.sty | 49 |
1 files changed, 46 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/reledmac/reledpar.sty b/Master/texmf-dist/tex/latex/reledmac/reledpar.sty index 3833de76c31..438858dee0c 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/06 v2.7.1 reledmac extension for parallel texts]% +\ProvidesPackage{reledpar}[2016/03/23 v2.8.0 reledmac extension for parallel texts]% \RequirePackage{xspace}% \RequirePackage{xkeyval} @@ -59,6 +59,7 @@ }% \DeclareOptionX{parledgroup}{\parledgrouptrue} \DeclareOptionX{widthliketwocolumns}{\widthliketwocolumnstrue}% +\DeclareOptionX{continuousnumberingwithcolumns}{\continuousnumberingwithcolumnstrue}% \newif\ifsameparallelpagenumber \newif\ifprevpgnotnumbered \DeclareOptionX{sameparallelpagenumber}{\sameparallelpagenumbertrue} @@ -145,6 +146,7 @@ \global\sublines@false \global\let\next@page@numR\relax \global\let\sub@change\relax + \set@continuousnumberingforR% \message{Section \the\section@numR R }% \line@list@stuffR{\jobname.\extensionchars\the\section@numR R}% \l@dend@stuff @@ -229,6 +231,7 @@ \l@dend@stuff \begingroup% \initnumbering@sectcountR% + \set@continuousnumberingforR% \else \led@err@numberingShouldHaveStarted \endnumberingR @@ -288,6 +291,16 @@ \fi \fi \fi}} +\newcommand{\set@continuousnumberingforR}{% + \ifcontinuousnumberingwithcolumns% + \ifnum\line@numR<\line@num% + \expandafter\setlinenum\expandafter{\the\line@num}% + \fi% + \ifnum\last@page@num>\last@page@numR% + \global\last@page@numR=\last@page@num% + \fi% + \fi% +} \WithSuffix\newcommand\lineation*[1]{% \lineation{#1}% \lineationR{#1}% @@ -366,6 +379,8 @@ \sublinenumberstyle{#1}% \sublinenumberstyleR{#1}% }% +\newif\iflinenumberLevenifblank +\newif\iflinenumberRevenifblank \newcommand*{\leftlinenumR}{% \l@dlinenumR \kern\linenumsep} @@ -978,7 +993,19 @@ \global\advance\@donereallinesL\@ne% \global\advance\@donetotallinesL\@ne% \else% - \setbox\l@dleftbox \hb@xt@ \Lcolwidth{\hspace*{\Lcolwidth}}% + \iflinenumberLevenifblank + \new@lineL% + \l@demptyd@ta% + \getline@numL% + \affixline@num% + \setbox\l@dleftbox \hb@xt@ \Lcolwidth{% + \l@dld@ta %space kept for backward compatibility + \hspace*{\Lcolwidth}% + \ledrlfill\l@drd@ta% + }% + \else% + \setbox\l@dleftbox \hb@xt@ \Lcolwidth{\hspace*{\Lcolwidth}}% + \fi% \global\advance\@donetotallinesL\@ne% \fi% }% @@ -1037,6 +1064,8 @@ \newcommand*{\do@insidelineRhook}{} \newcommand*{\do@lineR}{% + \let\linenumrepL\linenumrep% + \let\sublinenumrepL\sublinenumrep% \let\linenumrep\linenumrepR% \let\sublinenumrep\sublinenumrepR% \letcs{\ifnumberpstart}{numberpstart@R\the\l@dpscR}% @@ -1074,10 +1103,24 @@ \global\advance\@donereallinesR\@ne% \global\advance\@donetotallinesR\@ne% \else% - \setbox\l@drightbox \hb@xt@ \Rcolwidth{\hspace*{\Rcolwidth}}% + \iflinenumberRevenifblank% + \new@lineR + \l@demptyd@ta% + \getline@numR% + \setbox\l@drightbox \hb@xt@ \Rcolwidth{% + \affixline@numR% + \l@dld@ta %space kept for backward compatibility + \hspace*{\Rcolwidth}% + \ledrlfill\l@drd@ta% + }% + \else% + \setbox\l@drightbox \hb@xt@ \Rcolwidth{\hspace*{\Rcolwidth}}% + \fi% \global\advance\@donetotallinesR\@ne% \fi% \ledRcol@false% + \let\linenumrep\linenumrepL% + \let\sublinenumrep\sublinenumrepL% } \def\print@lineR{% |