summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/reledmac/reledpar.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-01-22 22:19:50 +0000
committerKarl Berry <karl@freefriends.org>2019-01-22 22:19:50 +0000
commitc8e8fe4cb53b2b726916ac8c976c6f9f41b8f6ea (patch)
treec94a51435dd1ce510a300c051feb11c2992268f4 /Master/texmf-dist/tex/latex/reledmac/reledpar.sty
parent515dfa25529631975742790e3c35b272f3ea42c8 (diff)
reledmac (22jan19)
git-svn-id: svn://tug.org/texlive/trunk@49792 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/reledmac/reledpar.sty')
-rw-r--r--Master/texmf-dist/tex/latex/reledmac/reledpar.sty45
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%