summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/reledmac/reledpar.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-11-29 21:45:41 +0000
committerKarl Berry <karl@freefriends.org>2020-11-29 21:45:41 +0000
commit0600aa7f883f98956cb74d106dc5405613f514e2 (patch)
tree01b1ab96510d68e57f19fd5879ff2a0f309a32e9 /Master/texmf-dist/source/latex/reledmac/reledpar.dtx
parent7ba43cd7687f0c63850391b88945e432d8958a84 (diff)
reledmac (29nov20)
git-svn-id: svn://tug.org/texlive/trunk@57034 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/reledmac/reledpar.dtx')
-rw-r--r--Master/texmf-dist/source/latex/reledmac/reledpar.dtx165
1 files changed, 104 insertions, 61 deletions
diff --git a/Master/texmf-dist/source/latex/reledmac/reledpar.dtx b/Master/texmf-dist/source/latex/reledmac/reledpar.dtx
index a619d76def3..02f99ecd0b0 100644
--- a/Master/texmf-dist/source/latex/reledmac/reledpar.dtx
+++ b/Master/texmf-dist/source/latex/reledmac/reledpar.dtx
@@ -162,7 +162,7 @@
%
% \newcommand{\dtxfilename}{\texttt{reledpar.dtx}}
% \GetFileInfo{reledpar.sty}
-% ^^A Put changes in the right order : see http://tex.stackexchange.com/a/74113/7712
+% ^^A Put changes in the right order: see http://tex.stackexchange.com/a/74113/7712
% \let\org@changes@\changes@
% \def\my@changes v#1.#2.#3\@nil{%
% \org@changes@{v#1.\six@digits{#2}.#3=v#1.#2.#3}%
@@ -188,17 +188,17 @@
% \changes{v0.4.0}{2011/08/03}{No more ledparpatch. All patches are now in the main file.}
% \changes{v0.5.0}{2011/08/21}{Corrections about \protect\cs{section} and other titles in numbered sections}
% \changes{v0.6.0}{2011/08/22}{Be able to us \protect\cs{chapter} in parallel pages.}
-% \changes{v0.7.0}{2011/08/31}{Option `shiftedverses' which make there is no blank between two parallel verses with inequal length.}
+% \changes{v0.7.0}{2011/08/31}{Add \protect\option{shiftedverses} option which makes there is no blank between two parallel verses with inequal length.}
% \changes{v0.8.0}{2011/09/16}{Possibility to have a symbol on each hanging of verses, like in the french typography. Redefine the commande \protect\cs{hangingsymbol} to define the character.}
% \changes{v0.9.0}{2011/10/01}{Possibilty to number the pstart with the commands \protect\cs{numberpstarttrue}.}
% \changes{v0.9.1}{2011/10/02}{The numbering of the pstarts restarts on each \protect\cs{beginnumbering}.}
-% \changes{v0.9.2}{2011/11/08}{Debug : with \protect\cs{Columns}, the hanging indentation now runs on the left columns and the hanging symbol is shown only when \protect\cs{stanza} is used.}
+% \changes{v0.9.2}{2011/11/08}{Debug: with \protect\cs{Columns}, the hanging indentation now runs on the left columns and the hanging symbol is shown only when \protect\cs{stanza} is used.}
% \changes{v0.9.3}{2011/11/18}{\protect\cs{thepstartL} and \protect\cs{thepstartR} use now \protect\cs{bfseries} and not \protect\cs{bf}, which is deprecated and makes conflicts with memoir class.}
% \changes{v0.10.0}{2012/04/04}{\protect\cs{edlabel} commands which start a paragraph are now put in the right place.}
% \changes{v0.10.0}{2012/04/04}{\protect\cs{edlabel} commands on the right side are now correctly indicated.}
% \changes{v1.0.0}{2012/09/14}{Compatibility with eledmac. Change name to eledpar.}
% \changes{v1.0.1}{2012/09/16}{Correction on \protect\cs{numberonlyfirstinline} with lineation by pstart or by page.}
-% \changes{v1.1.0}{2012/09/25}{Shiftedverses becomes shiftedpstarts.}
+% \changes{v1.1.0}{2012/09/25}{The \protect\option{shiftedverses} options becomes \protect\option{shiftedpstarts}.}
% \changes{v1.2.0}{2012/10/15}{Support for \protect\cs{led}\meta{section} commands in parallel texts.}
% \changes{v1.3.2}{2012/12/11}{Debug with some classes.}
% \changes{v1.4.3}{2013/10/27}{Corrects a false hanging verse when a verse is exactly the length of a line.}
@@ -227,15 +227,15 @@
% \changes{v1.16.0}{2015/05/18}{Fix a bug with nofamiliar / nocritical option of eledmac.}
% \changes{v1.16.0}{2015/05/18}{Error message when using \protect\cs{beginnumbering}\ldots\protect\cs{endnumbering} without \protect\cs{pstart}.}
% \changes{v1.16.0}{2015/05/18}{Error message when starting a Leftside/a Rightside while the previous one has not been yet typeset.}
-% \changes{v1.16.0}{2015/05/18}{Error message when calling \protect\cs{Pages} inside `pages' environment and \protect\cs{Columns} inside `pairs' environment.}
+% \changes{v1.16.0}{2015/05/18}{Error message when calling \protect\cs{Pages} inside \protect\env{pages} environment and \protect\cs{Columns} inside \protect\env{pairs} environment.}
% \changes{v1.16.0}{2015/05/18}{New package option sameparallelpagenumber to have the same page number for both left and right side.}
% \changes{v1.16.1}{2015/05/20}{Write information about line-list file version in the correct file.}
% \changes{v1.16.2}{2015/05/29}{Fix a bug when adding empty lines before a \protect\cs{pend} in combination with some specific penalties setting.}
% \changes{v1.17.0}{2015/06/02}{Add compatibility of optional argument of \protect\cs{pstart}/\protect\cs{pend} and \protect\cs{AtEveryPstart}/\protect\cs{AtEveryPend} with two columns mode.}
% \changes{v2.0.0}{2015/07/19}{Many code refactored and moved to \reledmac.}
% \changes{v2.0.0}{2015/07/19}{Package's name becomes \reledpar.}
-% \changes{v2.0.0}{2015/07/19}{Fix some bugs with `sameparallelpagenumber' option.}
-% \changes{v2.0.0}{2015/07/19}{Totally new implementation of `sameparallelpagenumber' option.}
+% \changes{v2.0.0}{2015/07/19}{Fix some bugs with \protect\option{sameparallelpagenumber} option.}
+% \changes{v2.0.0}{2015/07/19}{Totally new implementation of \protect\option{sameparallelpagenumber} option.}
% \changes{v2.1.0}{2015/07/27}{Fix a bug with \protect\cs{setparledgroupnotespacing} with the shiftedpstarts option.}
% \changes{v2.1.0}{2015/07/27}{Fix incompatibility between optional argument of \protect\cs{pstart} and \protect\cs{numberpstarttrue}}
% \changes{v2.1.0}{2015/07/27}{Options to custom empty right page before \protect\cs{Pages}.}
@@ -344,9 +344,10 @@
% \changes{v2.24.0}{2020/05/31}{Add startstanzaindentsrepetition feature.}
% \changes{v2.24.0}{2020/05/31}{Add antilabe feature.}
% \changes{v2.24.1}{2020/08/19}{Makes \protect\cs{numberstantzatrue} working with \protect\env{astanza}.}
-% \changes{v2.24.1}{2020/08/19}{Fixes incompatibility between lineation by \protect\cs{pstart} and (a)stanza.}
+% \changes{v2.24.1}{2020/08/19}{Fix incompatibility between lineation by \protect\cs{pstart} and (a)stanza.}
% \changes{v2.24.2}{2020/09/16}{Fix some bugs with lineation by page, when a numbered section starts at the very beginning of page.}
% \changes{v2.24.3}{2020/11/08}{Fix bug with hanging verse in parallel typesetting.}
+% \changes{v2.25.0}{2020/11/29}{Add compatibility with \protect\cs{linenumannotationothersidetrue} of \protect\macpackage.}.
% ^^A PW added following as the definitions are at some unknown elsewhere
%
% \newcommand{\egstart}{%
@@ -383,10 +384,10 @@
%
%
% \Parpackage provides many tools and options. Normally, they are all documented in this file.
-% Also provided is a help folder, ``\href{examples/.}{examples}''. The folder contains additional examples (although not for all cases).
-% Examples starting by ``3-'' are for basic uses, those starting by ``4-'' are for advanced uses.
+% Also provided is a help folder, \enquote{\href{examples/.}{examples}}. The folder contains additional examples (although not for all cases).
+% Examples starting by \enquote{3-} are for basic uses, those starting by \enquote{4-} are for advanced uses.
%
-% To report bugs, please go to ledmac's GitHub page and click ``New Issue'': \url{https://github.com/maieul/ledmac/issues/}. You must open an account with github.com to access my page (maieul/ledmac). GitHub accounts are free for open-source users. You can report bug in English or in French (better).
+% To report bugs, please go to ledmac's GitHub page and click \enquote{New Issue}: \url{https://github.com/maieul/ledmac/issues/}. You must open an account with github.com to access my page (maieul/ledmac). GitHub accounts are free for open-source users. You can report bug in English or in French (better).
%
% You can subscribe to the \macpackage email list in:\\ \url{http://geekographie.maieul.net/146}
% \end{abstract}
@@ -483,7 +484,7 @@
%
% The \parpackage package lets you typeset two \emph{numbered} texts in
% parallel\footnote{You can use, anyway, \protect\cs{numberlinefalse} to disable printing of line numbers.}.
-% This can be done either as setting the `Leftside' and `Rightside'
+% This can be done either as setting the \enquote{Leftside} and \enquote{Rightside}
% texts in two columns or on facing pages.
% In the paired pages case footnotes are placed at the bottom of the page
% on which they are called out --- that is, footnotes belonging to the left
@@ -527,7 +528,7 @@
%
% If you \protect\cs{maxchunks} is too little
%you can get a \parpackage{} error message along the
-% lines: ``Too many \protect\cs{pstart} without printing. Some text will be lost.''
+% lines: \enquote{Too many \protect\cs{pstart} without printing. Some text will be lost.}
% then you will have to either increase \protect\cs{maxchunks} or use the
% parallel printing commands (\protect\cs{Columns} or \protect\cs{Pages}) more frequently.
%
@@ -582,7 +583,7 @@
% and right columns, respectively. By default, these are: \\
% \verb?\setlength{\Lcolwidth}{0.45\textwidth}? \\
% \verb?\setlength{\Rcolwidth}{0.45\textwidth}? \\
-% They may be adjusted if one text tends to be `bulkier' than the other.
+% They may be adjusted if one text tends to be \enquote{bulkier} than the other.
% \subsubsection{Column's separator}
% \DescribeMacro{\columnrulewidth}
% \DescribeMacro{\columnseparator}
@@ -732,14 +733,14 @@
% necessary.
% \subsubsection[Way of synchronizing]{Way of synchronizing\footnote{There is a French version of this article on \url{http://geekographie.maieul.net/185}.}}\label{syncoption}
% Synchronization of left and right texts in parallel processing
-% requires some `numbered' auxiliary files to be written (namely \verb+.1+,
+% requires some \enquote{numbered} auxiliary files to be written (namely \verb+.1+,
%\verb+.1R+, \verb+.2+, \verb+.2R+, and so forth), the content of which may change as long
%as synchronization is not complete. This usually requires \LaTeX\ to be
%run several times. Therefore, it is advised to use in conjunction
%utilities such as latexmk to ensure that synchronization is complete.
%
%Numbered paragraphs which are contained between the \cs{pstart} and \cs{pend}
-%macros are thereafter called `chunks'.
+%macros are thereafter called \enquote{chunks}.
%
%In short, the default setting is designed in such a way that
%corresponding chunks of text are always kept in synchronization, even
@@ -817,7 +818,7 @@
%the \option{nosyncpstarts} setting.
%
%Please note that every change of synchronization setting resets the
-%content of the `numbered' auxiliary files to make sure that \parpackage
+%content of the \enquote{numbered} auxiliary files to make sure that \parpackage
%does not try to make the synchronization with wrong calculations.
% \subsubsection{Page number}\label{sameparallelpagenumber}
% \changes{v1.15.0}{2015/05/18}{Add sameparallelpagenumber option.}
@@ -825,7 +826,7 @@
% This means that pages are numbered continuously following printed-book conventions: from left-hand to right-hand side, left-hand pages having even numbers, right-hand pages having odd numbers.
%
% However, you can use the package option \verb+sameparallelpagenumber+ to have the same page number for both left and right side.
-% In this case, this setting will apply only for pages typeset by \protect\cs{Pages}, not for ``normal'' pages.
+% In this case, this setting will apply only for pages typeset by \protect\cs{Pages}, not for \enquote{normal} pages.
%
% Please also read advising in \reff{par@page}.
%
@@ -864,7 +865,7 @@
% In this case, the content of \cs{Pages} will start on a left side, without any spurious empty page, and the left pages will be odd (and not event like in normal way), the first one being \verb+1+.
%
% \subsection{Critical and familiar footnotes}
-% Of course, in ``Facing pages'', the \macpackage's both critical and familiar footnotes can be used.
+% Of course, in \enquote{Facing pages}, the \macpackage's both critical and familiar footnotes can be used.
% However, some specific points must be taken into consideration.
% \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}.
@@ -990,7 +991,7 @@
% the second section, and so on), and then creates a new version of
% this auxiliary file to collect information during this run.
% Separate auxiliary files are maintained for right hand texts and
-% these are named \meta{jobname}.\file{nnR}, using the `R' to distinguish
+% these are named \meta{jobname}.\file{nnR}, using the \enquote{R} to distinguish
% them from the left hand and serial (non-parallel) texts.
%
% \DescribeMacro{\memorydump}
@@ -1042,9 +1043,10 @@
% causes the numbering of that particular line to be skipped. This can
% useful if you are putting some kind of marker (even if it is only a
% blank line) between stanzas. Remember, parallel texts must be numbered
-% and this provides a way to slip in an ``unnumbered'' line.
-% \DescribeMacro{\hidenumbering}
+% and this provides a way to slip in an \enquote{unnumbered} line.
+%
% \changes{v1.21.0}{2015/04/13}{Add \protect\cs{hidenumbering}}
+% \DescribeMacro{\hidenumbering}
% When inserted into a numbered line the macro \protect\cs{hidenumbering} causes
% the number for that particular line to be hidden; namely, no line number will print.
% Note that if you use it in \protect\cs{stanza}, you must call it at the beginning of the verse.
@@ -1144,7 +1146,7 @@
%
% \subsection{Line flag}
% \DescribeMacro{\setRlineflag}\label{Rlineflag}
-% A ``R'' is appended to the line numbers of the
+% A \enquote{R} is appended to the line numbers of the
% right texts.
% This may be useful for parallel columns but for parallel pages it might
% be more appropriate to redefine it using \protect\cs{setRlineflag}\marg{flag}.
@@ -1250,8 +1252,8 @@
% The difference between \env{astanza} and \cs{stanza} is, that the latter syncs
% verse by verse, while the environment syncs stanza by stanza.
%
-% If you get an error message along the lines of `Missing number,
-% treated as zero \protect\cs{sza@0@}' it is because you have forgotten to use
+% If you get an error message along the lines of \enquote{Missing number,
+% treated as zero \protect\cs{sza@0@}} it is because you have forgotten to use
% \protect\cs{setstanzaindents} to set the stanza indents.
%
% As \env{astanza} is a specific type of \cs{pstart}\ldots\cs{pend} structure, you can:
@@ -1373,7 +1375,7 @@
% a stream typeset pages. It was not designed for typesetting two texts
% in parallel, where it has to alternate from one to the other. Further,
% \TeX essentially processes its input one paragraph at a time --- it is
-% very difficult to get at the `internals' of a paragraph such as the
+% very difficult to get at the \enquote{internals} of a paragraph such as the
% individual lines in case you want to number them or put some mark at the
% start or end of the lines.
%
@@ -1402,7 +1404,7 @@
% \begin{macrocode}
%<*code>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{reledpar}[2020/11/08 v2.24.3 reledmac extension for parallel texts]%
+\ProvidesPackage{reledpar}[2020/11/29 v2.25.0 reledmac extension for parallel texts]%
% \end{macrocode}
% \subsection{Package's requirement}
@@ -1425,7 +1427,7 @@
\def\@par@this@sync@option{}%
% \end{macrocode}
% \end{macro}
-% With the option `shiftedpstarts' a long pstart on the left side (or on the right side) does not 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 shift stops at every end of pages.
+% With the \option{shiftedpstarts} option a long pstart on the left side (or on the right side) does not 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 shift stops at every end of pages.
% \begin{macro}{\ifshiftedpstarts}
% \begin{macrocode}
\newif\ifshiftedpstarts
@@ -1435,7 +1437,7 @@
}%
% \end{macrocode}
% \end{macro}
-% With the option `advancedshiftedpstarts' a long pstart on the left side (or on the right side) does not 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 shift stops at every end of pages.
+% With the \option{advancedshiftedpstarts} option a long pstart on the left side (or on the right side) does not 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 shift stops at every end of pages.
% Differing to \option{shiftedpstarts}, the pstart shift are not counted to determine when cutting the page. That could help to avoid page with blank lines at the bottom.
% \begin{macro}{\ifshiftedpstarts}
% \begin{macrocode}
@@ -1520,8 +1522,8 @@
% As noted above, much of the code is a duplication of the original
% \macpackage{} code to handle the extra box(es) for the right hand side text,
% and sometimes for the left hand side as well. In order to distinguish
-% we use `R' or `L' in the names of macros for the right and left code.
-% The specifics of `L' and `R' are normally hidden from the user by
+% we use \enquote{R} or \enquote{L} in the names of macros for the right and left code.
+% The specifics of \enquote{L} and \enquote{R} are normally hidden from the user by
% letting the \verb?Leftside? and \verb?Rightside? environments set things
% up appropriately.
%
@@ -1744,8 +1746,8 @@
% \begin{macro}{\unhnamebox}
% \begin{macro}{\unvnamebox}
% \begin{macro}{\namebox}
-% A set of macros for creating and using `named' boxes; the macros are called
-% after the regular box macros, but including the string `name'.
+% A set of macros for creating and using \enquote{named} boxes; the macros are called
+% after the regular box macros, but including the string \enquote{name}.
% \begin{macrocode}
\providecommand*{\newnamebox}[1]{%
\expandafter\newbox\csname #1\endcsname}
@@ -1787,7 +1789,7 @@
%
% \begin{macro}{\newnamecount}
% \begin{macro}{\usenamecount}
-% Macros for creating and using `named' counts.
+% Macros for creating and using \enquote{named} counts.
% \begin{macrocode}
\providecommand*{\newnamecount}[1]{%
\expandafter\newcount\csname #1\endcsname}
@@ -1803,8 +1805,8 @@
% \begin{macro}{\section@numR}
% This is the right side equivalent of \protect\cs{section@num}.
%
-% Each section will read and write an associated `line-list
-% file', containing information used to do the numbering. Normally
+% Each section will read and write an associated \enquote{line-list
+% file}, containing information used to do the numbering. Normally
% the file will be called \meta{jobname}\file{.nn}, where \file{nn} is the
% section number. However, for right side texts the file is called
% \meta{jobname}\file{.nnR}. The \protect\cs{extensionchars} applies to the
@@ -2305,7 +2307,7 @@
% \begin{macro}{\linenumincrementR}
% \begin{macro}{\firstsublinenumR}
% \begin{macro}{\sublinenumincrementR}
-% And the `R` suffixed version.
+% And the \enquote{R} suffixed version.
% \begin{macrocode}
\newcommand\firstlinenumR[1]{%
\setcounter{firstlinenumR}{#1}%
@@ -2396,37 +2398,62 @@
% \protect\cs{rightlinenumR} by introducing \protect\cs{l@dlinenumR}}
% \begin{macrocode}
\newcommand*{\leftlinenumR}{%
- \l@dlinenumR
- \kern\linenumsep}
+ \l@dlinenumR%
+ \kern\linenumsep%
+}%
\newcommand*{\rightlinenumR}{%
- \kern\linenumsep
- \l@dlinenumR}
+ \kern\linenumsep%
+ \l@dlinenumR%
+}%
+
+
\newcommand*{\l@dlinenumR}{%
\numlabfont%
- \ifdefstring{\Xlinenumannotationposition@side}{before}{%
- \l@wrap@ifnotemptybox{\Xwraplinenumannotation@side}{%
- \csuse{annotR@\the\absline@numR @\the\section@numR}%
- }%
- }{}%
+ \unless\iflinenumannotationotherside%
+ \ifdefstring{\Xlinenumannotationposition@side}{before}{%
+ \l@wrap@ifnotemptybox{\Xwraplinenumannotation@side}{%
+ \csuse{annotR@\the\absline@numR @\the\section@numR}%
+ }%
+ }{}%
+ \fi%
\linenumrepR{\line@numR}\@Rlineflag%
\ifsublines@R
\ifnum\subline@numR>\z@
\unskip\fullstop\sublinenumrepR{\subline@numR}%
\fi
\fi%
- \ifdefstring{\Xlinenumannotationposition@side}{after}{%
- \l@wrap@ifnotemptybox{\Xwraplinenumannotation@side}{%
- \csuse{annotR@\the\absline@numR @\the\section@numR}%
- }%
- }{}%
+ \unless\iflinenumannotationotherside%
+ \ifdefstring{\Xlinenumannotationposition@side}{after}{%
+ \l@wrap@ifnotemptybox{\Xwraplinenumannotation@side}{%
+ \csuse{annotR@\the\absline@numR @\the\section@numR}%
+ }%
+ }{}%
+ \fi%
}%
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
-%
-%
+% \begin{macro}{\leftlinenumannotationR}
+% \begin{macro}{\rightlinenumannotationR}
+% \cs{rightlinenumannotationR} and \cs{leftlinenumannotationR} are the same as not suffixed version, but for right side.
+% \begin{macrocode}
+\newcommand*{\leftlinenumannotationR}{%
+ \l@wrap@ifnotemptybox{\Xwraplinenumannotation@side}{%
+ \csuse{annot@\the\absline@numR @\the\section@numR}%
+ }%
+ \kern\linenumsep%
+}%
+\newcommand*{\rightlinenumannotationR}{%
+ \kern\linenumsep%
+ \l@wrap@ifnotemptybox{\Xwraplinenumannotation@side}{%
+ \csuse{annot@\the\absline@numR @\the\section@numR}%
+ }%
+}%
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
% \subsection{Line-number counters and lists}
% \subsubsection{Correspond to those in \macpackage for regular or left text}
% We need another set of counters and lists for the right text,
@@ -3328,7 +3355,7 @@
% We also dump and restore the value of the booleans \protect\cs{ifnumberpstart} and \protect\cs{ifnumberline}.
% So, first step, creating the lists.
-% Here, ``pc'' means ``public counters''.
+% Here, \enquote{pc} means \enquote{public counters}.
% \begin{macro}{\list@pstartL@pc}
% \begin{macro}{\list@pstartR@pc}
% \begin{macrocode}
@@ -3347,12 +3374,14 @@
\xright@appenditem{\the\c@pstartL}\to\list@pstartL@pc%
\global\cslet{numberpstart@L\the\l@dnumpstartsL}{\ifnumberpstart}%
\global\cslet{numberline@L\the\l@dnumpstartsL}{\ifnumberline}%
+ \global\cslet{linenumannotationotherside@L\the\l@dnumpstartsL}{\iflinenumannotationotherside}%
}%
\def\dump@pstartR@pc{%
\xright@appenditem{\the\c@pstartR}\to\list@pstartR@pc%
\global\cslet{numberpstart@R\the\l@dnumpstartsR}{\ifnumberpstart}%
\global\cslet{numberline@R\the\l@dnumpstartsR}{\ifnumberline}%
+ \global\cslet{linenumannotationotherside@R\the\l@dnumpstartsR}{\iflinenumannotationotherside}%
}%
% \end{macrocode}
@@ -3412,7 +3441,7 @@
% \end{macrocode}
% \end{macro}
% \changes{v2.0.0}{2015/07/19}{Deleting the old system of managing parallel chapter, keep only the new one with \protect\cs{patchcmd}.}
-% The \verb?pages? environment additionally sets the `column' widths to the
+% The \verb?pages? environment additionally sets the \enquote{column} widths to the
% \protect\cs{textwidth} (as known at the time the package is called). In this environment, there are two text in parallel on 2 pages.
% \begin{macrocode}
\newenvironment{pages}{%
@@ -3972,7 +4001,7 @@
% \begin{macro}{\@donetotallinesL}
% \begin{macro}{\@donereallinesR}
% \begin{macro}{\@donetotallinesR}
-% We need to know the number of `real' lines output (i.e., those that
+% We need to know the number of \enquote{real} lines output (i.e., those that
% have been input by the user), and the total lines output (which includes
% any blank lines output for synchronisation).
% \begin{macrocode}
@@ -4001,6 +4030,7 @@
\newcommand*{\do@lineL}{%
\letcs{\ifnumberpstart}{numberpstart@L\the\l@dpscL}%
\letcs{\ifnumberline}{numberline@L\the\l@dpscL}%
+ \letcs{\iflinenumannotationotherside}{linenumannotationotherside@L\the\l@dpscL}%
\advance\countLline \@ne%
\ifvbox\namebox{l@dLcolrawbox\the\l@dpscL}%
{\vbadness=10000%
@@ -4089,7 +4119,7 @@
% \end{macro}
% \begin{macro}{\print@eledsectionL}
% \changes{v1.12.0}{2015/02/23}{Compatibility with \LuaLaTeX\ RTL languages.}
-% \changes{v1.12.1}{2015/02/27}{Fixes bug with \LuaLaTeX\ RTL \protect\cs{eledsection}.}
+% \changes{v1.12.1}{2015/02/27}{Fix bug with \LuaLaTeX\ RTL \protect\cs{eledsection}.}
% \protect\cs{print@eledsectionL} is for line with macro code.
% \begin{macrocode}
\def\print@eledsectionL{%%
@@ -4195,6 +4225,7 @@
\let\sublinenumrep\sublinenumrepR%
\letcs{\ifnumberpstart}{numberpstart@R\the\l@dpscR}%
\letcs{\ifnumberline}{numberline@R\the\l@dpscR}%
+ \letcs{\iflinenumannotationotherside}{linenumannotationotherside@R\the\l@dpscR}%
\ledRcol@true%
\advance\countRline \@ne%
\ifvbox\namebox{l@dRcolrawbox\the\l@dpscR}%
@@ -4613,8 +4644,14 @@
\if@twocolumn
\if@firstcolumn
\gdef\l@dld@ta{\llap{{\leftlinenumR}}}%
+ \iflinenumannotationotherside%
+ \gdef\l@drd@ta{\rlap{{\rightlinenumannotationR}}}%
+ \fi%
\else
\gdef\l@drd@ta{\rlap{{\rightlinenumR}}}%
+ \iflinenumannotationotherside%
+ \gdef\l@dld@ta{\llap{{\leftlinenumannotationR}}}%
+ \fi%
\fi
\else
\ifboolexpr{bool {l@dprintingcolumns} and test {\ifnumgreater{\line@margin@columnsR}{\m@ne}}}%
@@ -4639,8 +4676,14 @@
{%
\ifodd\@l@dtempcntb%
\gdef\l@drd@ta{\rlap{{\rightlinenumR}}}%
+ \iflinenumannotationotherside%
+ \gdef\l@dld@ta{\llap{{\leftlinenumannotationR}}}%
+ \fi%
\else%
\gdef\l@dld@ta{\llap{{\leftlinenumR}}}%
+ \iflinenumannotationotherside%
+ \gdef\l@drd@ta{\rlap{{\rightlinenumannotationR}}}%
+ \fi%
\fi%
}%
\fi
@@ -4657,7 +4700,7 @@
% \end{macro}
% \end{macro}
% \subsection{Pstart number printing in side}
-% The printing of the pstart number is like in \macpackage, with two differences :
+% The printing of the pstart number is like in \macpackage, with two differences:
%\begin{itemize}
%\item Some commands have versions suffixed by R or L.
%\item The \protect\cs{affixpstart@num} and \protect\cs{affixpstart@numR} commands are called in the \protect\cs{Pages} command. Consequently, the \verb|pstartL| and \verb|pstartR| counters must be reset at the beginning of this command.
@@ -6209,7 +6252,7 @@
% \end{macro}
% \end{macro}
% \begin{macro}{\checkpb@columns}
-% \protect\cs{checkpb@columns} prevent or make pagebreaking in columns, depending of the use of \protect\cs{ledpb} or \protect\cs{lednopb}.
+% \protect\cs{checkpb@columns} prevent or make pagebreaking in columns, depending on the use of \protect\cs{ledpb} or \protect\cs{lednopb}.
% \begin{macrocode}
\newcommand{\checkpb@columns}{%
@@ -7701,8 +7744,8 @@
% \addcontentsline{toc}{section}{References}
% \bibitem[LW90]{EDMACTUG}
% John Lavagnino and Dominik Wujastyk.
-% \newblock `An overview of \edmac: a \textsc{Plain} TeX format for
-% critical editions'.
+% \newblock \enquote{An overview of \edmac: a \textsc{Plain} TeX format for
+% critical editions}.
% \newblock \emph{TUGboat}, \textbf{11}, 4, pp. 623--643, November 1990.
% \newblock (Code available from CTAN in
% \texttt{macros/plain/contrib/edmac})