diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/reledmac/reledpar.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/reledmac/reledpar.sty | 45 |
1 files changed, 29 insertions, 16 deletions
diff --git a/Master/texmf-dist/tex/latex/reledmac/reledpar.sty b/Master/texmf-dist/tex/latex/reledmac/reledpar.sty index 65b0ad8f432..e2a5ffc3ec9 100644 --- a/Master/texmf-dist/tex/latex/reledmac/reledpar.sty +++ b/Master/texmf-dist/tex/latex/reledmac/reledpar.sty @@ -28,7 +28,7 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{reledpar}[2019/01/08 v2.22.1 reledmac extension for parallel texts]% +\ProvidesPackage{reledpar}[2019/01/22 v2.22.2 reledmac extension for parallel texts]% \RequirePackage{xspace}% \RequirePackage{xkeyval} @@ -1876,16 +1876,21 @@ \global\dimen\csuse{#1footins}=\maxdimen% }% {% - \global\count\csuse{#1footins}=\csuse{default@#1footins}% - \global\skip\csuse{#1footins}=\csuse{Xbeforenotes@#1}% - \bgroup% - \csuse{Xnotefontsize@#1}% - \global\dimen\csuse{#1footins}=\csuse{Xmaxhnotes@#1}% - \egroup% - \global\setnamebox{#1footins@kept}=\box\namebox{#1footins}% + \restore@Xnotes@settings{#1}% }% }% }% +\newcommand{\restore@Xnotes@settings}[1]{% + \unless\ifnocritical@ + \global\count\csuse{#1footins}=\csuse{default@#1footins}% + \global\skip\csuse{#1footins}=\csuse{Xbeforenotes@#1}% + \bgroup% + \csuse{Xnotefontsize@#1}% + \global\dimen\csuse{#1footins}=\csuse{Xmaxhnotes@#1}% + \egroup% + \global\setnamebox{#1footins@kept}=\box\namebox{#1footins}% + \fi +}% \newcommand\print@notesX@forpages[1]{% \ifcsempty{onlysideX@#1}{% \csuse{footstart#1}{#1}% @@ -1903,19 +1908,23 @@ \global\count\csuse{footins#1}=\z@% \global\skip\csuse{footins#1}=\z@% \global\dimen\csuse{footins#1}=\maxdimen% - }% {% - \global\count\csuse{footins#1}=\csuse{default@footins#1}% - \global\skip\csuse{footins#1}=\csuse{beforenotesX@#1}% - \bgroup% - \csuse{Xnotefontsize@#1}% - \global\dimen\csuse{footins#1}=\csuse{maxhnotesX@#1}% - \egroup% - \global\setnamebox{footins#1@kept}=\box\namebox{footins#1}% + \restore@notesX@settings{#1}% }% }% }% +\newcommand{\restore@notesX@settings}[1]{% + \unless\ifnofamiliar@ + \global\count\csuse{footins#1}=\csuse{default@footins#1}% + \global\skip\csuse{footins#1}=\csuse{beforenotesX@#1}% + \bgroup% + \csuse{Xnotefontsize@#1}% + \global\dimen\csuse{footins#1}=\csuse{maxhnotesX@#1}% + \egroup% + \global\setnamebox{footins#1@kept}=\box\namebox{footins#1}% + \fi +}% \newcommand{\insert@notes@for@onlyside}{% \def\do##1{% \unless\ifnocritical@% @@ -1925,6 +1934,7 @@ \unvnamebox{##1footins@kept}% \egroup% \fi% + \restore@Xnotes@settings{##1}% \fi% \unless\ifnofamiliar@% \ifvoid\csuse{footins##1@kept}\else% @@ -1933,6 +1943,7 @@ \unvnamebox{footins##1@kept}% \egroup% \fi% + \restore@notesX@settings{##1}% \fi% }% \dolistloop{\@series}% @@ -2918,6 +2929,8 @@ \ifnofamiliar@% \global\newnamebox{footins##1}% \fi + \restore@Xnotes@settings{##1}% + \restore@notesX@settings{##1}% \ifvoid\csuse{##1footins}% \ifvoid\csuse{footins##1}\else% \newpage\null% |