summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-01-12 22:58:51 +0000
committerKarl Berry <karl@freefriends.org>2015-01-12 22:58:51 +0000
commitbd074a3cb017b7513267c1a7de5d665b2aa21da8 (patch)
treef11430e81574995a0f8c0417037ddd4095ed1428 /Master/texmf-dist
parent0d10ac09f153aab986a764b19809e4584693d6f7 (diff)
eledmac (12jan15)
git-svn-id: svn://tug.org/texlive/trunk@36040 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/eledmac/eledmac.pdfbin975235 -> 986182 bytes
-rw-r--r--Master/texmf-dist/doc/latex/eledmac/eledpar.pdfbin515579 -> 518052 bytes
-rw-r--r--Master/texmf-dist/doc/latex/eledmac/examples/columns-alignment.pdfbin21171 -> 21175 bytes
-rw-r--r--Master/texmf-dist/doc/latex/eledmac/examples/cross-referencing.pdfbin16309 -> 16306 bytes
-rw-r--r--Master/texmf-dist/doc/latex/eledmac/examples/indexing.pdfbin19897 -> 19896 bytes
-rw-r--r--Master/texmf-dist/doc/latex/eledmac/examples/lemma-disambiguation.pdfbin0 -> 16776 bytes
-rw-r--r--Master/texmf-dist/doc/latex/eledmac/examples/lemma-disambiguation.tex44
-rw-r--r--Master/texmf-dist/doc/latex/eledmac/examples/line-numbers-in-header.pdfbin31485 -> 31607 bytes
-rw-r--r--Master/texmf-dist/doc/latex/eledmac/examples/minimal-parallels.pdfbin12221 -> 12220 bytes
-rw-r--r--Master/texmf-dist/doc/latex/eledmac/examples/minimal-verses.pdfbin17127 -> 17126 bytes
-rw-r--r--Master/texmf-dist/doc/latex/eledmac/examples/mixing-columns-and-not-columns.pdfbin18785 -> 18784 bytes
-rw-r--r--Master/texmf-dist/doc/latex/eledmac/examples/parallel-column-two-languages.pdfbin24709 -> 24751 bytes
-rw-r--r--Master/texmf-dist/doc/latex/eledmac/examples/sections-not-in-line-numbering.pdfbin17148 -> 17150 bytes
-rw-r--r--Master/texmf-dist/doc/latex/eledmac/examples/sections-parallel-not-in-line-numbering.pdfbin22222 -> 22225 bytes
-rw-r--r--Master/texmf-dist/doc/latex/eledmac/examples/sections-with-critical-notes-in-parallel-columns.pdfbin29103 -> 29579 bytes
-rw-r--r--Master/texmf-dist/doc/latex/eledmac/examples/sections-with-critical-notes-in-parallel-pages.pdfbin31711 -> 31736 bytes
-rw-r--r--Master/texmf-dist/doc/latex/eledmac/examples/sections-with-critical-notes.pdfbin22790 -> 22790 bytes
-rw-r--r--Master/texmf-dist/doc/latex/eledmac/examples/separator-between-paragraphs.pdfbin0 -> 18838 bytes
-rw-r--r--Master/texmf-dist/doc/latex/eledmac/examples/separator-between-paragraphs.tex53
-rw-r--r--Master/texmf-dist/doc/latex/eledmac/examples/side-notes.pdfbin20323 -> 20090 bytes
-rw-r--r--Master/texmf-dist/doc/latex/eledmac/examples/spaces-around-footnote-rule.pdfbin20846 -> 20888 bytes
-rw-r--r--Master/texmf-dist/doc/latex/eledmac/examples/tabular.pdfbin20772 -> 21029 bytes
-rw-r--r--Master/texmf-dist/doc/latex/eledmac/examples/text-between-verses-in-parallel.pdfbin16238 -> 16240 bytes
-rw-r--r--Master/texmf-dist/source/latex/eledmac/eledmac.dtx386
-rw-r--r--Master/texmf-dist/source/latex/eledmac/eledpar.dtx137
-rw-r--r--Master/texmf-dist/tex/latex/eledmac/eledmac.sty198
-rw-r--r--Master/texmf-dist/tex/latex/eledmac/eledpar.sty107
27 files changed, 728 insertions, 197 deletions
diff --git a/Master/texmf-dist/doc/latex/eledmac/eledmac.pdf b/Master/texmf-dist/doc/latex/eledmac/eledmac.pdf
index 0003251cdb2..784c1eac7e4 100644
--- a/Master/texmf-dist/doc/latex/eledmac/eledmac.pdf
+++ b/Master/texmf-dist/doc/latex/eledmac/eledmac.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/eledmac/eledpar.pdf b/Master/texmf-dist/doc/latex/eledmac/eledpar.pdf
index 952911bf3e5..cc0815b89c4 100644
--- a/Master/texmf-dist/doc/latex/eledmac/eledpar.pdf
+++ b/Master/texmf-dist/doc/latex/eledmac/eledpar.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/eledmac/examples/columns-alignment.pdf b/Master/texmf-dist/doc/latex/eledmac/examples/columns-alignment.pdf
index 29acad73840..26971342fb5 100644
--- a/Master/texmf-dist/doc/latex/eledmac/examples/columns-alignment.pdf
+++ b/Master/texmf-dist/doc/latex/eledmac/examples/columns-alignment.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/eledmac/examples/cross-referencing.pdf b/Master/texmf-dist/doc/latex/eledmac/examples/cross-referencing.pdf
index 1939973ae00..074afe9d74c 100644
--- a/Master/texmf-dist/doc/latex/eledmac/examples/cross-referencing.pdf
+++ b/Master/texmf-dist/doc/latex/eledmac/examples/cross-referencing.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/eledmac/examples/indexing.pdf b/Master/texmf-dist/doc/latex/eledmac/examples/indexing.pdf
index 7c07492dbbf..92b2cc0f70d 100644
--- a/Master/texmf-dist/doc/latex/eledmac/examples/indexing.pdf
+++ b/Master/texmf-dist/doc/latex/eledmac/examples/indexing.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/eledmac/examples/lemma-disambiguation.pdf b/Master/texmf-dist/doc/latex/eledmac/examples/lemma-disambiguation.pdf
new file mode 100644
index 00000000000..c124414453a
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/eledmac/examples/lemma-disambiguation.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/eledmac/examples/lemma-disambiguation.tex b/Master/texmf-dist/doc/latex/eledmac/examples/lemma-disambiguation.tex
new file mode 100644
index 00000000000..0e3981f5a07
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/eledmac/examples/lemma-disambiguation.tex
@@ -0,0 +1,44 @@
+\documentclass{article}
+\usepackage{polyglossia,fontspec,xunicode}
+\usepackage{libertineotf}
+\usepackage{eledmac}
+\setmainlanguage{latin}
+\setotherlanguage{english}
+\begin{document}
+
+
+\begin{english}
+\date{}
+\title{Lemma's disambiguation}
+\maketitle
+
+\footparagraph{A}
+\firstlinenum{1}
+\linenumincrement{1}
+
+\begin{abstract}
+This file provides an example of lemma's disambuigation.
+
+All word which can potentially be twice (or more) in a same line is marked by an \verb+\sameword+. \emph{Eledmac} print the word rank only if the word is effectively printed twice (or more) time in the same line.
+\end{abstract}
+\end{english}
+
+
+
+
+\begin{ledgroup}
+\beginnumbering
+\pstart
+Leo \sameword{aut} ursus \sameword{aut} oryx \sameword{aut} ricinus \sameword{aut} equus \sameword{aut}
+lupus \edtext{\sameword{aut}}{\Afootnote{et}} canis \sameword{aut} felix \sameword{aut} asinus \edtext{\sameword{aut}}{\Afootnote{et}} burricus.
+
+\pend
+\endnumbering
+\end{ledgroup}
+
+
+
+
+
+
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/eledmac/examples/line-numbers-in-header.pdf b/Master/texmf-dist/doc/latex/eledmac/examples/line-numbers-in-header.pdf
index 3ed06346f20..da3a21fff4a 100644
--- a/Master/texmf-dist/doc/latex/eledmac/examples/line-numbers-in-header.pdf
+++ b/Master/texmf-dist/doc/latex/eledmac/examples/line-numbers-in-header.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/eledmac/examples/minimal-parallels.pdf b/Master/texmf-dist/doc/latex/eledmac/examples/minimal-parallels.pdf
index 79d3792718f..279ceb9a22e 100644
--- a/Master/texmf-dist/doc/latex/eledmac/examples/minimal-parallels.pdf
+++ b/Master/texmf-dist/doc/latex/eledmac/examples/minimal-parallels.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/eledmac/examples/minimal-verses.pdf b/Master/texmf-dist/doc/latex/eledmac/examples/minimal-verses.pdf
index 1b50f5ab846..35bcf849946 100644
--- a/Master/texmf-dist/doc/latex/eledmac/examples/minimal-verses.pdf
+++ b/Master/texmf-dist/doc/latex/eledmac/examples/minimal-verses.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/eledmac/examples/mixing-columns-and-not-columns.pdf b/Master/texmf-dist/doc/latex/eledmac/examples/mixing-columns-and-not-columns.pdf
index fea4f8e3a11..4241d5261db 100644
--- a/Master/texmf-dist/doc/latex/eledmac/examples/mixing-columns-and-not-columns.pdf
+++ b/Master/texmf-dist/doc/latex/eledmac/examples/mixing-columns-and-not-columns.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/eledmac/examples/parallel-column-two-languages.pdf b/Master/texmf-dist/doc/latex/eledmac/examples/parallel-column-two-languages.pdf
index 6a48b247244..65bd7a4063f 100644
--- a/Master/texmf-dist/doc/latex/eledmac/examples/parallel-column-two-languages.pdf
+++ b/Master/texmf-dist/doc/latex/eledmac/examples/parallel-column-two-languages.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/eledmac/examples/sections-not-in-line-numbering.pdf b/Master/texmf-dist/doc/latex/eledmac/examples/sections-not-in-line-numbering.pdf
index 1952d85c664..212d4f3c4c5 100644
--- a/Master/texmf-dist/doc/latex/eledmac/examples/sections-not-in-line-numbering.pdf
+++ b/Master/texmf-dist/doc/latex/eledmac/examples/sections-not-in-line-numbering.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/eledmac/examples/sections-parallel-not-in-line-numbering.pdf b/Master/texmf-dist/doc/latex/eledmac/examples/sections-parallel-not-in-line-numbering.pdf
index 9d9bf627850..3e41a05908a 100644
--- a/Master/texmf-dist/doc/latex/eledmac/examples/sections-parallel-not-in-line-numbering.pdf
+++ b/Master/texmf-dist/doc/latex/eledmac/examples/sections-parallel-not-in-line-numbering.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/eledmac/examples/sections-with-critical-notes-in-parallel-columns.pdf b/Master/texmf-dist/doc/latex/eledmac/examples/sections-with-critical-notes-in-parallel-columns.pdf
index 5401ef4b93b..13f93655579 100644
--- a/Master/texmf-dist/doc/latex/eledmac/examples/sections-with-critical-notes-in-parallel-columns.pdf
+++ b/Master/texmf-dist/doc/latex/eledmac/examples/sections-with-critical-notes-in-parallel-columns.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/eledmac/examples/sections-with-critical-notes-in-parallel-pages.pdf b/Master/texmf-dist/doc/latex/eledmac/examples/sections-with-critical-notes-in-parallel-pages.pdf
index 3e9742751b4..776d2b2abdb 100644
--- a/Master/texmf-dist/doc/latex/eledmac/examples/sections-with-critical-notes-in-parallel-pages.pdf
+++ b/Master/texmf-dist/doc/latex/eledmac/examples/sections-with-critical-notes-in-parallel-pages.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/eledmac/examples/sections-with-critical-notes.pdf b/Master/texmf-dist/doc/latex/eledmac/examples/sections-with-critical-notes.pdf
index bde9de6c657..aeb7951f5dc 100644
--- a/Master/texmf-dist/doc/latex/eledmac/examples/sections-with-critical-notes.pdf
+++ b/Master/texmf-dist/doc/latex/eledmac/examples/sections-with-critical-notes.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/eledmac/examples/separator-between-paragraphs.pdf b/Master/texmf-dist/doc/latex/eledmac/examples/separator-between-paragraphs.pdf
new file mode 100644
index 00000000000..8acb00c88ba
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/eledmac/examples/separator-between-paragraphs.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/eledmac/examples/separator-between-paragraphs.tex b/Master/texmf-dist/doc/latex/eledmac/examples/separator-between-paragraphs.tex
new file mode 100644
index 00000000000..af3fcce830f
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/eledmac/examples/separator-between-paragraphs.tex
@@ -0,0 +1,53 @@
+\documentclass{article}
+\usepackage{polyglossia,fontspec,xunicode}
+\usepackage{libertineotf}
+\setmainlanguage{latin}
+\setotherlanguage{english}
+
+\usepackage{eledmac,eledpar}
+
+\AtEveryPend{\vskip \baselineskip{\hfill ***\hfill\strut}\vskip \baselineskip}
+\begin{document}
+
+\begin{english}
+\title{Separators between paragraphs}
+\maketitle
+\begin{abstract}
+This file provides examples of separators between paragraphs.
+To automatically insert them, we use \verb+\AtEveryPend+ command.
+The last \verb+\pend+ must not have separator after it. So we define its optional argument as \verb+\relax+.
+
+\end{abstract}
+\end{english}
+
+\begin{pages}
+\begin{Rightside}
+\beginnumbering
+\pstart
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus eu tellus eu diam dignissim eleifend blandit eget justo. Aliquam nisi justo, interdum ac erat in, tincidunt imperdiet urna. In hac habitasse platea dictumst. Donec consectetur pharetra nibh, a ultrices mauris tincidunt quis. Aenean id cursus magna, non sollicitudin lorem. Nunc feugiat faucibus rutrum. Phasellus ut diam sed enim efficitur porttitor sit amet vel velit. Donec enim nibh, molestie nec convallis in, pretium at odio. Sed eget ipsum quis velit mollis aliquam. Integer aliquam scelerisque finibus.
+\pend
+\pstart
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus eu tellus eu diam dignissim eleifend blandit eget justo. Aliquam nisi justo, interdum ac erat in, tincidunt imperdiet urna. In hac habitasse platea dictumst. Donec consectetur pharetra nibh, a ultrices mauris tincidunt quis. Aenean id cursus magna, non sollicitudin lorem. Nunc feugiat faucibus rutrum. Phasellus ut diam sed enim efficitur porttitor sit amet vel velit. Donec enim nibh, molestie nec convallis in, pretium at odio. Sed eget ipsum quis velit mollis aliquam. Integer aliquam scelerisque finibus.
+\pend
+\pstart
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus eu tellus eu diam dignissim eleifend blandit eget justo. Aliquam nisi justo, interdum ac erat in, tincidunt imperdiet urna. In hac habitasse platea dictumst. Donec consectetur pharetra nibh, a ultrices mauris tincidunt quis. Aenean id cursus magna, non sollicitudin lorem. Nunc feugiat faucibus rutrum. Phasellus ut diam sed enim efficitur porttitor sit amet vel velit. Donec enim nibh, molestie nec convallis in, pretium at odio. Sed eget ipsum quis velit mollis aliquam. Integer aliquam scelerisque finibus.
+\pend[\relax]
+\endnumbering
+\end{Rightside}
+\begin{Leftside}
+\beginnumbering
+\pstart
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus eu tellus eu diam dignissim eleifend blandit eget justo. Aliquam nisi justo, interdum ac erat in, tincidunt imperdiet urna. In hac habitasse platea dictumst. Donec consectetur pharetra nibh, a ultrices mauris tincidunt quis. Aenean id cursus magna, non sollicitudin lorem. Nunc feugiat faucibus rutrum. Phasellus ut diam sed enim efficitur porttitor sit amet vel velit. Donec enim nibh, molestie nec convallis in, pretium at odio. Sed eget ipsum quis velit mollis aliquam. Integer aliquam scelerisque finibus.
+\pend
+\pstart
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus eu tellus eu diam dignissim eleifend blandit eget justo. Aliquam nisi justo, interdum ac erat in, tincidunt imperdiet urna. In hac habitasse platea dictumst. Donec consectetur pharetra nibh, a ultrices mauris tincidunt quis. Aenean id cursus magna, non sollicitudin lorem. Nunc feugiat faucibus rutrum. Phasellus ut diam sed enim efficitur porttitor sit amet vel velit. Donec enim nibh, molestie nec convallis in, pretium at odio. Sed eget ipsum quis velit mollis aliquam. Integer aliquam scelerisque finibus.
+\pend
+\pstart
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus eu tellus eu diam dignissim eleifend blandit eget justo. Aliquam nisi justo, interdum ac erat in, tincidunt imperdiet urna. In hac habitasse platea dictumst. Donec consectetur pharetra nibh, a ultrices mauris tincidunt quis. Aenean id cursus magna, non sollicitudin lorem. Nunc feugiat faucibus rutrum. Phasellus ut diam sed enim efficitur porttitor sit amet vel velit. Donec enim nibh, molestie nec convallis in, pretium at odio. Sed eget ipsum quis velit mollis aliquam. Integer aliquam scelerisque finibus.
+\pend[\relax]
+\endnumbering
+\end{Leftside}
+
+\end{pages}
+\Pages
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/eledmac/examples/side-notes.pdf b/Master/texmf-dist/doc/latex/eledmac/examples/side-notes.pdf
index ff57bfdf3b4..19a56322467 100644
--- a/Master/texmf-dist/doc/latex/eledmac/examples/side-notes.pdf
+++ b/Master/texmf-dist/doc/latex/eledmac/examples/side-notes.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/eledmac/examples/spaces-around-footnote-rule.pdf b/Master/texmf-dist/doc/latex/eledmac/examples/spaces-around-footnote-rule.pdf
index 51946f0d7ad..7d6d85239e5 100644
--- a/Master/texmf-dist/doc/latex/eledmac/examples/spaces-around-footnote-rule.pdf
+++ b/Master/texmf-dist/doc/latex/eledmac/examples/spaces-around-footnote-rule.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/eledmac/examples/tabular.pdf b/Master/texmf-dist/doc/latex/eledmac/examples/tabular.pdf
index 88d5896fd97..cbb4fbca3b0 100644
--- a/Master/texmf-dist/doc/latex/eledmac/examples/tabular.pdf
+++ b/Master/texmf-dist/doc/latex/eledmac/examples/tabular.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/eledmac/examples/text-between-verses-in-parallel.pdf b/Master/texmf-dist/doc/latex/eledmac/examples/text-between-verses-in-parallel.pdf
index f4954000c87..061359d8c40 100644
--- a/Master/texmf-dist/doc/latex/eledmac/examples/text-between-verses-in-parallel.pdf
+++ b/Master/texmf-dist/doc/latex/eledmac/examples/text-between-verses-in-parallel.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/eledmac/eledmac.dtx b/Master/texmf-dist/source/latex/eledmac/eledmac.dtx
index 366f5194dff..cca484a1657 100644
--- a/Master/texmf-dist/source/latex/eledmac/eledmac.dtx
+++ b/Master/texmf-dist/source/latex/eledmac/eledmac.dtx
@@ -51,7 +51,7 @@
%
% \fi
%
-% \CheckSum{10308}
+% \CheckSum{10615}
%
% \makeatletter
% \newcommand*{\DescribeIt}{\leavevmode\@bsphack\begingroup\MakePrivateLetters
@@ -207,11 +207,12 @@
% \changes{v1.12.3}{2014/08/15}{Debug left and right notes (bugs added by 1.12.0)}
% \changes{v1.12.3}{2014/08/15}{Debug \cs{eledxxx} with some paper size}
% \changes{v1.12.4}{2014/08/25}{Debug spurious page breaks before \cs{chapter} (bug added by 1.12.0)}
-% \changes{v1.13.1}{2014/09/25}{Debug quotation environment inside of a \cs{pstart} when preceded by a sectioning command.}
+% \changes{v1.13.1}{2014/09/25}{Debug quotation environment inside of a \cs{pstart} preceded by a sectioning command.}
% \changes{v1.13.1}{2014/09/25}{Coming back of page and line breaking penalties's management, deleted by error in v0.17.}
% \changes{v1.13.2}{2014/09/30}{Fix bug with normal footnotes, added by v1.13.0.}
% \changes{v1.13.3}{2014/10/04}{Fix extra spaces with paragraphed footnotes, added by v1.13.0.}
% \changes{v1.13.4}{2014/10/20}{Fix bug with index when memoir class is used without hyperref}
+% \changes{v1.15.0}{2014/22/15}{Fix bug with footnotes layout when using some options of the geometry package (bug add by v1.13.0).}
% \hyphenation{man-u-script man-u-scripts}
%
%
@@ -605,8 +606,8 @@
% edited text.
%
%
-% \section{Numbering text lines and paragraphs}
-%
+% \section{Text lines and paragraphs numbering}
+% \subsection{Text lines numbering}
% \DescribeMacro{\beginnumbering}
% \DescribeMacro{\endnumbering}
% Each section of numbered text must be preceded by
@@ -638,6 +639,7 @@
% number of sections (at the expense of multiplying the number of
% external files that are generated).
%
+% \subsection{Paragraphs}
% \DescribeMacro{\pstart}
% \DescribeMacro{\pend}
% Within a numbered section, each paragraph of numbered text must
@@ -693,9 +695,14 @@
% begins again.\par}
% \egend
%
-% \changes{v1.12.0}{2014/08/05}{Optional arguments for \cs{pstart} and \cs{pend}.}\label{pstart:optionalarg}
+% \changes{v1.12.0}{2014/08/05}{Optional arguments for \cs{pstart} and \cs{pend}.}
+% \changes{v1.15.0}{2015/01/12}{New commands \cs{AtEveryPstart} and \cs{AtEveryPend}.}\label{pstart:optionalarg}
+% \DescribeMacro{\AtEveryPstart}\DescribeMacro{\AtEveryPend}
+% You can use both \cs{AtEveryPstart} and \cs{AtEveryPend}.
+% Their arguments will be printed before every \cs{pstart} begins / after every \cs{pend} ends.
+%
% Both \cs{pstart} and \cs{pend} can take a optional argument, in brackets.
-% Its content will be printed before the beginning of the \cs{pstart} / after the end of the \cs{pend}.
+% Its content will be printed before the beginning of \cs{pstart} / after the end of \cs{pend} instead of the argument of \cs{AtEveryPstart} / \cs{AtEveryPend}.
% If you need to start a \cs{pstart} by brackets, or to add brackets after a \cs{pend}, just add a \cs{relax} between \cs{pstart}/\cs{pend} and the brackets.
%
% This feature is not needed for normal use of \Lpack{eledmac}, but it is needed when using verse (see~\ref{verse} p.~\pageref{verse}) or \Lpack{eledpar} (see~\ref{eledpar} p.~\pageref{eledpar}).
@@ -1191,6 +1198,35 @@
% \end{verbatim}
%
%
+% \subsection{Disambiguation of identical words in the apparatus}
+% \changes{v1.15.0}{2015/01/12}{New tools to prevent ambiguous references in lemma}
+% Sometimes, the same word occurss twice (or more time) in the same line.
+% \Lpack{eledmac} provides tools to disambuigate references in the critical notes.
+% The lemma will be followed by a reference number if a given word occurs more that once in the same line.
+%
+% \DescribeMacro{\sameword} To use this tool, you have to mark every occurrence of the potentially ambiguous term with the \cs{sameword} command:
+% \begin{verbatim}
+% lupus \sameword{aut} canis \edtext{\sameword{aut}{\Afootnote{et}}} felix
+% \end{verbatim}
+% In this example, \verb+aut+ will be followed, in the critical note, by the exponant \verb+2+ if it is printed in the same line as the first \verb+aut+, but it won't if it is printed in a different line. The number is printed only after the second run.
+%
+% If you use the \cs{lemma} command, \Lpack{eledmac} assumes that the word marked with \cs{sameword} is not already found in \cs{lemma}.
+% However, if it is actually found in it, you must use this method:
+% \begin{itemize}
+% \item In the first argument of \cs{edtext}, use \cs{sameword} with the optional argument `[inlemma]`.
+% \item In the content of \cs{lemma}, use \cs{sameword} with no optional argument.
+% \end{itemize}
+% Like this :
+% \begin{verbatim}
+% \edtext{\sameword[inlemma]{sw}}{\lemma{\sameword{sw} some lemma}\Afootnote{some note}}
+% \end{verbatim}
+% \DescribeMacro{\showwordrank}You can redefine the \cs{showwordrank} macro to change the way the number is printed. The default value is
+% \begin{verbatim}
+%\newcommand{\showwordrank}[2]{%
+% #1\textsuperscript{#2}%
+%}
+% \end{verbatim}
+%
% \subsection{Alternate footnote formatting}
% If you just launch into \Eledmac{} using the commands outlined
% above, you will get a standard layout for your text and notes. You
@@ -2460,7 +2496,7 @@
% The \verb+quotation+ and \verb+quote+ environment can be used so that same definition/note appears both inside and outside a numbered section.
% The typographical consequences will resemble the outside numbered sections, based on the styles of the \emph{book} class.
% However, if you use a package that redefines these environments, these redefinitions won't be available inside the numbering section.
-% You must open the quotation environments inside a \cs{start}-\cs{pend} block, not outside.
+% You must open any quotation environments inside a \cs{start}-\cs{pend} block, not outside.
% A quotation environment MUST not be opened immediately after a \cs{pstart}
% and MUST not be closed immediately before a \cs{pend}.
%
@@ -2858,7 +2894,7 @@
% \begin{macrocode}
%<*code>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{eledmac}[2014/12/17 v1.14.2 LaTeX port of EDMAC]%
+\ProvidesPackage{eledmac}[2015/01/12 v1.15.0 LaTeX port of EDMAC]%
% \end{macrocode}
%
% Generally, these are the modifications to the original.
@@ -2954,10 +2990,10 @@
% \end{macrocode}
% \end{macro}
-% \subsection{Packages loading}
+% \subsection{Loading packages}
% Loading package \emph{xargs} to declare commands with optional arguments.
% \emph {Etoolbox} is also used to make code clearer - for example, in dynamic command names (which can replace \cs{csname} etc.).
-% Use \emph{suffix} to declare commands with a starred version, \Lpack{xstring} to work with strings and \emph{iflutex} to test if LuaLaTeX is running, and \Lpack{ragged2e} to manage ragging for paragraphed notes.
+% Use \emph{suffix} to declare commands with a starred version, \Lpack{xstring} to work with strings, \emph{ifluatex} to test if LuaLaTeX is running, and \Lpack{ragged2e} to manage ragged for paragraphed notes.
% \changes{v1.4}{2012/11/16}{Compatibility with LuaTeX of RTL notes.}
% \begin{macrocode}
\RequirePackage{xargs}
@@ -2990,9 +3026,9 @@
% \end{macro}
% \begin{macro}{\if@RTL}
% The \cs{if@RTL} is defined by the bidi package, which is sometimes loaded by \emph{polyglossia}.
-% But we define it if the bidi package is not loaded.
+% But we define it as well if the \Lpack{bidi} package is not loaded.
% \begin{macrocode}
-\ifcsdef{if@RTL}{}{\newif\if@RTL}
+\ifdef{\if@RTL}{}{\newif\if@RTL}
% \end{macrocode}
% \end{macro}
% \subsection{Messages}
@@ -3278,7 +3314,7 @@
% \end{macro}
%
% \subsection{Gobbling}
-% \changes{v1.14.0}{2014/10/27}{Provide \cs{\@gobblefour}}
+% \changes{v1.14.0}{2014/10/27}{Provide \cs{@gobblefour}}
% \changes{v1.14.0}{2014/10/27}{Moves gobbling command}
% \changes{v0.2.2}{2003/11/05}{Used \cs{providecommand} for \cs{@gobblethree}
% to avoid clash with the amsfonts package}
@@ -4392,7 +4428,10 @@
\list@clear{\line@list}%
\list@clear{\insertlines@list}%
\list@clear{\actionlines@list}%
- \list@clear{\actions@list}}
+ \list@clear{\actions@list}%
+ \list@clear{\sw@list}%
+ \list@clear{\sw@list@inedtext}%
+ }%
% \end{macrocode}
% \end{macro}
%
@@ -4561,7 +4600,7 @@
\page@num=#1\relax
\last@page@num=#1\relax
\def\next@page@num{#1}%
- \listcsxadd{normal@page@break}{\the\absline@num}
+ \listxadd{\normal@page@break}{\the\absline@num}
\fi}
% \end{macrocode}
@@ -4600,10 +4639,10 @@
\newcommand*{\sub@on}{\ifsublines@
\let\sub@change=\relax
\else
- \def\sub@changes{1}%
+ \def\sub@change{1}%
\fi}
\newcommand*{\sub@off}{\ifsublines@
- \def\sub@changes{-1}%
+ \def\sub@change{-1}%
\else
\let\sub@change=\relax
\fi}
@@ -4863,10 +4902,12 @@
% \begin{macrocode}
\begingroup
\let\@ref=\dummy@ref
+ \let\@lopL\@gobble
\let\page@action=\relax
\let\sub@action=\relax
\let\set@line@action=\relax
\let\@lab=\relax
+ \let\@sw\@gobbletwo%
#2
\global\endpage@num=\page@num
\global\endline@num=\line@num
@@ -4994,8 +5035,8 @@
% \begin{macrocode}
\newcommand*{\new@line}{%
\IfStrEq{\led@pb@setting}{after}%
- {\xifinlistcs{\the\absline@num}{l@prev@nopb}%
- {\xifinlistcs{\the\absline@num}{normal@page@break}%
+ {\xifinlist{\the\absline@num}{\l@prev@nopb}%
+ {\xifinlist{\the\absline@num}{\normal@page@break}%
{\numgdef{\@next@page}{\thepage+1}%
\write\linenum@out{\string\@nl[\@next@page][\@next@page]}%
}%
@@ -5005,8 +5046,8 @@
{}%
\IfStrEq{\led@pb@setting}{before}%
{\numdef{\next@absline}{\the\absline@num+1}%
- \xifinlistcs{\next@absline}{l@prev@nopb}%
- {\xifinlistcs{\the\absline@num}{normal@page@break}%
+ \xifinlist{\next@absline}{\l@prev@nopb}%
+ {\xifinlist{\the\absline@num}{\normal@page@break}%
{\numgdef{\nc@page}{\c@page+1}%
\write\linenum@out{\string\@nl[\nc@page][\nc@page]}%
}%
@@ -5081,6 +5122,7 @@
%
% \begin{macro}{\startsub}
% \begin{macro}{\endsub}
+% \changes{v1.15.0}{2015/01/12}{Restore subline feature (disabled by mistake in v1.8.0).}
% \cs{startsub} and \cs{endsub}
% turn sub-lineation on and off, by writing
% appropriate instructions to the line-list file. When
@@ -5274,15 +5316,6 @@
% a different kind of note. It is preferable for your footnote macros
% to store and recall this kind of information if they need it.
%
-% \phantomsection\label{parallel}An example where some `memory' of line numbers
-% might be required is where there are several variant readings
-% per line of text, and you do not wish the line number to be repeated
-% for each lemma in the notes. After the first occurrence of the line
-% number, you might want the symbol `$\parallel$' instead of further
-% occurrences, for instance. This can easily be done by a macro like
-% \cs{printlines}, if it saves the last value of \cs{l@d@nums} that \emph{it}
-% saw, and then performs a simple conditional test to see whether to print
-% a number or a~`$\parallel$'.
%
% \subsection{{\tt \protect\bslash edtext} and {\tt \protect\bslash critext}
% themselves}
@@ -5429,6 +5462,7 @@
\let\edlabel=\@gobble
\let\setline=\@gobble \let\advanceline=\@gobble
\let\critext=\dummy@text
+ \let\sameword\sameword@inedtext%
\let\edtext=\dummy@edtext
\l@dtabnoexpands
\morenoexpands}
@@ -5444,6 +5478,14 @@
\newcommand{\@tag}{}
% \end{macrocode}
% \end{macro}
+% \begin{macro}{\if@edtext@}
+% \changes{v1.15.0}{2015/01/12}{New boolean \cs{if@edtext@}.}
+% This boolean is set to TRUE inside a \cs{edtext} (or \cs{critext}).
+% That is useful for some commands which can have a different behavior if called inside or outside of the \marg{lemma} argument.
+% \begin{macrocode}
+\newif\if@edtext@%
+% \end{macrocode}
+% \end{macro}
% \begin{macro}{\critext}
% Now we begin \cs{critext} itself. The definition requires a \verb"/" after
% the arguments: this eliminates the possibility of problems about
@@ -5458,6 +5500,7 @@
% horizontal mode.
% \begin{macrocode}
\long\def\critext#1#2/{\leavevmode
+ \@edtext@true%
% \end{macrocode}
%
% \begin{macro}{\@tag}
@@ -5538,6 +5581,8 @@
\flag@end}%
{\if@RTL\flag@start\else\flag@end\fi% With polyglossia, you must track whether the language reads left to right (English) or right to left (Arabic).
}
+ \@edtext@false%
+ \global\@lemmacommand@false%
}
% \end{macrocode}
% \end{macro}
@@ -5547,6 +5592,7 @@
% \begin{macro}{\edtext}
% \begin{macrocode}
\newcommand{\edtext}[2]{\leavevmode
+ \@edtext@true%
\begingroup
\global\renewcommand{\@tag}{\no@expands #1}%%
\set@line
@@ -5568,6 +5614,8 @@
{\if@RTL\flag@start\else\flag@end\fi% With polyglossia, you must track whether the language reads left to right (English) or right to left (Arabic).
}%
\global\@noneed@Footnotefalse%
+ \@edtext@false%
+ \global\@lemmacommand@false%
}
\newcommand*{\flag@end}{%
@@ -5635,10 +5683,20 @@
% The \cs{lemma}\marg{text} macro allows you to change the lemma
% that's passed on to the notes.
% \begin{macrocode}
-\newcommand*{\lemma}[1]{\global\renewcommand{\@tag}{\no@expands #1}}
+\newcommand*{\lemma}[1]{%
+ \global\@lemmacommand@true%
+ \global\renewcommand{\@tag}{\no@expands #1}}%
% \end{macrocode}
% \end{macro}
%
+% \begin{macro}{\if@lemmacommand@}
+% \changes{v1.15.0}{2015/01/12}{New boolean \cs{iflemmacommand@}.}
+% This boolean is set to TRUE inside a \cs{edtext} (or \cs{critext}) when a \cs{lemma} command is called.
+% That is useful for some commands which can have a different behavior if the lemma in the note is different from the lemma in the main text.
+% \begin{macrocode}
+\newif\if@lemmacommand@%
+% \end{macrocode}
+% \end{macro}
% \subsection{Substitute line numbers}
%
% \begin{macro}{\linenum}
@@ -5697,6 +5755,180 @@
% \end{macro}
% \end{macro}
%
+% \subsection{Lemma disambiguation}
+% The mechanism which counts the occurrence of a same word in a same line is quite complex, because, when \LaTeX\ reads a command between a \cs{pstart} and a \cs{pend}, it does not know yet which are the line numbers.
+%
+% The general mechanism is the following:
+% \begin{itemize}
+% \item \textbf{At the first run}, each \cs{sameword} command increments an \Lpack{etoolbox} counter the name of which contains the argument of the \cs{sameword} commands.
+% \item Then this counter, associated with the argument of \cs{sameword} is stored (\cs{@sw} command) in the auxiliary file of the current \Lpack{eledmac} section (the \verb+.1+, \verb+.2+… file).
+% \item \textbf{When this auxiliary file is read at the second run}, different operations are achieved:
+% \begin{itemize}
+% \item For each paired \cs{sameword} argument and absolute line number, a counter is defined. Its value corresponds to the number of times \verb+\sameword{argument}+ is called from the beginning of the lineation to the end of the current line. We also store the same data for the preceding absolute line number, if it does not have \verb+\sameword{argument}+.
+% \item A \cs{sw@list} list is filled with the values stored in the auxiliary file. But before doing this we transform these values : we substract from them the number stored for the paired \cs{sameword} argument and previous absolute line number.
+% \end{itemize}
+% \item At the second run, when the \cs{sameword} command is called, new operations happen. We first read the first element of the \cs{sw@list}, then delete it from this list, and, if we are inside a \cs{edtext} command, we store it in a \cs{sw@list@inedtext} list.
+% \item At the second run, when the critical notes are built, the \cs{sameword@inedtext} command is used instead of \cs{sameword}. Then, we read the next value of \cs{sw@list@inedtext} list and remove it from this list. We send it to the \cs{showwordrank} to be printed after the lemma, but only if the current line has more than one value for the argument of \cs{sameword}. Otherwise, we just print the lemma, with no number.
+%
+% \end{itemize}
+
+% \begin{macro}{\sw@list}
+% \begin{macro}{\sw@list@inedtext}
+% So, first, the lists.
+% \begin{macrocode}
+\list@create{\sw@list}%
+\list@create{\sw@list@inedtext}%
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \begin{macro}{\sameword}
+% The hight level macro \cs{sameword}, used by the editor.
+% \begin{macrocode}
+\newcommandx{\sameword}[2][1,usedefault]{\leavevmode%
+% \end{macrocode}
+% First, increament the counter corresponding to the argument.
+% \begin{macrocode}
+ \unless\ifledRcol%
+ \csnumgdef{sw@#2}{\csuse{sw@#2}+1}%
+% \end{macrocode}
+% Then, write its value to the numbered file
+% \begin{macrocode}
+ \protected@write\linenum@out{}{\string\@sw{#2}{\csuse{sw@#2}}}%
+% \end{macrocode}
+% At the second run, read the \cs{sw@list} next item and, if we are in \cs{edtext}, put it to \cs{sw@list@inedtext}.
+% \begin{macrocode}
+ \unless\ifx\sw@list\empty%
+ \gl@p\sw@list\to\@tempb%
+ \if@edtext@%
+ \unless\if@lemmacommand@%
+ \xright@appenditem{\@tempb}\to\sw@list@inedtext%
+ \else%
+ \ifstrequal{#1}{inlemma}{\xright@appenditem{\@tempb}\to\sw@list@inedtext}{}%
+ \fi%
+ \fi%
+ \global\let\@tempb=\undefined%
+ \fi%
+% \end{macrocode}
+% Do the same thing if we are in the right columns.
+% \begin{macrocode}
+ \else%
+ \csnumgdef{sw@#2@R}{\csuse{sw@#2@R}+1}%
+ \protected@write\linenum@outR{}{\string\@sw{#2}{\csuse{sw@#2@R}}}%
+ \unless\ifx\sw@listR\empty%
+ \gl@p\sw@listR\to\@tempb%
+ \if@edtext@%
+ \unless\if@lemmacommand@%
+ \xright@appenditem{\@tempb}\to\sw@list@inedtextR%
+ \else%
+ \ifstrequal{#1}{inlemma}{\xright@appenditem{\@tempb}\to\sw@list@inedtextR}{}%
+ \fi%
+ \fi%
+ \global\let\@tempb=\undefined%
+ \fi%
+ \fi%
+% \end{macrocode}
+% In any case, print the word.
+% \begin{macrocode}
+ #2%
+}%
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\@sw}
+% The command printed in the auxiliary files.
+% \begin{macrocode}
+\newcommand{\@sw}[2]{%
+ \unless\ifledRcol%
+% \end{macrocode}
+% First, define a counter which store the second argument as value for a each paired absolute line number/first argument
+% \begin{macrocode}
+ \csxdef{sw@#1@\the\absline@num @\the\section@num}{#2}%
+% \end{macrocode}
+% If such argument was not defined for the preceding line, define it.
+% \begin{macrocode}
+ \numdef{\prev@line}{\the\absline@num-1}%
+ \ifcsundef{sw@#1@\prev@line @\the\section@num}{%
+ \csnumgdef{sw@#1@\prev@line @\the\section@num}{#2-1}%
+ }{}%
+% \end{macrocode}
+% Then, calculate the position of the word in the line, and put it in \cs{sw@list}.
+% \begin{macrocode}
+ \numdef{\the@sw}{#2-\csuse{sw@#1@\prev@line @\the\section@num}}%
+ \xright@appenditem{\the@sw}\to\sw@list%
+% \end{macrocode}
+% And do the same thing for the right side.
+% \begin{macrocode}
+ \else%
+ \csxdef{sw@#1@\the\absline@numR @\the\section@numR @R}{#2}%
+ \numdef{\prev@line}{\the\absline@numR-1}%
+ \ifcsundef{sw@#1@\prev@line @\the\section@numR @R}{%
+ \csnumgdef{sw@#1@\prev@line @\the\section@numR @R}{#2-1}%
+ }{}%
+ \numdef{\the@sw}{#2-\csuse{sw@#1@\prev@line @\the\section@numR @R}}%
+ \xright@appenditem{\the@sw}\to\sw@listR%
+ \fi%
+}%
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\sameword@inedtext}
+% The command called when \cs{sameword} is called in a edtext.
+% \begin{macrocode}
+\def\sameword@inedtext#1{%
+ \unless\ifledRcol@%
+% \end{macrocode}
+% First, calculate the number of occurrences of the word in the current line
+% \begin{macrocode}
+ \ifcsdef{sw@#1@\the\absline@num @\the\section@num}{%
+ \numdef{\prev@line}{\the\absline@num-1}%
+ \numdef{\sw@atthisline}{\csuse{sw@#1@\the\absline@num @\the\section@num}-\csuse{sw@#1@\prev@line @\the\section@num}}%
+ }%
+ {\numdef{\sw@atthisline}{0}}%
+% \end{macrocode}
+% Just a precaution.
+% \begin{macrocode}
+ \ifx\sw@list@inedtext\empty%
+ \def\the@sw{999}%
+ \else%
+% \end{macrocode}
+% But in many cases, at this step, we should have some content in the list \cs{sw@list@inedtext}, which contains the reference for edtext.
+% \begin{macrocode}
+ \gl@p\sw@list@inedtext\to\the@sw%
+ \fi%
+% \end{macrocode}
+% Then, print the rank, but only if there is more than one occurrence of the word in the current line.
+% \begin{macrocode}
+ \ifnumgreater{\sw@atthisline}{1}%
+ {\showwordrank{#1}{\the@sw}}%
+ {#1}%
+% \end{macrocode}
+% And the same for right side.
+% \begin{macrocode}
+ \else%
+ \ifcsdef{sw@#1@\the\absline@numR @\the\section@numR @R}{%
+ \numdef{\prev@line}{\the\absline@numR-1}%
+ \numdef{\sw@atthisline}{\csuse{sw@#1@\the\absline@numR @\the\section@numR @R}-\csuse{sw@#1@\prev@line @\the\section@numR @R}}%
+ }%
+ {\numdef{\sw@atthisline}{0}}%
+ \ifx\sw@list@inedtextR\empty%
+ \def\the@sw{999}%
+ \else%
+ \gl@p\sw@list@inedtextR\to\the@sw%
+ \fi%
+ \ifnumgreater{\sw@atthisline}{1}%
+ {\showwordrank{#1}{\the@sw}}%
+ {#1}%
+ \fi%
+}%
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\showwordrank}
+% \begin{macrocode}
+% Finally, the way the rank will be printed.
+\newcommand{\showwordrank}[2]{%
+ #1\textsuperscript{#2}%
+}%
+% \end{macrocode}
+% \end{macro}
+
% \section{Paragraph decomposition and reassembly}
% \label{paragraph}\relax
%
@@ -5748,6 +5980,7 @@
% \end{macro}
%
% \begin{macro}{\pstart}
+% \begin{macro}{\AtEveryPstart}
% \changes{v1.6.1}{2013/10/27}{Spurious space in \cs{pstart}.}
% \changes{v1.12.0}{2014/08/05}{New optional argument for \cs{pstart}, to execute code before it.}
% \begin{macro}{\numberpstarttrue}
@@ -5769,6 +6002,9 @@
% \changes{v1.13.1}{2014/09/25}{Add \cs{l@dzeropenalties} in \cs{pstart}}
% \begin{macrocode}
+\newcommand{\AtEveryPstart}[1]{\xdef\at@every@pstart{\noindent\unexpanded{#1}}}%
+\xdef\at@every@pstart{}%
+
\newcounter{pstart}
\renewcommand{\thepstart}{{\bfseries\@arabic\c@pstart}. }
\newif\ifnumberpstart
@@ -5776,7 +6012,7 @@
\newif\iflabelpstart
\labelpstartfalse
\newcommandx*{\pstart}[1][1]{%
- \ifstrempty{#1}{}{\noindent#1}%
+ \ifstrempty{#1}{\at@every@pstart}{\noindent#1}%
\if@nobreak%
\let\@oldnobreak\@nobreaktrue%
\else%
@@ -5818,6 +6054,7 @@
% \end{macro}
% \end{macro}
% \end{macro}
+% \end{macro}
% \begin{macro}{\pend}
% \changes{v1.12.0}{2014/08/05}{New optional argument for \cs{pend}, to execute code after it.}
% \changes{v1.6.1}{2013/10/27}{Spurious space in \cs{pend}.}
@@ -5866,11 +6103,21 @@
\fi%
\@oldnobreak%
\addtocounter{pstart}{1}%
- \ifstrempty{#1}{}{\noindent#1}%
+ \ifstrempty{#1}{\at@every@pend}{\noindent#1}%
}
% \end{macrocode}
% \end{macro}
+% \begin{macro}{\AtEveryPend}
+% \begin{macro}{\at@every@pend}
+% \begin{macrocode}
+
+\newcommand{\AtEveryPend}[1]{\xdef\at@every@pend{\noindent\unexpanded{#1}}}%
+\xdef\at@every@pend{}%
+
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
%
% \begin{macro}{\l@dzeropenalties}
% A macro to zero penalties for \cs{pend}.
@@ -6001,7 +6248,7 @@
% \end{macro}
% \end{macro}
%
-% \changes{v1.13.1}{2014/09/25}{Coming back of add@penalties, deleted by version 0.17!}
+% \changes{v1.13.1}{2014/09/25}{Coming back of add@penalties, mistakenly deleted in version 0.17!}
% \begin{macro}{\print@line}
% \begin{macrocode}
% \cs{print@line} is for normal line, i. e line without sectioning command.
@@ -6892,13 +7139,13 @@
\newcommandx*{\footnotelang@poly}[1][1=L,usedefault]{%
\ifstrequal{#1}{L}{%
\if@RTL%
- \xright@appenditem{{\csxdef{footnote@dir}{@RTLtrue}}}\to\inserts@list%Know the language of lemma
+ \xright@appenditem{{\csxdef{footnote@dir}{@RTLtrue}}}\to\inserts@list%Know the language used in the lemma
\global\advance\insert@count \@ne%
\else
\xright@appenditem{{\csxdef{footnote@dir}{@RTLfalse}}}\to\inserts@list%Know the language of lemma
\global\advance\insert@count \@ne%
\fi%
- \xright@appenditem{{\csxdef{footnote@lang}{\csexpandonce{languagename}}}}\to\inserts@list%Know the language of lemma
+ \xright@appenditem{{\csxdef{footnote@lang}{\expandonce\languagename}}}\to\inserts@list%Know the language of lemma
\global\advance\insert@count \@ne%
}%
{%
@@ -6909,7 +7156,7 @@
\xright@appenditem{{\csxdef{footnote@dir}{@RTLfalse}}}\to\inserts@listR%Know the language of lemma
\global\advance\insert@countR \@ne%
\fi
- \xright@appenditem{{\csxdef{footnote@lang}{\csexpandonce{languagename}}}}\to\inserts@listR%Know the language of lemma
+ \xright@appenditem{{\csxdef{footnote@lang}{\expandonce\languagename}}}\to\inserts@listR%Know the language of lemma
\global\advance\insert@countR \@ne%
}%
}
@@ -8343,7 +8590,7 @@
\newcommand{\l@dbfnote}[1]{%
\ifnumberedpar@
\gdef\@tag{#1}%
- \xright@appenditem{\noexpand\vl@dbfnote{{\csexpandonce{@tag}}}{\@thefnmark}}%
+ \xright@appenditem{\noexpand\vl@dbfnote{{\expandonce\@tag}}{\@thefnmark}}%
\to\inserts@list
\global\advance\insert@count \@ne
\fi\ignorespaces}
@@ -8552,8 +8799,8 @@
% \begin{macrocode}
\newcommand{\normalbfnoteX}[2]{%
\ifnumberedpar@
- \protected@csxdef{thisfootnote}{\csuse{thefootnote#1}}%
- \xright@appenditem{\noexpand\vbfnoteX{#1}{#2}{\csexpandonce{thisfootnote}}}%
+ \protected@xdef\thisfootnote{\csuse{thefootnote#1}}%
+ \xright@appenditem{\noexpand\vbfnoteX{#1}{#2}{\expandonce\thisfootnote}}%
\to\inserts@list
\global\advance\insert@count \@ne
\fi\ignorespaces}
@@ -8838,10 +9085,11 @@
% The following macros set footnotes as one paragraph.
%
% \begin{macro}{\footparagraphX}
+% \changes{v1.15.0}{2015/01/12}{Correct bug with paragraphed familiar footnotes setting.}
% \cs{footparagraphX}\marg{series}
% \begin{macrocode}
\newcommand*{\footparagraphX}[1]{%
- \csgdef{series@displayX#1}{paragraph}
+ \csgdef{series@displayX#1}{paragraphX}%
\expandafter\newcount\csname prevpage#1@num\endcsname
\expandafter\let\csname footstart#1\endcsname=\parafootstartX
\expandafter\let\csname regvfootnote#1\endcsname=\para@vfootnoteX
@@ -9011,11 +9259,11 @@
% \begin{macrocode}
\newdimen\old@hsize%
-\old@hsize=\hsize%
+\old@hsize=\linewidth%
\newcommand{\setXnoteswidthliketwocolumns@}[1]{%
- \global\let\hsize@fornote=\hsize%
- \old@hsize=\hsize%
+ \global\let\hsize@fornote=\linewidth%
+ \global\old@hsize=\linewidth%
\iftoggle{Xnoteswidthliketwocolumns@#1}%
{%
\csuse{setwidthliketwocolumns@\columns@position}%
@@ -9028,7 +9276,7 @@
\newcommand{\setnotesXwidthliketwocolumns@}[1]{%
\global\let\hsize@fornote=\hsize%
- \old@hsize=\hsize%
+ \global\old@hsize=\linewidth%
\iftoggle{notesXwidthliketwocolumns@#1}%
{%
\csuse{setwidthliketwocolumns@\columns@position}%
@@ -9447,7 +9695,7 @@
\footnoteoptions@[R]{##1}{true}%
\xright@appenditem{\noexpand\prepare@edindex@fornote{\l@d@nums}%
\noexpand\csuse{v#1footnote}{#1}%
- {{\l@d@nums}{\csexpandonce{@tag}}{\csexpandonce{content}}}}\to\inserts@listR
+ {{\l@d@nums}{\expandonce\@tag}{\expandonce\content}}}\to\inserts@listR
\footnoteoptions@[R]{##1}{false}%
\global\advance\insert@countR \@ne%
\else%
@@ -9460,7 +9708,7 @@
\footnoteoptions@{##1}{true}%
\xright@appenditem{\noexpand\prepare@edindex@fornote{\l@d@nums}%
\noexpand\csuse{v#1footnote}{#1}%
- {{\l@d@nums}{\csexpandonce{@tag}}{\csexpandonce{content}}}}\to\inserts@list
+ {{\l@d@nums}{\expandonce\@tag}{\expandonce\content}}}\to\inserts@list
\global\advance\insert@count \@ne%
\footnoteoptions@{##1}{false}%
\fi
@@ -9486,7 +9734,7 @@
\stepcounter{footnote#1}%
\protected@csxdef{@thefnmark#1}{\csuse{thefootnote#1}}%
\csuse{@footnotemark#1}%
- \csuse{vfootnote#1}{#1}{\csexpandonce{content}}\m@mmf@prepare%
+ \csuse{vfootnote#1}{#1}{\expandonce\content}\m@mmf@prepare%
\endgroup%
}
% \end{macrocode}
@@ -9513,7 +9761,7 @@
\newcommand{\content}{##1}%
\immediate\write\l@d@end{\expandafter\string\csname #1end\endcsname%
{\ifnumberedpar@\l@d@nums\fi}%
- {\ifnumberedpar@\csexpandonce{@tag}\fi}{\csexpandonce{content}}{#1}}}\ignorespaces%
+ {\ifnumberedpar@\expandonce\@tag\fi}{\expandonce\content}{#1}}}\ignorespaces%
}
% \end{macrocode}
% \cs{Xendnote} commands called \cs{Xend} commands on to the endnote file; these are analogous to the various
@@ -10838,11 +11086,11 @@
\newcommand{\content}{#1}%
\ifnumberedpar@
\ifledRcol%
- \xright@appenditem{\noexpand\vl@dlsnote{\csexpandonce{content}}}%
+ \xright@appenditem{\noexpand\vl@dlsnote{\expandonce\content}}%
\to\inserts@listR
\global\advance\insert@countR \@ne%
\else%
- \xright@appenditem{\noexpand\vl@dlsnote{\csexpandonce{content}}}%
+ \xright@appenditem{\noexpand\vl@dlsnote{\expandonce\content}}%
\to\inserts@list
\global\advance\insert@count \@ne%
\fi
@@ -10853,11 +11101,11 @@
\newcommand{\content}{#1}%
\ifnumberedpar@
\ifledRcol%
- \xright@appenditem{\noexpand\vl@drsnote{\csexpandonce{content}}}%
+ \xright@appenditem{\noexpand\vl@drsnote{\expandonce\content}}%
\to\inserts@listR
\global\advance\insert@countR \@ne%
\else%
- \xright@appenditem{\noexpand\vl@drsnote{\csexpandonce{content}}}%
+ \xright@appenditem{\noexpand\vl@drsnote{\expandonce\content}}%
\to\inserts@list
\global\advance\insert@count \@ne%
\fi
@@ -10868,11 +11116,11 @@
\newcommand{\content}{#1}%
\ifnumberedpar@
\ifledRcol%
- \xright@appenditem{\noexpand\vl@dcsnote{\csexpandonce{content}}}%
+ \xright@appenditem{\noexpand\vl@dcsnote{\expandonce\content}}%
\to\inserts@listR
\global\advance\insert@countR \@ne%
\else%
- \xright@appenditem{\noexpand\vl@dcsnote{\csexpandonce{content}}}%
+ \xright@appenditem{\noexpand\vl@dcsnote{\expandonce\content}}%
\to\inserts@list
\global\advance\insert@count \@ne%
\fi
@@ -11501,7 +11749,7 @@
% \end{macro}
% \end{macro}
% \end{macro}
-% That finishes the \Lpack{memoir}-specific code.
+% This finishes the \Lpack{memoir}-specific code.
% \begin{macrocode}
}
% \end{macrocode}
@@ -11567,8 +11815,8 @@
% \end{macro}
% \end{macro}
% \end{macro}
-% \subsection{Choose the good variant}
-% And now, call \cs{create@edindex@for@memoir} or \cs{create@edindex@notfor@memoir} depending of the use of \Lpack{memoir} and \Lpack{imakeidx}
+% \subsection{Choose the right variant}
+% Then call \cs{create@edindex@for@memoir} or \cs{create@edindex@notfor@memoir} depending on the use of \Lpack{memoir} and \Lpack{imakeidx}
% \begin{macrocode}
\@ifclassloaded{memoir}{%
\@ifpackageloaded{imakeidx}%
@@ -11649,7 +11897,7 @@
% \end{macrocode}
% \end{macro}
% \end{macro}
-% \changes{v1.14.0}{2014/10/27}{Delete previous override of \cs{l@d@@wrindexhyp} at the beginning of a document when hyperref was not loaded.}
+% \changes{v1.14.0}{2014/10/27}{Delete previous override of \cs{l@d@@wrindexhyp} at the beginning of a document when hyperref is not loaded.}
%
%
% \section{Macro as environment}
@@ -13914,7 +14162,7 @@
% \end{macrocode}
% \changes{v1.14.1}{2014/12/15}{Debug sectioning commands when using both \Lpack{handout} and \Lpack{hyperref} package.}
-% \Lpack{hyperref} redefines also \cs{@sect}. That's why, when manipulating arguments, we patch \cs{@sect} and similar only if \Lpack{hyperref} is not used. If used, we patch the \cs{NR} commands.
+% \Lpack{hyperref} also redefines \cs{@sect}. That's why, when manipulating arguments, we patch \cs{@sect} and the same only if \Lpack{hyperref} is not used. If it is, we patch the \cs{NR} commands.
% \begin{macrocode}
\@ifpackageloaded{nameref}{
@@ -14267,10 +14515,10 @@
% The \cs{led@nopb} adds the absolute line number in the \cs{prev@nopb} list.
% The \cs{led@nopbnum} adds the argument in the \cs{prev@nopb} list.
% \begin{macrocode}
-\newcommand{\led@pb}{\listcsxadd{l@prev@pb}{\the\absline@num}}
-\newcommand{\led@pbnum}[1]{\listcsxadd{l@prev@pb}{#1}}
-\newcommand{\led@nopb}{\listcsxadd{l@prev@nopb}{\the\absline@num}}
-\newcommand{\led@nopbnum}[1]{\listcsxadd{l@prev@nopb}{#1}}
+\newcommand{\led@pb}{\listxadd{\l@prev@pb}{\the\absline@num}}
+\newcommand{\led@pbnum}[1]{\listxadd{\l@prev@pb}{#1}}
+\newcommand{\led@nopb}{\listxadd{\l@prev@nopb}{\the\absline@num}}
+\newcommand{\led@nopbnum}[1]{\listxadd{\l@prev@nopb}{#1}}
% \end{macrocode}
% \end{macro}
% \end{macro}
@@ -14290,20 +14538,20 @@
% The \cs{led@check@pb} and \cs{led@check@nopb} are called before or after each line.
% They check if a page break must occur, depending on the current line and on the content of \cs{l@pb}.
% \begin{macrocode}
-\newcommand{\led@check@pb}{\xifinlistcs{\the\absline@num}{l@prev@pb}{\pagebreak[4]}{}}
+\newcommand{\led@check@pb}{\xifinlist{\the\absline@num}{\l@prev@pb}{\pagebreak[4]}{}}
\newcommand{\led@check@nopb}{%
\IfStrEq{\led@pb@setting}{before}{%
- \xifinlistcs{\the\absline@num}{l@prev@nopb}%
+ \xifinlist{\the\absline@num}{\l@prev@nopb}%
{\numdef{\abs@prevline}{\the\absline@num-1}%
- \xifinlistcs{\abs@prevline}{normal@page@break}%
+ \xifinlist{\abs@prevline}{\normal@page@break}%
{\nopagebreak[4]\enlargethispage{\baselineskip}}%
{}}%
{}}%
{}%
{}%
\IfStrEq{\led@pb@setting}{after}{%
- \xifinlistcs{\the\absline@num}{l@prev@nopb}{%
- \xifinlistcs{\the\absline@num}{normal@page@break}%
+ \xifinlist{\the\absline@num}{\l@prev@nopb}{%
+ \xifinlist{\the\absline@num}{\normal@page@break}%
{\nopagebreak[4]\enlargethispage{\baselineskip}}%
{}%
}%
diff --git a/Master/texmf-dist/source/latex/eledmac/eledpar.dtx b/Master/texmf-dist/source/latex/eledmac/eledpar.dtx
index b63d36a2f87..e69406fd3f4 100644
--- a/Master/texmf-dist/source/latex/eledmac/eledpar.dtx
+++ b/Master/texmf-dist/source/latex/eledmac/eledpar.dtx
@@ -51,7 +51,7 @@
%
% \fi
%
-% \CheckSum{4747}
+% \CheckSum{4817}
%
% \makeatletter
% \newcommand*{\DescribeIt}{\leavevmode\@bsphack\begingroup\MakePrivateLetters
@@ -181,6 +181,8 @@
% \changes{v1.8.2}{2014/08/15}{Debug \cs{eledxxx} with some paper sizes}
% \changes{v1.8.3}{2014/08/31}{Add \cs{noeledxxx}, as in eledmac}
% \changes{v1.9.0}{2014/09/16}{Compatibility with \cs{Xnoteswidthliketwocolumns} and \cs{notesXwidthliketwocolumns}}
+% \changes{v1.10.0}{2015/01/12}{Restore critical notes in \cs{eledsection} in parallel columns (this bug was added in 1.8.2).}
+% \changes{v1.10.0}{2015/01/12}{Compatibility with \cs{AtEveryPstart} and \cs{AtEveryPend}}
% \hyphenation{man-u-script man-u-scripts}
%
%
@@ -365,7 +367,7 @@
% \end{verbatim}
%
%
-% Note that the \cs{Columns} \textbf{must be} outside of the \verb+pairs+ environment.
+% Keep in mind that the \cs{Columns} \textbf{must be} outside of the \verb+pairs+ environment.
% \DescribeMacro{\AtBeginPairs}
% \changes{v1.9.0}{2014/09/16}{Add \cs{AtBeginPairs} macro.}
% You can use the macro \cs{AtBeginPairs} to insert a code at the begining of each \verb+pairs+ environments.
@@ -870,7 +872,7 @@
% \begin{macrocode}
%<*code>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{eledpar}[2014/09/30 v1.9.1 eledmac extension for parallel texts]%
+\ProvidesPackage{eledpar}[2015/01/12 v1.10.0 eledmac extension for parallel texts]%
% \end{macrocode}
% With the option `shiftedpstarts' a long pstart one the left side (or in the right side) don't make a blank on the corresponding pstart, but the blank is put on the bottom of the page. Consequently, the pstarts on the parallel pages are shifted, but the shifted stop at every end of pages.
@@ -1447,6 +1449,8 @@
\list@create{\insertlines@listR}
\list@create{\actionlines@listR}
\list@create{\actions@listR}
+\list@create{\sw@listR}%
+\list@create{\sw@list@inedtextR}%
% \end{macrocode}
% \end{macro}
@@ -1501,6 +1505,8 @@
\list@clear{\actions@listR}%
\list@clear{\linesinpar@listR}%
\list@clear{\linesonpage@listR}
+ \list@clear{\sw@listR}%
+ \list@clear{\sw@list@inedtextR}%
\else
\list@clearing@reg
\list@clear{\linesinpar@listL}%
@@ -1651,7 +1657,7 @@
\page@num=#1\relax
\last@page@num=#1\relax
\def\next@page@num{#1}%
- \listcsxadd{normal@page@break}{\the\absline@num}
+ \listxadd{\normal@page@break}{\the\absline@num}
\fi
\fi}
@@ -1963,10 +1969,12 @@
% \begin{macrocode}
\begingroup
\let\@ref=\dummy@ref
+ \let\@lopR\@gobble
\let\page@action=\relax
\let\sub@action=\relax
\let\set@line@action=\relax
\let\@lab=\relax
+ \let\@sw\@gobbletwo%
#2
\global\endpage@num=\page@numR
\global\endline@num=\line@numR
@@ -2255,6 +2263,7 @@
%
% \begin{macrocode}
\long\def\critext#1#2/{\leavevmode
+ \@edtext@true%
\begingroup
\renewcommand{\@tag}{\no@expands #1}%
\set@line
@@ -2276,6 +2285,8 @@
\flag@end}%
{\if@RTL\flag@start\else\flag@end\fi% be careful on the direction of writing with polyglossia
}
+ \@edtext@false%
+ \@lemmacommand@false%
}
% \end{macrocode}
% \end{macro}
@@ -2284,6 +2295,7 @@
% And similarly for \cs{edtext}.
% \begin{macrocode}
\renewcommand{\edtext}[2]{\leavevmode
+ \@edtext@true%
\begingroup%
\renewcommand{\@tag}{\no@expands #1}%
\set@line%
@@ -2305,6 +2317,8 @@
\flag@end}%
{\if@RTL\flag@start\else\flag@end\fi% be careful on the direction of writing with polyglossia
}%
+ \@edtext@false%
+ \@lemmacommand@false%
}
% \end{macrocode}
@@ -2604,7 +2618,7 @@
% Dump the optional arguments
% \begin{macrocode}
\ifstrempty{#1}%
- {}%
+ {\csgdef{before@pstartL@\the\l@dnumpstartsL}{\at@every@pstart}}%
{\csgdef{before@pstartL@\the\l@dnumpstartsL}{\noindent#1}}%
}
% \end{macrocode}
@@ -2650,7 +2664,7 @@
\iflabelpstart\protected@edef\@currentlabel%
{\p@pstartR\thepstartR}\fi%
\ifstrempty{#1}%
- {}
+ {\csgdef{before@pstartR@\the\l@dnumpstartsR}{\at@every@pstart}}%
{\csgdef{before@pstartR@\the\l@dnumpstartsR}{\noindent#1}}%
}
% \end{macrocode}
@@ -2697,7 +2711,7 @@
% Dump content of the optional argument.
% \begin{macrocode}
\ifstrempty{#1}%
- {}%
+ {\csgdef{after@pendL@\the\l@dnumpstartsL}{\at@every@pend}}%
{\csgdef{after@pendL@\the\l@dnumpstartsL}{\noindent#1}}%
}
% \end{macrocode}
@@ -2727,7 +2741,7 @@
\fi%
\parledgroup@beforenotes@save{R}%
\ifstrempty{#1}%
- {}%
+ {\csgdef{after@pendR@\the\l@dnumpstartsR}{\at@every@pend}}%
{\csgdef{after@pendR@\the\l@dnumpstartsR}{\noindent#1}}%
}
@@ -2735,6 +2749,15 @@
% \end{macro}
%
%
+% \begin{macro}{\ifprint@last@after@pendL}
+% \begin{macro}{\ifprint@last@after@pendR}
+% Two booleans set to true, when the time is to print the last optional argument of a \cs{pend}.
+% \begin{macrocode}
+\newif\ifprint@last@after@pendL%
+\newif\ifprint@last@after@pendR%
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
% \subsection{Processing one line}
%
% For parallel texts we have to be able to process left and right lines
@@ -2817,7 +2840,7 @@
\hb@xt@ \Lcolwidth{%
\affixline@num
\xifinlist{\the\l@dpscL}{\eled@sections@@}%
- {}%
+ {\add@inserts\affixside@note}%
{\print@lineL}}%
\add@penaltiesL
\global\advance\@donereallinesL\@ne
@@ -2847,8 +2870,7 @@
% \begin{macro}{\print@eledsectionL}
% \cs{print@eledsectionL} is for line with macro code.
% \begin{macrocode}
-\def\print@eledsectionL{%
- \add@inserts\affixside@note%
+\def\print@eledsectionL{%%
\addtocounter{pstartL}{-1}%
\ifdefstring{\@eledsectnotoc}{L}{\ledsectnotoc}{}
\ifdefstring{\@eledsectmark}{L}{}{\ledsectnomark}
@@ -2934,7 +2956,7 @@
\hb@xt@ \Rcolwidth{%
\affixline@numR%
\xifinlist{\the\l@dpscR}{\eled@sectionsR@@}%
- {}%
+ {\add@insertsR\affixside@noteR}%
{\print@lineR}%
}%
\add@penaltiesR
@@ -2956,16 +2978,13 @@
\def\print@lineR{%
\affixpstart@numR%
\l@dld@ta %space kept for backward compatibility
- \add@insertsR%
- \affixside@noteR%
+ \add@insertsR\affixside@noteR%
\l@dlsn@te %space kept for backward compatibility
\correcthangingR\ledllfill\hb@xt@ \wd\one@lineR{\do@insidelineRhook\inserthangingsymbolR\new@lineR\l@dunhbox@line{\one@lineR}}\ledrlfill\l@drd@ta%
\l@drsn@te
}
\def\print@eledsectionR{%
- \add@insertsR%
- \affixside@noteR%
\addtocounter{pstartR}{-1}%
\initnumbering@sectcountR%
\ifdefstring{\@eledsectnotoc}{R}{\ledsectnotoc}{}%
@@ -3538,8 +3557,13 @@
% label, storing it in \cs{label@refs}. Finally it defines the
% label to be \cs{empty} so that any future check will turn up
% the fact that it has been used.
+% \changes{v1.10.0}{2015/01/12}{Prevent some bugs with cross-referencing when using \cs{autopar} in parallel texts.}
% \begin{macrocode}
-\renewcommand*{\edlabel}[1]{\@bsphack
+\renewcommand*{\edlabel}[1]{%
+ \ifl@dpairing\ifautopar%
+ \strut%
+ \fi\fi%
+ \@bsphack%
\ifledRcol
\write\linenum@outR{\string\@lab}%
\ifx\labelref@listR\empty
@@ -3707,11 +3731,11 @@
\ifnumberedpar@
\gdef\@tag{#1}%
\ifledRcol%
- \xright@appenditem{\noexpand\vl@dbfnote{{\csexpandonce{@tag}}}{\@thefnmark}}%
+ \xright@appenditem{\noexpand\vl@dbfnote{{\expandonce\@tag}}{\@thefnmark}}%
\to\inserts@listR
\global\advance\insert@countR \@ne%
\else%
- \xright@appenditem{\noexpand\vl@dbfnote{{\csexpandonce{@tag}}}{\@thefnmark}}%
+ \xright@appenditem{\noexpand\vl@dbfnote{{\expandonce\@tag}}{\@thefnmark}}%
\to\inserts@list
\global\advance\insert@count \@ne%
\fi
@@ -3735,8 +3759,8 @@
\@ifundefined{xpg@main@language}%if polyglossia
{}%
{\footnotelang@poly[R]}%
- \protected@csxdef{thisfootnote}{\csuse{thefootnote#1}}%
- \xright@appenditem{\noexpand\vbfnoteX{#1}{#2}{\csexpandonce{thisfootnote}}}%
+ \protected@xdef\thisfootnote{\csuse{thefootnote#1}}%
+ \xright@appenditem{\noexpand\vbfnoteX{#1}{#2}{\expandonce\thisfootnote}}%
\to\inserts@listR
\global\advance\insert@countR \@ne%
\else%
@@ -3746,8 +3770,8 @@
\@ifundefined{xpg@main@language}%if polyglossia
{}%
{\footnotelang@poly}%
- \protected@csxdef{thisfootnote}{\csuse{thefootnote#1}}%
- \xright@appenditem{\noexpand\vbfnoteX{#1}{#2}{\csexpandonce{thisfootnote}}}%
+ \protected@xdef\thisfootnote{\csuse{thefootnote#1}}%
+ \xright@appenditem{\noexpand\vbfnoteX{#1}{#2}{\expandonce\thisfootnote}}%
\to\inserts@list
\global\advance\insert@count \@ne%
\fi
@@ -4481,10 +4505,10 @@
% \begin{macro}{setwidthliketwocolumns@R}
% \begin{macro}{setpositionliketwocolumns@R}
% \begin{macro}{setnotepositionliketwocolumns@R}
-% The \cs{setwidth…} macros are called in \cs{beginnumbering} in a \textbf{not parallel}
-% typesetting, to fix the width of the lines to be vertically aligned with parallel columns. They are also called at the beginning of a note's group, if some options are enabled.
-% The \cs{setposition…} macros are called in \cs{beginnumbering} in a \textbf{not parallel} to fix the position of the lines.
-% The \cs{setnoteposition…} macros are called \cs{xxxfootstart} in a \textbf{not parallel} to fix the position of notes block.
+% The \cs{setwidth…} macros are called in \cs{beginnumbering} in a \textbf{non-parallel}
+% typesetting context, to fix the width of the lines to be vertically aligned with parallel columns. They are also called at the beginning of a note's group, if some options are enabled.
+% The \cs{setposition…} macros are called in \cs{beginnumbering} in a \textbf{non- parallel} typesetting context to fix the position of the lines.
+% The \cs{setnoteposition…} macros are called in \cs{xxxfootstart} in a \textbf{non- parallel} typesetting context to fix the position of notes block.
% \begin{macrocode}
\newcommand{\setwidthliketwocolumns@L}{%
% Temporary dimension, initially equal to the standard hsize, i.e. text width
@@ -4628,6 +4652,8 @@
% \begin{macro}{\Pages}
% \changes{v1.8.0}{2014/07/28}{Modify \cs{Pages} to enable to add section's title.}
% \changes{v1.8.3}{2014/08/31}{Debug blank pages when using optional argument in the last \cs{pend}.}
+% \changes{v1.10.0}{2015/01/12}{Debug wrong pages splitting when no optional argument is used in last \cs{pend} (bug was added in v.1.8.3).}
+% \changes{v1.10.0}{2015/01/12}{Debug wrong parallel pages synchronization when an \cs{edtext} falls accross two pages.}
% The \cs{Pages} command results in the previous Left and
% Right texts being typeset on matching facing pages. There should
% be equal numbers of chunks in the left and right texts.
@@ -4734,7 +4760,7 @@
% \changes{v0.3}{2005/02/10}{Added \cs{ledstrutL} to \cs{Pages}}
% \begin{macrocode}
\ifdefstring{\@eledsectnotoc}{L}{\ledsectnotoc}{}
- \csuse{before@pstartL@\the\l@dpscL}
+ \csuse{before@pstartL@\the\l@dpscL}%
\global\csundef{before@pstartL@\the\l@dpscL}
\do@lineL
\xifinlist{\the\l@dpscL}{\eled@sections@@}
@@ -4749,10 +4775,18 @@
\fi
% \end{macrocode}
% Perhaps we have to move to the next (left) box. Check if we have got all
-% we can onto the page. If not, repeat for the next line.
+% we can onto the page. If not, repeat for the next line.
+% Check if we have to print the optional argument of the last pend.
+% Check if the page is full.
+% Check if the verse is split in two subsequent pages.
+% Check there is any forced page breaks.
% \begin{macrocode}
- \checkpageL%
\get@nextboxL%
+ \ifprint@last@after@pendL%
+ \csuse{after@pendL@\the\l@dpscL}%
+ \global\csundef{after@pendL@\the\l@dpscL}%
+ \fi%
+ \checkpageL%
\checkverseL
\checkpbL
\repeat
@@ -4784,7 +4818,7 @@
{ \loop\ifl@dsamepage%
\initnumbering@sectcountR
\ifdefstring{\@eledsectnotoc}{R}{\ledsectnotoc}{}
- \csuse{before@pstartR@\the\l@dpscR}
+ \csuse{before@pstartR@\the\l@dpscR}%
\global\csundef{before@pstartR@\the\l@dpscR}
\do@lineR
\xifinlist{\the\l@dpscR}{\eled@sectionsR@@}
@@ -4797,8 +4831,12 @@
\parledgroup@correction@notespacing{R}
\hb@xt@ \hsize{\ledstrutR\unhbox\l@drightbox}%
\fi
- \checkpageR%
\get@nextboxR%
+ \ifprint@last@after@pendR%
+ \csuse{after@pendR@\the\l@dpscR}%
+ \global\csundef{after@pendR@\the\l@dpscR}%
+ \fi%
+ \checkpageR%
\checkverseR
\checkpbR
\repeat
@@ -5043,7 +5081,14 @@
\else
\l@dsamepagefalse
\l@dpagefulltrue
- \fi}
+ \fi%
+ \ifprint@last@after@pendL%
+ \l@dpagefullfalse%
+ \l@dsamepagefalse%
+ \print@last@after@pendLfalse%
+ \fi%
+ }%
+
\newcommand*{\checkpageR}{%
\l@dpagefulltrue
\l@dsamepagetrue
@@ -5057,7 +5102,13 @@
\else
\l@dsamepagefalse
\l@dpagefulltrue
- \fi}
+ \fi%
+ \ifprint@last@after@pendR%
+ \l@dpagefullfalse%
+ \l@dsamepagefalse%
+ \print@last@after@pendRfalse%
+ \fi%
+ }%
% \end{macrocode}
% \end{macro}
@@ -5233,10 +5284,7 @@
\else
% Add the content of the optional argument of the last \cs{pend}.
% \begin{macrocode}
- \l@dpagefulltrue
- \l@dsamepagefalse%
- \csuse{after@pendL@\the\l@dpscL}%
- \global\csundef{after@pendL@\the\l@dpscL}%
+ \print@last@after@pendLtrue%
% \end{macrocode}
% \begin{macrocode}
\fi
@@ -5279,10 +5327,7 @@
\parledgroup@notes@endR
\parledgroup@correction@notespacing@final{R}
\else
- \l@dpagefulltrue%
- \l@dsamepagefalse%
- \csuse{after@pendR@\the\l@dpscR}%
- \global\csundef{after@pendR@\the\l@dpscR}%
+ \print@last@after@pendRtrue%
\fi
\fi
\fi}
@@ -5357,10 +5402,10 @@
% The \cs{led@nopbR} add the absolute line number in the \cs{prev@nopbR} list.
% The \cs{led@nopbnumR} add the argument in the \cs{prev@nopbR} list.
% \begin{macrocode}
-\newcommand{\led@pbR}{\listcsxadd{l@prev@pbR}{\the\absline@numR}}
-\newcommand{\led@pbnumR}[1]{\listcsxadd{l@prev@pbR}{#1}}
-\newcommand{\led@nopbR}{\listcsxadd{l@prev@nopbR}{\the\absline@numR}}
-\newcommand{\led@nopbnumR}[1]{\listcsxadd{l@prev@nopbR}{#1}}
+\newcommand{\led@pbR}{\listxadd{\l@prev@pbR}{\the\absline@numR}}
+\newcommand{\led@pbnumR}[1]{\listxadd{\l@prev@pbR}{#1}}
+\newcommand{\led@nopbR}{\listxadd{\l@prev@nopbR}{\the\absline@numR}}
+\newcommand{\led@nopbnumR}[1]{\listxadd{\l@prev@nopbR}{#1}}
% \end{macrocode}
% \end{macro}
% \end{macro}
diff --git a/Master/texmf-dist/tex/latex/eledmac/eledmac.sty b/Master/texmf-dist/tex/latex/eledmac/eledmac.sty
index f3962f31caf..4fb5cd6a17f 100644
--- a/Master/texmf-dist/tex/latex/eledmac/eledmac.sty
+++ b/Master/texmf-dist/tex/latex/eledmac/eledmac.sty
@@ -25,7 +25,7 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{eledmac}[2014/12/17 v1.14.2 LaTeX port of EDMAC]%
+\ProvidesPackage{eledmac}[2015/01/12 v1.15.0 LaTeX port of EDMAC]%
\newif\ifledfinal
\newif\ifparapparatus@
\newif\ifnoquotation@
@@ -70,7 +70,7 @@
\newif\ifl@imakeidx
\@ifpackageloaded{imakeidx}{\l@imakeidxtrue}{\l@imakeidxfalse}
-\ifcsdef{if@RTL}{}{\newif\if@RTL}
+\ifdef{\if@RTL}{}{\newif\if@RTL}
\newcommand{\eledmac@warning}[1]{\PackageWarning{eledmac}{#1}}
\newcommand{\eledmac@error}[2]{\PackageError{eledmac}{#1}{#2}}
\newcommand*{\led@err@NumberingStarted}{%
@@ -502,7 +502,10 @@
\list@clear{\line@list}%
\list@clear{\insertlines@list}%
\list@clear{\actionlines@list}%
- \list@clear{\actions@list}}
+ \list@clear{\actions@list}%
+ \list@clear{\sw@list}%
+ \list@clear{\sw@list@inedtext}%
+ }%
\newcommand*{\get@linelistfile}[1]{%
\InputIfFileExists{#1}{%
\global\noteschanged@false
@@ -572,7 +575,7 @@
\page@num=#1\relax
\last@page@num=#1\relax
\def\next@page@num{#1}%
- \listcsxadd{normal@page@break}{\the\absline@num}
+ \listxadd{\normal@page@break}{\the\absline@num}
\fi}
\newcommand*{\@pend}[1]{}
@@ -583,10 +586,10 @@
\newcommand*{\sub@on}{\ifsublines@
\let\sub@change=\relax
\else
- \def\sub@changes{1}%
+ \def\sub@change{1}%
\fi}
\newcommand*{\sub@off}{\ifsublines@
- \def\sub@changes{-1}%
+ \def\sub@change{-1}%
\else
\let\sub@change=\relax
\fi}
@@ -706,10 +709,12 @@
\repeat
\begingroup
\let\@ref=\dummy@ref
+ \let\@lopL\@gobble
\let\page@action=\relax
\let\sub@action=\relax
\let\set@line@action=\relax
\let\@lab=\relax
+ \let\@sw\@gobbletwo%
#2
\global\endpage@num=\page@num
\global\endline@num=\line@num
@@ -748,8 +753,8 @@
\newcommand*{\new@line}{%
\IfStrEq{\led@pb@setting}{after}%
- {\xifinlistcs{\the\absline@num}{l@prev@nopb}%
- {\xifinlistcs{\the\absline@num}{normal@page@break}%
+ {\xifinlist{\the\absline@num}{\l@prev@nopb}%
+ {\xifinlist{\the\absline@num}{\normal@page@break}%
{\numgdef{\@next@page}{\thepage+1}%
\write\linenum@out{\string\@nl[\@next@page][\@next@page]}%
}%
@@ -759,8 +764,8 @@
{}%
\IfStrEq{\led@pb@setting}{before}%
{\numdef{\next@absline}{\the\absline@num+1}%
- \xifinlistcs{\next@absline}{l@prev@nopb}%
- {\xifinlistcs{\the\absline@num}{normal@page@break}%
+ \xifinlist{\next@absline}{\l@prev@nopb}%
+ {\xifinlist{\the\absline@num}{\normal@page@break}%
{\numgdef{\nc@page}{\c@page+1}%
\write\linenum@out{\string\@nl[\nc@page][\nc@page]}%
}%
@@ -842,13 +847,16 @@
\let\edlabel=\@gobble
\let\setline=\@gobble \let\advanceline=\@gobble
\let\critext=\dummy@text
+ \let\sameword\sameword@inedtext%
\let\edtext=\dummy@edtext
\l@dtabnoexpands
\morenoexpands}
\let\morenoexpands=\relax
\newcommand{\@tag}{}
+\newif\if@edtext@%
\long\def\critext#1#2/{\leavevmode
+ \@edtext@true%
\begingroup
\global\renewcommand{\@tag}{\no@expands #1}%%
\set@line
@@ -869,8 +877,11 @@
\flag@end}%
{\if@RTL\flag@start\else\flag@end\fi% With polyglossia, you must track whether the language reads left to right (English) or right to left (Arabic).
}
+ \@edtext@false%
+ \global\@lemmacommand@false%
}
\newcommand{\edtext}[2]{\leavevmode
+ \@edtext@true%
\begingroup
\global\renewcommand{\@tag}{\no@expands #1}%%
\set@line
@@ -892,6 +903,8 @@
{\if@RTL\flag@start\else\flag@end\fi% With polyglossia, you must track whether the language reads left to right (English) or right to left (Arabic).
}%
\global\@noneed@Footnotefalse%
+ \@edtext@false%
+ \global\@lemmacommand@false%
}
\newcommand*{\flag@end}{%
@@ -915,7 +928,10 @@
\newcommand*{\edfont@info}{\f@encoding/\f@family/\f@series/\f@shape}
-\newcommand*{\lemma}[1]{\global\renewcommand{\@tag}{\no@expands #1}}
+\newcommand*{\lemma}[1]{%
+ \global\@lemmacommand@true%
+ \global\renewcommand{\@tag}{\no@expands #1}}%
+\newif\if@lemmacommand@%
\newcommand*{\linenum}[1]{%
\xdef\@tempa{#1|||||||\noexpand\\\l@d@nums}%
\global\let\l@d@nums=\empty
@@ -933,12 +949,104 @@
\fi}
\newcommand{\l@d@add}[1]{\xdef\l@d@nums{\l@d@nums#1}}
+
+\list@create{\sw@list}%
+\list@create{\sw@list@inedtext}%
+\newcommandx{\sameword}[2][1,usedefault]{\leavevmode%
+ \unless\ifledRcol%
+ \csnumgdef{sw@#2}{\csuse{sw@#2}+1}%
+ \protected@write\linenum@out{}{\string\@sw{#2}{\csuse{sw@#2}}}%
+ \unless\ifx\sw@list\empty%
+ \gl@p\sw@list\to\@tempb%
+ \if@edtext@%
+ \unless\if@lemmacommand@%
+ \xright@appenditem{\@tempb}\to\sw@list@inedtext%
+ \else%
+ \ifstrequal{#1}{inlemma}{\xright@appenditem{\@tempb}\to\sw@list@inedtext}{}%
+ \fi%
+ \fi%
+ \global\let\@tempb=\undefined%
+ \fi%
+ \else%
+ \csnumgdef{sw@#2@R}{\csuse{sw@#2@R}+1}%
+ \protected@write\linenum@outR{}{\string\@sw{#2}{\csuse{sw@#2@R}}}%
+ \unless\ifx\sw@listR\empty%
+ \gl@p\sw@listR\to\@tempb%
+ \if@edtext@%
+ \unless\if@lemmacommand@%
+ \xright@appenditem{\@tempb}\to\sw@list@inedtextR%
+ \else%
+ \ifstrequal{#1}{inlemma}{\xright@appenditem{\@tempb}\to\sw@list@inedtextR}{}%
+ \fi%
+ \fi%
+ \global\let\@tempb=\undefined%
+ \fi%
+ \fi%
+ #2%
+}%
+\newcommand{\@sw}[2]{%
+ \unless\ifledRcol%
+ \csxdef{sw@#1@\the\absline@num @\the\section@num}{#2}%
+ \numdef{\prev@line}{\the\absline@num-1}%
+ \ifcsundef{sw@#1@\prev@line @\the\section@num}{%
+ \csnumgdef{sw@#1@\prev@line @\the\section@num}{#2-1}%
+ }{}%
+ \numdef{\the@sw}{#2-\csuse{sw@#1@\prev@line @\the\section@num}}%
+ \xright@appenditem{\the@sw}\to\sw@list%
+ \else%
+ \csxdef{sw@#1@\the\absline@numR @\the\section@numR @R}{#2}%
+ \numdef{\prev@line}{\the\absline@numR-1}%
+ \ifcsundef{sw@#1@\prev@line @\the\section@numR @R}{%
+ \csnumgdef{sw@#1@\prev@line @\the\section@numR @R}{#2-1}%
+ }{}%
+ \numdef{\the@sw}{#2-\csuse{sw@#1@\prev@line @\the\section@numR @R}}%
+ \xright@appenditem{\the@sw}\to\sw@listR%
+ \fi%
+}%
+\def\sameword@inedtext#1{%
+ \unless\ifledRcol@%
+ \ifcsdef{sw@#1@\the\absline@num @\the\section@num}{%
+ \numdef{\prev@line}{\the\absline@num-1}%
+ \numdef{\sw@atthisline}{\csuse{sw@#1@\the\absline@num @\the\section@num}-\csuse{sw@#1@\prev@line @\the\section@num}}%
+ }%
+ {\numdef{\sw@atthisline}{0}}%
+ \ifx\sw@list@inedtext\empty%
+ \def\the@sw{999}%
+ \else%
+ \gl@p\sw@list@inedtext\to\the@sw%
+ \fi%
+ \ifnumgreater{\sw@atthisline}{1}%
+ {\showwordrank{#1}{\the@sw}}%
+ {#1}%
+ \else%
+ \ifcsdef{sw@#1@\the\absline@numR @\the\section@numR @R}{%
+ \numdef{\prev@line}{\the\absline@numR-1}%
+ \numdef{\sw@atthisline}{\csuse{sw@#1@\the\absline@numR @\the\section@numR @R}-\csuse{sw@#1@\prev@line @\the\section@numR @R}}%
+ }%
+ {\numdef{\sw@atthisline}{0}}%
+ \ifx\sw@list@inedtextR\empty%
+ \def\the@sw{999}%
+ \else%
+ \gl@p\sw@list@inedtextR\to\the@sw%
+ \fi%
+ \ifnumgreater{\sw@atthisline}{1}%
+ {\showwordrank{#1}{\the@sw}}%
+ {#1}%
+ \fi%
+}%
+\newcommand{\showwordrank}[2]{%
+ #1\textsuperscript{#2}%
+}%
+
\newbox\raw@text
\newif\ifnumberedpar@
\newcount\num@lines
\newbox\one@line
\newcount\par@line
+\newcommand{\AtEveryPstart}[1]{\xdef\at@every@pstart{\noindent\unexpanded{#1}}}%
+\xdef\at@every@pstart{}%
+
\newcounter{pstart}
\renewcommand{\thepstart}{{\bfseries\@arabic\c@pstart}. }
\newif\ifnumberpstart
@@ -946,7 +1054,7 @@
\newif\iflabelpstart
\labelpstartfalse
\newcommandx*{\pstart}[1][1]{%
- \ifstrempty{#1}{}{\noindent#1}%
+ \ifstrempty{#1}{\at@every@pstart}{\noindent#1}%
\if@nobreak%
\let\@oldnobreak\@nobreaktrue%
\else%
@@ -1006,9 +1114,13 @@
\fi%
\@oldnobreak%
\addtocounter{pstart}{1}%
- \ifstrempty{#1}{}{\noindent#1}%
+ \ifstrempty{#1}{\at@every@pend}{\noindent#1}%
}
+
+\newcommand{\AtEveryPend}[1]{\xdef\at@every@pend{\noindent\unexpanded{#1}}}%
+\xdef\at@every@pend{}%
+
\newcommand*{\l@dzeropenalties}{%
\brokenpenalty \z@ \clubpenalty \z@
\displaywidowpenalty \z@ \interlinepenalty \z@ \predisplaypenalty \z@
@@ -1441,13 +1553,13 @@
\newcommandx*{\footnotelang@poly}[1][1=L,usedefault]{%
\ifstrequal{#1}{L}{%
\if@RTL%
- \xright@appenditem{{\csxdef{footnote@dir}{@RTLtrue}}}\to\inserts@list%Know the language of lemma
+ \xright@appenditem{{\csxdef{footnote@dir}{@RTLtrue}}}\to\inserts@list%Know the language used in the lemma
\global\advance\insert@count \@ne%
\else
\xright@appenditem{{\csxdef{footnote@dir}{@RTLfalse}}}\to\inserts@list%Know the language of lemma
\global\advance\insert@count \@ne%
\fi%
- \xright@appenditem{{\csxdef{footnote@lang}{\csexpandonce{languagename}}}}\to\inserts@list%Know the language of lemma
+ \xright@appenditem{{\csxdef{footnote@lang}{\expandonce\languagename}}}\to\inserts@list%Know the language of lemma
\global\advance\insert@count \@ne%
}%
{%
@@ -1458,7 +1570,7 @@
\xright@appenditem{{\csxdef{footnote@dir}{@RTLfalse}}}\to\inserts@listR%Know the language of lemma
\global\advance\insert@countR \@ne%
\fi
- \xright@appenditem{{\csxdef{footnote@lang}{\csexpandonce{languagename}}}}\to\inserts@listR%Know the language of lemma
+ \xright@appenditem{{\csxdef{footnote@lang}{\expandonce\languagename}}}\to\inserts@listR%Know the language of lemma
\global\advance\insert@countR \@ne%
}%
}
@@ -2015,7 +2127,7 @@
\newcommand{\l@dbfnote}[1]{%
\ifnumberedpar@
\gdef\@tag{#1}%
- \xright@appenditem{\noexpand\vl@dbfnote{{\csexpandonce{@tag}}}{\@thefnmark}}%
+ \xright@appenditem{\noexpand\vl@dbfnote{{\expandonce\@tag}}{\@thefnmark}}%
\to\inserts@list
\global\advance\insert@count \@ne
\fi\ignorespaces}
@@ -2124,8 +2236,8 @@
\newcommand{\normalbfnoteX}[2]{%
\ifnumberedpar@
- \protected@csxdef{thisfootnote}{\csuse{thefootnote#1}}%
- \xright@appenditem{\noexpand\vbfnoteX{#1}{#2}{\csexpandonce{thisfootnote}}}%
+ \protected@xdef\thisfootnote{\csuse{thefootnote#1}}%
+ \xright@appenditem{\noexpand\vbfnoteX{#1}{#2}{\expandonce\thisfootnote}}%
\to\inserts@list
\global\advance\insert@count \@ne
\fi\ignorespaces}
@@ -2298,7 +2410,7 @@
\rigidbalance\csname mpfootins#1\endcsname \thr@@ \splittopskip}}
\newcommand*{\footparagraphX}[1]{%
- \csgdef{series@displayX#1}{paragraph}
+ \csgdef{series@displayX#1}{paragraphX}%
\expandafter\newcount\csname prevpage#1@num\endcsname
\expandafter\let\csname footstart#1\endcsname=\parafootstartX
\expandafter\let\csname regvfootnote#1\endcsname=\para@vfootnoteX
@@ -2420,11 +2532,11 @@
\newdimen\old@hsize%
-\old@hsize=\hsize%
+\old@hsize=\linewidth%
\newcommand{\setXnoteswidthliketwocolumns@}[1]{%
- \global\let\hsize@fornote=\hsize%
- \old@hsize=\hsize%
+ \global\let\hsize@fornote=\linewidth%
+ \global\old@hsize=\linewidth%
\iftoggle{Xnoteswidthliketwocolumns@#1}%
{%
\csuse{setwidthliketwocolumns@\columns@position}%
@@ -2437,7 +2549,7 @@
\newcommand{\setnotesXwidthliketwocolumns@}[1]{%
\global\let\hsize@fornote=\hsize%
- \old@hsize=\hsize%
+ \global\old@hsize=\linewidth%
\iftoggle{notesXwidthliketwocolumns@#1}%
{%
\csuse{setwidthliketwocolumns@\columns@position}%
@@ -2643,7 +2755,7 @@
\footnoteoptions@[R]{##1}{true}%
\xright@appenditem{\noexpand\prepare@edindex@fornote{\l@d@nums}%
\noexpand\csuse{v#1footnote}{#1}%
- {{\l@d@nums}{\csexpandonce{@tag}}{\csexpandonce{content}}}}\to\inserts@listR
+ {{\l@d@nums}{\expandonce\@tag}{\expandonce\content}}}\to\inserts@listR
\footnoteoptions@[R]{##1}{false}%
\global\advance\insert@countR \@ne%
\else%
@@ -2656,7 +2768,7 @@
\footnoteoptions@{##1}{true}%
\xright@appenditem{\noexpand\prepare@edindex@fornote{\l@d@nums}%
\noexpand\csuse{v#1footnote}{#1}%
- {{\l@d@nums}{\csexpandonce{@tag}}{\csexpandonce{content}}}}\to\inserts@list
+ {{\l@d@nums}{\expandonce\@tag}{\expandonce\content}}}\to\inserts@list
\global\advance\insert@count \@ne%
\footnoteoptions@{##1}{false}%
\fi
@@ -2675,7 +2787,7 @@
\stepcounter{footnote#1}%
\protected@csxdef{@thefnmark#1}{\csuse{thefootnote#1}}%
\csuse{@footnotemark#1}%
- \csuse{vfootnote#1}{#1}{\csexpandonce{content}}\m@mmf@prepare%
+ \csuse{vfootnote#1}{#1}{\expandonce\content}\m@mmf@prepare%
\endgroup%
}
\newcounter{footnote#1}
@@ -2688,7 +2800,7 @@
\newcommand{\content}{##1}%
\immediate\write\l@d@end{\expandafter\string\csname #1end\endcsname%
{\ifnumberedpar@\l@d@nums\fi}%
- {\ifnumberedpar@\csexpandonce{@tag}\fi}{\csexpandonce{content}}{#1}}}\ignorespaces%
+ {\ifnumberedpar@\expandonce\@tag\fi}{\expandonce\content}{#1}}}\ignorespaces%
}
\global\cslet{#1end}{\@gobblefour}
@@ -3299,11 +3411,11 @@
\newcommand{\content}{#1}%
\ifnumberedpar@
\ifledRcol%
- \xright@appenditem{\noexpand\vl@dlsnote{\csexpandonce{content}}}%
+ \xright@appenditem{\noexpand\vl@dlsnote{\expandonce\content}}%
\to\inserts@listR
\global\advance\insert@countR \@ne%
\else%
- \xright@appenditem{\noexpand\vl@dlsnote{\csexpandonce{content}}}%
+ \xright@appenditem{\noexpand\vl@dlsnote{\expandonce\content}}%
\to\inserts@list
\global\advance\insert@count \@ne%
\fi
@@ -3314,11 +3426,11 @@
\newcommand{\content}{#1}%
\ifnumberedpar@
\ifledRcol%
- \xright@appenditem{\noexpand\vl@drsnote{\csexpandonce{content}}}%
+ \xright@appenditem{\noexpand\vl@drsnote{\expandonce\content}}%
\to\inserts@listR
\global\advance\insert@countR \@ne%
\else%
- \xright@appenditem{\noexpand\vl@drsnote{\csexpandonce{content}}}%
+ \xright@appenditem{\noexpand\vl@drsnote{\expandonce\content}}%
\to\inserts@list
\global\advance\insert@count \@ne%
\fi
@@ -3329,11 +3441,11 @@
\newcommand{\content}{#1}%
\ifnumberedpar@
\ifledRcol%
- \xright@appenditem{\noexpand\vl@dcsnote{\csexpandonce{content}}}%
+ \xright@appenditem{\noexpand\vl@dcsnote{\expandonce\content}}%
\to\inserts@listR
\global\advance\insert@countR \@ne%
\else%
- \xright@appenditem{\noexpand\vl@dcsnote{\csexpandonce{content}}}%
+ \xright@appenditem{\noexpand\vl@dcsnote{\expandonce\content}}%
\to\inserts@list
\global\advance\insert@count \@ne%
\fi
@@ -5097,26 +5209,26 @@
\newcommand{\ledpbnum}[1]{\write\linenum@out{\string\led@pbnum{#1}}}
\newcommand{\lednopb}{\write\linenum@out{\string\led@nopb}}
\newcommand{\lednopbnum}[1]{\write\linenum@out{\string\led@nopbnum{#1}}}
-\newcommand{\led@pb}{\listcsxadd{l@prev@pb}{\the\absline@num}}
-\newcommand{\led@pbnum}[1]{\listcsxadd{l@prev@pb}{#1}}
-\newcommand{\led@nopb}{\listcsxadd{l@prev@nopb}{\the\absline@num}}
-\newcommand{\led@nopbnum}[1]{\listcsxadd{l@prev@nopb}{#1}}
+\newcommand{\led@pb}{\listxadd{\l@prev@pb}{\the\absline@num}}
+\newcommand{\led@pbnum}[1]{\listxadd{\l@prev@pb}{#1}}
+\newcommand{\led@nopb}{\listxadd{\l@prev@nopb}{\the\absline@num}}
+\newcommand{\led@nopbnum}[1]{\listxadd{\l@prev@nopb}{#1}}
\def\led@pb@setting{before}
\newcommand{\ledpbsetting}[1]{\gdef\led@pb@setting{#1}}
-\newcommand{\led@check@pb}{\xifinlistcs{\the\absline@num}{l@prev@pb}{\pagebreak[4]}{}}
+\newcommand{\led@check@pb}{\xifinlist{\the\absline@num}{\l@prev@pb}{\pagebreak[4]}{}}
\newcommand{\led@check@nopb}{%
\IfStrEq{\led@pb@setting}{before}{%
- \xifinlistcs{\the\absline@num}{l@prev@nopb}%
+ \xifinlist{\the\absline@num}{\l@prev@nopb}%
{\numdef{\abs@prevline}{\the\absline@num-1}%
- \xifinlistcs{\abs@prevline}{normal@page@break}%
+ \xifinlist{\abs@prevline}{\normal@page@break}%
{\nopagebreak[4]\enlargethispage{\baselineskip}}%
{}}%
{}}%
{}%
{}%
\IfStrEq{\led@pb@setting}{after}{%
- \xifinlistcs{\the\absline@num}{l@prev@nopb}{%
- \xifinlistcs{\the\absline@num}{normal@page@break}%
+ \xifinlist{\the\absline@num}{\l@prev@nopb}{%
+ \xifinlist{\the\absline@num}{\normal@page@break}%
{\nopagebreak[4]\enlargethispage{\baselineskip}}%
{}%
}%
diff --git a/Master/texmf-dist/tex/latex/eledmac/eledpar.sty b/Master/texmf-dist/tex/latex/eledmac/eledpar.sty
index cc019b78841..e600da8f515 100644
--- a/Master/texmf-dist/tex/latex/eledmac/eledpar.sty
+++ b/Master/texmf-dist/tex/latex/eledmac/eledpar.sty
@@ -23,7 +23,7 @@
%% This work consists of the files listed in the README file.
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{eledpar}[2014/09/30 v1.9.1 eledmac extension for parallel texts]%
+\ProvidesPackage{eledpar}[2015/01/12 v1.10.0 eledmac extension for parallel texts]%
\newif\ifshiftedpstarts
\let\shiftedversestrue\shiftedpstartstrue
@@ -263,6 +263,8 @@
\list@create{\insertlines@listR}
\list@create{\actionlines@listR}
\list@create{\actions@listR}
+\list@create{\sw@listR}%
+\list@create{\sw@list@inedtextR}%
\list@create{\linesinpar@listL}
\list@create{\linesinpar@listR}
@@ -278,6 +280,8 @@
\list@clear{\actions@listR}%
\list@clear{\linesinpar@listR}%
\list@clear{\linesonpage@listR}
+ \list@clear{\sw@listR}%
+ \list@clear{\sw@list@inedtextR}%
\else
\list@clearing@reg
\list@clear{\linesinpar@listL}%
@@ -378,7 +382,7 @@
\page@num=#1\relax
\last@page@num=#1\relax
\def\next@page@num{#1}%
- \listcsxadd{normal@page@break}{\the\absline@num}
+ \listxadd{\normal@page@break}{\the\absline@num}
\fi
\fi}
@@ -570,10 +574,12 @@
\repeat
\begingroup
\let\@ref=\dummy@ref
+ \let\@lopR\@gobble
\let\page@action=\relax
\let\sub@action=\relax
\let\set@line@action=\relax
\let\@lab=\relax
+ \let\@sw\@gobbletwo%
#2
\global\endpage@num=\page@numR
\global\endline@num=\line@numR
@@ -682,6 +688,7 @@
\fi}
\long\def\critext#1#2/{\leavevmode
+ \@edtext@true%
\begingroup
\renewcommand{\@tag}{\no@expands #1}%
\set@line
@@ -703,8 +710,11 @@
\flag@end}%
{\if@RTL\flag@start\else\flag@end\fi% be careful on the direction of writing with polyglossia
}
+ \@edtext@false%
+ \@lemmacommand@false%
}
\renewcommand{\edtext}[2]{\leavevmode
+ \@edtext@true%
\begingroup%
\renewcommand{\@tag}{\no@expands #1}%
\set@line%
@@ -726,6 +736,8 @@
\flag@end}%
{\if@RTL\flag@start\else\flag@end\fi% be careful on the direction of writing with polyglossia
}%
+ \@edtext@false%
+ \@lemmacommand@false%
}
\renewcommand*{\set@line}{%
@@ -871,7 +883,7 @@
\iflabelpstart\protected@edef\@currentlabel%
{\p@pstartL\thepstartL}\fi%
\ifstrempty{#1}%
- {}%
+ {\csgdef{before@pstartL@\the\l@dnumpstartsL}{\at@every@pstart}}%
{\csgdef{before@pstartL@\the\l@dnumpstartsL}{\noindent#1}}%
}
\newcommandx*{\pstartR}[1][1]{%
@@ -914,7 +926,7 @@
\iflabelpstart\protected@edef\@currentlabel%
{\p@pstartR\thepstartR}\fi%
\ifstrempty{#1}%
- {}
+ {\csgdef{before@pstartR@\the\l@dnumpstartsR}{\at@every@pstart}}%
{\csgdef{before@pstartR@\the\l@dnumpstartsR}{\noindent#1}}%
}
\newcommandx*{\pendL}[1][1]{%
@@ -935,7 +947,7 @@
\fi
\parledgroup@beforenotes@save{L}%
\ifstrempty{#1}%
- {}%
+ {\csgdef{after@pendL@\the\l@dnumpstartsL}{\at@every@pend}}%
{\csgdef{after@pendL@\the\l@dnumpstartsL}{\noindent#1}}%
}
\newcommandx*{\pendR}[1][1]{%
@@ -956,10 +968,12 @@
\fi%
\parledgroup@beforenotes@save{R}%
\ifstrempty{#1}%
- {}%
+ {\csgdef{after@pendR@\the\l@dnumpstartsR}{\at@every@pend}}%
{\csgdef{after@pendR@\the\l@dnumpstartsR}{\noindent#1}}%
}
+\newif\ifprint@last@after@pendL%
+\newif\ifprint@last@after@pendR%
\newbox\l@dleftbox
\newbox\l@drightbox
@@ -994,7 +1008,7 @@
\hb@xt@ \Lcolwidth{%
\affixline@num
\xifinlist{\the\l@dpscL}{\eled@sections@@}%
- {}%
+ {\add@inserts\affixside@note}%
{\print@lineL}}%
\add@penaltiesL
\global\advance\@donereallinesL\@ne
@@ -1012,8 +1026,7 @@
{\ledllfill\hb@xt@ \wd\one@line{\do@insidelineLhook\inserthangingsymbolL\new@lineL\l@dunhbox@line{\one@line}}\correcthangingL\ledrlfill\l@drd@ta%
\l@drsn@te}}
-\def\print@eledsectionL{%
- \add@inserts\affixside@note%
+\def\print@eledsectionL{%%
\addtocounter{pstartL}{-1}%
\ifdefstring{\@eledsectnotoc}{L}{\ledsectnotoc}{}
\ifdefstring{\@eledsectmark}{L}{}{\ledsectnomark}
@@ -1065,7 +1078,7 @@
\hb@xt@ \Rcolwidth{%
\affixline@numR%
\xifinlist{\the\l@dpscR}{\eled@sectionsR@@}%
- {}%
+ {\add@insertsR\affixside@noteR}%
{\print@lineR}%
}%
\add@penaltiesR
@@ -1081,16 +1094,13 @@
\def\print@lineR{%
\affixpstart@numR%
\l@dld@ta %space kept for backward compatibility
- \add@insertsR%
- \affixside@noteR%
+ \add@insertsR\affixside@noteR%
\l@dlsn@te %space kept for backward compatibility
\correcthangingR\ledllfill\hb@xt@ \wd\one@lineR{\do@insidelineRhook\inserthangingsymbolR\new@lineR\l@dunhbox@line{\one@lineR}}\ledrlfill\l@drd@ta%
\l@drsn@te
}
\def\print@eledsectionR{%
- \add@insertsR%
- \affixside@noteR%
\addtocounter{pstartR}{-1}%
\initnumbering@sectcountR%
\ifdefstring{\@eledsectnotoc}{R}{\ledsectnotoc}{}%
@@ -1438,7 +1448,11 @@
\list@create{\labelref@listR}
-\renewcommand*{\edlabel}[1]{\@bsphack
+\renewcommand*{\edlabel}[1]{%
+ \ifl@dpairing\ifautopar%
+ \strut%
+ \fi\fi%
+ \@bsphack%
\ifledRcol
\write\linenum@outR{\string\@lab}%
\ifx\labelref@listR\empty
@@ -1546,11 +1560,11 @@
\ifnumberedpar@
\gdef\@tag{#1}%
\ifledRcol%
- \xright@appenditem{\noexpand\vl@dbfnote{{\csexpandonce{@tag}}}{\@thefnmark}}%
+ \xright@appenditem{\noexpand\vl@dbfnote{{\expandonce\@tag}}{\@thefnmark}}%
\to\inserts@listR
\global\advance\insert@countR \@ne%
\else%
- \xright@appenditem{\noexpand\vl@dbfnote{{\csexpandonce{@tag}}}{\@thefnmark}}%
+ \xright@appenditem{\noexpand\vl@dbfnote{{\expandonce\@tag}}{\@thefnmark}}%
\to\inserts@list
\global\advance\insert@count \@ne%
\fi
@@ -1565,8 +1579,8 @@
\@ifundefined{xpg@main@language}%if polyglossia
{}%
{\footnotelang@poly[R]}%
- \protected@csxdef{thisfootnote}{\csuse{thefootnote#1}}%
- \xright@appenditem{\noexpand\vbfnoteX{#1}{#2}{\csexpandonce{thisfootnote}}}%
+ \protected@xdef\thisfootnote{\csuse{thefootnote#1}}%
+ \xright@appenditem{\noexpand\vbfnoteX{#1}{#2}{\expandonce\thisfootnote}}%
\to\inserts@listR
\global\advance\insert@countR \@ne%
\else%
@@ -1576,8 +1590,8 @@
\@ifundefined{xpg@main@language}%if polyglossia
{}%
{\footnotelang@poly}%
- \protected@csxdef{thisfootnote}{\csuse{thefootnote#1}}%
- \xright@appenditem{\noexpand\vbfnoteX{#1}{#2}{\csexpandonce{thisfootnote}}}%
+ \protected@xdef\thisfootnote{\csuse{thefootnote#1}}%
+ \xright@appenditem{\noexpand\vbfnoteX{#1}{#2}{\expandonce\thisfootnote}}%
\to\inserts@list
\global\advance\insert@count \@ne%
\fi
@@ -2067,7 +2081,7 @@
%%% \begingroup
{ \loop\ifl@dsamepage%
\ifdefstring{\@eledsectnotoc}{L}{\ledsectnotoc}{}
- \csuse{before@pstartL@\the\l@dpscL}
+ \csuse{before@pstartL@\the\l@dpscL}%
\global\csundef{before@pstartL@\the\l@dpscL}
\do@lineL
\xifinlist{\the\l@dpscL}{\eled@sections@@}
@@ -2080,8 +2094,12 @@
\parledgroup@correction@notespacing{L}
\hb@xt@ \hsize{\ledstrutL\unhbox\l@dleftbox}%
\fi
- \checkpageL%
\get@nextboxL%
+ \ifprint@last@after@pendL%
+ \csuse{after@pendL@\the\l@dpscL}%
+ \global\csundef{after@pendL@\the\l@dpscL}%
+ \fi%
+ \checkpageL%
\checkverseL
\checkpbL
\repeat
@@ -2098,7 +2116,7 @@
{ \loop\ifl@dsamepage%
\initnumbering@sectcountR
\ifdefstring{\@eledsectnotoc}{R}{\ledsectnotoc}{}
- \csuse{before@pstartR@\the\l@dpscR}
+ \csuse{before@pstartR@\the\l@dpscR}%
\global\csundef{before@pstartR@\the\l@dpscR}
\do@lineR
\xifinlist{\the\l@dpscR}{\eled@sectionsR@@}
@@ -2111,8 +2129,12 @@
\parledgroup@correction@notespacing{R}
\hb@xt@ \hsize{\ledstrutR\unhbox\l@drightbox}%
\fi
- \checkpageR%
\get@nextboxR%
+ \ifprint@last@after@pendR%
+ \csuse{after@pendR@\the\l@dpscR}%
+ \global\csundef{after@pendR@\the\l@dpscR}%
+ \fi%
+ \checkpageR%
\checkverseR
\checkpbR
\repeat
@@ -2234,7 +2256,14 @@
\else
\l@dsamepagefalse
\l@dpagefulltrue
- \fi}
+ \fi%
+ \ifprint@last@after@pendL%
+ \l@dpagefullfalse%
+ \l@dsamepagefalse%
+ \print@last@after@pendLfalse%
+ \fi%
+ }%
+
\newcommand*{\checkpageR}{%
\l@dpagefulltrue
\l@dsamepagetrue
@@ -2248,7 +2277,13 @@
\else
\l@dsamepagefalse
\l@dpagefulltrue
- \fi}
+ \fi%
+ \ifprint@last@after@pendR%
+ \l@dpagefullfalse%
+ \l@dsamepagefalse%
+ \print@last@after@pendRfalse%
+ \fi%
+ }%
\newcommand{\checkpbL}{
\IfStrEq{\led@pb@setting}{after}{
@@ -2342,10 +2377,7 @@
\parledgroup@notes@endL
\parledgroup@correction@notespacing@final{L}
\else
- \l@dpagefulltrue
- \l@dsamepagefalse%
- \csuse{after@pendL@\the\l@dpscL}%
- \global\csundef{after@pendL@\the\l@dpscL}%
+ \print@last@after@pendLtrue%
\fi
\fi
\fi}
@@ -2383,10 +2415,7 @@
\parledgroup@notes@endR
\parledgroup@correction@notespacing@final{R}
\else
- \l@dpagefulltrue%
- \l@dsamepagefalse%
- \csuse{after@pendR@\the\l@dpscR}%
- \global\csundef{after@pendR@\the\l@dpscR}%
+ \print@last@after@pendRtrue%
\fi
\fi
\fi}
@@ -2403,10 +2432,10 @@
\newcommand{\ledpbnumR}[1]{\write\linenum@outR{\string\led@pbnumR{#1}}}
\newcommand{\lednopbR}{\write\linenum@outR{\string\led@nopbR}}
\newcommand{\lednopbnumR}[1]{\write\linenum@outR{\string\led@nopbnumR{#1}}}
-\newcommand{\led@pbR}{\listcsxadd{l@prev@pbR}{\the\absline@numR}}
-\newcommand{\led@pbnumR}[1]{\listcsxadd{l@prev@pbR}{#1}}
-\newcommand{\led@nopbR}{\listcsxadd{l@prev@nopbR}{\the\absline@numR}}
-\newcommand{\led@nopbnumR}[1]{\listcsxadd{l@prev@nopbR}{#1}}
+\newcommand{\led@pbR}{\listxadd{\l@prev@pbR}{\the\absline@numR}}
+\newcommand{\led@pbnumR}[1]{\listxadd{\l@prev@pbR}{#1}}
+\newcommand{\led@nopbR}{\listxadd{\l@prev@nopbR}{\the\absline@numR}}
+\newcommand{\led@nopbnumR}[1]{\listxadd{\l@prev@nopbR}{#1}}
\newmarks\parledgroup@
\newmarks\parledgroup@series
\newmarks\parledgroup@type