summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/reledmac/reledmac.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/reledmac/reledmac.dtx')
-rw-r--r--Master/texmf-dist/source/latex/reledmac/reledmac.dtx67
1 files changed, 54 insertions, 13 deletions
diff --git a/Master/texmf-dist/source/latex/reledmac/reledmac.dtx b/Master/texmf-dist/source/latex/reledmac/reledmac.dtx
index 1bc89567a25..a267f41969b 100644
--- a/Master/texmf-dist/source/latex/reledmac/reledmac.dtx
+++ b/Master/texmf-dist/source/latex/reledmac/reledmac.dtx
@@ -479,6 +479,8 @@
% \changes{v2.22.0}{2017/06/08}{Fix bug with three and two columns critical footnotes, broken in v.~2.17.6.}
% \changes{v2.22.0}{2017/06/08}{Add \protect\cs{txtbeforenotesX} hook.}
% \changes{v2.22.0}{2017/06/08}{Add \protect\cs{txtbeforenotesonlyonceX} and \protect\cs{Xtxtbeforenotesonlyonce} hooks.}
+% \changes{v2.22.1}{2017/07/07}{Compatibility with new version of \protect\reledpar.}
+% \changes{v2.22.1}{2017/07/07}{Fix bug with some commands inside \protect\cs{sameword}.}
% Typeset scholarly editions with \LaTeX\thanks{This file (\dtxfilename)
% has version number \fileversion, last revised \filedate.}}
%
@@ -1741,6 +1743,18 @@
%}
% \end{verbatim}
%
+% \subsubsection{Automatic sameword annotation}
+% All potentially ambiguous apparatus entries must be annotated manually. That
+% annotation process is laborious and includes a risk of errors.
+% \emph{Samewords} is a Python script that can automate this step of the
+% process. It can be installed via the \emph{Python Package Index}, but see
+% \url{https://github.com/stenskjaer/samewords}
+% for more info and documentation. The script is still at a beta stage, so
+% comments and questions as well as error reports are very welcome at
+% \url{https://github.com/stenskjaer/samewords/issues}.
+%
+% Please not that the maintener of this script is not the maintener of reledmac.
+%
% \subsection{Apparatus of Manuscripts}
% The critical notes mostly refer to textual variants between manuscripts which contain the text to be edited.
% It may so happen that the manuscripts only contain parts of the text.
@@ -2361,7 +2375,7 @@
% \subsubsection{Wrapping contents}
% \changes{v2.10.0}{2016/05/08}{New hooks: \protect\cs{Xwrapcontent}, \protect\cs{Xendwrapcontent} and \protect\cs{wrapcontentX}.}
% \DescribeMacro{\Xwrapcontent}
-% \cs{Xwrapcontent}\oarg{s}\marg{cmd} is used to wrap the footnote contents --- excluding the lemma --- in a \LaTeX command.
+% \cs{Xwrapcontent}\oarg{s}\marg{cmd} is used to wrap the footnote contents --- excluding the lemma --- in a \LaTeX\ command.
%
% For example, if the language of your note is not the same as the language of the lemma, use \cs{Xwrapcontent}\arg{\cs{foreignlanguage}\marg{language}} (with \package{babel}) or \cs{Xwrapcontent}\arg{\cs{text\meta{language}}} (for babel).
%
@@ -2369,7 +2383,7 @@
% \cs{Xendwrapcontent}\oarg{s}\marg{cmd} is the same for endnotes.
%
% \DescribeMacro{\wrapcontentX}
-% \cs{wrapcontentX}\oarg{s}\marg{cmd} is the same for critical footnotes.
+% \cs{wrapcontentX}\oarg{s}\marg{cmd} is the same for familiar footnotes.
% \subsection{Indent of notes content}
% \changes{v1.21.0}{2015/04/13}{Add \protect\cs{Xparindent} and \protect\cs{hangindentX}}
% \DescribeMacro{\Xparindent}
@@ -4006,7 +4020,7 @@
% \begin{macrocode}
%<*code>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{reledmac}[2017/06/08 v2.22.0 typesetting critical editions]%
+\ProvidesPackage{reledmac}[2017/07/07 v2.22.1 typesetting critical editions]%
% \end{macrocode}
%
% \subsection{Package options}
@@ -4956,16 +4970,7 @@
\csuse{setpositionliketwocolumns@\columns@position}%
\fi%
\fi%
- \ifcontinuousnumberingwithcolumns%
- \ifdefined\line@numR%
- \ifnum\line@numR>\line@num%
- \expandafter\setlinenum\expandafter{\the\line@numR}%
- \fi%
- \ifnum\last@page@numR>\last@page@num%
- \global\last@page@num=\last@page@numR%
- \fi%
- \fi%
- \fi%
+ \set@continuousnumberingforL%
\else
\led@err@NumberingShouldHaveStarted
\endnumbering
@@ -4976,6 +4981,28 @@
% \end{macrocode}
% \end{macro}
% \end{macro}
+% \begin{macro}{\set@continuousnumberingforL}
+% \cs{set@continuousnumberingforl} set the left line numbers and pstart counter at a \cs{beginnumbering} or a \cs{resumenumbering} in order to have continuous numbering with single column text.
+% \begin{macrocode}
+\newcommand{\set@continuousnumberingforL}{%
+ \ifcontinuousnumberingwithcolumns%
+ \ifdefined\line@numR%
+ \ifnum\line@numR>\line@num%
+ \expandafter\setlinenum\expandafter{\the\line@numR}%
+ \fi%
+ \ifnum\last@page@numR>\last@page@num%
+ \global\last@page@num=\last@page@numR%
+ \fi%
+ \fi%
+ \ifl@dpairing%
+ \unless\ifl@dpaging%
+ \global\c@pstartL=\c@pstart%
+ \fi%
+ \fi%
+ \fi%
+}%
+% \end{macrocode}
+% \end{macro}
%
% \section{List macros}
%
@@ -7758,7 +7785,17 @@
% \begin{macrocode}
\newcommand{\get@sw@txt}[1]{%
\begingroup%
+%. \end{macrocode}
+% Allow some macros inside \sameword
+%. \begin{macrocode}
\let\sameword\@firstofone%Allow to have nested \sameword
+ \let\emph\@firstofone%
+ \let\textit\@firstofone%
+ \let\textbf\@firstofone%
+ \let\textsc\@firstofone%
+ \let\framebox\@firstofone%
+% \end{macrocode}
+%. \begin{macrocode}
\ifxetex%
\xdef\sw@txt{#1}%
\else%
@@ -8165,6 +8202,10 @@
\global\pstartnumtrue%
\fi%
\addtocounter{pstart}{1}%
+ \ifcontinuousnumberingwithcolumns%
+ \addtocounter{pstartL}{1}%
+ \addtocounter{pstartR}{1}%
+ \fi%
% \end{macrocode}
% Print the optional arguments of \protect\cs{pend} or the content printed after every \protect\cs{pend}
% \begin{macrocode}