summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/reledmac
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-11-03 20:49:11 +0000
committerKarl Berry <karl@freefriends.org>2021-11-03 20:49:11 +0000
commit40863ee9fa462d3b0e292387fc2a9d2c2933c78e (patch)
treed50586e6f2150216279cd04b9e1bf3eb6885ae15 /Master/texmf-dist/source/latex/reledmac
parentd8d54b2f11fbd0b283af6c46782927b3f5778373 (diff)
reledmac (3nov21)
git-svn-id: svn://tug.org/texlive/trunk@60935 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/reledmac')
-rw-r--r--Master/texmf-dist/source/latex/reledmac/reledmac.dtx29
1 files changed, 27 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/latex/reledmac/reledmac.dtx b/Master/texmf-dist/source/latex/reledmac/reledmac.dtx
index 996dc980080..9009f1a2ae0 100644
--- a/Master/texmf-dist/source/latex/reledmac/reledmac.dtx
+++ b/Master/texmf-dist/source/latex/reledmac/reledmac.dtx
@@ -587,6 +587,8 @@
% \changes{v2.38.0}{2021/05/30}{Add \protect\cs{Xnopagenumberifcurrent} hook.}
% \changes{v2.38.0}{2021/05/30}{Add \protect\cs{Xbeforepagenumber} hook.}
% \changes{v2.38.1}{2021/09/27}{Fix incompatibility between \protect\parpackage's option \protect\option{continuousnumberingwithcolumns} and lineation by page.}
+% \changes{v2.38.2}{2021/11/03}{Fix bug when using \protect\cs{applabel} in conjunction with \protect\package{hyperref} package.}
+% \changes{v2.38.2}{2021/11/03}{Fix some trouble in indentation in stanza, when switching to some language with \protect\package{polyglossia}.}
% Typeset scholarly editions with \LaTeX\thanks{This file (\dtxfilename)
% has version number \fileversion, last revised \filedate.}}
%
@@ -4476,7 +4478,7 @@
% \begin{macrocode}
%<*code>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{reledmac}[2021/09/27 v2.38.1 typesetting critical editions]%
+\ProvidesPackage{reledmac}[2021/11/03 v2.38.2 typesetting critical editions]%
% \end{macrocode}
%
% \subsection{Package options}
@@ -8318,6 +8320,18 @@
\showlemma{#1}%
}%
% \end{macrocode}
+% If using \package{hyperref} package, we put the final hypertarget for \cs{applabel}.
+% \begin{macrocode}
+ \ifdef{\hypertarget}%
+ {%
+ \def\do##1{\Hy@raisedlink{\hypertarget{##1:end}{}}}%
+ \ifcsdef{applabel@thisedtext@\the\@edtext@level}{%
+ \dolistcsloop{applabel@thisedtext@\the\@edtext@level}%
+ \global\cslet{applabel@thisedtext@\the\@edtext@level}{\empty}%
+ }{}%
+ }%
+ {}%
+% \end{macrocode}
%
% Finally, we add any insertions that are
% associated with the \emph{end} of
@@ -9039,7 +9053,9 @@
\global\setbox\raw@text=\vbox\bgroup%
\if@nobreak%
\if@afterindent\else%
- \noindent%
+ \unless\ifinstanza%
+ \noindent%
+ \fi%
\global\@afterindenttrue%
\fi%
\fi%
@@ -16951,6 +16967,15 @@
% \begin{macrocode}
\@esphack%
% \end{macrocode}
+% If using \package{hyperref}, store the label in a list for the current edtext, to call later an hypertarget for the end of the lemma.
+% \begin{macrocode}
+ \ifdef{\hypertarget}%
+ {%
+ \ifcsundef{applabel@thisedtext@\the\@edtext@level}{\global\cslet{applabel@thisedtext@\the\@edtext@level}{\relax}}{}%
+ \listcsgadd{applabel@thisedtext@\the\@edtext@level}{#1}%
+ }%
+ {}%
+% \end{macrocode}
% Warning if \protect\cs{applabel} is called outside of \protect\cs{edtext}.
% \begin{macrocode}
\else%