summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-11-30 23:02:23 +0000
committerKarl Berry <karl@freefriends.org>2015-11-30 23:02:23 +0000
commit1c66f34431d8bca21785b67e55de3088093508fb (patch)
tree16ae747d3d254912af1a1da2de3e366f9d728e6a
parent775c98e0f724a659a785f096cab3fe88ad3e2929 (diff)
reledmac (30nov15)
git-svn-id: svn://tug.org/texlive/trunk@38985 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/README4
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/doc-include/migrate-mac.dtx5
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/doc-include/migrate-par.dtx2
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/1-criticalnotes.pdfbin17191 -> 17191 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/1-sidenotes.pdfbin20117 -> 20113 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/1-tabular.pdfbin20940 -> 20940 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/1-verses.pdfbin17415 -> 17412 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/2-cross_referencing.pdfbin18208 -> 18550 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/2-footnote_spacing.pdfbin20951 -> 20953 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/2-glossaries.pdfbin0 -> 21578 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/2-glossaries.tex45
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/2-indexing.pdfbin21553 -> 21720 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/2-lemma_disambigution.pdfbin17094 -> 17095 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/2-line_numbers_in_header.pdfbin31485 -> 31487 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/2-linespacing.pdfbin0 -> 26258 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/2-linespacing.tex42
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/2-notes-width.pdfbin0 -> 24744 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/2-notes-width.tex52
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/2-one_series_per_pstart.pdfbin25883 -> 25883 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/2-performances.pdfbin23085 -> 23081 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/2-titles_in_line_numbering_with_notes.pdfbin22801 -> 22796 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/2-titles_not_in_line_numbering.pdfbin17142 -> 17137 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_columns_different_languages.pdfbin26269 -> 26279 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_mwe.pdfbin12223 -> 12225 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_pages_different_languages_lualatex.pdfbin39708 -> 39708 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_same_page_number_in_both_side.pdfbin23216 -> 23217 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_advancedshifted-nomax.pdfbin35010 -> 35014 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_advancedshifted.pdfbin34745 -> 34748 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_default.pdfbin33296 -> 33304 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nomax-shifted.pdfbin34905 -> 34913 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nomax.pdfbin34474 -> 34471 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nosync.pdfbin34513 -> 34512 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_shifted.pdfbin34747 -> 34744 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_column_mix_with_not_column.pdfbin18430 -> 18435 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_columns_alignment.pdfbin21172 -> 21173 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_columns_titles_in_line_numbering_with_notes.pdfbin29658 -> 29660 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_one_series_per_pstart.pdfbin36503 -> 36504 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_page_titles_in_line_numbering_with_notes.pdfbin32607 -> 32604 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_long_notes.pdfbin59064 -> 59061 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_notes_leftpage.pdfbin22727 -> 22727 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_paragraph_separator_between.pdfbin18883 -> 18886 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_titles_not_in_line_numbering.pdfbin22222 -> 22222 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_verse_text_between.pdfbin16237 -> 16237 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/makefile7
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/migration.pdfbin84583 -> 25515 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/reledmac.pdfbin1072391 -> 1095233 bytes
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/reledpar.pdfbin441547 -> 443462 bytes
-rw-r--r--Master/texmf-dist/source/latex/reledmac/migration.dtx3
-rw-r--r--Master/texmf-dist/source/latex/reledmac/reledmac.dtx641
-rw-r--r--Master/texmf-dist/source/latex/reledmac/reledpar.dtx40
-rw-r--r--Master/texmf-dist/tex/latex/reledmac/reledmac.sty409
-rw-r--r--Master/texmf-dist/tex/latex/reledmac/reledpar.sty21
52 files changed, 996 insertions, 275 deletions
diff --git a/Master/texmf-dist/doc/latex/reledmac/README b/Master/texmf-dist/doc/latex/reledmac/README
index c16581a579a..278b44d7d04 100644
--- a/Master/texmf-dist/doc/latex/reledmac/README
+++ b/Master/texmf-dist/doc/latex/reledmac/README
@@ -107,8 +107,8 @@ please follow these rules:
- If your report is really a bug, Maïeul Rouquette will open a
"branch" to solve your problem. This branch will be called
"issueXXX", where "XXX" is the issue number.
-- Once the problem has a possible solution, Maïeul Rouquette will send
- you a zip file and ask you to test it:
+- Once the problem has a possible solution, Maïeul Rouquette will ask
+ you to test the new branch:
- Download the zip file of the branch (or, if you know Git, go to
the branch there):
- Go to [the project page](https://github.com/maieul/ledmac/).
diff --git a/Master/texmf-dist/doc/latex/reledmac/doc-include/migrate-mac.dtx b/Master/texmf-dist/doc/latex/reledmac/doc-include/migrate-mac.dtx
index 2f3253adf54..f4d1615633a 100644
--- a/Master/texmf-dist/doc/latex/reledmac/doc-include/migrate-mac.dtx
+++ b/Master/texmf-dist/doc/latex/reledmac/doc-include/migrate-mac.dtx
@@ -371,7 +371,7 @@
% \subsection{Migration to \reledmac~2.1.3}
% \Reledmac~2.1.3 fix an historical bug, (style in \ledmac~0.7!) which doubled the space before the rules of paragraphed familiar footnotes.
% Consequently, if you use paragraphed familiar footnotes, you should maybe adapt it, playing with \cs{beforenotesX}.
-% \subsection{Migration to \reledmac~2.3.0}\label{mac2.5.0migration}
+% \subsection{Migration to \reledmac~2.3.0}\label{mac2.3.0migration}
% Before \reledmac~2.3.0, for typesetting verse, any empty line was considered a paragraph inside verses. Counting empty lines this created breaking verse, hanging verses, and also added spurious vertical spaces.
% Version 2.3.0 disables paragraph in stanza. If you want vertical space, use optional argument of \cs{stanza} or \cs{endverse}.
% \subsection{Migration to \reledmac~2.4.0}
@@ -385,6 +385,9 @@
%
%
% It is strongly recommended to stop redefining \cs{fullstop} and to use \cs{Xsublinesep} instead.
+% \subsection{Migration to \reledmac~2.7.0}
+% \cs{SErefonlypage} (introduced in \reledmac~2.5.0) added an parenthesis after the page number. This was just an error, linked to a bad imitation of \cs{SErefwithpage}. That has been deleted. And so, the \cs{XendafterpagenumberSErefonlypage} to set it was also deleted.
%
+% \cs{rigidbalance} is split to two new commands: \cs{Xrigidbalance} for critical footnotes and \cs{rigidbalanceX} for familiar footnotes. If you have redefined it --- but why should you have ?---, you should split your single redefinition in two redefinitions.
%
%
diff --git a/Master/texmf-dist/doc/latex/reledmac/doc-include/migrate-par.dtx b/Master/texmf-dist/doc/latex/reledmac/doc-include/migrate-par.dtx
index 77ae2ca681d..49d56919f20 100644
--- a/Master/texmf-dist/doc/latex/reledmac/doc-include/migrate-par.dtx
+++ b/Master/texmf-dist/doc/latex/reledmac/doc-include/migrate-par.dtx
@@ -70,7 +70,7 @@
%
% We have tested and saw no problem with this correction, but if you see a difference in alignment between version 2.3.0 and 2.4.0, please contact us.
% \subsection{Migration to \reledpar~2.5.0}
-% If you use \cs{stanza} or \env{astanza} environment, please read \reff{reledmac-mac2.5.0migration}.
+% If you use \cs{stanza} or \env{astanza} environment, please read \reff*{reledmac-mac2.3.0migration}.
% \subsection{Migration to \reledpar~2.6.0}
% \cs{printlinenumR} was deleted. Use \cs{Xlineflag} instead.
% \subsection{Migration to \reledpar~2.6.1}
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/1-criticalnotes.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/1-criticalnotes.pdf
index a1cb5084a14..99668fa506e 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/1-criticalnotes.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/1-criticalnotes.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/1-sidenotes.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/1-sidenotes.pdf
index 69501865fd2..efdd15d6b99 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/1-sidenotes.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/1-sidenotes.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/1-tabular.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/1-tabular.pdf
index 434587c9295..a6dd038f325 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/1-tabular.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/1-tabular.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/1-verses.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/1-verses.pdf
index 18e25db5893..bda2c4de791 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/1-verses.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/1-verses.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-cross_referencing.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-cross_referencing.pdf
index 391ea7d04d4..22f35bca9ad 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/2-cross_referencing.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-cross_referencing.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-footnote_spacing.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-footnote_spacing.pdf
index 99b9198ab42..c6428c865c8 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/2-footnote_spacing.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-footnote_spacing.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-glossaries.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-glossaries.pdf
new file mode 100644
index 00000000000..41d1f5847e5
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-glossaries.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-glossaries.tex b/Master/texmf-dist/doc/latex/reledmac/examples/2-glossaries.tex
new file mode 100644
index 00000000000..8a16ffad38a
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-glossaries.tex
@@ -0,0 +1,45 @@
+\documentclass{article}
+\usepackage{polyglossia}
+\setotherlanguage{english}
+\setmainlanguage{italian}
+\usepackage{libertine}
+\usepackage[nocritical,noend,noeledsec,series={A},nofamiliar]{reledmac}
+
+\usepackage{glossaries}
+\glsSetCompositor{-}
+\makeglossaries
+\newglossaryentry{monistero}{name={monistero},description={monastero}}
+\newglossaryentry{magicien}{name={magicien},description={sorcier}}
+
+%
+\begin{document}
+
+\begin{english}
+\title{Glossaries}
+
+\maketitle
+\begin{abstract}
+This file provides example of using \emph{glossaries} package with \emph{reledmac} package.
+We use \verb+\edgls+ to add glossary entry referring to page and line number.
+
+Note the use of \verb+\glsSetCompositor+ in the preamble.
+\end{abstract}
+
+\end{english}
+
+\beginnumbering
+\pstart
+In queste nostre contrade fu, ed è ancora, un \edgls{monistero} di donne assai famoso di santità
+(il quale io non nomerò per non diminuire in parte alcuna la fama sua), nel quale, non ha gran
+tempo, non essendovi allora più che otto donne con una badessa, e tutte giovani, era un buono
+omicciuolo d'un loro bellissimo giardino ortolano, il quale, non contentandosi del salario, fatta la
+ragion sua col castaldo delle donne, a Lamporecchio, là ond'egli era, se ne tornò. Quivi, tra gli
+altri che lietamente il raccolsono, fu un giovane lavoratore forte e robusto e, secondo uom di villa,
+con bella persona e con viso assai piacevole, il cui nome era Masetto; e
+domandollo dove tanto tempo stato fosse. Il buono uomo, che Nuto avea nome,
+gliele disse. Il quale Masetto domandò, di che egli il monistero servisse. \edgls{magicien}
+\pend
+\endnumbering
+\printglossaries
+
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-indexing.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-indexing.pdf
index 99ad76a08c2..789563cc054 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/2-indexing.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-indexing.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-lemma_disambigution.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-lemma_disambigution.pdf
index 7bbbe0f2da7..38c55ef1ecc 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/2-lemma_disambigution.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-lemma_disambigution.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-line_numbers_in_header.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-line_numbers_in_header.pdf
index 559923098cc..c2731600058 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/2-line_numbers_in_header.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-line_numbers_in_header.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-linespacing.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-linespacing.pdf
new file mode 100644
index 00000000000..bb08696cde5
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-linespacing.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-linespacing.tex b/Master/texmf-dist/doc/latex/reledmac/examples/2-linespacing.tex
new file mode 100644
index 00000000000..fa23d6c39d5
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-linespacing.tex
@@ -0,0 +1,42 @@
+\documentclass[12pt]{article}
+\usepackage{polyglossia,fontspec,xunicode}
+\usepackage{libertineotf}
+\setmainlanguage{latin}
+\setotherlanguage{english}
+
+
+\usepackage{setspace}
+\AtBeginDocument{\doublespacing}
+\usepackage{lipsum}
+\usepackage[series={A,B},noend,noeledsec,nofamiliar,noledgroup]{reledmac}
+\Xarrangement[A]{paragraph}
+\Xarrangement[B]{twocol}
+\makeatletter
+ \Xbhooknote{\setstretch {\setspace@singlespace}}
+ \Xbhookgroup{\setstretch {\setspace@singlespace}}
+\makeatother
+
+
+\begin{document}
+
+\begin{english}
+\title{Line spacing}
+\maketitle
+\begin{abstract}
+This example sets the interline of footnotes with the \emph{setspace} package. The main text is double line spacing, the footnotes are single line spacing.
+
+It use the \verb+\Xbhooknote+ and \verb+\Xbhookgroup+ commands to call some space setting.
+Note that these commands are called after loading the \emph{setspace} package, because they use \emph{setspace} commands.
+
+We use \verb`\AtBeginDocument{\doublespacing}` to start doublespacing at the beginning of the \verb+document+ environment. We do not use the \verb+doublespacing+ option of the \emph{setspace} package, because it dirupts internal \emph{reledmac} computing.
+\end{abstract}
+\end{english}
+\beginnumbering
+\pstart
+\lipsum*[1]\edtext{Lipsum}{
+ \Afootnote{\lipsum*[3]}
+ \Bfootnote{\lipsum*[4]}}
+\lipsum*[6-7]
+\pend
+\endnumbering
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-notes-width.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-notes-width.pdf
new file mode 100644
index 00000000000..19efb64904e
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-notes-width.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-notes-width.tex b/Master/texmf-dist/doc/latex/reledmac/examples/2-notes-width.tex
new file mode 100644
index 00000000000..628a4530d47
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-notes-width.tex
@@ -0,0 +1,52 @@
+\documentclass[12pt]{article}
+\usepackage{lipsum}
+\usepackage{polyglossia}
+\usepackage{libertineotf}
+\usepackage[a4paper,textwidth=12cm]{geometry}
+\setmainlanguage{latin}
+\setotherlanguage{english}
+\usepackage[noend,noeledsec,noledgroup,series={A,B,C,D}]{reledmac}
+\Xarrangement[A]{paragraph}
+\Xarrangement[B]{twocol}
+\Xarrangement[C]{threecol}
+\arrangementX[A]{paragraph}
+\arrangementX[B]{twocol}
+\arrangementX[C]{threecol}
+\Xhsize{\columnwidth+\marginparsep+\ledrsnotewidth}
+\hsizeX{\columnwidth+\marginparsep+\ledrsnotewidth}
+\rightnoteupfalse
+
+\AtBeginDocument{%
+ \maxhnotesX{0.8\textheight}
+ \Xmaxhnotes{0.8\textheight}
+}
+\Xcolalign{\justifying}
+\colalignX{\justifying}
+\begin{document}
+
+\begin{english}
+\title{Setting footnotes width}
+\maketitle
+\begin{abstract}
+This example use \verb+maxhnotesX+ and \verb+Xmaxhnotes+ to set the width of familiar and critical footnotes. The width is set to \verb+\columnwidth+\marginparsep+\ledrsnotewidth+, that means footnotes go from the left of the text to the right of the sidenotes.
+\end{abstract}
+\end{english}
+\newpage
+\beginnumbering
+\pstart
+\edtext{Lorem}{
+ \Afootnote{A\lipsum*[1]}
+ \Bfootnote{B\lipsum*[2]}
+ \Cfootnote{C\lipsum*[3]}
+ \Dfootnote{D\lipsum*[4]}
+ }
+Dolor
+\ledsidenote{A long side note.}
+\lipsum*[1]
+\pend
+\newpage
+\pstart
+\lipsum*[2]\ledsidenote{A long side note.}\footnoteA{A\lipsum*[5]}\footnoteB{B\lipsum*[6]}\footnoteC{C\lipsum*[7]}\footnoteD{D\lipsum*[8]}
+\pend
+\endnumbering
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-one_series_per_pstart.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-one_series_per_pstart.pdf
index b0f2e6dc600..e13052581e8 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/2-one_series_per_pstart.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-one_series_per_pstart.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-performances.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-performances.pdf
index 250dc005053..2f9f44378eb 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/2-performances.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-performances.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-titles_in_line_numbering_with_notes.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-titles_in_line_numbering_with_notes.pdf
index b089bd9428a..b6157cc0257 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/2-titles_in_line_numbering_with_notes.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-titles_in_line_numbering_with_notes.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-titles_not_in_line_numbering.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-titles_not_in_line_numbering.pdf
index 0d06a40231d..3ec48fbb04e 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/2-titles_not_in_line_numbering.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-titles_not_in_line_numbering.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_columns_different_languages.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_columns_different_languages.pdf
index 01a05f9a747..76bbb884b74 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_columns_different_languages.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_columns_different_languages.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_mwe.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_mwe.pdf
index 1beb96ef730..bcee3c64ff8 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_mwe.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_mwe.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_pages_different_languages_lualatex.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_pages_different_languages_lualatex.pdf
index f73379f5a73..c4cdbff9745 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_pages_different_languages_lualatex.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_pages_different_languages_lualatex.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_same_page_number_in_both_side.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_same_page_number_in_both_side.pdf
index d1a7498678a..1c559dc1358 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_same_page_number_in_both_side.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_same_page_number_in_both_side.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_advancedshifted-nomax.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_advancedshifted-nomax.pdf
index d5a79e9b5b1..b86acebe579 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_advancedshifted-nomax.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_advancedshifted-nomax.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_advancedshifted.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_advancedshifted.pdf
index 75735b50edf..3a54a088c6c 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_advancedshifted.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_advancedshifted.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_default.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_default.pdf
index 05326079fa4..be3068a0ba5 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_default.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_default.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nomax-shifted.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nomax-shifted.pdf
index 0eebf31cca6..3bc81f08334 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nomax-shifted.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nomax-shifted.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nomax.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nomax.pdf
index fa266bab5a9..9dbc02ee879 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nomax.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nomax.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nosync.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nosync.pdf
index 02e6ccded45..0409f414c08 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nosync.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nosync.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_shifted.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_shifted.pdf
index 0bfeed11bc9..8338dd9d673 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_shifted.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_shifted.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_column_mix_with_not_column.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_column_mix_with_not_column.pdf
index 5b82230fd95..e1d8fa4c8c3 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_column_mix_with_not_column.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_column_mix_with_not_column.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_columns_alignment.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_columns_alignment.pdf
index 68668dd6b78..46e103029f7 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_columns_alignment.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_columns_alignment.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_columns_titles_in_line_numbering_with_notes.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_columns_titles_in_line_numbering_with_notes.pdf
index 563d6a6d4d3..4acff56a57f 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_columns_titles_in_line_numbering_with_notes.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_columns_titles_in_line_numbering_with_notes.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_one_series_per_pstart.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_one_series_per_pstart.pdf
index 876db947431..967f637bfd3 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_one_series_per_pstart.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_one_series_per_pstart.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_page_titles_in_line_numbering_with_notes.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_page_titles_in_line_numbering_with_notes.pdf
index dd19d97b286..58c67a6c236 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_page_titles_in_line_numbering_with_notes.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_page_titles_in_line_numbering_with_notes.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_long_notes.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_long_notes.pdf
index df1fb8709dd..3b425f5845b 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_long_notes.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_long_notes.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_notes_leftpage.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_notes_leftpage.pdf
index d8c270f5950..b502854ecba 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_notes_leftpage.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_notes_leftpage.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_paragraph_separator_between.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_paragraph_separator_between.pdf
index 263d9e71d5c..74e1516d445 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_paragraph_separator_between.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_paragraph_separator_between.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_titles_not_in_line_numbering.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_titles_not_in_line_numbering.pdf
index 7ffad7058df..e78913613fa 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_titles_not_in_line_numbering.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_titles_not_in_line_numbering.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_verse_text_between.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_verse_text_between.pdf
index 82d48beb8df..c570a0165f0 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_verse_text_between.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_verse_text_between.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/makefile b/Master/texmf-dist/doc/latex/reledmac/examples/makefile
index beda50c95f5..7719d8ee580 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/makefile
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/makefile
@@ -9,6 +9,13 @@ all:$(OBJ)
%.pdf: %.tex
latexmk $<
+2-glossaries.pdf: 2-glossaries.tex
+ xelatex 2-glossaries
+ xelatex 2-glossaries
+ xelatex 2-glossaries
+ makeglossaries 2-glossaries
+ xelatex 2-glossaries
+
3-reledpar_pages_different_languages_lualatex.pdf: 3-reledpar_pages_different_languages_lualatex.tex
lualatex $<
diff --git a/Master/texmf-dist/doc/latex/reledmac/migration.pdf b/Master/texmf-dist/doc/latex/reledmac/migration.pdf
index f704f37497e..8a5c8c5e645 100644
--- a/Master/texmf-dist/doc/latex/reledmac/migration.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/migration.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/reledmac.pdf b/Master/texmf-dist/doc/latex/reledmac/reledmac.pdf
index dd7ff738add..8baefa94b62 100644
--- a/Master/texmf-dist/doc/latex/reledmac/reledmac.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/reledmac.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/reledmac/reledpar.pdf b/Master/texmf-dist/doc/latex/reledmac/reledpar.pdf
index 6c61611e2b9..8c5375f8748 100644
--- a/Master/texmf-dist/doc/latex/reledmac/reledpar.pdf
+++ b/Master/texmf-dist/doc/latex/reledmac/reledpar.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/reledmac/migration.dtx b/Master/texmf-dist/source/latex/reledmac/migration.dtx
index 071c4634084..aa24268c20b 100644
--- a/Master/texmf-dist/source/latex/reledmac/migration.dtx
+++ b/Master/texmf-dist/source/latex/reledmac/migration.dtx
@@ -39,7 +39,7 @@
\renewcommand{\MakeUppercase}[1]{#1}
\pagestyle{headings}
\setcounter{StandardModuleDepth}{1}
-\usepackage{longtable}
+\usepackage{longtable,suffix}
\newcommand{\edmac}{\protect\package{edmac}\xspace}
\newcommand{\tabmac}{\protect\package{tabmac}\xspace}
@@ -117,6 +117,7 @@
%
% \section{For \macpackage}
% \newcommand{\reff}[1]{\ref{reledmac-#1} p.~\pageref{reledmac-#1}}
+% \WithSuffix\newcommand\reff*[1]{\ref{#1} p.~\pageref{#1}}
% \input{doc-include/migrate-mac.dtx}
% \renewcommand{\reff}[1]{\ref{reledpar-#1} p.~\pageref{reledpar-#1}}
% \section{For \parpackage}
diff --git a/Master/texmf-dist/source/latex/reledmac/reledmac.dtx b/Master/texmf-dist/source/latex/reledmac/reledmac.dtx
index 0c405ebefbf..a23bf8b641b 100644
--- a/Master/texmf-dist/source/latex/reledmac/reledmac.dtx
+++ b/Master/texmf-dist/source/latex/reledmac/reledmac.dtx
@@ -363,7 +363,19 @@
% \changes{v2.6.0}{2015/11/20}{Adds compatibility with \protect\option{innnote} and \protect\option{notenumber} options of \protect\package{indextools} package.}
% \changes{v2.6.0}{2015/11/20}{Fix bug with footnote counter in \protect\env{ledgroup} (added in v2.5.0).}
% \changes{v2.6.0}{2015/11/20}{Fix bug, introduced in v2.5.0, with footnote numbering in parallel typesetting when using \protect\package{perpage} package.}
-%
+% \changes{v2.7.0}{2015/11/29}{Warning for duplicate and undefined labels are parsable by latexmk}
+% \changes{v2.7.0}{2015/11/29}{Warning for duplicate labels does not send any more a false line and page number}
+% \changes{v2.7.0}{2015/11/29}{Fix bug with \protect\cs{SErefwithpage}.}
+% \changes{v2.7.0}{2015/11/29}{Fix (again) bugs with footnote numbering in parallel typesetting while using \protect\env{ledgroup} environments (bug added in v2.5.0).}
+% \changes{v2.7.0}{2015/11/29}{When using \protect\package{hyperref} package, add links for \protect\cs{SEref} and related, \protect\cs{appref} and related.}
+% \changes{v2.7.0}{2015/11/29}{When using \protect\package{hyperref} package, add links from critical footnotes and critical endnotes to the line of text they refers}
+% \changes{v2.7.0}{2015/11/29}{When using \protect\package{hyperref} package, add link in familiar footnotes between the footnote marks in the text and the footnote marks in the footnote}
+% \changes{v2.7.0}{2015/11/29}{Fix bugs in compatibility with \protect\option{innote} and \protect\option{notenumber} options of \protect\package{indextools} package, when indexing outside of a \protect\env{ledgroup}.}
+% \changes{v2.7.0}{2015/11/29}{New commands to make glossaries related to page and linenumber with the \protect\package{glossaries} package}
+% \changes{v2.7.0}{2015/11/29}{Add dash as default page range separator for \protect\cs{SEonlypage}}
+% \changes{v2.7.0}{2015/11/29}{Delete parenthesis after \protect\cs{SErefonlypage}.}
+% \changes{v2.7.0}{2015/11/29}{New setting commands: \protect\cs{setSErefonlypageprefixsingle} and \protect\cs{setSErefonlypageprefixmore}}
+% \changes{v2.7.0}{2015/11/29}{Debug \protect\cs{SErefonlypage} when referring to only one page.}
%
% \title{\Macpackage \\
% Typeset scholarly editions with \LaTeX\thanks{This file (\dtxfilename)
@@ -647,7 +659,7 @@
% \item[nocritical] disables tools for critical footnotes (\protect\cs{Afootnote}, \protect\cs{Bfootnote} etc.). If you do not need critical footnotes, this option lets \eledmac\ run faster.
% It will also preserve room for other packages.
% \item[noeledsec] disables tools for \protect\cs{eledsection} and related commands (\reff{eledsection}).
-% \item[noend] disables tools for endnotes (\protect\cs{Aendnote}, \protect\cs{Bendnote} etc.). If you do not need endnotes, this option lets \eledmac\ run faster.
+% \item[noend] disables tools for endnotes (\protect\cs{Aendnote}, \protect\cs{Bendnote} etc.). If you do not need endnotes, this option lets \macpackage\ run faster.
% It will also preserve room for other packages.
% \item[nofamiliar] disables tools for familiar footnotes (\protect\cs{footnoteA}, \protect\cs{footnoteB} etc.). If you do not need familiar footnotes, this option lets \eledmac\ run faster.
% It will also preserve room for other packages.
@@ -1574,11 +1586,10 @@
% the page if these macros use the wrong
% values.
%
-% Note that you \emph{cannot} use paragraphs (e.g. blank lines or
+% \label{nobreaks}Note that you \emph{cannot} use paragraphs (e.g. blank lines or
% \cs{par}) or line breaks (\cs{break} or \cs{linebreak} or \cs{newline} etc.)
% inside of notes, when they are
-% set to \texttt{paragraph} arrangement!\footnote{See \reff{nobreak} for
-% further information.}
+% set to \texttt{paragraph} arrangement!
%
% The notes arrangement must be called after having defined the document geometry setting.
% If you must change geometry setting inside your document, do not forget to call note arrangement again.
@@ -1888,7 +1899,15 @@
% \DescribeMacro{\Xendlemmadisablefontselection}
% By default, font of the lemma in endnote is the same as font of the lemma in the main text. For example, if the lemma is in italic in the main text, it is also in italic in note. The command allows \protect\cs{Xendlemmadisablefontselection}\oarg{s} to disable it for a specific series.
%
-%
+
+% \changes{v2.7.0}{2015/11/29}{New hooks: \protect\cs{Xlemmafont} and \protect\cs{Xendlemmafont}}
+% \DescribeMacro{\Xlemmafont}\DescribeMacro{\Xendlemmafont}
+% Use \cs{Xlemmafont}\oarg{s}\meta{cmd} to apply a \TeX\ font command to the lemma.
+%For example, to have boldface lemma:
+% \begin{verbatim}
+%\Xlemmafont{\bfseries}
+% \end{verbatim}
+% \cs{Xendlemmafont}\meta{arg}\meta{cmd} is the same for endnotes.
% \subsubsection{For all notes}
% \DescribeMacro{\Xnotefontsize}
% \protect\cs{Xnotefontsize}\oarg{s}\marg{command} is used to define the font size of critical footnotes of the series. The default value is \protect\cs{footnotesize}.
@@ -1962,25 +1981,25 @@
% \item[\protect\cs{Centering}] to have text centered \emph{with hyphenation} (requires \package{ragged2e}).
% \end{description}
%
-% \subsubsection{Size of the columns}
+% \subsubsection{Size of the columns}\label{hsizecols}
% For the following four macros, be careful that the columns are made from right to left.
%
% \DescribeMacro{\Xhsizetwocol}
-% \protect\cs{Xhsizetwocol}\oarg{s}\marg{l} is used to change width of a column when critical notes are displaying in two columns. Defaut value is \verb+.45 \hsize+.
+% \protect\cs{Xhsizetwocol}\oarg{s}\marg{l} is used to change width of a column when critical notes are displaying in two columns. Default value is \verb+.45 \hsize+.
%
% \DescribeMacro{\Xhsizethreecol}
-% \protect\cs{Xhsizethreecol}\oarg{s}\marg{l} is used to change width of a column when critical notes are displaying in three columns. Defaut value is \verb+.3 \hsize+.
+% \protect\cs{Xhsizethreecol}\oarg{s}\marg{l} is used to change width of a column when critical notes are displaying in three columns. Default value is \verb+.3 \hsize+.
%
% \DescribeMacro{\hsizetwocolX}
-% \protect\cs{hsizetwocolX}\oarg{s}\marg{l} is used to change width of a column when familiar notes are displaying in two columns. Defaut value is \verb+.45 \hsize+.
+% \protect\cs{hsizetwocolX}\oarg{s}\marg{l} is used to change width of a column when familiar notes are displaying in two columns. Default value is \verb+.45 \hsize+.
%
% \DescribeMacro{\hsizethreecolX}
-% \protect\cs{hsizethreecolX}\oarg{s}\marg{l} is used to change width of a column when familiar notes are displaying in three columns. Defaut value is \verb+.3 \hsize+.
+% \protect\cs{hsizethreecolX}\oarg{s}\marg{l} is used to change width of a column when familiar notes are displaying in three columns. Default value is \verb+.3 \hsize+.
%
% \subsection{Options for paragraphed footnotes}
% \subsubsection{Mark separation of notes}
% \DescribeMacro{\Xafternote} \DescribeMacro{\afternoteX}
-% You can add some space after a note by using \protect\cs{Xafternote}\oarg{s}\marg{l} (for critical footnotes) or \protect\cs{afternoteX}\oarg{s}\marg{l} (for familiar footnotes). The default value is \verb|1em plus.4em minus.4em|.
+% You can add some horizontal space after a note by using \protect\cs{Xafternote}\oarg{s}\marg{l} (for critical footnotes) or \protect\cs{afternoteX}\oarg{s}\marg{l} (for familiar footnotes). The default value is \verb|1em plus.4em minus.4em|.
%
% \DescribeMacro{\Xparafootsep}\DescribeMacro{\parafootsepX}
% For paragraphed footnotes (see below), you can choose the separator between each note by using \protect\cs{Xparafootsep}\oarg{s}\marg{text} for critical notes and \protect\cs{parafootsepX} for familiar notes.
@@ -2005,8 +2024,8 @@
% You can add text before critical notes with \protect\cs{Xtxtbeforenotes}\oarg{s}\marg{text}.
%
% \subsubsection{Code before notes}
-%\DescribeMacro{Xbhookgroup}
-%\DescribeMacro{bhookgroupX}
+%\DescribeMacro{\Xbhookgroup}
+%\DescribeMacro{\bhookgroupX}
% While \cs{Xtxtbeforenotes} is for typesetting code before notes, \cs{Xbhookgroup} and \cs{bhookgroupX} (respectively for critical and familiar) are for executing code before a groups of notes, between the rules and the printing of the notes.
%
%
@@ -2060,20 +2079,38 @@
% \DescribeMacro{\maxhnotesX}
% \protect\cs{maxhnotesX}\oarg{s}\marg{l} is the same as previous, but for familiar footnotes.
%
-% Note that in many cases, you should call these commands, because the \cs{vsize} in the preamble is not the same as \cs{vsize} after the preamble.
+% Note that in many cases, you should call these commands in the begin of the document, because the \cs{vsize} in the preamble is not the same as \cs{vsize} after the preamble.
% That why we recommend to you to add in your preamble
% \begin{verbatim}
-% \maxhnotesX{0.8\textheight}
-% \Xmaxhnotes{0.8\textheight}
+% \AtBeginDocument{
+% \maxhnotesX{0.8\textheight}
+% \Xmaxhnotes{0.8\textheight}
+% }
% \end{verbatim}
%
% Be careful with the two previous commands.
% Actually, for technical purposes, one paragraphed note is considered as one block.
% Consequently, it cannot be broken between two pages, even if you used these commands.
% The debug is in the todolist.
+% \subsubsection{Width}
+% \DescribeMacro{\Xhsize}
+% \DescribeMacro{\hsizeX}
+% \cs{Xhsize}\oarg{s}\marg{l} sets the total width of critical footnote.
+% \cs{hsizeX}\oarg{s}\marg{l} does the same for familiar footnotes.
+%
+% \meta{l} can be a length expression, parsable with \cs{dimexpr}.
+% For example:
+% \begin{verbatim}
+%\Xhsize{\columnwidth+\marginparsep+\ledrsnotewidth}
+%\hsizeX{\columnwidth+\marginparsep+\ledrsnotewidth}
+% \end{verbatim}
+%
+% Note that changes the with of the block of notes.
+% If you want to change the width of each column when typesetting notes in columns, use \cs{Xhsizetwocol}, \cs{Xhsizethreecol}, \cs{hsizetwocolX}, \cs{hsizethreecolX}, see \reff{hsizecols}.
+%
% \subsection{Footnotes and the \parpackage columns}
% \changes{v1.13.0}{2014/09/16}{Add \protect\cs{Xnoteswidthliketwocolumns} and \protect\cs{noteswidthliketwocolumnsX}}
-% \DescribeMacro{Xnoteswidthliketwocolumns}\DescribeMacro{noteswidthliketwocolumnsX}
+% \DescribeMacro{\Xnoteswidthliketwocolumns}\DescribeMacro{\noteswidthliketwocolumnsX}
% If you use \parpackage\ \protect\cs{columns} macro, you can call :
% \begin{itemize}
% \item \protect\cs{Xnoteswidthliketwocolumns}\oarg{s} to create critical notes with a two-column size width. Use \protect\cs{Xnoteswidthliketwocolumns}\oarg{s}\verb+[false]+ to disable it.
@@ -2562,8 +2599,22 @@
%
% \DescribeMacro{\setSErefprefixsingle}\DescribeMacro{setSErefprefixmore}
% \cs{setSErefprefixsingle} and \cs{setSErefprefixmore} are similar for \cs{SEref} command.
-%
-% \paragraph{Linked to setting of critical endnotes and footnotes}
+%
+% \DescribeMacro{\setSErefonlypageprefixsingle}
+% \DescribeMacro{\setSErefonlypageprefixmore}
+% Use \cs{setSErefonlypageprefixsingle}\marg{prefix} to set the page prefix for \cs{SErefonlypage} when there is only one page.
+% Use \cs{setSErefonlypageprefixmore}\marg{prefix} to set it when there is more than one page.
+% For example:
+% \begin{verbatim}
+% \setSErefonlypageprefixsingle{p.~}
+% \setSErefonlypageprefixmore{pp.~}
+% \end{verbatim}
+% Note that if you do not use \cs{setSErefonlypageprefixmore}, the value of \cs{setSErefonlypageprefixsingle} is used instead.
+%
+%
+% \textbf{Also note that \cs{setSErefonlypageprefixsingle} is only a shortcut for \cs{XendbeforepagenumberSErefonlypage} (see \reff{crossrefsetting:linked}).
+% So if you use \cs{Xendbeforepagenumber} without any optional argument, it will override this setting.}
+% \paragraph{Linked to setting of critical endnotes and footnotes}\label{crossrefsetting:linked}
% Some commands who set the appearance of line numbers in critical footnotes also set the appearance of line numbers in \cs{appref} and \cs{SEref} if you call them \emph{without the optional series argument}.
%
% These commandes are the following:
@@ -2582,7 +2633,7 @@
%
% The same principle is available for \cs{apprefwithpage}, \cs{SErefwithpage} and \cs{SErefonlypage} with the following commands:
% \begin{itemize}
-% \item\cs{Xendafterpagenumber}
+% \item\cs{Xendafterpagenumber} (not for \cs{SErefonlypage})
% \item\cs{Xendbeforepagenumber}
% \item\cs{Xendlineflag} (for \parpackage), enabled by default.
% \item\cs{Xendlineprefixmore}
@@ -2714,7 +2765,7 @@
% \end{verbatim}
%
% \subsection{Separator between page and line numbers}
-% \DescribeMacro{\pagelinesep}
+% \DescribeMacro{\pagelinesep}\label{pagelinesep}
% The page \& linenumber combination is written as |page\pagelinesep line|,
% where the default definition is |\newcommand{\pagelinesep}{-}| so that
% an item on page 3, line 5 will be noted as being at |3-5|. You can
@@ -2726,7 +2777,7 @@
% Consequently, if you want to use an other \protect\cs{pagelinesep}, you have to configure your \verb+.ist+ index style file. For example if you use \verb+:+ as separator\footnote{For further detail, you can read \url{http://tex.stackexchange.com/a/32783/7712}.}.
% \begin{verbatim}
% page_compositor ":"
-% delim_r ":
+% delim_r ":"
% \end{verbatim}
%
% Read the \textsc{MakeIndex} program's handbook about the \verb+.ist+ file.
@@ -2770,6 +2821,23 @@
% (\protect\cs{edindex}'s labels are like \protect\cs{label}\verb|{$&27}|).
% You can change \protect\cs{edindexlab} to something else if you need to.
%
+% \section{Glossary}
+% \Macpackage provides mechanism to make glossaries with the \package{glossaries} package, refering not to the page, but to the page and line.
+% \subsection{Prealable setting}
+% The standard compositor between page and line number in \macpackage is a dash, while \package{glossaries} use, in standard, a dot.
+% Consequently, you must:
+% \begin{itemize}
+% \item Or set .
+% \package{glossaries}:\\ \verb+\glsSetCompositor{-}+
+% \item Or set \reledmac:\\ \verb+\renewcommand{\pagelinesep}{-}+\\
+% In this case, the will have consequences on your use of \cs{edindex}, and you should set your \verb+.ist+ file (\reff{\pagelinesep}).
+%
+% \end{itemize}
+% \subsection{Commands}
+% The \cs{gls}, \cs{Gls}, and related commands of \package{glossaries} packages have a prefixed version with \verb+ed+, which refers to the page line.
+% The argument are the same as for the standard commands.
+% So for example:\\
+% \cs{edgls}\oarg{options}\marg{label}\oarg{insert}
% \section{Tabular material}
%
% \LaTeX's normal |tabular| and |array| environments cannot be used where
@@ -3083,7 +3151,7 @@
% For technical reasons, the page break before \protect\cs{elechapter} cannot be added automatically.
% You have to insert it manually via \protect\cs{beforeeledchapter}, which must be called outside of a numbered section.
%
-% \subsection{Optimization}
+% \subsection{Optimization}\label{optimize}
% \DescribeMacro{\noeledsec}
% If you are not going to have any \protect\cs{eledxxx} commands, then load \macpackage with \protect\cs{noeledsec} option.
% That will suppress the generation of unneeded \file{.eledsec} files, save memory, and make \macpackage run faster.
@@ -3165,7 +3233,7 @@
%
%
% \subsection{Known and suspected limitations}
-% \subsection{`No room for a new'}\label{noroom}
+% \subsubsection{`No room for a new'}\label{noroom}
% Sometime, especially when using \macpackage with other packages, you could obtain warning message such 'no room for a new count' or 'no room for a new write'.
%
% The first thing in order to prevent such problem is to use the options to optimize \macpackage.
@@ -3185,7 +3253,7 @@
%
% If after reading and applying these advices you have still problem, contact us with a minimal working example.
%
-% \subsection{Marginal notes}
+% \subsubsection{Marginal notes}
% In general, \macpackage's system for adding marginal line numbers
% breaks anything that makes direct use of the \LaTeX\ insert system,
% which includes marginpars, footnotes and floats.
@@ -3195,7 +3263,7 @@
% will throw away its contents and send a warning message to the terminal
% and log file, but will do no harm.
%
-% \subsection{Paragraph shape}
+% \subsubsection{Paragraph shape}
% \protect\cs{parshape} cannot be used within numbered text, except in a
% very restricted way.
%
@@ -3215,7 +3283,7 @@
% or some such figure, and with any
% luck the page breaks will settle down. Luckily, this problem
% does not crop up at all often.
-% \subsection{Paragraphed footnotes}\label{paragraphednotes:advanced}
+% \subsubsection{Paragraphed footnotes}\label{paragraphednotes:advanced}
% The restriction on explicit line-breaking in paragraphed footnotes,
% mentioned in a footnote \reff{nobreaks}, and
% described in more detail on \reff{nobreaks-detail}, really is a
@@ -3231,14 +3299,14 @@
% run off the bottom of the text block. \protect\cs{footfudgefiddle} can be increased
% from its default 64 (say, to 68) to increase the estimate. You have to use
% \protect\cs{renewcommand} for this, like: \\
-% \verb?\renewcommand{\footfudgefiddle}{68}?
+% \verb?\renewcommand{\footfudgefiddle}{68}?\\
% Note that you must call it \emph{before} \cs{Xarrangement}\arg{paragraph} or \cs{arrangementX}\arg{paragraph}.
%
% Any settings to `geometry' must be made before \cs{Xarrangement} / \cs{arrangementX}.
%
% Finally, in many cases you should use \cs{Xmaxhnotes} and / or \cs{maxhnotesX} (\reff{Xmaxhnotes}), in order to define the maximum height relative to \cs{textheight} and not to \cs{vsize}, because the \cs{vsize} value is not the same inside and outside of the preamble.
%
-% \subsection{Use with other packages}
+% \subsubsection{Use with other packages}
%
% Because of \macpackage's complexity, it may not play well with other
% packages. In particular \macpackage is sensitive to commands in the
@@ -3299,7 +3367,7 @@
% you must load this package \emph{before} the \macpackage package.
%
-% \subsection{Parallel typesetting}\label{eledpar}
+% \subsubsection{Parallel typesetting}\label{eledpar}
%
%
% Peter Wilson has developed the \ledpar package
@@ -3392,7 +3460,7 @@
% \begin{macrocode}
%<*code>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{reledmac}[2015/11/20 v2.6.0 typeset critical edition]%
+\ProvidesPackage{reledmac}[2015/11/29 v2.7.0 typeset critical edition]%
% \end{macrocode}
%
% \subsection{Package options}
@@ -3545,8 +3613,12 @@
% \end{macrocode}
% \end{macro}
-%
-%
+% \begin{macro}{\if@ledgroup}
+% Flag set to true inside a \env{ledgroup} environment.
+% \begin{macrocode}
+\newif\if@ledgroup%
+% \end{macrocode}
+% \end{macro}
% \begin{macro}{\ifl@imakeidx}
% Define a flag for if the \protect\package{imakeidx} package has been used.
% \begin{macrocode}
@@ -3746,13 +3818,18 @@
% \begin{macro}{\led@warn@RefUndefined}
% \begin{macrocode}
\newcommand*{\led@warn@DuplicateLabel}[1]{%
- \reledmac@warning{Duplicate definition of label `#1' on page \the\pageno.}}
+ \reledmac@warning{Duplicate definition of label `#1'\@gobble}%
+ \@latex@warning@no@line{Label `#1' multiply defined}%
+}%
\newcommand*{\led@warn@AppLabelOutEdtext}[1]{%
\reledmac@warning{\string\applabel\space outside of \string\edtext\space `#1' on page \the\pageno.}}%
\newcommand*{\led@warn@RefUndefined}[1]{%
\G@refundefinedtrue%
- \reledmac@warning{Reference `#1' on page \the\pageno\space undefined.
- Using `000'.}}
+ \reledmac@warning{Reference `#1' on page \the\pageno\space undefined.%
+ Using `000'.}%
+ \@latex@warning{Reference `#1' on page \thepage \space%
+ undefined}%
+}%
\newcommand*{\led@warn@pairRefUndefined}[1]{%
\G@refundefinedtrue%
\reledmac@warning{Reference `#1:start' and/or `#1:end' on page \the\pageno\space undefined.
@@ -6419,6 +6496,14 @@
% \changes{v1.16.0}{2014/01/23}{\protect\cs{edtext} is now defined only in \eledmac, not in \eledpar. Debug wrong numbering when using \protect\cs{sameword} + \protect\package{eledpar} + \protect\cs{tag} command.}
%
%
+% \begin{macro}{\theedtext}
+% The \verb+edtext+ counter is increased at each \cs{edtext} command.
+% It is used to add to insert hyperlinks between a notes and the lemma.
+% \begin{macrocode}
+\newcounter{edtext}
+\renewcommand{\theedtext}{edtxt@\arabic{edtext}}%
+% \end{macrocode}
+% \end{macro}
% \begin{macro}{\edtext}
% \changes{v0.4.0}{2004/02/29}{Added \protect\cs{showlemma} to \protect\cs{edtext}}
% \changes{v1.4.0}{2012/11/16}{Compatibility of \protect\cs{edtext} with the right-to-left direction (with Polyglossia).}
@@ -6432,10 +6517,14 @@
% \begin{macrocode}
\ifnumberedpar@%
% \end{macrocode}
-% We increase the \protect\cs{@edtext@} counter to know in which level of \protect\cs{edtext} we are.
+% We increase the \cs{@edtext@level} \TeX\ counter to know in which level of \protect\cs{edtext} we are.
% \begin{macrocode}
\global\advance\@edtext@level by 1%
% \end{macrocode}
+% We also increase the \verb+edtext+ \LaTeX\ counter to insert hypertarget if the \package{hyperref} package is loaded.
+% \begin{macrocode}
+ \stepcounter{edtext}%
+% \end{macrocode}
% By default, we do not use \protect\cs{lemma}
% \begin{macrocode}
\global\@lemmacommand@false%
@@ -6446,19 +6535,13 @@
% We get the next series of samewords data in the list of samewords data for the current edtext level. We push them inside \protect\cs{sw@inthisedtext}.
% \begin{macrocode}
\ifledRcol%
- \ifcsundef{sw@list@edtextR@\the\@edtext@level}%
+ \ifcsvoid{sw@list@edtextR@\the\@edtext@level}%
{\global\let\sw@inthisedtext\empty}%
- {\ifcsempty{sw@list@edtextR@\the\@edtext@level}%
- {\global\let\sw@inthisedtext\empty}%
- {\expandafter\gl@p\csname sw@list@edtextR@\the\@edtext@level\endcsname\to\sw@inthisedtext}%
- }%
+ {\expandafter\gl@p\csname sw@list@edtextR@\the\@edtext@level\endcsname\to\sw@inthisedtext}%
\else%
- \ifcsundef{sw@list@edtext@\the\@edtext@level}%
+ \ifcsvoid{sw@list@edtext@\the\@edtext@level}%
{\global\let\sw@inthisedtext\empty}%
- {\ifcsempty{sw@list@edtext@\the\@edtext@level}%
- {\global\let\sw@inthisedtext\empty}%
- {\expandafter\gl@p\csname sw@list@edtext@\the\@edtext@level\endcsname\to\sw@inthisedtext}%
- }%
+ {\expandafter\gl@p\csname sw@list@edtext@\the\@edtext@level\endcsname\to\sw@inthisedtext}%
\fi%
% \end{macrocode}
% \begin{macro}{\@tag}
@@ -6534,7 +6617,16 @@
% commands within that expansion.
% \begin{macrocode}
\endgroup%
- \showlemma{#1}%
+ \ifdef{\hypertarget}%
+ {%
+ \csedef{thisedtext@\the\@edtext@level}{\theedtext}%
+ \Hy@raisedlink{\hypertarget{\csuse{thisedtext@\the\@edtext@level}:start}{}}%
+ \showlemma{#1}%
+ \Hy@raisedlink{\hypertarget{\csuse{thisedtext@\the\@edtext@level}:end}{}}%
+ }%
+ {%
+ \showlemma{#1}%
+ }%
% \end{macrocode}
%
% Finally, we add any insertions that are
@@ -8481,6 +8573,7 @@
% \begin{macrocode}
\notbool{parapparatus@}{\newcommand*}{\newcommand}{\normalvfootnote}[2]{%
\insert\csname #1footins\endcsname\bgroup
+ \hsize=\expandafter\dimexpr\csuse{Xhsize@#1}\relax%
\noindent\csuse{Xbhooknote@#1}%
\csuse{Xnotefontsize@#1}%
\footsplitskips
@@ -8532,7 +8625,10 @@
\hangindent=\csuse{Xhangindent@#4}
\everypar{\hangindent=\csuse{Xhangindent@#4}}%
\strut{\printlinefootnote{#1}{#4}}%
- {\nottoggle{Xlemmadisablefontselection@#4}{\select@lemmafont#1|#2}{#2}}%
+ {\nottoggle{Xlemmadisablefontselection@#4}%
+ {\select@lemmafont#1|{\csuse{Xlemmafont@#4}#2}}%
+ {{\csuse{Xlemmafont@#4}#2}}%
+ }%
\iftoggle{nosep@}{\hskip\csuse{Xinplaceoflemmaseparator@#4}}{\ifcsempty{Xlemmaseparator@#4}%
{\hskip\csuse{Xinplaceoflemmaseparator@#4}}%
{\nobreak\hskip\csuse{Xbeforelemmaseparator@#4}\csuse{Xlemmaseparator@#4}\hskip\csuse{Xafterlemmaseparator@#4}\relax%
@@ -8731,6 +8827,9 @@
% \begin{macrocode}
\newcommand*{\para@footsetup}[1]{{\csuse{Xbhookgroup@#1}\csuse{Xnotefontsize@#1}
\setXnoteswidthliketwocolumns@{#1}%
+ \ifcsempty{Xhsize@#1}%
+ {}%
+ {\columnwidth=\expandafter\dimexpr\csuse{Xhsize@#1}\relax}%
\dimen0=\baselineskip
\multiply\dimen0 by 1024
\divide \dimen0 by \columnwidth \multiply\dimen0 by \footfudgefiddle\relax
@@ -8955,7 +9054,10 @@
\Xinsertparafootsep{#4}%
\ledsetnormalparstuff@common%
\printlinefootnote{#1}{#4}%
- {\nottoggle{Xlemmadisablefontselection@#4}{\select@lemmafont#1|#2}{#2}}%
+ {\nottoggle{Xlemmadisablefontselection@#4}%
+ {\select@lemmafont#1|{\csuse{Xlemmafont@#4}#2}}%
+ {{\csuse{Xlemmafont@#4}#2}}%
+ }%
\iftoggle{nosep@}{\hskip\csuse{Xinplaceoflemmaseparator@#4}}{\ifcsempty{Xlemmaseparator@#4}%
{\hskip\csuse{Xinplaceoflemmaseparator@#4}}%
{\nobreak\hskip\csuse{Xbeforelemmaseparator@#4}\csuse{Xlemmaseparator@#4}\hskip\csuse{Xafterlemmaseparator@#4}%
@@ -8980,6 +9082,7 @@
% note series letter.
% \begin{macrocode}
\newcommand*{\parafootgroup}[1]{%
+ \hsize=\expandafter\dimexpr\csuse{Xhsize@#1}\relax%
\unvbox\csname #1footins\endcsname
\ifcsstring{Xragged@#1}{L}{\RaggedLeft}{}%
\ifcsstring{Xragged@#1}{R}{\RaggedRight}{}%
@@ -9075,6 +9178,8 @@
%
% \paragraph{Common tools}
% \begin{macro}{\rigidbalance}
+% \begin{macro}{\rigidbalanceX}
+% \begin{macro}{\Xrigidbalance}
% \begin{macro}{\dosplits}
% \begin{macro}{\splitoff}
% \begin{macro}{\@h}
@@ -9091,9 +9196,23 @@
%
% The \LaTeX\ \protect\cs{line} macro has no relationship to the
% TeX \protect\cs{line}. The \LaTeX\ equivalent is \protect\cs{@@line}.
+% \changes{v2.7.0}{2015/11/29}{\protect\cs{rigidbalance} is split to \protect\cs{Xrigidbalance} and \protect\cs{rigidbalanceX}.}
+%
+% We do not call directly \cs{rigidbalance}, but we call \cs{Xrigidbalance} for critical notes and \cs{rigidbalanceX} for familiar notes. Both of them call \cs{rigidbalance}.
% \begin{macrocode}
\newcount\@k \newdimen\@h
-\newcommand*{\rigidbalance}[3]{\setbox0=\box#1 \@k=#2 \@h=#3
+\newcommand*{\Xrigidbalance}[3]{%
+ \hsize=\expandafter\dimexpr\csuse{Xhsize@\@currentseries}\relax%
+ \rigidbalance{#1}{#2}{#3}%
+}%
+
+\newcommand*{\rigidbalanceX}[3]{%
+ \hsize=\expandafter\dimexpr\csuse{hsizeX@\@currentseries}\relax%
+ \rigidbalance{#1}{#2}{#3}%
+}%
+
+\newcommand*{\rigidbalance}[3]{%
+ \setbox0=\box#1 \@k=#2 \@h=#3%
\@@line{\splittopskip=\@h \vbadness=\@M \hfilneg
\valign{##\vfil\cr\dosplits}}}
@@ -9111,6 +9230,8 @@
% \end{macro}
% \end{macro}
% \end{macro}
+% \end{macro}
+% \end{macro}
%
% \paragraph{Three columns}
%
@@ -9198,6 +9319,7 @@
% \begin{macrocode}
\notbool{parapparatus@}{\newcommand*}{\newcommand}{\threecolvfootnote}[2]{%
\insert\csname #1footins\endcsname\bgroup%
+ \hsize=\expandafter\dimexpr\csuse{Xhsize@#1}\relax%
\noindent\csuse{Xbhooknote@#1}%
\csuse{Xnotefontsize@#1}%
\footsplitskips%
@@ -9225,7 +9347,10 @@
\csuse{Xcolalign@#4}%
\parindent=\@tempdima%
\strut{\printlinefootnote{#1}{#4}}%
- {\nottoggle{Xlemmadisablefontselection@#4}{\select@lemmafont#1|#2}{#2}}%
+ {\nottoggle{Xlemmadisablefontselection@#4}%
+ {\select@lemmafont#1|{\csuse{Xlemmafont@#4}#2}}%
+ {{\csuse{Xlemmafont@#4}#2}}%
+ }%
\iftoggle{nosep@}{\hskip\csuse{Xinplaceoflemmaseparator@#4}}{\ifcsempty{Xlemmaseparator@#4}%
{\hskip\csuse{Xinplaceoflemmaseparator@#4}}%
{\nobreak\hskip\csuse{Xbeforelemmaseparator@#4}\csuse{Xlemmaseparator@#4}\hskip\csuse{Xafterlemmaseparator@#4}%
@@ -9253,7 +9378,7 @@
\noindent\csuse{Xtxtbeforenotes@#1}\csuse{Xbhookgroup@#1}}\par%
\splittopskip=\ht\strutbox
\expandafter
- \rigidbalance\csname #1footins\endcsname \thr@@ \splittopskip}
+ \Xrigidbalance\csname #1footins\endcsname \thr@@ \splittopskip}
% \end{macrocode}
% \end{macro}
%
@@ -9283,7 +9408,7 @@
\csuse{Xbhookgroup@#1}\par%
\splittopskip=\ht\strutbox
\expandafter
- \rigidbalance\csname mp#1footins\endcsname \thr@@ \splittopskip}}
+ \Xrigidbalance\csname mp#1footins\endcsname \thr@@ \splittopskip}}
% \end{macrocode}
% \end{macro}
@@ -9328,12 +9453,13 @@
% \begin{macrocode}
\newcommand*{\twocolfootsetup}[1]{%
\count\csname #1footins\endcsname 500
- \csxdef{default@#1footins}{500}%Use this to confine the notes to one side only
+ \csxdef{default@#1footins}{500}%
\multiply\dimen\csname #1footins\endcsname \tw@}
% \end{macrocode}
% \begin{macrocode}
\notbool{parapparatus@}{\newcommand*}{\newcommand}{\twocolvfootnote}[2]{%
\insert\csname #1footins\endcsname\bgroup%
+ \hsize=\expandafter\dimexpr\csuse{Xhsize@#1}\relax%
\noindent\csuse{Xbhooknote@#1}%
\csuse{Xnotefontsize@#1}%
\footsplitskips%
@@ -9352,7 +9478,10 @@
\csuse{Xcolalign@#4}%
\parindent=\@tempdima%
\strut{\printlinefootnote{#1}{#4}}%
- {\nottoggle{Xlemmadisablefontselection@#4}{\select@lemmafont#1|#2}{#2}}%
+ {\nottoggle{Xlemmadisablefontselection@#4}%
+ {\select@lemmafont#1|{\csuse{Xlemmafont@#4}#2}}%
+ {{\csuse{Xlemmafont@#4}#2}}%
+ }%
\iftoggle{nosep@}{\hskip\csuse{Xinplaceoflemmaseparator@#4}}{\ifcsempty{Xlemmaseparator@#4}%
{\hskip\csuse{Xinplaceoflemmaseparator@#4}}%
{\nobreak\hskip\csuse{Xbeforelemmaseparator@#4}\csuse{Xlemmaseparator@#4}\hskip\csuse{Xafterlemmaseparator@#4}%
@@ -9364,7 +9493,7 @@
\noindent\csuse{Xtxtbeforenotes@#1}\csuse{Xbhookgroup@#1}}\par%
\splittopskip=\ht\strutbox
\expandafter
- \rigidbalance\csname #1footins\endcsname \tw@ \splittopskip}
+ \Xrigidbalance\csname #1footins\endcsname \tw@ \splittopskip}
% \end{macrocode}
% \end{macro}
@@ -9404,7 +9533,7 @@
\csuse{Xbhookgroup@#1}\par%
\splittopskip=\ht\strutbox
\expandafter
- \rigidbalance\csname mp#1footins\endcsname \tw@ \splittopskip}}
+ \Xrigidbalance\csname mp#1footins\endcsname \tw@ \splittopskip}}
% \end{macrocode}
% \end{macro}
@@ -9882,13 +10011,17 @@
\ifdimequal{\csuse{Xboxstartlinenum@\@currentseries}}{0pt}%
{\bgroup}%
{\leavevmode\hbox to \csuse{Xboxstartlinenum@\@currentseries}\bgroup\hfill}%
- \ifl@d@pnum #1%
+ \ifl@d@pnum%
+ \wrap@edcrossref{\@this@crossref@start}{#1}%
\csuse{Xsublinesep@\@currentseries}%
\fi%
- \linenumrep{#2}\iftoggle{Xlineflag@\@currentseries}{#8}{}%
+ \wrap@edcrossref{\@this@crossref@start}{%
+ \linenumrep{#2}%
+ \iftoggle{Xlineflag@\@currentseries}{#8}{}%
+ }%
\ifl@d@ssub%
\csuse{Xsublinesep@\@currentseries}%
- \sublinenumrep{#3}%
+ \wrap@edcrossref{\@this@crossref@start}{\sublinenumrep{#3}}%
\fi
\egroup%
% \end{macrocode}
@@ -9915,15 +10048,20 @@
\fi%
\fi%
\ifl@d@pnum%
- #4%
+ \wrap@edcrossref{\@this@crossref@end}{#4}%
\csuse{Xsublinesep@\@currentseries}%
\fi%
- \ifl@d@elin \linenumrep{#5}\iftoggle{Xlineflag@\@currentseries}{#8}{}\fi%
+ \ifl@d@elin%
+ \wrap@edcrossref{\@this@crossref@end}{%
+ \linenumrep{#5}%
+ \iftoggle{Xlineflag@\@currentseries}{#8}{}%
+ }%
+ \fi%
\ifl@d@esl%
\ifl@d@elin%
\csuse{Xsublinesep@\@currentseries}%
\fi%
- \sublinenumrep{#6}%
+ \wrap@edcrossref{\@this@crossref@end}{\sublinenumrep{#6}}%
\fi%
\fi%
\ifdimequal{\csuse{Xboxendlinenum@\@currentseries}}{0pt}%
@@ -10086,22 +10224,32 @@
}%
\newcommand{\l@dbfnote}[1]{%
- \ifnumberedpar@%
\get@thisfootnote%
\gdef\@tag{#1\relax}%
\ifledRcol%
- \xright@appenditem{\noexpand\vl@dbfnote{{\expandonce\@tag}}{\thisfootnote}}%
+ \xright@appenditem{%
+ \ifdefined\Hy@footnote@currentHref%
+ \noexpand\def\noexpand\Hy@footnote@currentHref{\Hy@footnote@currentHref}%
+ \fi%
+ \noexpand\vl@dbfnote{{\expandonce\@tag}}{\thisfootnote}%
+ }%
\to\inserts@listR
\global\advance\insert@countR \@ne%
\else%
- \xright@appenditem{\noexpand\vl@dbfnote{{\expandonce\@tag}}{\thisfootnote}}%
+ \xright@appenditem{%
+ \ifdefined\Hy@footnote@currentHref%
+ \noexpand\def\noexpand\Hy@footnote@currentHref{\Hy@footnote@currentHref}%
+ \fi%
+ \noexpand\vl@dbfnote{{\expandonce\@tag}}{\thisfootnote}%
+ }%
\to\inserts@list
\global\advance\insert@count \@ne%
\fi
- \fi\ignorespaces}
+ \ignorespaces%
+}%
\newcommand{\get@fnmark}[1]{%
- \ifboolexpr{bool{l@dprintingpages} or bool{l@dprintingcolumns}}%
+ \ifboolexpr{bool{l@dpairing} or bool{l@dprintingpages} or bool{l@dprintingcolumns}}%
{%
\stepcounter{footnote@typeset}%
\setcounter{footnote}{\c@footnote@typeset}%
@@ -10183,7 +10331,7 @@
% \begin{macrocode}
\newcommand*{\normal@footnotemarkX}[1]{%
\prebodyfootmark
- \@nameuse{bodyfootmark#1}%
+ \wrapped@bodyfootmarkX{#1}%
\postbodyfootmark}
% \end{macrocode}
@@ -10206,6 +10354,7 @@
% \begin{macrocode}
\notbool{parapparatus@}{\newcommand*}{\newcommand}{\normalvfootnoteX}[2]{%
\insert\@nameuse{footins#1}\bgroup
+ \hsize=\expandafter\dimexpr\csuse{hsizeX@#1}\relax%
\noindent\csuse{bhooknoteX@#1}%
\csuse{notefontsizeX@#1}%
\footsplitskips
@@ -10225,6 +10374,7 @@
\newcommand*{\mpnormalvfootnoteX}[2]{%
\get@thisfootnoteX{#1}%
\get@fnmarkX{#1}{\thisfootnote}%
+ \edef\this@footnoteX@reading{\the\csname footnote#1@reading\endcsname}%
\global\setbox\@nameuse{mpfootins#1}\vbox{%
\unvbox\@nameuse{mpfootins#1}
\noindent\csuse{bhooknoteX@#1}%
@@ -10253,7 +10403,7 @@
\ledsetnormalparstuffX{#1}%
\hangindent=\csuse{hangindentX@#1}%
\everypar{\hangindent=\csuse{hangindentX@#1}}%
- {{\csuse{notenumfontX@#1}\@nameuse{footfootmark#1}}\strut%
+ {{\csuse{notenumfontX@#1}\wrapped@footfootmarkX{#1}}\strut%
#2\strut\par}}
% \end{macrocode}
@@ -10353,7 +10503,6 @@
% \begin{macrocode}
\newcommand{\normalbfnoteX}[2]{%
- \ifnumberedpar@
\get@thisfootnoteX{#1}%
\ifledRcol%
\ifluatex
@@ -10362,7 +10511,12 @@
\@ifundefined{xpg@main@language}%if polyglossia
{}%
{\footnotelang@poly[R]}%
- \xright@appenditem{\noexpand\vbfnoteX{#1}{#2}{\expandonce\thisfootnote}}%
+ \xright@appenditem{%
+ \noexpand\led@set@index@fornote{#1}%
+ \unexpanded{\def\this@footnoteX@reading}{\the\csname footnote#1@reading\endcsname}%
+ \noexpand\vbfnoteX{#1}{#2}{\expandonce\thisfootnote}%
+ \noexpand\led@reinit@index@fornote%
+ }%
\to\inserts@listR
\global\advance\insert@countR \@ne%
\else%
@@ -10372,11 +10526,16 @@
\@ifundefined{xpg@main@language}%if polyglossia
{}%
{\footnotelang@poly}%
- \xright@appenditem{\noexpand\vbfnoteX{#1}{#2}{\expandonce\thisfootnote}}%
+ \xright@appenditem{%
+ \noexpand\led@set@index@fornote{#1}%
+ \unexpanded{\def\this@footnoteX@reading}{\the\csname footnote#1@reading\endcsname}%
+ \noexpand\vbfnoteX{#1}{#2}{\expandonce\thisfootnote}%
+ \noexpand\led@reinit@index@fornote%
+ }%
\to\inserts@list
\global\advance\insert@count \@ne%
\fi
- \fi\ignorespaces}
+ \ignorespaces}
% \end{macrocode}
% \end{macro}
@@ -10409,7 +10568,7 @@
% This command gets the correct footnote number when typesetting parallel texts.
% \begin{macrocode}
\newcommand{\get@fnmarkX}[2]{%
- \ifboolexpr{bool{l@dprintingpages} or bool{l@dprintingcolumns}}%
+ \ifboolexpr{bool{l@dpairing} or bool{l@dprintingpages} or bool{l@dprintingcolumns}}%
{%
\stepcounter{footnote#1@typeset}%
\setcounter{footnote#1}{\value{footnote#1@typeset}}%
@@ -10432,6 +10591,7 @@
\ifnumberedpar@
\edtext{}{\normalbfnoteX{#1}{#2}}%
\else
+ \def\this@footnoteX@reading{\the\csname footnote#1@reading\endcsname}%
\@nameuse{regvfootnote#1}{#1}{#2}%
\fi}
@@ -10527,6 +10687,7 @@
% \begin{macrocode}
\notbool{parapparatus@}{\newcommand*}{\newcommand}{\twocolvfootnoteX}[2]{%
\insert\csname footins#1\endcsname\bgroup%
+ \hsize=\expandafter\dimexpr\csuse{hsizeX@#1}\relax%
\noindent\csuse{bhooknoteX@#1}%
\csuse{notefontsizeX@#1}%
\footsplitskips%
@@ -10553,7 +10714,7 @@
\@tempdima=\parindent%
\csuse{colalignX@#1}%
\parindent=\@tempdima%
- {\csuse{notenumfontX@#1}\@nameuse{footfootmark#1}\strut%
+ {\csuse{notenumfontX@#1}\wrapped@footfootmarkX{#1}\strut%
#2\strut\par}\allowbreak}
% \end{macrocode}
@@ -10566,7 +10727,7 @@
\newcommand*{\twocolfootgroupX}[1]{{\csuse{bhookgroupX@#1}\csuse{notefontsizeX@#1}
\splittopskip=\ht\strutbox
\expandafter
- \rigidbalance\csname footins#1\endcsname \tw@ \splittopskip}}
+ \rigidbalanceX\csname footins#1\endcsname \tw@ \splittopskip}}
\newcommand*{\mptwocolfootgroupX}[1]{{%
\vskip\skip\@nameuse{mpfootins#1}
@@ -10590,7 +10751,7 @@
\csuse{bhookgroupX@#1}%
\splittopskip=\ht\strutbox
\expandafter
- \rigidbalance\csname mpfootins#1\endcsname \tw@ \splittopskip}}
+ \rigidbalanceX\csname mpfootins#1\endcsname \tw@ \splittopskip}}
% \end{macrocode}
% \end{macro}
@@ -10646,6 +10807,7 @@
% \begin{macrocode}
\notbool{parapparatus@}{\newcommand*}{\newcommand}{\threecolvfootnoteX}[2]{%
\insert\csname footins#1\endcsname\bgroup%
+ \hsize=\expandafter\dimexpr\csuse{hsizeX@#1}\relax%
\noindent\csuse{bhooknoteX@#1}%
\csuse{notefontsizeX@#1}
\footsplitskips%
@@ -10671,7 +10833,7 @@
\@tempdima=\parindent%
\csuse{colalignX@#1}%
\parindent=\@tempdima%
- {\csuse{notenumfontX@#1}\@nameuse{footfootmark#1}\strut%
+ {\csuse{notenumfontX@#1}\wrapped@footfootmarkX{#1}\strut%
#2\strut\par}\allowbreak}
% \end{macrocode}
@@ -10684,7 +10846,7 @@
\newcommand*{\threecolfootgroupX}[1]{{\csuse{bhookgroupX@#1}\csuse{notefontsizeX@#1}
\splittopskip=\ht\strutbox
\expandafter
- \rigidbalance\csname footins#1\endcsname \thr@@ \splittopskip}}
+ \rigidbalanceX\csname footins#1\endcsname \thr@@ \splittopskip}}
\newcommand*{\mpthreecolfootgroupX}[1]{{%
\vskip\skip\@nameuse{mpfootins#1}
@@ -10708,7 +10870,7 @@
\csuse{bhookgroupX@#1}%
\splittopskip=\ht\strutbox
\expandafter
- \rigidbalance\csname mpfootins#1\endcsname \thr@@ \splittopskip}}
+ \rigidbalanceX\csname mpfootins#1\endcsname \thr@@ \splittopskip}}
% \end{macrocode}
% \end{macro}
@@ -10756,6 +10918,9 @@
% \begin{macrocode}
\newcommand*{\para@footsetupX}[1]{{\csuse{bhookgroupX@#1}\csuse{notefontsizeX@#1}
\setnoteswidthliketwocolumnsX@{#1}%
+ \ifcsempty{hsizeX@#1}%
+ {}%
+ {\columnwidth=\expandafter\dimexpr\csuse{hsizeX@#1}\relax}%
\dimen0=\baselineskip
\multiply\dimen0 by 1024
\divide\dimen0 by \columnwidth \multiply\dimen0 by \footfudgefiddle\relax%
@@ -10813,6 +10978,7 @@
\newcommand*{\mppara@vfootnoteX}[2]{%
\get@thisfootnoteX{#1}%
\get@fnmarkX{#1}{\thisfootnote}%
+ \edef\this@footnoteX@reading{\the\csname footnote#1@reading\endcsname}%
\global\setbox\@nameuse{mpfootins#1}\vbox{%
\unvbox\@nameuse{mpfootins#1}
\csuse{notefontsizeX@#1}
@@ -10855,7 +11021,7 @@
\ledsetnormalparstuff@common%
{\csuse{notenumfontX@#1}%
\csuse{notenumfontX@#1}%
- \@nameuse{footfootmark#1}%
+ \wrapped@footfootmarkX{#1}%
\strut%
#2\penalty-10}}
@@ -10867,6 +11033,7 @@
% \protect\cs{para@footgroupX}\marg{series}
% \begin{macrocode}
\newcommand*{\para@footgroupX}[1]{%
+ \hsize=\expandafter\dimexpr\csuse{hsizeX@#1}\relax%
\unvbox\csname footins#1\endcsname
\ifcsstring{raggedX@#1}{L}{\RaggedLeft}{}%
\ifcsstring{raggedX@#1}{R}{\RaggedRight}{}%
@@ -10922,6 +11089,45 @@
% \end{macrocode}
% \end{macro}
% \end{macro}
+% \subsection{Wrapping footnote marks in hyperlink}
+% \begin{macro}{\wrapped@footfootmarkX}
+% \cs{wrapped@footfootmarkX} prints the footnote mark of the footpage, wrapped in \package{hyperref} package's commands, if needed.
+% \begin{macrocode}
+\newcommand{\wrapped@footfootmarkX}[1]{%
+ \ifdefined\hypertarget%
+ \Hy@raisedlink{%
+ \hypertarget%
+ {@footnotemark#1@\this@footnoteX@reading}%
+ {}%
+ }%
+ \hyperlink%
+ {@bodyfootmark#1@\this@footnoteX@reading}%
+ {\@nameuse{footfootmark#1}}%
+ \else%
+ \@nameuse{footfootmark#1}%
+ \fi%
+}%
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\wrapped@bodyfootmarkX}
+% \cs{wrapped@bodyfootmarkX} prints the footnote mark of the text body, wrapped in \package{hyperref} package's commands, if needed.
+% \begin{macrocode}
+\newcommand{\wrapped@bodyfootmarkX}[1]{%
+ \ifdefined\hypertarget%
+ \Hy@raisedlink{%
+ \hypertarget%
+ {@bodyfootmark#1@\expandafter\the\csname footnote#1@reading\endcsname}%
+ {}%
+ }%
+ \hyperlink%
+ {@footnotemark#1@\expandafter\the\csname footnote#1@reading\endcsname}%
+ {\@nameuse{bodyfootmark#1}}%
+ \else%
+ \@nameuse{bodyfootmark#1}%
+ \fi%
+}%
+% \end{macrocode}
+% \end{macro}
% \section{Code common to both critical and familiar footnote in normal arrangement}
% \protect\cs{par} should always be redefined to \protect\cs{endgraf} within
% the format macro (this is what \protect\cs{normal@pars} does),
@@ -10980,6 +11186,7 @@
\newcommand{\setXnoteswidthliketwocolumns@}[1]{%
\global\let\hsize@fornote=\hsize%
\global\old@hsize=\hsize%
+ \let\old@columwidth=\columnwidth%
\iftoggle{Xnoteswidthliketwocolumns@#1}%
{%
\csuse{setwidthliketwocolumns@\columns@position}%
@@ -10987,12 +11194,13 @@
}%
{}%
\let\hsize=\hsize@fornote%
- \let\columnwidth=\hsize@fornote%
+ \let\columnwidth=\old@columwidth%
}%
\newcommand{\setnoteswidthliketwocolumnsX@}[1]{%
\global\let\hsize@fornote=\hsize%
\global\old@hsize=\hsize%
+ \let\old@columwidth=\columnwidth%
\iftoggle{noteswidthliketwocolumnsX@#1}%
{%
\csuse{setwidthliketwocolumns@\columns@position}%
@@ -11000,7 +11208,7 @@
}%
{}%
\let\hsize=\hsize@fornote%
- \let\columnwidth=\hsize@fornote%
+ \let\columnwidth=\old@columwidth%
}%
% \end{macrocode}
@@ -11247,6 +11455,7 @@
% \changes{v1.18.0}{2015/02/23}{Option parapparatus works for endnotes.}
% \changes{v1.21.0}{2015/04/13}{\protect\cs{endnotes} take five arguments.}
% \changes{v2.5.0}{2015/11/13}{\protect\cs{endnotes} take six arguments.}
+% \changes{v2.7.0}{2015/11/13}{\protect\cs{endnotes} take seven arguments.}
% Arguments are:
% \begin{itemize}
% \item \verb+#1+ Line numbers and font selection.
@@ -11255,9 +11464,10 @@
% \item \verb+#4+ Series.
% \item \verb+#5+ Optional argument of \protect\cs{Xendnote}.
% \item \verb+#6+ Side (L or R).
+% \item \verb+#7+ Label for cross-referencing.
% \end{itemize}
% \begin{macrocode}
-\global\notbool{parapparatus@}{}{\long}\def\endprint#1#2#3#4#5#6{{%
+\global\notbool{parapparatus@}{}{\long}\def\endprint#1#2#3#4#5#6#7{{%
\hangindent=\csuse{Xendhangindent@#4}%
\ifXendinsertsep@%
\hskip\csuse{Xendafternote@#4}%
@@ -11275,11 +11485,15 @@
\csuse{Xendbhooknote@#4}%
\csuse{Xendnotefontsize@#4}%
\IfStrEq{#6}{R}{\ledRcol@true}{}%
+ \def\@this@crossref@start{#7:start}%
+ \def\@this@crossref@end{#7:end}%
\printlineendnote{#1}{#4}%
\IfStrEq{#6}{R}{\ledRcol@false}{}%
+ \undef\@this@crossref@start%
+ \undef\@this@crossref@end%
\nottoggle{Xendlemmadisablefontselection@#4}%
- {\select@lemmafont#1|#2}%
- {#2}%
+ {\select@lemmafont#1|{\csuse{Xendlemmafont@#4}#2}}%
+ {{\csuse{Xendlemmafont@#4}#2}}%
\ifboolexpr{%
togl {nosep@}%
or test{\ifcsempty{Xendlemmaseparator@#4}}%
@@ -11543,7 +11757,7 @@
\ifdimequal{\csuse{Xendboxstartlinenum@\@currentseries}}{0pt}%
{\bgroup}%
{\leavevmode\hbox to \csuse{Xendboxstartlinenum@\@currentseries}\bgroup\hfill}%
- \printnpnum{#1}%
+ \wrap@edcrossref{\@this@crossref@start}{\printnpnum{#1}}%
\ifl@d@dash%
\ifl@d@pnum%
\csuse{Xendlineprefixsingle@\@currentseries}%
@@ -11555,10 +11769,11 @@
\else%
\csuse{Xendlineprefixsingle@\@currentseries}%
\fi%
- \linenumrep{#2}\iftoggle{Xendlineflag@\@currentseries}{\ifledRcol@\@Rlineflag\fi}{}%
+ \wrap@edcrossref{\@this@crossref@start}{\linenumrep{#2}}%
+ \iftoggle{Xendlineflag@\@currentseries}{\ifledRcol@\@Rlineflag\fi}{}%
\ifl@d@ssub%
\csuse{Xendsublinesep@\@currentseries}%
- \sublinenumrep{#3}%
+ \wrap@edcrossref{\@this@crossref@start}{\sublinenumrep{#3}}%
\fi%
\egroup%
% \end{macrocode}
@@ -11581,17 +11796,19 @@
\csuse{Xendlinerangeseparator@\@currentseries}%
\fi%
\fi%
- \ifl@d@pnum \printnpnum{#4}\fi%
+ \ifl@d@pnum%
+ \wrap@edcrossref{\@this@crossref@end}\printnpnum{#4}%
+ \fi%
\ifl@d@elin%
\ifl@d@pnum\csuse{Xendlineprefixsingle@\@currentseries}\fi%
- \linenumrep{#5}%
+ \wrap@edcrossref{\@this@crossref@end}{\linenumrep{#5}}%
\iftoggle{Xendlineflag@\@currentseries}{\ifledRcol@\@Rlineflag\fi}{}%
\fi%
\ifl@d@esl%
\ifl@d@elin%
\csuse{Xendsublinesep@\@currentseries}%
\fi%
- \sublinenumrep{#6}%
+ \wrap@edcrossref{\@this@crossref@end}{\sublinenumrep{#6}}%
\fi%
\fi%
\ifdimequal{\csuse{Xendboxendlinenum@\@currentseries}}{0pt}%
@@ -11655,7 +11872,7 @@
% \end{macrocode}
% \subsubsection{Options}
% \begin{macrocode}
- \newtoggle{Xlineflag@#1}
+ \newtoggle{Xlineflag@#1}
\newtoggle{Xparindent@#1}
\newtoggle{Xlemmadisablefontselection@#1}
\csgdef{Xhangindent@#1}{0pt}%
@@ -11708,9 +11925,12 @@
\csgdef{Xparafootsep@#1}{}%
\csgdef{Xafternote@#1}{1em plus.4em minus.4em}
\csgdef{Xlinerangeseparator@#1}{\endashchar}%
+
+ \csgdef{Xlemmafont@#1}{}%
+ \csgdef{Xhsize@#1}{\hsize}%
% \end{macrocode}
% \subsubsection{Create inserts, needed to add notes in foot}
-% As regards inserts, see chapter 15 of \thetexbook by D. Knuth.
+% As regards inserts, see chapter 15 of \thetexbook\ by D. Knuth.
% \begin{macrocode}
\expandafter\newinsert\csname #1footins\endcsname%
\unless\ifnoledgroup@%
@@ -11742,20 +11962,24 @@
\ifbool{indtl@notenumber}%
{\unexpanded{\let\index\nindex}}%There is no note number… so
{}%
- \ifbool{indtl@notenumber}%
- {\unexpanded{\let\index\orig@@index}}%
- {}%
\noexpand\Xnote@true%
\noexpand\prepare@preXnotes{#1}%
\noexpand\prepare@edindex@fornote{\l@d@nums}%
\unexpanded{\def\sw@list@inedtext}{\expandafter\unexpanded\expandafter{\sw@inthisedtext}}%The value of the \sw@inthisedtext of current \edtext will be pushed to \sw@list@inedtext when the notes are expanded.
\noexpand\setcounter{stanzaR}{\the\c@stanzaR}%Save stanzaR counter for footnote
+ \unexpanded{\def\@this@crossref@start}{\theedtext:start}%
+ \unexpanded{\def\@this@crossref@end}{\theedtext:end}%
\noexpand\csuse{v#1footnote}{#1}%
{{\l@d@nums}{\expandonce\@tag}{\expandonce\content}}%
\noexpand\Xnote@false%
+ \unexpanded{\undef\@this@crossref@start}%
+ \unexpanded{\undef\@this@crossref@end}%
\ifbool{indtl@innote}%
{\unexpanded{\let\index\orig@@index}}%
{}%
+ \ifbool{indtl@notenumber}%
+ {\unexpanded{\let\index\orig@@index}}%
+ {}%
}\to\inserts@listR
\footnoteoptions@{R}{##1}{false}%
\global\advance\insert@countR \@ne%
@@ -11781,9 +12005,14 @@
\ifl@dpairing%
\noexpand\setcounter{stanzaL}{\the\c@stanzaL}%Save stanzaR counter for footnote
\fi%
- \noexpand\csuse{v#1footnote}{#1}%
- {{\l@d@nums}{\expandonce\@tag}{\expandonce\content}}%
- \noexpand\Xnote@false%
+ \unexpanded{\def\@this@crossref@start}{\theedtext:start}%
+ \unexpanded{\def\@this@crossref@end}{\theedtext:end}%
+ \noexpand\csuse{v#1footnote}%
+ {#1}%
+ {{\l@d@nums}{\expandonce\@tag}{\expandonce\content}}%
+ \unexpanded{\undef\@this@crossref@start}%
+ \unexpanded{\undef\@this@crossref@end}%
+ \noexpand\Xnote@false%
\ifbool{indtl@innote}%
{\unexpanded{\let\index\orig@@index}}%
{}%
@@ -11840,6 +12069,7 @@
\newtoggle{noteswidthliketwocolumnsX@#1}%
\csgdef{parafootsepX@#1}{}%
\csgdef{afternoteX@#1}{1em plus.4em minus.4em}
+ \csgdef{hsizeX@#1}{\hsize}%
% End of for familiar footnotes.
% \subsubsection{Create inserts, needed to add notes in foot}
% As regards inserts, see chapter 15 of the TeXBook by D. Knuth.
@@ -11862,8 +12092,8 @@
% If we are preparing parallel typesetting, we cannot just increase the footnote counter.
% Read \parpackage's handbook about that (\reff{reledpar-familiarfootnotenumber}).
% \begin{macrocode}
+ \global\expandafter\advance\csname footnote#1@reading\endcsname by \@ne%
\ifl@dpairing%
- \global\expandafter\advance\csname footnote#1@reading\endcsname by \@ne
\ifcsdef{footnote#1reading\the\csname footnote#1@reading\endcsname=typeset}%
{\setcounter{footnote#1}{\csuse{footnote#1reading\the\csname footnote#1@reading\endcsname=typeset}}}%
{\setcounter{footnote#1}{\the\csname footnote#1@reading\endcsname}}%
@@ -11881,32 +12111,26 @@
\xdef\footnote@luatextextdir{\the\textdir}%
\xdef\footnote@luatexpardir{\the\pardir}%
\fi%
- \ifbool{indtl@innote}%
- {\let\index\nindex}%
- {}%
- \ifbool{indtl@notenumber}%
- {%
- \renewcommand{\index}[2][]{%
- \orig@@index[####1]{%
- ####2|innotenumber{\csuse{thefootnote#1}}%
- }%
- }%
- }%
- {}%
- \csuse{vfootnote#1}{#1}{\expandonce\content}\m@mmf@prepare%
+ \if@ledgroup%
+ \led@set@index@fornote{#1}%
+ \fi%
+ \csuse{vfootnote#1}{#1}{\expandonce\content}\m@mmf@prepare%
\ifbool{indtl@innote}%
{\let\index\orig@@index}%
{}%
- \ifbool{indtl@notenumber}%
+ \ifbool{indtl@notenumber}%
{\let\index\orig@@index}%
{}%
\endgroup%
}
% \end{macrocode}
% Then define the counters.
+% The \LaTeX\ counter \verb+footnoteX+ is the only one manipulated by the user. This is this the one which is printed.
+% The \TeX\ counter \cs{footnoteX@reading} is increased at each footnote. It is used for hyperlinks, for using \package{hyperlink} package, and for getting the correct footnote number when using parallel typesetting (\reff{reledpar-familiarfootnotenumber}).
% \begin{macrocode}
\newcounter{footnote#1}
\global\expandafter\renewcommand\csname thefootnote#1\endcsname{\arabic{footnote#1}}
+ \expandafter\newcount\csname footnote#1@reading\endcsname%
% \end{macrocode}
% Do not forget to initialize series
% \begin{macrocode}
@@ -11952,6 +12176,7 @@
\newlinechar='40%
\global\@noneed@Footnotetrue%
\newcommand{\content}{##2}%
+ \stepcounter{labidx}%
\expandafter\immediate\expandafter\write\csname l@d@#1end\endcsname{%
\expandafter\string\csname #1end\endcsname%
{\ifnumberedpar@\l@d@nums\fi}%
@@ -11959,7 +12184,8 @@
{\expandonce\content}%
{#1}%
{\unexpanded{##1}}%
- {\ifledRcol R\else L\fi}
+ {\ifledRcol R\else L\fi}%
+ {\theedtext}%
\@percentchar%
}%
\egroup%
@@ -12037,6 +12263,8 @@
\csgdef{Xendlineprefixmore@#1}{}%
\newtoggle{Xendlineflag@#1}
+
+ \csgdef{Xendlemmafont@#1}{}%
% \end{macrocode}
% End of endnotes declaration
% \begin{macrocode}
@@ -12270,6 +12498,7 @@
% Before generating the commands that are used to set the critical notes, such as \protect\cs{Xnumberonlyfirstinline}, \protect\cs{Xlemmaseparator} and the like, we check the \verb+nocritical+ option.
% \begin{macrocode}
\unless\ifnocritical@
+ \newhookcommand@series{Xlemmafont}%
\newhooktoggle@series{Xparindent}
\newhookcommand@series{Xhangindent}
\newhookcommand@series{Xragged}
@@ -12319,6 +12548,7 @@
\newhookcommand@series{Xafternote}%
\newhookcommand@series{Xparafootsep}
+ \newhookcommand@series@reload{Xhsize}{critical}%
\fi
\newhooktoggle@series{Xlineflag}[appref,SEref]
@@ -12349,6 +12579,7 @@
\newhookcommand@series@reload{notefontsizeX}{familiar}
\newhookcommand@series{afternoteX}
\newhookcommand@series{parafootsepX}
+ \newhookcommand@series@reload{hsizeX}{familiar}%
\fi
% \end{macrocode}
% \subsubsection{Options for endnotes}
@@ -12356,6 +12587,7 @@
% \begin{macrocode}
\unless\ifnoend@
\newhookcommand@series{Xendnotenumfont}
+ \newhookcommand@series{Xendlemmafont}%
\newhookcommand@series{Xendbhooknote}
\newhookcommand@series{Xendboxlinenum}%
@@ -12405,7 +12637,7 @@
\newhooktoggle@series{Xendtwolinesonlyinsamepage}[apprefwithpage,SErefwithpage]
\newhookcommand@series{Xendlinerangeseparator}[apprefwithpage,SErefwithpage]
\newhookcommand@series{Xendbeforepagenumber}[apprefwithpage,SErefwithpage,SErefonlypage]
-\newhookcommand@series{Xendafterpagenumber}[apprefwithpage,SErefwithpagem,SErefonlypage]
+\newhookcommand@series{Xendafterpagenumber}[apprefwithpage,SErefwithpagem]
\newhookcommand@series{Xendlineprefixsingle}[apprefwithpage,SErefwithpage]
\newhookcommand@series{Xendlineprefixmore}[apprefwithpage,SErefwithpage]
\newhookcommand@series{Xendsublinesep}[apprefwithpage,SErefwithpage]
@@ -12461,7 +12693,7 @@
% \end{macro}
%
%
-% \section{Output routine}
+% \section{Output routine}\label{output}
%
%
% Now we begin the output routine and associated things.
@@ -12532,6 +12764,7 @@
% \protect\cs{print@Xnotes}, is replaced by \parpackage when using \protect\cs{Pages}.
% \begin{macrocode}
\newcommand\print@Xnotes[1]{%
+ \xdef\@currentseries{#1}%
\csuse{#1footstart}{#1}%
\csuse{#1footgroup}{#1}%%
}%
@@ -12603,6 +12836,7 @@
% \protect\cs{print@Xnotes} is replaced by \parpackage when using \protect\cs{Pages}.
% \begin{macrocode}
\newcommand\print@notesX[1]{%
+ \xdef\@currentseries{#1}%
\csuse{footstart#1}{#1}%
\csuse{footgroup#1}{#1}%
}%
@@ -13267,13 +13501,14 @@
\toggletrue{Xlineflag@SEref}%%Here exception
\def\Xendtwolines@apprefwithpage{}%
-\def\Xendtwolines@SEwithpage{}%
+\def\Xendtwolines@SErefwithpage{}%
\def\Xendmorethantwolines@apprefwithpage{}%
\def\Xendmorethantwolines@SErefwithpage{}%
\def\Xendlinerangeseparator@apprefwithpage{\endashchar}
\def\Xendlinerangeseparator@SErefwithpage{\endashchar}
+\def\Xendlinerangeseparator@SErefonlypage{\endashchar}
\def\Xendbeforepagenumber@apprefwithpage{p.}%
\def\Xendbeforepagenumber@SErefwithpage{p.}%
@@ -13281,7 +13516,7 @@
\def\Xendafterpagenumber@apprefwithpage{) }%
\def\Xendafterpagenumber@SErefwithpage{) }%
-\def\Xendafterpagenumber@SErefonlypage{) }%
+
\def\Xendlineprefixsingle@apprefwithpage{}%
\def\Xendlineprefixsingle@SErefwithpage{}%
@@ -13320,7 +13555,7 @@
\xdef\Xendboxendlinenum@SErefwithpage{0pt}
% \end{macrocode}
-% Now, declare the default value of \protect\cs{@apprefprefixsingle} and \protect\cs{@apprefprefixmore}, \cs{@SErefprefix}, \cs{@SErefprefixmore} and the commands which defines them.
+% Now, declare the default values of \protect\cs{@apprefprefixsingle} and \protect\cs{@apprefprefixmore}, \cs{@SErefprefix}, \cs{@SErefprefixmore} and the commands which defines them.
% \changes{v2.5.0}{2015/11/13}{Debug \protect\cs{setapprefprefixsingle}}
% \begin{macrocode}
\newcommand\@apprefprefixsingle{}%
@@ -13344,6 +13579,13 @@
}
% \end{macrocode}
+% And not \cs{setSErefonlypageprefixsingle} and \cs{setSErefonlypageprefixmore}.
+% \begin{macrocode}
+\let\setSErefonlypageprefixsingle\XendbeforepagenumberSErefonlypage%
+\newcommand{\setSErefonlypageprefixmore}[1]{%
+ \gdef\SErefonlypage@prefixmore{#1}%
+}%
+% \end{macrocode}
% \changes{v1.23.0}{2015/05/18}{Debug \protect\cs{Xendtwolines}, \protect\cs{Xendmorethantwolines}, \protect\cs{Xendtwolinesbutnotmore} and \protect\cs{Xendtwolinesonlyinsamepage} when using \protect\cs{apprefwithpage}.}
% And now, the main commands: \protect\cs{appref}, \protect\cs{apprefwithpage}, \cs{SEref} and \cs{SErefwithpage}.
% These commands call \cs{refformated@} and \protect\cs{refformatedwithpage}, which calls \cs{printlines} and \cs{printendlines} . That is why we have previously declared all hooks values tested inside these last commands.
@@ -13375,7 +13617,13 @@
or test{\ifcsundef{the@label#2:end}}%
}%
{\led@warn@pairRefUndefined{#2}\nfss@text{\reset@font\bfseries ??}}%
- {\printlines\xpageref{#2:start}|\xlineref{#2:start}|\xsublineref{#2:start}|\xpageref{#2:end}|\xlineref{#2:end}|\xsublineref{#2:end}|\relax|\xflagref{#2:start}|}%
+ {%
+ \def\@this@crossref@start{#2:start}%
+ \def\@this@crossref@end{#2:end}%
+ \printlines\xpageref{#2:start}|\xlineref{#2:start}|\xsublineref{#2:start}|\xpageref{#2:end}|\xlineref{#2:end}|\xsublineref{#2:end}|\relax|\xflagref{#2:start}|%
+ \undef\@this@crossref@end%
+ \undef\@this@crossref@start%
+ }%
\def\do##1{%
\setkeys[mac]{falsefootnoteoption}{##1}%
}%
@@ -13393,7 +13641,13 @@
or test{\ifcsundef{the@label#2:end}}%
}%
{\led@warn@pairRefUndefined{#2}\nfss@text{\reset@font\bfseries ??}}%
- {\printendlines\xpageref{#2:start}|\xlineref{#2:start}|\xsublineref{#2:start}|\xpageref{#2:end}|\xlineref{#2:end}|\xsublineref{#2:end}|\relax|\xflagref{#2:start}|}%
+ {%
+ \def\@this@crossref@start{#2:start}%
+ \def\@this@crossref@end{#2:end}%
+ \printendlines\xpageref{#2:start}|\xlineref{#2:start}|\xsublineref{#2:start}|\xpageref{#2:end}|\xlineref{#2:end}|\xsublineref{#2:end}|\relax|\xflagref{#2:start}|%
+ \undef\@this@crossref@end%
+ \undef\@this@crossref@start%
+ }%
\def\do##1{%
\setkeys[mac]{falsefootnoteoption}{##1}%
}%
@@ -13411,23 +13665,30 @@
or test{\ifcsundef{the@label#2:end}}%
}%
{\led@warn@pairRefUndefined{#2}\nfss@text{\reset@font\bfseries ??}}%
- {\ifnum\xpageref{#2:start}=\xpageref{#2:end}%
- \printnpnum{\xpageref{#2:start}}
- \else%
+ {\ifnumequal{\xpageref{#2:end}}{\xpageref{#2:start}}%
+ {%
+ \printnpnum{%
+ \wrap@edcrossref{#2:start}{\xpageref{#2:start}}%
+ }%
+ }%
+ {%
+ \ifcsvoid{#3onlypage@prefixmore}%
+ {}%
+ {\csletcs{Xendbeforepagenumber@#3onlypage}{#3onlypage@prefixmore}}%
\ifdefined\linerangesep@%
\printnpnum{%
- \xpageref{#2:start}%
+ \wrap@edcrossref{#2:start}{\xpageref{#2:start}}%
\linerangesep@%
- \xpageref{#2:end}%
+ \wrap@edcrossref{#2:end}{\xpageref{#2:end}}%
}%
\else%
\printnpnum{%
- \xpageref{#2:start}%
+ \wrap@edcrossref{#2:start}{\xpageref{#2:start}}%
\csuse{Xendlinerangeseparator@\@currentseries}%
- \xpageref{#2:end}%
+ \wrap@edcrossref{#2:end}{\xpageref{#2:end}}%
}%
\fi%
- \fi%
+ }%
}%
\def\do##1{%
\setkeys[mac]{falsefootnoteoption}{##1}%
@@ -13873,7 +14134,6 @@
% \changes{v0.4.0}{2004/02/29}{Added \protect\cs{l@dfeetbeginmini}, \protect\cs{l@dfeetendmini}
% and all their supporting code}
% \begin{macrocode}
-\newif\if@ledgroup%
\ifnoledgroup@\else%
\newcommand*{\l@dfeetbeginmini}{\@ledgrouptrue\l@dedbeginmini\l@dfambeginmini}
\newcommand*{\l@dfeetendmini}{%
@@ -14044,10 +14304,7 @@
\@ledgroupfalse%
}
-\apptocmd{\endledgroup}{%
- \l@dprintingpagesfalse%
- \l@dprintingcolumnsfalse%
-}{}{}
+
% \end{macrocode}
% \end{environment}
%
@@ -14126,6 +14383,7 @@
% \changes{v1.8.5}{2014/08/28}{Debug indexing in right column, with eledpar.}
% Here is some code for indexing using page and line numbers.
%
+% \subsection{Looking on package order}
% First, ensure that \protect\package{imakeidx} or \protect\package{indextools} is loaded \emph{before} \protect\package{eledmac}.
% \changes{v1.12.0}{2014/08/05}{Ensure that \protect\package{imakeidx} is loaded \emph{before} \protect\package{eledmac}}
% \begin{macrocode}
@@ -14138,6 +14396,7 @@
\fi%
}
% \end{macrocode}
+% \subsection{Auxiliary macros for \cs{edindex}}
% \begin{macro}{\pagelinesep}
% \begin{macro}{\edindexlab}
% \begin{macro}{\c@labidx}
@@ -14167,8 +14426,10 @@
%
% \begin{macro}{\thepageline}
% This macro makes up the page/line number combo from the label/ref.
+% The associated counter is never directly used, but it is required in order to not have any error message with \cs{edgls}.
% \begin{macrocode}
-\newcommand{\thepageline}{%
+\newcounter{pageline}%
+\renewcommand{\thepageline}{%
\thepage%
\pagelinesep%
\xlineref{\edindexlab\thelabidx}%
@@ -14194,6 +14455,7 @@
% \end{macro}
% \end{macro}
%
+% \subsection{Code specific to \cs{edindex} in critical footnotes}
% \begin{macro}{\if@edindex@fornote@true}
% This boolean test is switching at the beginning of each critical note,
% to allow index referring to this note.
@@ -14257,8 +14519,9 @@
}
% \end{macrocode}
% \end{macro}
+% \subsection{Analysis of command in indexed text}
% \begin{macro}{\get@index@command}
-% This macro is used to analyse if a text to be indexed has a command after a \verb+|+.
+% This macro is used to analyze if a text to be indexed has a command after a \verb+|+.
% \changes{v1.8.0}{2014/07/21}{Debug \protect\cs{get@index@command} and compatibility with \protect\package{hyperref} package.}
% \begin{macrocode}
\def\get@index@command#1|#2+{%
@@ -14278,6 +14541,7 @@
}
% \end{macrocode}
% \end{macro}
+% \subsection{Code for the formatted index}
% \begin{macro}{\ledinnote}
% \changes{v1.22.0}{2015/04/25}{\protect\cs{ledinnote} takes a first optional argument, which is the label for hyperlinks.}
% \begin{macro}{\ledinnotehyperpage}
@@ -14305,6 +14569,7 @@
% \end{macro}
% \end{macro}
% \end{macro}
+% \subsection{Main code}
% \changes{v2.0.0}{2015/07/19}{Suppress indexing command specific to \protect\ltxclass{memoir}.}
% \Eledmac and \ledmac were using the specific indexing tools of the \protect\ltxclass{memoir} in order to allow multiple index.
% However, \eledmac used \protect\package{imakeidx} or \protect\package{indextools} tools when one these two package was loaded.
@@ -14367,6 +14632,7 @@
% \end{macro}
% \end{macro}
%
+% \subsection{Hyperlink}
% \begin{macro}{\hyperlinkformat}
% \protect\cs{hyperlinkformat} command is to be used to have both a internal hyperlink and a format, when indexing.
% \begin{macrocode}
@@ -14499,7 +14765,98 @@
% \end{macro}
% \changes{v1.14.0}{2014/10/27}{Delete previous override of \protect\cs{l@d@@wrindexhyp} at the beginning of a document when hyperref is not loaded.}
%
-%
+% \subsection{`innote' and `notenumber' option of \package{indextols} package}
+% \begin{macro}{\led@set@index@fornote}
+% The \cs{led@set@index@fornote} is called when a familiar footnote is inserted --- and not when it is read --- and changes the \cs{index} command depending of the option of the \package{indextools} package.
+% Its only argument is the note series.
+% \begin{macrocode}
+\newcommand{\led@set@index@fornote}[1]{%
+ \ifbool{indtl@innote}%
+ {\let\index\nindex}%
+ {}%
+ \ifbool{indtl@notenumber}%
+ {%
+ \renewcommand{\index}[2][\indtl@jobname]{%
+ \orig@@index[##1]{%
+ ##2|innotenumber{\csuse{thefootnote#1}}%
+ }%
+ }%
+ }%
+ {}%
+}%
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\led@reinit@index@fornote}
+% The \cs{led@reinit@index@fornote} just reset the default value of \cs{index}.
+% \begin{macrocode}
+\newcommand{\led@reinit@index@fornote}{%
+ \ifbool{indtl@innote}%
+ {\let\index\orig@@index}%
+ {}%
+ \ifbool{indtl@notenumber}%
+ {\let\index\orig@@index}%
+ {}%
+}%
+% \end{macrocode}
+% \end{macro}
+% \section{Glossaries}
+% Here, we define the \cs{gls}-Like commands prefixed by \verb+ed+.
+% \begin{macro}{\edgls}
+% \begin{macrocode}
+\DeclareRobustCommandx{\edgls}[3][1,3,usedefault]{%
+ \doedindexlabel%
+ \gls[counter=pageline,#1]{#2}[#3]%
+}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\edGls}
+% \begin{macrocode}
+\DeclareRobustCommandx{\edGls}[3][1,3,usedefault]{%
+ \doedindexlabel%
+ \Gls[counter=pageline,#1]{#2}[#3]%
+}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\edGLS}
+% \begin{macrocode}
+\DeclareRobustCommandx{\edGLS}[3][1,3,usedefault]{%
+ \doedindexlabel%
+ \GLS[counter=pageline,#1]{#2}[#3]%
+}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\edglspl}
+% \begin{macrocode}
+\DeclareRobustCommandx{\edglspl}[3][1,3,usedefault]{%
+ \doedindexlabel%
+ \glspl[counter=pageline,#1]{#2}[#3]%
+}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\edGlspl}
+% \begin{macrocode}
+\DeclareRobustCommandx{\edGlspl}[3][1,3,usedefault]{%
+ \doedindexlabel%
+ \Glspl[counter=pageline,#1]{#2}[#3]%
+}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\edGLSpl}
+% \begin{macrocode}
+\DeclareRobustCommandx{\edGLSpl}[3][1,3,usedefault]{%
+ \doedindexlabel%
+ \GLSpl[counter=pageline,#1]{#2}[#3]%
+}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\edglsdisp}
+% \begin{macrocode}
+\DeclareRobustCommandx{\edglsdisp}[3][1,3,usedefault]{%
+ \doedindexlabel%
+ \glsdisp[counter=pageline,#1]{#2}[#3]%
+}
+% \end{macrocode}
+% \end{macro}
% \section{Verse}
%
% The original code is principally Wayne Sullivan's\index{Sullivan, Wayne}
diff --git a/Master/texmf-dist/source/latex/reledmac/reledpar.dtx b/Master/texmf-dist/source/latex/reledmac/reledpar.dtx
index 94e2b43c3e5..bc7f8600f27 100644
--- a/Master/texmf-dist/source/latex/reledmac/reledpar.dtx
+++ b/Master/texmf-dist/source/latex/reledmac/reledpar.dtx
@@ -36,6 +36,7 @@
\usepackage[mono=false]{libertine}
\usepackage[series={A,B},noend,noeledsec,nofamiliar]{reledmac}
\usepackage{reledpar}
+\usepackage{suffix}
\usepackage[english]{babel}
\usepackage{graphicx,metalogo,longtable}
\makeatletter
@@ -95,7 +96,7 @@
%
% \fi
% \newcommand{\reff}[1]{\ref{#1} p.~\pageref{#1}}
-%
+% \WithSuffix\newcommand\reff*[1]{\reff{#1}}
% \makeatletter
% \newcommand*{\DescribeIt}{\leavevmode\@bsphack\begingroup\MakePrivateLetters
% \Describe@It}
@@ -261,8 +262,9 @@
% \hyphenation{man-u-script man-u-scripts}
% \changes{v2.6.0}{2015/11/13}{Fix bug with right side title number when using title commands before \protect\env{pages} or \protect\env{columns} environments.}
% \changes{v2.6.1}{2015/11/20}{Fix bug, introduced in v2.6.0, with footnote numbering when using \protect\package{perpage} package.}
+% \changes{v2.6.2}{2015/11/29}{Fix (again) bugs with footnote numbering in parallel typesetting while using \protect\env{ledgroup} environments (bug added in v2.6.0).}
%
-%
+% \changes{v2.6.2}{2015/11/29}{Fix bug (added in v2.6.0) with footnote numbering in parallel typesetting while using \protect\package{polyglossia} with specific number formatting (like Greek).}
% ^^A PW added following as the definitions are at some unknown elsewhere
%
% \newcommand{\egstart}{%
@@ -712,7 +714,7 @@
% \subsubsection{Notes height setting}
% Since \protect\package{eledpar} v1.13.0, long notes in facing pages can flow from left to right pages, and \emph{vice-versa}.
%
-% However, the \macpackage default setting for the maximum alloted size to notes is greater than \protect\cs{textheight}. That makes impossible for long notes to flow across pages.
+% However, the \macpackage default setting for the maximum alloted size to notes is greater than \protect\cs{textheight}. That makes impossible for long notes to flow across pages.%
% \footnote{The same applies to \LaTeX\ normal notes. Read \url{http://tex.stackexchange.com/a/228283/7712} for technical informations.}
% We have not changed this default setting, because we do not want to break compatibility with older version of \macpackage and we want to be as close as possible to default \LaTeX's feature.
%
@@ -720,8 +722,10 @@
% Both commands are explained in \macpackage handbook (\reff{reledmac-Xmaxhnotes}).
% As an advisable setting:
% \begin{verbatim}
-% \Xmaxhnotes{0.6\textheight}
-% \maxhnotesX{0.6\textheight}
+% \AtBeginDocument{%
+% \Xmaxhnotes{0.6\textheight}
+% \maxhnotesX{0.6\textheight}
+% }
% \end{verbatim}
% \subsubsection{About the numbering of familiar footnotes}
% If you use the same series of familiar footnotes on both sides, the numbers won't be correct in the first run. There will be a continuous numbering for left notes, and a continuous numbering for right notes.
@@ -1153,7 +1157,7 @@
% \begin{macrocode}
%<*code>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{reledpar}[2015/11/20 v2.6.1 reledmac extension for parallel texts]%
+\ProvidesPackage{reledpar}[2015/11/29 v2.6.2 reledmac extension for parallel texts]%
% \end{macrocode}
% \subsection{Package's requirement}
@@ -2624,15 +2628,15 @@
% Every note, in parallel typesetting, has three associated counters.
% \begin{enumerate}
% \item A \LaTeX\ counter \verb+footnoteX+. This the only one manipulated by user, and the only one finally printed.
-% \item A \TeX\ counter \verb+footnoteX@reading+. Its value is incremented when reading the \cs{footnoteX} command in left or right side environments. It is used to get the correct footnote number from the \verb+.aux+ file to be typeset in the main text.
+% \item A \TeX\ counter \verb+footnoteX@reading+. Its value is incremented when reading the \cs{footnoteX} command in left or right side environments. It is used to get the correct footnote number from the \verb+.aux+ file to be typeset in the main text. This counter is already defined in \macpackage, as it is also used for hyperlink.
+% \changes{v2.6.2}{2015/11/29}{The \TeX\ counter \protect\cs{footnoteX@reading} is defined in \protect\reledmac.}
% \item A \LaTeX\ counter \verb+footnoteX@typeset. Its value is increased when inserting footnotes. Its value is directly used in the footnote, and is stored in the \verb+aux+ files to be used on the next run for the main text.
% \end{enumerate}
%
%
%
-% So here, we only defined the new counters.
+% So here, we only defined the new counter.
% \begin{macrocode}
- \expandafter\newcount\csname footnote#1@reading\endcsname%
\newcounter{footnote#1@typeset}%
% \end{macrocode}
%
@@ -2832,6 +2836,9 @@
\l@dpagingfalse
\initnumbering@quote
\save@familiarfootnote@number%
+ \if@ledgroup%
+ \get@familiarfootnote@number%
+ \fi%
\save@section@number%
\at@begin@pairs%
}{%
@@ -2856,6 +2863,9 @@
\l@dpagingtrue
\initnumbering@quote
\save@familiarfootnote@number%
+ \if@ledgroup%
+ \get@familiarfootnote@number%
+ \fi%
\save@section@number%
\setlength{\Lcolwidth}{\textwidth}%
\setlength{\Rcolwidth}{\textwidth}%
@@ -4685,7 +4695,9 @@
\ifledRcol \gdef\theledlanguageR{#2}%
\else \gdef\theledlanguageL{#2}%
\fi}%
- \let\l@duselanguage\select@language%
+ \renewcommand{\l@duselanguage}[1]{%
+ \csuse{no\languagename @numbers}\select@language{#1}%
+ }%
\gdef\theledlanguageL{\xpg@main@language}%
\gdef\theledlanguageR{\xpg@main@language}%
% \end{macrocode}
@@ -5044,9 +5056,7 @@
\global\l@dpscR=\z@
\global\l@dnumpstartsL=\z@
\global\l@dnumpstartsR=\z@
- \if@ledgroup\else%
- \global\l@dprintingcolumnsfalse%
- \fi
+ \global\l@dprintingcolumnsfalse%
\ignorespaces
\global\instanzaLfalse%
\global\instanzaRfalse%
@@ -5666,9 +5676,7 @@
\global\l@dnumpstartsR=\z@%
\global\instanzaLfalse%
\global\instanzaRfalse%
- \if@ledgroup\else%
- \global\l@dprintingpagesfalse%
- \fi%
+ \global\l@dprintingpagesfalse%
\finish@Pages@notes%Needed to prevent final notes overlap line number
\ignorespaces\fi}
diff --git a/Master/texmf-dist/tex/latex/reledmac/reledmac.sty b/Master/texmf-dist/tex/latex/reledmac/reledmac.sty
index 38958fc7ea8..639b6e243c5 100644
--- a/Master/texmf-dist/tex/latex/reledmac/reledmac.sty
+++ b/Master/texmf-dist/tex/latex/reledmac/reledmac.sty
@@ -30,10 +30,11 @@
+
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{reledmac}[2015/11/20 v2.6.0 typeset critical edition]%
+\ProvidesPackage{reledmac}[2015/11/29 v2.7.0 typeset critical edition]%
\RequirePackage{xkeyval}
\newif\ifparledgroup
\DeclareOptionX{series}[A,B,C,D,E]{\xdef\default@series{#1}}
@@ -114,6 +115,7 @@
\newif\ifl@dmemoir
\@ifclassloaded{memoir}{\l@dmemoirtrue}{\l@dmemoirfalse}
+\newif\if@ledgroup%
\newif\ifl@imakeidx
\@ifpackageloaded{imakeidx}{\l@imakeidxtrue}{}%False is the default value
\newif\ifl@indextools%
@@ -187,13 +189,18 @@
\newcommand*{\led@warn@BadAction}{%
\reledmac@warning{Bad action code, value \next@action.}}
\newcommand*{\led@warn@DuplicateLabel}[1]{%
- \reledmac@warning{Duplicate definition of label `#1' on page \the\pageno.}}
+ \reledmac@warning{Duplicate definition of label `#1'\@gobble}%
+ \@latex@warning@no@line{Label `#1' multiply defined}%
+}%
\newcommand*{\led@warn@AppLabelOutEdtext}[1]{%
\reledmac@warning{\string\applabel\space outside of \string\edtext\space `#1' on page \the\pageno.}}%
\newcommand*{\led@warn@RefUndefined}[1]{%
\G@refundefinedtrue%
- \reledmac@warning{Reference `#1' on page \the\pageno\space undefined.
- Using `000'.}}
+ \reledmac@warning{Reference `#1' on page \the\pageno\space undefined.%
+ Using `000'.}%
+ \@latex@warning{Reference `#1' on page \thepage \space%
+ undefined}%
+}%
\newcommand*{\led@warn@pairRefUndefined}[1]{%
\G@refundefinedtrue%
\reledmac@warning{Reference `#1:start' and/or `#1:end' on page \the\pageno\space undefined.
@@ -1202,25 +1209,22 @@
\newcommand{\@tag}{}
\newcount\@edtext@level%
\@edtext@level=0%
+\newcounter{edtext}
+\renewcommand{\theedtext}{edtxt@\arabic{edtext}}%
\newcommand{\edtext}[2]{\leavevmode%
\ifnumberedpar@%
\global\advance\@edtext@level by 1%
+ \stepcounter{edtext}%
\global\@lemmacommand@false%
\begingroup%
\ifledRcol%
- \ifcsundef{sw@list@edtextR@\the\@edtext@level}%
+ \ifcsvoid{sw@list@edtextR@\the\@edtext@level}%
{\global\let\sw@inthisedtext\empty}%
- {\ifcsempty{sw@list@edtextR@\the\@edtext@level}%
-{\global\let\sw@inthisedtext\empty}%
-{\expandafter\gl@p\csname sw@list@edtextR@\the\@edtext@level\endcsname\to\sw@inthisedtext}%
- }%
+ {\expandafter\gl@p\csname sw@list@edtextR@\the\@edtext@level\endcsname\to\sw@inthisedtext}%
\else%
- \ifcsundef{sw@list@edtext@\the\@edtext@level}%
+ \ifcsvoid{sw@list@edtext@\the\@edtext@level}%
{\global\let\sw@inthisedtext\empty}%
- {\ifcsempty{sw@list@edtext@\the\@edtext@level}%
-{\global\let\sw@inthisedtext\empty}%
-{\expandafter\gl@p\csname sw@list@edtext@\the\@edtext@level\endcsname\to\sw@inthisedtext}%
- }%
+ {\expandafter\gl@p\csname sw@list@edtext@\the\@edtext@level\endcsname\to\sw@inthisedtext}%
\fi%
\global\renewcommand{\@tag}{%
\no@expands #1%
@@ -1241,7 +1245,16 @@
\fi%
\fi%
\endgroup%
- \showlemma{#1}%
+ \ifdef{\hypertarget}%
+ {%
+ \csedef{thisedtext@\the\@edtext@level}{\theedtext}%
+ \Hy@raisedlink{\hypertarget{\csuse{thisedtext@\the\@edtext@level}:start}{}}%
+ \showlemma{#1}%
+ \Hy@raisedlink{\hypertarget{\csuse{thisedtext@\the\@edtext@level}:end}{}}%
+ }%
+ {%
+ \showlemma{#1}%
+ }%
\ifx\end@lemmas\empty \else%
\gl@p\end@lemmas\to\x@lemma%
\x@lemma%
@@ -2058,6 +2071,7 @@
\notbool{parapparatus@}{\newcommand*}{\newcommand}{\normalvfootnote}[2]{%
\insert\csname #1footins\endcsname\bgroup
+ \hsize=\expandafter\dimexpr\csuse{Xhsize@#1}\relax%
\noindent\csuse{Xbhooknote@#1}%
\csuse{Xnotefontsize@#1}%
\footsplitskips
@@ -2083,7 +2097,10 @@
\hangindent=\csuse{Xhangindent@#4}
\everypar{\hangindent=\csuse{Xhangindent@#4}}%
\strut{\printlinefootnote{#1}{#4}}%
- {\nottoggle{Xlemmadisablefontselection@#4}{\select@lemmafont#1|#2}{#2}}%
+ {\nottoggle{Xlemmadisablefontselection@#4}%
+ {\select@lemmafont#1|{\csuse{Xlemmafont@#4}#2}}%
+ {{\csuse{Xlemmafont@#4}#2}}%
+ }%
\iftoggle{nosep@}{\hskip\csuse{Xinplaceoflemmaseparator@#4}}{\ifcsempty{Xlemmaseparator@#4}%
{\hskip\csuse{Xinplaceoflemmaseparator@#4}}%
{\nobreak\hskip\csuse{Xbeforelemmaseparator@#4}\csuse{Xlemmaseparator@#4}\hskip\csuse{Xafterlemmaseparator@#4}\relax%
@@ -2165,6 +2182,9 @@
\providecommand{\footfudgefiddle}{64}
\newcommand*{\para@footsetup}[1]{{\csuse{Xbhookgroup@#1}\csuse{Xnotefontsize@#1}
\setXnoteswidthliketwocolumns@{#1}%
+ \ifcsempty{Xhsize@#1}%
+ {}%
+ {\columnwidth=\expandafter\dimexpr\csuse{Xhsize@#1}\relax}%
\dimen0=\baselineskip
\multiply\dimen0 by 1024
\divide \dimen0 by \columnwidth \multiply\dimen0 by \footfudgefiddle\relax
@@ -2235,13 +2255,17 @@
\Xinsertparafootsep{#4}%
\ledsetnormalparstuff@common%
\printlinefootnote{#1}{#4}%
- {\nottoggle{Xlemmadisablefontselection@#4}{\select@lemmafont#1|#2}{#2}}%
+ {\nottoggle{Xlemmadisablefontselection@#4}%
+ {\select@lemmafont#1|{\csuse{Xlemmafont@#4}#2}}%
+ {{\csuse{Xlemmafont@#4}#2}}%
+ }%
\iftoggle{nosep@}{\hskip\csuse{Xinplaceoflemmaseparator@#4}}{\ifcsempty{Xlemmaseparator@#4}%
{\hskip\csuse{Xinplaceoflemmaseparator@#4}}%
{\nobreak\hskip\csuse{Xbeforelemmaseparator@#4}\csuse{Xlemmaseparator@#4}\hskip\csuse{Xafterlemmaseparator@#4}%
}}%
#3\penalty-10 }
\newcommand*{\parafootgroup}[1]{%
+ \hsize=\expandafter\dimexpr\csuse{Xhsize@#1}\relax%
\unvbox\csname #1footins\endcsname
\ifcsstring{Xragged@#1}{L}{\RaggedLeft}{}%
\ifcsstring{Xragged@#1}{R}{\RaggedRight}{}%
@@ -2306,7 +2330,18 @@
\global\csname #1prevpage@num\endcsname=\page@num%
}
\newcount\@k \newdimen\@h
-\newcommand*{\rigidbalance}[3]{\setbox0=\box#1 \@k=#2 \@h=#3
+\newcommand*{\Xrigidbalance}[3]{%
+ \hsize=\expandafter\dimexpr\csuse{Xhsize@\@currentseries}\relax%
+ \rigidbalance{#1}{#2}{#3}%
+}%
+
+\newcommand*{\rigidbalanceX}[3]{%
+ \hsize=\expandafter\dimexpr\csuse{hsizeX@\@currentseries}\relax%
+ \rigidbalance{#1}{#2}{#3}%
+}%
+
+\newcommand*{\rigidbalance}[3]{%
+ \setbox0=\box#1 \@k=#2 \@h=#3%
\@@line{\splittopskip=\@h \vbadness=\@M \hfilneg
\valign{##\vfil\cr\dosplits}}}
@@ -2346,6 +2381,7 @@
\notbool{parapparatus@}{\newcommand*}{\newcommand}{\threecolvfootnote}[2]{%
\insert\csname #1footins\endcsname\bgroup%
+ \hsize=\expandafter\dimexpr\csuse{Xhsize@#1}\relax%
\noindent\csuse{Xbhooknote@#1}%
\csuse{Xnotefontsize@#1}%
\footsplitskips%
@@ -2362,7 +2398,10 @@
\csuse{Xcolalign@#4}%
\parindent=\@tempdima%
\strut{\printlinefootnote{#1}{#4}}%
- {\nottoggle{Xlemmadisablefontselection@#4}{\select@lemmafont#1|#2}{#2}}%
+ {\nottoggle{Xlemmadisablefontselection@#4}%
+ {\select@lemmafont#1|{\csuse{Xlemmafont@#4}#2}}%
+ {{\csuse{Xlemmafont@#4}#2}}%
+ }%
\iftoggle{nosep@}{\hskip\csuse{Xinplaceoflemmaseparator@#4}}{\ifcsempty{Xlemmaseparator@#4}%
{\hskip\csuse{Xinplaceoflemmaseparator@#4}}%
{\nobreak\hskip\csuse{Xbeforelemmaseparator@#4}\csuse{Xlemmaseparator@#4}\hskip\csuse{Xafterlemmaseparator@#4}%
@@ -2372,7 +2411,7 @@
\noindent\csuse{Xtxtbeforenotes@#1}\csuse{Xbhookgroup@#1}}\par%
\splittopskip=\ht\strutbox
\expandafter
- \rigidbalance\csname #1footins\endcsname \thr@@ \splittopskip}
+ \Xrigidbalance\csname #1footins\endcsname \thr@@ \splittopskip}
\newcommand*{\mpthreecolfootgroup}[1]{{%
\vskip\skip\@nameuse{mp#1footins}
\ifl@dpairing\ifparledgroup%
@@ -2396,7 +2435,7 @@
\csuse{Xbhookgroup@#1}\par%
\splittopskip=\ht\strutbox
\expandafter
- \rigidbalance\csname mp#1footins\endcsname \thr@@ \splittopskip}}
+ \Xrigidbalance\csname mp#1footins\endcsname \thr@@ \splittopskip}}
\newcommand*{\Xarrangement@twocol}[1]{%
\csgdef{series@display#1}{twocol}
@@ -2418,10 +2457,11 @@
\newcommand*{\twocolfootsetup}[1]{%
\count\csname #1footins\endcsname 500
- \csxdef{default@#1footins}{500}%Use this to confine the notes to one side only
+ \csxdef{default@#1footins}{500}%
\multiply\dimen\csname #1footins\endcsname \tw@}
\notbool{parapparatus@}{\newcommand*}{\newcommand}{\twocolvfootnote}[2]{%
\insert\csname #1footins\endcsname\bgroup%
+ \hsize=\expandafter\dimexpr\csuse{Xhsize@#1}\relax%
\noindent\csuse{Xbhooknote@#1}%
\csuse{Xnotefontsize@#1}%
\footsplitskips%
@@ -2438,7 +2478,10 @@
\csuse{Xcolalign@#4}%
\parindent=\@tempdima%
\strut{\printlinefootnote{#1}{#4}}%
- {\nottoggle{Xlemmadisablefontselection@#4}{\select@lemmafont#1|#2}{#2}}%
+ {\nottoggle{Xlemmadisablefontselection@#4}%
+ {\select@lemmafont#1|{\csuse{Xlemmafont@#4}#2}}%
+ {{\csuse{Xlemmafont@#4}#2}}%
+ }%
\iftoggle{nosep@}{\hskip\csuse{Xinplaceoflemmaseparator@#4}}{\ifcsempty{Xlemmaseparator@#4}%
{\hskip\csuse{Xinplaceoflemmaseparator@#4}}%
{\nobreak\hskip\csuse{Xbeforelemmaseparator@#4}\csuse{Xlemmaseparator@#4}\hskip\csuse{Xafterlemmaseparator@#4}%
@@ -2448,7 +2491,7 @@
\noindent\csuse{Xtxtbeforenotes@#1}\csuse{Xbhookgroup@#1}}\par%
\splittopskip=\ht\strutbox
\expandafter
- \rigidbalance\csname #1footins\endcsname \tw@ \splittopskip}
+ \Xrigidbalance\csname #1footins\endcsname \tw@ \splittopskip}
\newcommand*{\mptwocolfootsetup}[1]{%
\count\csname mp#1footins\endcsname 500
@@ -2476,7 +2519,7 @@
\csuse{Xbhookgroup@#1}\par%
\splittopskip=\ht\strutbox
\expandafter
- \rigidbalance\csname mp#1footins\endcsname \tw@ \splittopskip}}
+ \Xrigidbalance\csname mp#1footins\endcsname \tw@ \splittopskip}}
\def\endashchar{\textnormal{--}}
@@ -2716,13 +2759,17 @@
\ifdimequal{\csuse{Xboxstartlinenum@\@currentseries}}{0pt}%
{\bgroup}%
{\leavevmode\hbox to \csuse{Xboxstartlinenum@\@currentseries}\bgroup\hfill}%
- \ifl@d@pnum #1%
+ \ifl@d@pnum%
+ \wrap@edcrossref{\@this@crossref@start}{#1}%
\csuse{Xsublinesep@\@currentseries}%
\fi%
- \linenumrep{#2}\iftoggle{Xlineflag@\@currentseries}{#8}{}%
+ \wrap@edcrossref{\@this@crossref@start}{%
+ \linenumrep{#2}%
+ \iftoggle{Xlineflag@\@currentseries}{#8}{}%
+ }%
\ifl@d@ssub%
\csuse{Xsublinesep@\@currentseries}%
- \sublinenumrep{#3}%
+ \wrap@edcrossref{\@this@crossref@start}{\sublinenumrep{#3}}%
\fi
\egroup%
\ifdimequal{\csuse{Xboxendlinenum@\@currentseries}}{0pt}%
@@ -2743,15 +2790,20 @@
\fi%
\fi%
\ifl@d@pnum%
- #4%
+ \wrap@edcrossref{\@this@crossref@end}{#4}%
\csuse{Xsublinesep@\@currentseries}%
\fi%
- \ifl@d@elin \linenumrep{#5}\iftoggle{Xlineflag@\@currentseries}{#8}{}\fi%
+ \ifl@d@elin%
+ \wrap@edcrossref{\@this@crossref@end}{%
+ \linenumrep{#5}%
+ \iftoggle{Xlineflag@\@currentseries}{#8}{}%
+ }%
+ \fi%
\ifl@d@esl%
\ifl@d@elin%
\csuse{Xsublinesep@\@currentseries}%
\fi%
- \sublinenumrep{#6}%
+ \wrap@edcrossref{\@this@crossref@end}{\sublinenumrep{#6}}%
\fi%
\fi%
\ifdimequal{\csuse{Xboxendlinenum@\@currentseries}}{0pt}%
@@ -2825,22 +2877,32 @@
}%
\newcommand{\l@dbfnote}[1]{%
- \ifnumberedpar@%
\get@thisfootnote%
\gdef\@tag{#1\relax}%
\ifledRcol%
- \xright@appenditem{\noexpand\vl@dbfnote{{\expandonce\@tag}}{\thisfootnote}}%
+ \xright@appenditem{%
+ \ifdefined\Hy@footnote@currentHref%
+ \noexpand\def\noexpand\Hy@footnote@currentHref{\Hy@footnote@currentHref}%
+ \fi%
+ \noexpand\vl@dbfnote{{\expandonce\@tag}}{\thisfootnote}%
+ }%
\to\inserts@listR
\global\advance\insert@countR \@ne%
\else%
- \xright@appenditem{\noexpand\vl@dbfnote{{\expandonce\@tag}}{\thisfootnote}}%
+ \xright@appenditem{%
+ \ifdefined\Hy@footnote@currentHref%
+ \noexpand\def\noexpand\Hy@footnote@currentHref{\Hy@footnote@currentHref}%
+ \fi%
+ \noexpand\vl@dbfnote{{\expandonce\@tag}}{\thisfootnote}%
+ }%
\to\inserts@list
\global\advance\insert@count \@ne%
\fi
- \fi\ignorespaces}
+ \ignorespaces%
+}%
\newcommand{\get@fnmark}[1]{%
- \ifboolexpr{bool{l@dprintingpages} or bool{l@dprintingcolumns}}%
+ \ifboolexpr{bool{l@dpairing} or bool{l@dprintingpages} or bool{l@dprintingcolumns}}%
{%
\stepcounter{footnote@typeset}%
\setcounter{footnote}{\c@footnote@typeset}%
@@ -2883,13 +2945,14 @@
}%
\newcommand*{\normal@footnotemarkX}[1]{%
\prebodyfootmark
- \@nameuse{bodyfootmark#1}%
+ \wrapped@bodyfootmarkX{#1}%
\postbodyfootmark}
\newcommand*{\normalbodyfootmarkX}[1]{%
\hbox{\textsuperscript{\normalfont\@nameuse{@thefnmark#1}}}}
\notbool{parapparatus@}{\newcommand*}{\newcommand}{\normalvfootnoteX}[2]{%
\insert\@nameuse{footins#1}\bgroup
+ \hsize=\expandafter\dimexpr\csuse{hsizeX@#1}\relax%
\noindent\csuse{bhooknoteX@#1}%
\csuse{notefontsizeX@#1}%
\footsplitskips
@@ -2903,6 +2966,7 @@
\newcommand*{\mpnormalvfootnoteX}[2]{%
\get@thisfootnoteX{#1}%
\get@fnmarkX{#1}{\thisfootnote}%
+ \edef\this@footnoteX@reading{\the\csname footnote#1@reading\endcsname}%
\global\setbox\@nameuse{mpfootins#1}\vbox{%
\unvbox\@nameuse{mpfootins#1}
\noindent\csuse{bhooknoteX@#1}%
@@ -2924,7 +2988,7 @@
\ledsetnormalparstuffX{#1}%
\hangindent=\csuse{hangindentX@#1}%
\everypar{\hangindent=\csuse{hangindentX@#1}}%
- {{\csuse{notenumfontX@#1}\@nameuse{footfootmark#1}}\strut%
+ {{\csuse{notenumfontX@#1}\wrapped@footfootmarkX{#1}}\strut%
#2\strut\par}}
\newcommand*{\normalfootfootmarkX}[1]{%
@@ -2983,7 +3047,6 @@
\newcommand{\normalbfnoteX}[2]{%
- \ifnumberedpar@
\get@thisfootnoteX{#1}%
\ifledRcol%
\ifluatex
@@ -2992,7 +3055,12 @@
\@ifundefined{xpg@main@language}%if polyglossia
{}%
{\footnotelang@poly[R]}%
- \xright@appenditem{\noexpand\vbfnoteX{#1}{#2}{\expandonce\thisfootnote}}%
+ \xright@appenditem{%
+ \noexpand\led@set@index@fornote{#1}%
+ \unexpanded{\def\this@footnoteX@reading}{\the\csname footnote#1@reading\endcsname}%
+ \noexpand\vbfnoteX{#1}{#2}{\expandonce\thisfootnote}%
+ \noexpand\led@reinit@index@fornote%
+ }%
\to\inserts@listR
\global\advance\insert@countR \@ne%
\else%
@@ -3002,11 +3070,16 @@
\@ifundefined{xpg@main@language}%if polyglossia
{}%
{\footnotelang@poly}%
- \xright@appenditem{\noexpand\vbfnoteX{#1}{#2}{\expandonce\thisfootnote}}%
+ \xright@appenditem{%
+ \noexpand\led@set@index@fornote{#1}%
+ \unexpanded{\def\this@footnoteX@reading}{\the\csname footnote#1@reading\endcsname}%
+ \noexpand\vbfnoteX{#1}{#2}{\expandonce\thisfootnote}%
+ \noexpand\led@reinit@index@fornote%
+ }%
\to\inserts@list
\global\advance\insert@count \@ne%
\fi
- \fi\ignorespaces}
+ \ignorespaces}
\newcommand{\get@thisfootnoteX}[1]{%
\ifl@dpairing%
@@ -3021,7 +3094,7 @@
}%
\newcommand{\get@fnmarkX}[2]{%
- \ifboolexpr{bool{l@dprintingpages} or bool{l@dprintingcolumns}}%
+ \ifboolexpr{bool{l@dpairing} or bool{l@dprintingpages} or bool{l@dprintingcolumns}}%
{%
\stepcounter{footnote#1@typeset}%
\setcounter{footnote#1}{\value{footnote#1@typeset}}%
@@ -3038,6 +3111,7 @@
\ifnumberedpar@
\edtext{}{\normalbfnoteX{#1}{#2}}%
\else
+ \def\this@footnoteX@reading{\the\csname footnote#1@reading\endcsname}%
\@nameuse{regvfootnote#1}{#1}{#2}%
\fi}
@@ -3096,6 +3170,7 @@
\notbool{parapparatus@}{\newcommand*}{\newcommand}{\twocolvfootnoteX}[2]{%
\insert\csname footins#1\endcsname\bgroup%
+ \hsize=\expandafter\dimexpr\csuse{hsizeX@#1}\relax%
\noindent\csuse{bhooknoteX@#1}%
\csuse{notefontsizeX@#1}%
\footsplitskips%
@@ -3116,13 +3191,13 @@
\@tempdima=\parindent%
\csuse{colalignX@#1}%
\parindent=\@tempdima%
- {\csuse{notenumfontX@#1}\@nameuse{footfootmark#1}\strut%
+ {\csuse{notenumfontX@#1}\wrapped@footfootmarkX{#1}\strut%
#2\strut\par}\allowbreak}
\newcommand*{\twocolfootgroupX}[1]{{\csuse{bhookgroupX@#1}\csuse{notefontsizeX@#1}
\splittopskip=\ht\strutbox
\expandafter
- \rigidbalance\csname footins#1\endcsname \tw@ \splittopskip}}
+ \rigidbalanceX\csname footins#1\endcsname \tw@ \splittopskip}}
\newcommand*{\mptwocolfootgroupX}[1]{{%
\vskip\skip\@nameuse{mpfootins#1}
@@ -3146,7 +3221,7 @@
\csuse{bhookgroupX@#1}%
\splittopskip=\ht\strutbox
\expandafter
- \rigidbalance\csname mpfootins#1\endcsname \tw@ \splittopskip}}
+ \rigidbalanceX\csname mpfootins#1\endcsname \tw@ \splittopskip}}
\newcommand*{\arrangementX@threecol}[1]{%
\csgdef{series@displayX#1}{threecol}
@@ -3176,6 +3251,7 @@
\notbool{parapparatus@}{\newcommand*}{\newcommand}{\threecolvfootnoteX}[2]{%
\insert\csname footins#1\endcsname\bgroup%
+ \hsize=\expandafter\dimexpr\csuse{hsizeX@#1}\relax%
\noindent\csuse{bhooknoteX@#1}%
\csuse{notefontsizeX@#1}
\footsplitskips%
@@ -3195,13 +3271,13 @@
\@tempdima=\parindent%
\csuse{colalignX@#1}%
\parindent=\@tempdima%
- {\csuse{notenumfontX@#1}\@nameuse{footfootmark#1}\strut%
+ {\csuse{notenumfontX@#1}\wrapped@footfootmarkX{#1}\strut%
#2\strut\par}\allowbreak}
\newcommand*{\threecolfootgroupX}[1]{{\csuse{bhookgroupX@#1}\csuse{notefontsizeX@#1}
\splittopskip=\ht\strutbox
\expandafter
- \rigidbalance\csname footins#1\endcsname \thr@@ \splittopskip}}
+ \rigidbalanceX\csname footins#1\endcsname \thr@@ \splittopskip}}
\newcommand*{\mpthreecolfootgroupX}[1]{{%
\vskip\skip\@nameuse{mpfootins#1}
@@ -3225,7 +3301,7 @@
\csuse{bhookgroupX@#1}%
\splittopskip=\ht\strutbox
\expandafter
- \rigidbalance\csname mpfootins#1\endcsname \thr@@ \splittopskip}}
+ \rigidbalanceX\csname mpfootins#1\endcsname \thr@@ \splittopskip}}
\newcommand*{\arrangementX@paragraph}[1]{%
\csgdef{series@displayX#1}{paragraph}%
@@ -3253,6 +3329,9 @@
\newcommand*{\para@footsetupX}[1]{{\csuse{bhookgroupX@#1}\csuse{notefontsizeX@#1}
\setnoteswidthliketwocolumnsX@{#1}%
+ \ifcsempty{hsizeX@#1}%
+ {}%
+ {\columnwidth=\expandafter\dimexpr\csuse{hsizeX@#1}\relax}%
\dimen0=\baselineskip
\multiply\dimen0 by 1024
\divide\dimen0 by \columnwidth \multiply\dimen0 by \footfudgefiddle\relax%
@@ -3297,6 +3376,7 @@
\newcommand*{\mppara@vfootnoteX}[2]{%
\get@thisfootnoteX{#1}%
\get@fnmarkX{#1}{\thisfootnote}%
+ \edef\this@footnoteX@reading{\the\csname footnote#1@reading\endcsname}%
\global\setbox\@nameuse{mpfootins#1}\vbox{%
\unvbox\@nameuse{mpfootins#1}
\csuse{notefontsizeX@#1}
@@ -3329,11 +3409,12 @@
\ledsetnormalparstuff@common%
{\csuse{notenumfontX@#1}%
\csuse{notenumfontX@#1}%
- \@nameuse{footfootmark#1}%
+ \wrapped@footfootmarkX{#1}%
\strut%
#2\penalty-10}}
\newcommand*{\para@footgroupX}[1]{%
+ \hsize=\expandafter\dimexpr\csuse{hsizeX@#1}\relax%
\unvbox\csname footins#1\endcsname
\ifcsstring{raggedX@#1}{L}{\RaggedLeft}{}%
\ifcsstring{raggedX@#1}{R}{\RaggedRight}{}%
@@ -3378,6 +3459,34 @@
{\csuse{parafootsepX@#1}}%
{}%
}
+\newcommand{\wrapped@footfootmarkX}[1]{%
+ \ifdefined\hypertarget%
+ \Hy@raisedlink{%
+ \hypertarget%
+ {@footnotemark#1@\this@footnoteX@reading}%
+ {}%
+ }%
+ \hyperlink%
+ {@bodyfootmark#1@\this@footnoteX@reading}%
+ {\@nameuse{footfootmark#1}}%
+ \else%
+ \@nameuse{footfootmark#1}%
+ \fi%
+}%
+\newcommand{\wrapped@bodyfootmarkX}[1]{%
+ \ifdefined\hypertarget%
+ \Hy@raisedlink{%
+ \hypertarget%
+ {@bodyfootmark#1@\expandafter\the\csname footnote#1@reading\endcsname}%
+ {}%
+ }%
+ \hyperlink%
+ {@footnotemark#1@\expandafter\the\csname footnote#1@reading\endcsname}%
+ {\@nameuse{bodyfootmark#1}}%
+ \else%
+ \@nameuse{bodyfootmark#1}%
+ \fi%
+}%
\newcommand*{\ledsetnormalparstuff@common}{%
\ifluatex%
\textdir\footnote@luatextextdir%
@@ -3403,6 +3512,7 @@
\newcommand{\setXnoteswidthliketwocolumns@}[1]{%
\global\let\hsize@fornote=\hsize%
\global\old@hsize=\hsize%
+ \let\old@columwidth=\columnwidth%
\iftoggle{Xnoteswidthliketwocolumns@#1}%
{%
\csuse{setwidthliketwocolumns@\columns@position}%
@@ -3410,12 +3520,13 @@
}%
{}%
\let\hsize=\hsize@fornote%
- \let\columnwidth=\hsize@fornote%
+ \let\columnwidth=\old@columwidth%
}%
\newcommand{\setnoteswidthliketwocolumnsX@}[1]{%
\global\let\hsize@fornote=\hsize%
\global\old@hsize=\hsize%
+ \let\old@columwidth=\columnwidth%
\iftoggle{noteswidthliketwocolumnsX@#1}%
{%
\csuse{setwidthliketwocolumns@\columns@position}%
@@ -3423,7 +3534,7 @@
}%
{}%
\let\hsize=\hsize@fornote%
- \let\columnwidth=\hsize@fornote%
+ \let\columnwidth=\old@columwidth%
}%
\newcommand{\setXnotespositionliketwocolumns@}[1]{%
@@ -3531,7 +3642,7 @@
\dolistloop{\@series}%
}%
-\global\notbool{parapparatus@}{}{\long}\def\endprint#1#2#3#4#5#6{{%
+\global\notbool{parapparatus@}{}{\long}\def\endprint#1#2#3#4#5#6#7{{%
\hangindent=\csuse{Xendhangindent@#4}%
\ifXendinsertsep@%
\hskip\csuse{Xendafternote@#4}%
@@ -3549,11 +3660,15 @@
\csuse{Xendbhooknote@#4}%
\csuse{Xendnotefontsize@#4}%
\IfStrEq{#6}{R}{\ledRcol@true}{}%
+ \def\@this@crossref@start{#7:start}%
+ \def\@this@crossref@end{#7:end}%
\printlineendnote{#1}{#4}%
\IfStrEq{#6}{R}{\ledRcol@false}{}%
+ \undef\@this@crossref@start%
+ \undef\@this@crossref@end%
\nottoggle{Xendlemmadisablefontselection@#4}%
- {\select@lemmafont#1|#2}%
- {#2}%
+ {\select@lemmafont#1|{\csuse{Xendlemmafont@#4}#2}}%
+ {{\csuse{Xendlemmafont@#4}#2}}%
\ifboolexpr{%
togl {nosep@}%
or test{\ifcsempty{Xendlemmaseparator@#4}}%
@@ -3721,7 +3836,7 @@
\ifdimequal{\csuse{Xendboxstartlinenum@\@currentseries}}{0pt}%
{\bgroup}%
{\leavevmode\hbox to \csuse{Xendboxstartlinenum@\@currentseries}\bgroup\hfill}%
- \printnpnum{#1}%
+ \wrap@edcrossref{\@this@crossref@start}{\printnpnum{#1}}%
\ifl@d@dash%
\ifl@d@pnum%
\csuse{Xendlineprefixsingle@\@currentseries}%
@@ -3733,10 +3848,11 @@
\else%
\csuse{Xendlineprefixsingle@\@currentseries}%
\fi%
- \linenumrep{#2}\iftoggle{Xendlineflag@\@currentseries}{\ifledRcol@\@Rlineflag\fi}{}%
+ \wrap@edcrossref{\@this@crossref@start}{\linenumrep{#2}}%
+ \iftoggle{Xendlineflag@\@currentseries}{\ifledRcol@\@Rlineflag\fi}{}%
\ifl@d@ssub%
\csuse{Xendsublinesep@\@currentseries}%
- \sublinenumrep{#3}%
+ \wrap@edcrossref{\@this@crossref@start}{\sublinenumrep{#3}}%
\fi%
\egroup%
\ifdimequal{\csuse{Xendboxendlinenum@\@currentseries}}{0pt}%
@@ -3756,17 +3872,19 @@
\csuse{Xendlinerangeseparator@\@currentseries}%
\fi%
\fi%
- \ifl@d@pnum \printnpnum{#4}\fi%
+ \ifl@d@pnum%
+ \wrap@edcrossref{\@this@crossref@end}\printnpnum{#4}%
+ \fi%
\ifl@d@elin%
\ifl@d@pnum\csuse{Xendlineprefixsingle@\@currentseries}\fi%
- \linenumrep{#5}%
+ \wrap@edcrossref{\@this@crossref@end}{\linenumrep{#5}}%
\iftoggle{Xendlineflag@\@currentseries}{\ifledRcol@\@Rlineflag\fi}{}%
\fi%
\ifl@d@esl%
\ifl@d@elin%
\csuse{Xendsublinesep@\@currentseries}%
\fi%
- \sublinenumrep{#6}%
+ \wrap@edcrossref{\@this@crossref@end}{\sublinenumrep{#6}}%
\fi%
\fi%
\ifdimequal{\csuse{Xendboxendlinenum@\@currentseries}}{0pt}%
@@ -3790,7 +3908,7 @@
\newseries@par{#1}%
\fi%
\unless\ifnocritical@
- \newtoggle{Xlineflag@#1}
+ \newtoggle{Xlineflag@#1}
\newtoggle{Xparindent@#1}
\newtoggle{Xlemmadisablefontselection@#1}
\csgdef{Xhangindent@#1}{0pt}%
@@ -3843,6 +3961,9 @@
\csgdef{Xparafootsep@#1}{}%
\csgdef{Xafternote@#1}{1em plus.4em minus.4em}
\csgdef{Xlinerangeseparator@#1}{\endashchar}%
+
+ \csgdef{Xlemmafont@#1}{}%
+ \csgdef{Xhsize@#1}{\hsize}%
\expandafter\newinsert\csname #1footins\endcsname%
\unless\ifnoledgroup@%
\expandafter\newinsert\csname mp#1footins\endcsname%
@@ -3867,20 +3988,24 @@
\ifbool{indtl@notenumber}%
{\unexpanded{\let\index\nindex}}%There is no note number… so
{}%
- \ifbool{indtl@notenumber}%
- {\unexpanded{\let\index\orig@@index}}%
- {}%
\noexpand\Xnote@true%
\noexpand\prepare@preXnotes{#1}%
\noexpand\prepare@edindex@fornote{\l@d@nums}%
\unexpanded{\def\sw@list@inedtext}{\expandafter\unexpanded\expandafter{\sw@inthisedtext}}%The value of the \sw@inthisedtext of current \edtext will be pushed to \sw@list@inedtext when the notes are expanded.
\noexpand\setcounter{stanzaR}{\the\c@stanzaR}%Save stanzaR counter for footnote
+ \unexpanded{\def\@this@crossref@start}{\theedtext:start}%
+ \unexpanded{\def\@this@crossref@end}{\theedtext:end}%
\noexpand\csuse{v#1footnote}{#1}%
{{\l@d@nums}{\expandonce\@tag}{\expandonce\content}}%
\noexpand\Xnote@false%
+ \unexpanded{\undef\@this@crossref@start}%
+ \unexpanded{\undef\@this@crossref@end}%
\ifbool{indtl@innote}%
{\unexpanded{\let\index\orig@@index}}%
{}%
+ \ifbool{indtl@notenumber}%
+ {\unexpanded{\let\index\orig@@index}}%
+ {}%
}\to\inserts@listR
\footnoteoptions@{R}{##1}{false}%
\global\advance\insert@countR \@ne%
@@ -3906,9 +4031,14 @@
\ifl@dpairing%
\noexpand\setcounter{stanzaL}{\the\c@stanzaL}%Save stanzaR counter for footnote
\fi%
- \noexpand\csuse{v#1footnote}{#1}%
- {{\l@d@nums}{\expandonce\@tag}{\expandonce\content}}%
- \noexpand\Xnote@false%
+ \unexpanded{\def\@this@crossref@start}{\theedtext:start}%
+ \unexpanded{\def\@this@crossref@end}{\theedtext:end}%
+ \noexpand\csuse{v#1footnote}%
+ {#1}%
+ {{\l@d@nums}{\expandonce\@tag}{\expandonce\content}}%
+ \unexpanded{\undef\@this@crossref@start}%
+ \unexpanded{\undef\@this@crossref@end}%
+ \noexpand\Xnote@false%
\ifbool{indtl@innote}%
{\unexpanded{\let\index\orig@@index}}%
{}%
@@ -3948,6 +4078,7 @@
\newtoggle{noteswidthliketwocolumnsX@#1}%
\csgdef{parafootsepX@#1}{}%
\csgdef{afternoteX@#1}{1em plus.4em minus.4em}
+ \csgdef{hsizeX@#1}{\hsize}%
\expandafter\newinsert\csname footins#1\endcsname%
\unless\ifnoledgroup@%
\expandafter\newinsert\csname mpfootins#1\endcsname%
@@ -3957,8 +4088,8 @@
\begingroup%
\prepare@prenotesX{#1}%
\newcommand{\content}{##1}%
+ \global\expandafter\advance\csname footnote#1@reading\endcsname by \@ne%
\ifl@dpairing%
- \global\expandafter\advance\csname footnote#1@reading\endcsname by \@ne
\ifcsdef{footnote#1reading\the\csname footnote#1@reading\endcsname=typeset}%
{\setcounter{footnote#1}{\csuse{footnote#1reading\the\csname footnote#1@reading\endcsname=typeset}}}%
{\setcounter{footnote#1}{\the\csname footnote#1@reading\endcsname}}%
@@ -3973,29 +4104,21 @@
\xdef\footnote@luatextextdir{\the\textdir}%
\xdef\footnote@luatexpardir{\the\pardir}%
\fi%
- \ifbool{indtl@innote}%
- {\let\index\nindex}%
- {}%
- \ifbool{indtl@notenumber}%
- {%
- \renewcommand{\index}[2][]{%
- \orig@@index[####1]{%
- ####2|innotenumber{\csuse{thefootnote#1}}%
- }%
- }%
- }%
- {}%
- \csuse{vfootnote#1}{#1}{\expandonce\content}\m@mmf@prepare%
+ \if@ledgroup%
+ \led@set@index@fornote{#1}%
+ \fi%
+ \csuse{vfootnote#1}{#1}{\expandonce\content}\m@mmf@prepare%
\ifbool{indtl@innote}%
{\let\index\orig@@index}%
{}%
- \ifbool{indtl@notenumber}%
+ \ifbool{indtl@notenumber}%
{\let\index\orig@@index}%
{}%
\endgroup%
}
\newcounter{footnote#1}
\global\expandafter\renewcommand\csname thefootnote#1\endcsname{\arabic{footnote#1}}
+ \expandafter\newcount\csname footnote#1@reading\endcsname%
\arrangementX@normal{#1}%
\fi
\unless\ifnoend@
@@ -4007,6 +4130,7 @@
\newlinechar='40%
\global\@noneed@Footnotetrue%
\newcommand{\content}{##2}%
+ \stepcounter{labidx}%
\expandafter\immediate\expandafter\write\csname l@d@#1end\endcsname{%
\expandafter\string\csname #1end\endcsname%
{\ifnumberedpar@\l@d@nums\fi}%
@@ -4014,7 +4138,8 @@
{\expandonce\content}%
{#1}%
{\unexpanded{##1}}%
- {\ifledRcol R\else L\fi}
+ {\ifledRcol R\else L\fi}%
+ {\theedtext}%
\@percentchar%
}%
\egroup%
@@ -4077,6 +4202,8 @@
\csgdef{Xendlineprefixmore@#1}{}%
\newtoggle{Xendlineflag@#1}
+
+ \csgdef{Xendlemmafont@#1}{}%
\fi%
\listxadd{\@series}{#1}
}
@@ -4183,6 +4310,7 @@
}%
}
\unless\ifnocritical@
+ \newhookcommand@series{Xlemmafont}%
\newhooktoggle@series{Xparindent}
\newhookcommand@series{Xhangindent}
\newhookcommand@series{Xragged}
@@ -4232,6 +4360,8 @@
\newhookcommand@series{Xafternote}%
\newhookcommand@series{Xparafootsep}
+ \newhookcommand@series@reload{Xhsize}{critical}%
+
\fi
\newhooktoggle@series{Xlineflag}[appref,SEref]
\newhookcommand@series{Xtwolines}[appref,SEref]
@@ -4257,9 +4387,11 @@
\newhookcommand@series@reload{notefontsizeX}{familiar}
\newhookcommand@series{afternoteX}
\newhookcommand@series{parafootsepX}
+ \newhookcommand@series@reload{hsizeX}{familiar}%
\fi
\unless\ifnoend@
\newhookcommand@series{Xendnotenumfont}
+ \newhookcommand@series{Xendlemmafont}%
\newhookcommand@series{Xendbhooknote}
\newhookcommand@series{Xendboxlinenum}%
@@ -4308,7 +4440,7 @@
\newhooktoggle@series{Xendtwolinesonlyinsamepage}[apprefwithpage,SErefwithpage]
\newhookcommand@series{Xendlinerangeseparator}[apprefwithpage,SErefwithpage]
\newhookcommand@series{Xendbeforepagenumber}[apprefwithpage,SErefwithpage,SErefonlypage]
-\newhookcommand@series{Xendafterpagenumber}[apprefwithpage,SErefwithpagem,SErefonlypage]
+\newhookcommand@series{Xendafterpagenumber}[apprefwithpage,SErefwithpagem]
\newhookcommand@series{Xendlineprefixsingle}[apprefwithpage,SErefwithpage]
\newhookcommand@series{Xendlineprefixmore}[apprefwithpage,SErefwithpage]
\newhookcommand@series{Xendsublinesep}[apprefwithpage,SErefwithpage]
@@ -4348,6 +4480,7 @@
\unvbox\@outputbox
\@opXfeet}}
\newcommand\print@Xnotes[1]{%
+ \xdef\@currentseries{#1}%
\csuse{#1footstart}{#1}%
\csuse{#1footgroup}{#1}%%
}%
@@ -4385,6 +4518,7 @@
}
\newcommand\print@notesX[1]{%
+ \xdef\@currentseries{#1}%
\csuse{footstart#1}{#1}%
\csuse{footgroup#1}{#1}%
}%
@@ -4704,13 +4838,14 @@
\toggletrue{Xlineflag@SEref}%%Here exception
\def\Xendtwolines@apprefwithpage{}%
-\def\Xendtwolines@SEwithpage{}%
+\def\Xendtwolines@SErefwithpage{}%
\def\Xendmorethantwolines@apprefwithpage{}%
\def\Xendmorethantwolines@SErefwithpage{}%
\def\Xendlinerangeseparator@apprefwithpage{\endashchar}
\def\Xendlinerangeseparator@SErefwithpage{\endashchar}
+\def\Xendlinerangeseparator@SErefonlypage{\endashchar}
\def\Xendbeforepagenumber@apprefwithpage{p.}%
\def\Xendbeforepagenumber@SErefwithpage{p.}%
@@ -4718,7 +4853,6 @@
\def\Xendafterpagenumber@apprefwithpage{) }%
\def\Xendafterpagenumber@SErefwithpage{) }%
-\def\Xendafterpagenumber@SErefonlypage{) }%
\def\Xendlineprefixsingle@apprefwithpage{}%
\def\Xendlineprefixsingle@SErefwithpage{}%
@@ -4773,6 +4907,10 @@
\gdef\@SErefprefixmore{#1}%
}
+\let\setSErefonlypageprefixsingle\XendbeforepagenumberSErefonlypage%
+\newcommand{\setSErefonlypageprefixmore}[1]{%
+ \gdef\SErefonlypage@prefixmore{#1}%
+}%
\newcommandx{\appref}[2][1,usedefault]{\refformated@{#1}{#2}{appref}}
\newcommandx{\SEref}[2][1,usedefault]{\refformated@{#1}{#2}{SEref}}
@@ -4799,7 +4937,13 @@
or test{\ifcsundef{the@label#2:end}}%
}%
{\led@warn@pairRefUndefined{#2}\nfss@text{\reset@font\bfseries ??}}%
- {\printlines\xpageref{#2:start}|\xlineref{#2:start}|\xsublineref{#2:start}|\xpageref{#2:end}|\xlineref{#2:end}|\xsublineref{#2:end}|\relax|\xflagref{#2:start}|}%
+ {%
+ \def\@this@crossref@start{#2:start}%
+ \def\@this@crossref@end{#2:end}%
+ \printlines\xpageref{#2:start}|\xlineref{#2:start}|\xsublineref{#2:start}|\xpageref{#2:end}|\xlineref{#2:end}|\xsublineref{#2:end}|\relax|\xflagref{#2:start}|%
+ \undef\@this@crossref@end%
+ \undef\@this@crossref@start%
+ }%
\def\do##1{%
\setkeys[mac]{falsefootnoteoption}{##1}%
}%
@@ -4817,7 +4961,13 @@
or test{\ifcsundef{the@label#2:end}}%
}%
{\led@warn@pairRefUndefined{#2}\nfss@text{\reset@font\bfseries ??}}%
- {\printendlines\xpageref{#2:start}|\xlineref{#2:start}|\xsublineref{#2:start}|\xpageref{#2:end}|\xlineref{#2:end}|\xsublineref{#2:end}|\relax|\xflagref{#2:start}|}%
+ {%
+ \def\@this@crossref@start{#2:start}%
+ \def\@this@crossref@end{#2:end}%
+ \printendlines\xpageref{#2:start}|\xlineref{#2:start}|\xsublineref{#2:start}|\xpageref{#2:end}|\xlineref{#2:end}|\xsublineref{#2:end}|\relax|\xflagref{#2:start}|%
+ \undef\@this@crossref@end%
+ \undef\@this@crossref@start%
+ }%
\def\do##1{%
\setkeys[mac]{falsefootnoteoption}{##1}%
}%
@@ -4835,23 +4985,30 @@
or test{\ifcsundef{the@label#2:end}}%
}%
{\led@warn@pairRefUndefined{#2}\nfss@text{\reset@font\bfseries ??}}%
- {\ifnum\xpageref{#2:start}=\xpageref{#2:end}%
- \printnpnum{\xpageref{#2:start}}
- \else%
+ {\ifnumequal{\xpageref{#2:end}}{\xpageref{#2:start}}%
+ {%
+ \printnpnum{%
+ \wrap@edcrossref{#2:start}{\xpageref{#2:start}}%
+ }%
+ }%
+ {%
+ \ifcsvoid{#3onlypage@prefixmore}%
+ {}%
+ {\csletcs{Xendbeforepagenumber@#3onlypage}{#3onlypage@prefixmore}}%
\ifdefined\linerangesep@%
\printnpnum{%
- \xpageref{#2:start}%
+ \wrap@edcrossref{#2:start}{\xpageref{#2:start}}%
\linerangesep@%
- \xpageref{#2:end}%
+ \wrap@edcrossref{#2:end}{\xpageref{#2:end}}%
}%
\else%
\printnpnum{%
- \xpageref{#2:start}%
+ \wrap@edcrossref{#2:start}{\xpageref{#2:start}}%
\csuse{Xendlinerangeseparator@\@currentseries}%
- \xpageref{#2:end}%
+ \wrap@edcrossref{#2:end}{\xpageref{#2:end}}%
}%
\fi%
- \fi%
+ }%
}%
\def\do##1{%
\setkeys[mac]{falsefootnoteoption}{##1}%
@@ -5089,7 +5246,6 @@
\fi%
\fi%
}
-\newif\if@ledgroup%
\ifnoledgroup@\else%
\newcommand*{\l@dfeetbeginmini}{\@ledgrouptrue\l@dedbeginmini\l@dfambeginmini}
\newcommand*{\l@dfeetendmini}{%
@@ -5201,10 +5357,6 @@
\@ledgroupfalse%
}
-\apptocmd{\endledgroup}{%
- \l@dprintingpagesfalse%
- \l@dprintingcolumnsfalse%
-}{}{}
\newenvironment{ledgroupsized}[2][l]{%
\hsize #2\relax
\let\ledllfill\hfil
@@ -5251,7 +5403,8 @@
\edlabel{\edindexlab\thelabidx}%
}
-\newcommand{\thepageline}{%
+\newcounter{pageline}%
+\renewcommand{\thepageline}{%
\thepage%
\pagelinesep%
\xlineref{\edindexlab\thelabidx}%
@@ -5449,6 +5602,56 @@
\fi%
}%
}
+\newcommand{\led@set@index@fornote}[1]{%
+ \ifbool{indtl@innote}%
+ {\let\index\nindex}%
+ {}%
+ \ifbool{indtl@notenumber}%
+ {%
+ \renewcommand{\index}[2][\indtl@jobname]{%
+ \orig@@index[##1]{%
+ ##2|innotenumber{\csuse{thefootnote#1}}%
+ }%
+ }%
+ }%
+ {}%
+}%
+\newcommand{\led@reinit@index@fornote}{%
+ \ifbool{indtl@innote}%
+ {\let\index\orig@@index}%
+ {}%
+ \ifbool{indtl@notenumber}%
+ {\let\index\orig@@index}%
+ {}%
+}%
+\DeclareRobustCommandx{\edgls}[3][1,3,usedefault]{%
+ \doedindexlabel%
+ \gls[counter=pageline,#1]{#2}[#3]%
+}
+\DeclareRobustCommandx{\edGls}[3][1,3,usedefault]{%
+ \doedindexlabel%
+ \Gls[counter=pageline,#1]{#2}[#3]%
+}
+\DeclareRobustCommandx{\edGLS}[3][1,3,usedefault]{%
+ \doedindexlabel%
+ \GLS[counter=pageline,#1]{#2}[#3]%
+}
+\DeclareRobustCommandx{\edglspl}[3][1,3,usedefault]{%
+ \doedindexlabel%
+ \glspl[counter=pageline,#1]{#2}[#3]%
+}
+\DeclareRobustCommandx{\edGlspl}[3][1,3,usedefault]{%
+ \doedindexlabel%
+ \Glspl[counter=pageline,#1]{#2}[#3]%
+}
+\DeclareRobustCommandx{\edGLSpl}[3][1,3,usedefault]{%
+ \doedindexlabel%
+ \GLSpl[counter=pageline,#1]{#2}[#3]%
+}
+\DeclareRobustCommandx{\edglsdisp}[3][1,3,usedefault]{%
+ \doedindexlabel%
+ \glsdisp[counter=pageline,#1]{#2}[#3]%
+}
\def\@hangingsymbol{}
\newcommand*{\sethangingsymbol}[1]{%
\gdef\@hangingsymbol{#1}%
diff --git a/Master/texmf-dist/tex/latex/reledmac/reledpar.sty b/Master/texmf-dist/tex/latex/reledmac/reledpar.sty
index ebbf1b6a1c7..be0291d00a9 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}[2015/11/20 v2.6.1 reledmac extension for parallel texts]%
+\ProvidesPackage{reledpar}[2015/11/29 v2.6.2 reledmac extension for parallel texts]%
\RequirePackage{xspace}%
\RequirePackage{xkeyval}
@@ -617,7 +617,6 @@
\csgdef{Xonlyside@#1}{}%
\fi%
\unless\ifnofamiliar@%
- \expandafter\newcount\csname footnote#1@reading\endcsname%
\newcounter{footnote#1@typeset}%
\expandafter\list@create\csname footnote#1@mk\endcsname%
\expandafter\newcommand\csname footnote#1nomk\endcsname[1]{%
@@ -700,6 +699,9 @@
\l@dpagingfalse
\initnumbering@quote
\save@familiarfootnote@number%
+ \if@ledgroup%
+ \get@familiarfootnote@number%
+ \fi%
\save@section@number%
\at@begin@pairs%
}{%
@@ -714,6 +716,9 @@
\l@dpagingtrue
\initnumbering@quote
\save@familiarfootnote@number%
+ \if@ledgroup%
+ \get@familiarfootnote@number%
+ \fi%
\save@section@number%
\setlength{\Lcolwidth}{\textwidth}%
\setlength{\Rcolwidth}{\textwidth}%
@@ -1723,7 +1728,9 @@
\ifledRcol \gdef\theledlanguageR{#2}%
\else \gdef\theledlanguageL{#2}%
\fi}%
- \let\l@duselanguage\select@language%
+ \renewcommand{\l@duselanguage}[1]{%
+ \csuse{no\languagename @numbers}\select@language{#1}%
+ }%
\gdef\theledlanguageL{\xpg@main@language}%
\gdef\theledlanguageR{\xpg@main@language}%
}}
@@ -1912,9 +1919,7 @@
\global\l@dpscR=\z@
\global\l@dnumpstartsL=\z@
\global\l@dnumpstartsR=\z@
- \if@ledgroup\else%
- \global\l@dprintingcolumnsfalse%
- \fi
+ \global\l@dprintingcolumnsfalse%
\ignorespaces
\global\instanzaLfalse%
\global\instanzaRfalse%
@@ -2282,9 +2287,7 @@
\global\l@dnumpstartsR=\z@%
\global\instanzaLfalse%
\global\instanzaRfalse%
- \if@ledgroup\else%
- \global\l@dprintingpagesfalse%
- \fi%
+ \global\l@dprintingpagesfalse%
\finish@Pages@notes%Needed to prevent final notes overlap line number
\ignorespaces\fi}