diff options
author | Karl Berry <karl@freefriends.org> | 2017-08-17 21:16:23 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-08-17 21:16:23 +0000 |
commit | 8752481311daf908372f21728c152ca10ae0973e (patch) | |
tree | ec009734d0de97ee4fed31d17425243eaac1ccad | |
parent | 0f4a34d1fe6262bc72205b50adb2ae5ab576d427 (diff) |
reledmac (17aug17)
git-svn-id: svn://tug.org/texlive/trunk@45055 c570f23f-e606-0410-a88d-b1316a301751
56 files changed, 1125 insertions, 408 deletions
diff --git a/Master/texmf-dist/doc/latex/reledmac/doc-include/migrate-mac.dtx b/Master/texmf-dist/doc/latex/reledmac/doc-include/migrate-mac.dtx index db53bda639c..8532ac2d38b 100644 --- a/Master/texmf-dist/doc/latex/reledmac/doc-include/migrate-mac.dtx +++ b/Master/texmf-dist/doc/latex/reledmac/doc-include/migrate-mac.dtx @@ -418,3 +418,7 @@ % The \edtext{creature\edindex{elephant} was quite % unafraid}{\Afootnote{\edindex{elephant}Of the mouse, that is.}} % \end{verbatim} +% \subsection{Migration ro \reledmac~2.24.0} +% When using \cs{labelpstarttrue}, a spurious space\footnote{See \url{https://github.com/maieul/ledmac/issues/673\#issuecomment-322457149} for an example.} was added after the pstart number (only on normal typesetting, not on parallel typesetting). +% The new version of the package delete this spurious space. +% If you consider that it was NOT a spurious space, you should add it manually in your definition of \cs{thepstart}. diff --git a/Master/texmf-dist/doc/latex/reledmac/doc-more/latexmkrc b/Master/texmf-dist/doc/latex/reledmac/doc-more/latexmkrc new file mode 100644 index 00000000000..1dc6a41df9d --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/doc-more/latexmkrc @@ -0,0 +1 @@ +$pdf_mode = "5";
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/reledmac/doc-more/makefile b/Master/texmf-dist/doc/latex/reledmac/doc-more/makefile new file mode 100644 index 00000000000..02b9cf923c1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/doc-more/makefile @@ -0,0 +1,13 @@ +.SUFFIXES: .tex + +SRC= $(wildcard *.tex) +OBJ= $(SRC:.tex=.pdf) + +all:$(OBJ) + + +%.pdf: %.tex + latexmk $< + +clean: + @$(RM) *pdf *toc *.1* *.2* *.3* *.eledsec* *.log *.fdb_latexmk *.aux *.end *.ilg *.ind *.idx *.out *.synctex.gz *.synctex.gz\(busy\) diff --git a/Master/texmf-dist/doc/latex/reledmac/doc-more/page-typesetting-columns.pdf b/Master/texmf-dist/doc/latex/reledmac/doc-more/page-typesetting-columns.pdf Binary files differnew file mode 100644 index 00000000000..63eec5a9f15 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/doc-more/page-typesetting-columns.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/doc-more/page-typesetting-columns.tex b/Master/texmf-dist/doc/latex/reledmac/doc-more/page-typesetting-columns.tex new file mode 100644 index 00000000000..e40dc5f6ff4 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/doc-more/page-typesetting-columns.tex @@ -0,0 +1,120 @@ +\documentclass[11pt,a4paper]{article} +\usepackage{fontspec} +\usepackage{unicode-math} +\usepackage{libertineotf} +\usepackage{tikz} +\usepackage{csquotes} +\newcommand{\package}[1]{\emph{#1}} +\begin{document} +\title{Page layout with \package{reledpar}} +\author{Domenico Cufalo and Maïeul Rouquette} +\date{August 17, 2017} +\maketitle +\begin{figure}[p]\centering +\begin{tikzpicture}[every node/.style={anchor=above,font=\scriptsize}] + \draw (0,0) rectangle (6,8); + \draw (-1.5,-1.5) rectangle (7.5,9.5); + \draw (0.5,1) rectangle (2.5,5); + \draw (3.5,1) rectangle (5.5,5); + \draw[blue,thick,|<->|] (0,8.5) -- node[above] {textwidth ($T$)} (6,8.5); + \draw[blue,thick,<->] (-1.5,7) -- node[above] {$Lmargin$} (0,7); + \draw[blue,thick,<->] (0,7) -- node[above] {numb. text width ($N$)} (6,7); + \draw[blue,thick,<->] (6,7) -- node[above] {$Rmargin$} (7.5,7); + \draw[blue,thick,|<->|] (0.5,6) -- node[above] {$widthliketwocolumns$} (5.5,6); + \draw[red] (3,1) -- (3,5) node[above] {colsep ($S$)}; + \draw[blue,thick,<->] (0,3) -- node[above] {$LM$} (0.5,3); + \draw[blue,thick,<->] (0.5,3) -- node[above] {$L$} (2.5,3); + \draw[blue,thick,<->] (2.5,3) -- node[above] {$B$} (3,3); + \draw[blue,thick,<->] (3,3) -- node[above] {$A$} (3.5,3); + \draw[blue,thick,<->] (3.5,3) -- node[above] {$R$} (5.5,3); + \draw[blue,thick,<->] (5.5,3) -- node[above] {$RM$} (6,3); +\end{tikzpicture} +\caption{Page layout}\label{pic:page} +\end{figure} +\section{General} +\package{Reledmac} doesn't care neither text width ($T$) nor margins, whose sizes are calculated by \LaTeX{} itself or depends on other packages like \package{geometry}. In normal typesetting, line numbers and sidenotes are in the margin. + +In parallel typesetting, sidenotes and lines numbers can be, or not, in page margins. + +Normally, we get: + +\begin{equation} + T = LM + L + B + S + A + R + RM +\end{equation} + +The only possible exceptions occur when the user makes mistakes when fixing $L$ and / or $A$ and / or $B$ and / or $R$. +\section{Parameters} +The parameters that can be controlled by \package{reledmac} are (see fig.~\ref{pic:page}): + +\begin{description} + \item[N] The numbered text width, \emph{i. e.} the width of text which is between \verb+\beginnumbering+ and \verb+\endnumbering+ in normal tyepsetting. By default $N=T$, but can be also modified by the \package{reledmac}/\package{reledpar} option \verb!widthliketwocolumns!: in this case, $N=L+B+S+A+R$ + + \item[L] \verb!\Lcolwidth!; fixed width, by default \verb!{0.45\textwidth}! + + \item[R] \verb!\Rcolwidth!; fixed width, by default \verb!{0.45\textwidth}! + + \item[S] \verb!\columnseparator!; \package{reledpar} inserts a vertical rule of width \verb!\columnrulewidth!, by default set to be $0\,pt$. You can redefine \verb!\columnrulewidth! by + +\begin{verbatim} + \setlength{\columnrulewidth}{0.4pt} +\end{verbatim} + + \item[B] \verb!\beforecolumnseparator!: automatically calculated, but can be redefined by + +\begin{verbatim} + \setlength{\beforecolumnseparator}{<length>} +\end{verbatim} + + \item[A] \verb!\aftercolumnseparator!: automatically calculated, but can be redefined by + +\begin{verbatim} + \setlength{\aftercolumnseparator}{<length>} +\end{verbatim} + +\end{description} + +\section{Columns' position} +By default, columns are positioned to the right of the page. However, you can use +\verb!\columnsposition{L}! to align them to the left, or \verb!\columnsposition{C}! to center +them. + +In this case $LM$ and $RM$ are modified: + +\begin{itemize} + \item with \verb!\columnsposition{L}!, $LM=0$ and $RM$ is automatically calculated; + \item with \verb!\columnsposition{R}!, $RM=0$ and $LM$ is automatically calculated; + \item with \verb!\columnsposition{C}!, $RM$ and $LM$ are automatically calculated. +\end{itemize} + +\section{Automatically calculated parameters} +Therefore, the lengths automatically calculated are $LM$, $RM$, and, if not fixed by user, $B$ and $A$. + + +\subsection{If $LM$, $RM$, $B$ and $A$ are calculated} +\begin{equation} + LM = RM = B = A = \frac{T - (L + S + R)}{4} +\end{equation} + +\subsection{If $LM$, $RM$, $B$ are calculated} + +\begin{equation} + LM = RM = B = \frac{T - (L + A + S + R)}{3} +\end{equation} + +\subsection{If $LM$, $RM$, $A$ are calculated} + +\begin{equation} + LM = RM = A = \frac{T - (L + B + S + R)}{3} +\end{equation} +\subsection{If only $LM$ and $RM$ are calculated} + +\begin{equation} + LM = RM = \frac{T - (L + B + S + A + R)}{2} +\end{equation} + +\subsection{In any case} +$LM$, $B$, $A$, $RM$ can't have a negative value. If the result of one the previous equation is negative, then that means the value equals $0$. + +Technically, the \enquote{calculated values} are determined using \verb+\hfill+. + +\end{document} diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/1-criticalnotes.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/1-criticalnotes.pdf Binary files differnew file mode 100644 index 00000000000..395be950d76 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/1-criticalnotes.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/1-sidenotes.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/1-sidenotes.pdf Binary files differnew file mode 100644 index 00000000000..b68899375f2 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/1-sidenotes.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/1-tabular.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/1-tabular.pdf Binary files differnew file mode 100644 index 00000000000..a1e2b379c68 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/1-tabular.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/1-verses.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/1-verses.pdf Binary files differnew file mode 100644 index 00000000000..253f3140c07 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/1-verses.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-cross_referencing.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-cross_referencing.pdf Binary files differnew file mode 100644 index 00000000000..079788df749 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-cross_referencing.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-footnote_spacing.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-footnote_spacing.pdf Binary files differnew file mode 100644 index 00000000000..876a65a5d30 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-footnote_spacing.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-glossaries.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-glossaries.pdf Binary files differindex a950f34c03a..37e2e70655d 100644 --- a/Master/texmf-dist/doc/latex/reledmac/examples/2-glossaries.pdf +++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-glossaries.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-indexing.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-indexing.pdf Binary files differnew file mode 100644 index 00000000000..a41399c5cd1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-indexing.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-lemma_disambigution.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-lemma_disambigution.pdf Binary files differnew file mode 100644 index 00000000000..eaa7957eb17 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-lemma_disambigution.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-line_numbers_in_header.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-line_numbers_in_header.pdf Binary files differnew file mode 100644 index 00000000000..246365d0452 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-line_numbers_in_header.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-linespacing.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-linespacing.pdf Binary files differnew file mode 100644 index 00000000000..8f8ded4a3cf --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-linespacing.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-manuscript-apparatus.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-manuscript-apparatus.pdf Binary files differnew file mode 100644 index 00000000000..2b316498ceb --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-manuscript-apparatus.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-notes-width.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-notes-width.pdf Binary files differnew file mode 100644 index 00000000000..3357a4f6822 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-notes-width.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-one_series_per_pstart.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-one_series_per_pstart.pdf Binary files differnew file mode 100644 index 00000000000..7c41eaabfde --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-one_series_per_pstart.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-performances.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-performances.pdf Binary files differnew file mode 100644 index 00000000000..0019fad6dff --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-performances.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-reledmac-right-to-left.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-reledmac-right-to-left.pdf Binary files differnew file mode 100644 index 00000000000..ec840bff60d --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-reledmac-right-to-left.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-titles_in_line_numbering_with_notes.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-titles_in_line_numbering_with_notes.pdf Binary files differnew file mode 100644 index 00000000000..a8d198b075b --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-titles_in_line_numbering_with_notes.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-titles_not_in_line_numbering.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/2-titles_not_in_line_numbering.pdf Binary files differnew file mode 100644 index 00000000000..2e04a50044f --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-titles_not_in_line_numbering.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_columns_different_languages.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_columns_different_languages.pdf Binary files differnew file mode 100644 index 00000000000..b7aaba5ea13 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_columns_different_languages.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_mwe.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_mwe.pdf Binary files differnew file mode 100644 index 00000000000..ecf70ab8757 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_mwe.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_pages_different_languages_lualatex.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_pages_different_languages_lualatex.pdf Binary files differindex 042ec649b45..51298d3801f 100644 --- a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_pages_different_languages_lualatex.pdf +++ b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_pages_different_languages_lualatex.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_same_page_number_in_both_side.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_same_page_number_in_both_side.pdf Binary files differnew file mode 100644 index 00000000000..130d9744d78 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_same_page_number_in_both_side.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_advancedshifted-nomax.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_advancedshifted-nomax.pdf Binary files differnew file mode 100644 index 00000000000..2a91cf180de --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_advancedshifted-nomax.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_advancedshifted.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_advancedshifted.pdf Binary files differnew file mode 100644 index 00000000000..57c24aca3fd --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_advancedshifted.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_default.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_default.pdf Binary files differnew file mode 100644 index 00000000000..2766e632d70 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_default.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nomax-shifted.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nomax-shifted.pdf Binary files differnew file mode 100644 index 00000000000..f0ff1919718 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nomax-shifted.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nomax.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nomax.pdf Binary files differnew file mode 100644 index 00000000000..514b46af57f --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nomax.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nosync.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nosync.pdf Binary files differnew file mode 100644 index 00000000000..7434485f392 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_nosync.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_shifted.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_shifted.pdf Binary files differnew file mode 100644 index 00000000000..0ddd71274a5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/3-reledpar_sync_setting_shifted.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_column_mix_with_not_column-continuous-numbering.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_column_mix_with_not_column-continuous-numbering.pdf Binary files differnew file mode 100644 index 00000000000..52d0915d0c1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_column_mix_with_not_column-continuous-numbering.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_column_mix_with_not_column.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_column_mix_with_not_column.pdf Binary files differnew file mode 100644 index 00000000000..0943f2c68c3 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_column_mix_with_not_column.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_column_mix_with_not_column.tex b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_column_mix_with_not_column.tex index ddaf8335ce6..c37df49cb6f 100644 --- a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_column_mix_with_not_column.tex +++ b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_column_mix_with_not_column.tex @@ -11,7 +11,6 @@ \Xnoteswidthliketwocolumns \noteswidthliketwocolumnsX -\columnsposition{c} \setlength{\beforecolumnseparator}{0.05\textwidth} \setlength{\aftercolumnseparator}{0.05\textwidth} \Xarrangement{paragraph} diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_columns_alignment.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_columns_alignment.pdf Binary files differnew file mode 100644 index 00000000000..dff2c218743 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_columns_alignment.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_columns_titles_in_line_numbering_with_notes.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_columns_titles_in_line_numbering_with_notes.pdf Binary files differnew file mode 100644 index 00000000000..31da3ab5319 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_columns_titles_in_line_numbering_with_notes.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_inside-outside-columns.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_inside-outside-columns.pdf Binary files differnew file mode 100644 index 00000000000..f2399e6fbc3 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_inside-outside-columns.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_one_series_per_pstart.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_one_series_per_pstart.pdf Binary files differnew file mode 100644 index 00000000000..5ef4b355444 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_one_series_per_pstart.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_long_notes.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_long_notes.pdf Binary files differnew file mode 100644 index 00000000000..54d96e77fb2 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_long_notes.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_notes_leftpage.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_notes_leftpage.pdf Binary files differnew file mode 100644 index 00000000000..f22214f32f0 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_notes_leftpage.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_paragraph_separator_between.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_paragraph_separator_between.pdf Binary files differnew file mode 100644 index 00000000000..14804b8bfa0 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_paragraph_separator_between.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_titles_in_line_numbering_with_notes.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_titles_in_line_numbering_with_notes.pdf Binary files differnew file mode 100644 index 00000000000..ee4e3a25261 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_pages_titles_in_line_numbering_with_notes.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_titles_not_in_line_numbering.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_titles_not_in_line_numbering.pdf Binary files differnew file mode 100644 index 00000000000..4728ab49525 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_titles_not_in_line_numbering.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_verse_text_between.pdf b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_verse_text_between.pdf Binary files differnew file mode 100644 index 00000000000..59b401f95e2 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reledmac/examples/4-reledpar_verse_text_between.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/makefile b/Master/texmf-dist/doc/latex/reledmac/examples/makefile index cfba1eb4621..7bebbcb0f43 100644 --- a/Master/texmf-dist/doc/latex/reledmac/examples/makefile +++ b/Master/texmf-dist/doc/latex/reledmac/examples/makefile @@ -6,6 +6,10 @@ OBJ= $(SRC:.tex=.pdf) all:$(OBJ) python3 check-example.py +PDF:$(OBJ) + +%.test: %.pdf + python3 check-example.py --filename=$< %.pdf: %.tex latexmk $< diff --git a/Master/texmf-dist/doc/latex/reledmac/makefile b/Master/texmf-dist/doc/latex/reledmac/makefile index 9508db30ab4..8f4a65a01e4 100644 --- a/Master/texmf-dist/doc/latex/reledmac/makefile +++ b/Master/texmf-dist/doc/latex/reledmac/makefile @@ -46,13 +46,19 @@ dist: $(PACKAGE) examples rm -f examples/*pdf $(MAKE) -C examples all mkdir reledmac/examples - ln examples/latexmkrc reledmac/examples ln examples/*pdf reledmac/examples ln examples/*tex reledmac/examples ln examples/*xdy reledmac/examples ln examples/makefile reledmac/examples + ln examples/latexmkrc reledmac/examples mkdir reledmac/doc-include ln doc-include/*dtx reledmac/doc-include + $(MAKE) -C doc-more all + mkdir reledmac/doc-more + ln doc-more/*pdf reledmac/doc-more + ln doc-more/*tex reledmac/doc-more + ln doc-more/makefile reledmac/doc-more + ln doc-more/latexmkrc reledmac/doc-more ln $(PACKAGE) reledmac @$(RM) ../reledmac.zip zip -r ../reledmac.zip reledmac diff --git a/Master/texmf-dist/doc/latex/reledmac/migration.pdf b/Master/texmf-dist/doc/latex/reledmac/migration.pdf Binary files differindex 44d7d413f6d..3e4c4ab7373 100644 --- a/Master/texmf-dist/doc/latex/reledmac/migration.pdf +++ b/Master/texmf-dist/doc/latex/reledmac/migration.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/reledmac.pdf b/Master/texmf-dist/doc/latex/reledmac/reledmac.pdf Binary files differindex 95980e3e52b..83f6eb69511 100644 --- a/Master/texmf-dist/doc/latex/reledmac/reledmac.pdf +++ b/Master/texmf-dist/doc/latex/reledmac/reledmac.pdf diff --git a/Master/texmf-dist/doc/latex/reledmac/reledpar.pdf b/Master/texmf-dist/doc/latex/reledmac/reledpar.pdf Binary files differindex 192aff5becd..0b97e1754f9 100644 --- a/Master/texmf-dist/doc/latex/reledmac/reledpar.pdf +++ b/Master/texmf-dist/doc/latex/reledmac/reledpar.pdf diff --git a/Master/texmf-dist/source/latex/reledmac/reledmac.dtx b/Master/texmf-dist/source/latex/reledmac/reledmac.dtx index 5ee3c68d709..ed2db006519 100644 --- a/Master/texmf-dist/source/latex/reledmac/reledmac.dtx +++ b/Master/texmf-dist/source/latex/reledmac/reledmac.dtx @@ -257,10 +257,10 @@ % \changes{v1.12.4}{2014/08/25}{Debug spurious page breaks before \protect\cs{chapter} (bug added in 1.12.0)} % \changes{v1.13.1}{2014/09/25}{Debug quotation environment inside of a \protect\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.2}{2014/09/30}{Fix a 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}{2015/01/12}{Fix bug with footnotes layout when using some options of the geometry package (bug add by v1.13.0).} +% \changes{v1.13.4}{2014/10/20}{Fix a bug with index when memoir class is used without hyperref} +% \changes{v1.15.0}{2015/01/12}{Fix a bug with footnotes layout when using some options of the geometry package (bug add by v1.13.0).} % \changes{v1.16.0}{2015/01/23}{Compatibility of standard footnotes with some biblatex styles.} % \changes{v1.16.0}{2015/01/23}{New \protect\cs{stanzaindent} command.} % \changes{v1.18.0}{2015/02/23}{Compatibility with \LuaLaTeX\ RTL languages.} @@ -272,13 +272,13 @@ % \changes{v1.20.0}{2015/03/22}{Fix issues with RTL text in notes when using \LuaLaTeX.} % \changes{v1.20.0}{2015/03/22}{The \protect\cs{newif}s are not followed by boolean values set to false, because it is the \TeX\ default setting.} % \changes{v1.20.0}{2015/03/22}{Explicit error message when calling \protect\cs{Xfootnote} outside of \protect\cs{edtext}.} -% \changes{v1.20.0}{2015/03/22}{Fix bug with line number typesetting direction when using \protect\cs{eledsection} and similar commands for RTL texts with \LuaLaTeX.} +% \changes{v1.20.0}{2015/03/22}{Fix a bug with line number typesetting direction when using \protect\cs{eledsection} and similar commands for RTL texts with \LuaLaTeX.} % \changes{v1.21.0}{2015/04/13}{\protect\cs{AtEveryPstart} and \protect\cs{AtEveryPend} are now compatible with \protect\cs{autopar}} -% \changes{v1.21.0}{2015/04/13}{Fix bug with space between columns with notes in two columns (bug added in v1.13.0).} +% \changes{v1.21.0}{2015/04/13}{Fix a bug with space between columns with notes in two columns (bug added in v1.13.0).} % \changes{v1.21.0}{2015/04/13}{Add nocritical, noend, nofamiliar and noledgroup options.} -% \changes{v1.21.0}{2015/04/13}{Fix bug with \protect\cs{maxhnotesX} when using \protect\cs{foottwocolX} or \protect\cs{footthreecolX}.} +% \changes{v1.21.0}{2015/04/13}{Fix a bug with \protect\cs{maxhnotesX} when using \protect\cs{foottwocolX} or \protect\cs{footthreecolX}.} % \changes{v1.21.0}{2015/04/13}{Add \protect\cs{Xtwolinesbutnotmore} and \protect\cs{Xtwolinesonlyinsamepage}.} -% \changes{v1.21.0}{2015/04/13}{Fix bug when a \protect\cs{Xfootnote} follows a \protect\cs{Xendnote} in the second argument of \protect\cs{edtext} (bug added in eledmac 1.0.0 !).} +% \changes{v1.21.0}{2015/04/13}{Fix a bug when a \protect\cs{Xfootnote} follows a \protect\cs{Xendnote} in the second argument of \protect\cs{edtext} (bug added in eledmac 1.0.0 !).} % \changes{v1.21.0}{2015/04/13}{Add noeledsec package option} % \changes{v1.21.0}{2015/04/13}{parapparatus option works now with familiar footnotes.} % \changes{v1.21.0}{2015/04/13}{Add \protect\cs{beforenotesX} and \protect\cs{Xbeforenotes} features for notes set in two and three column.} @@ -291,66 +291,66 @@ % \changes{v1.22.0}{2015/04/25}{Provides support for xindy.} % \changes{v1.22.0}{2015/04/25}{Adds hyperlink for references to notes in indices.} % \changes{v1.22.0}{2015/04/25}{Fix conflict between noend package option and edtabularx environments} -% \changes{v1.22.1}{2015/04/29}{Fix bug (added on v1.22.0) with \protect\cs{Xinplaceofnumber} hook.} +% \changes{v1.22.1}{2015/04/29}{Fix a bug (added on v1.22.0) with \protect\cs{Xinplaceofnumber} hook.} % \changes{v1.23.0}{2015/05/18}{Compatibility between nofamiliar/nocriticals option and minipage/ledgroup.} % \changes{v1.23.0}{2015/05/18}{Fix error of \protect\cs{iftrue} not closed.} % \changes{v1.23.0}{2015/05/18}{Allow use of \protect\cs{sameword} with inputenc managing of UTF-8.} % \changes{v1.23.0}{2015/05/18}{Error message when using \protect\cs{beginnumbering}…\protect\cs{endnumbering} without \protect\cs{pstart}.} % \changes{v1.23.0}{2015/05/18}{New tools to ensure the line-list file uses the right version of commands when upgrading the eledmac version.} -% \changes{v1.23.0}{2015/05/18}{Fix bug with \protect\cs{skipnumbering} called immediately after a \protect\cs{pstart}.} +% \changes{v1.23.0}{2015/05/18}{Fix a bug with \protect\cs{skipnumbering} called immediately after a \protect\cs{pstart}.} % \changes{v1.23.0}{2015/05/18}{Fix spurious space with \protect\cs{skipnumbering} (bug added on v1.21.0).} -% \changes{v1.23.1}{2015/05/20}{Fix bug with \protect\cs{lemma} command in the right side.} +% \changes{v1.23.1}{2015/05/20}{Fix a bug with \protect\cs{lemma} command in the right side.} % \changes{v1.23.2}{2015/05/29}{Compatibility with \LaTeX's release 2015.} % \changes{v1.24.0}{2015/06/02}{We can reinitialize \protect\cs{AtEveryPstart} and \protect\cs{AtEveryPend} providing to it an empty argument.} % \changes{v1.24.1}{2015/06/21}{\protect\cs{lemma} is disabled when using `nocritical` option.} % \changes{v1.24.2}{2015/06/26}{Fix incompatibility between `nofamiliar` option and `memoir` package.} % \changes{v1.24.3}{2015/07/07}{Restore marginal numbers and notes with sectioning command (bug introduced in v1.21.0)} % \changes{v1.24.4}{2015/07/19}{Fix spurious space with \protect\cs{edindex} when using xindy+hyperref option.} -% \changes{v1.24.5}{2015/07/16}{Fix bug of indent, when a added in 1.1.0, when a \protect\cs{beginnumbering} immediately follow a sectioning command.} +% \changes{v1.24.5}{2015/07/16}{Fix a bug of indent, when a added in 1.1.0, when a \protect\cs{beginnumbering} immediately follow a sectioning command.} % \changes{v2.0.0}{2015/07/19}{Package's name becomes \reledmac.} % \changes{v2.0.0}{2015/07/19}{In order to have a more consistent name's convention, many names has been changed.} % \changes{v2.0.0}{2015/07/19}{Many \LaTeX's output macros are now patched and not override.} % \changes{v2.0.0}{2015/07/19}{Add nonum option for endnotes.} % \changes{v2.0.0}{2015/07/19}{Add \protect\cs{Xendinplaceofnumber} hook.} % \changes{v2.0.0}{2015/07/19}{Add \protect\cs{Xendnonumber} hook.} -% \changes{v2.0.0}{2015/07/19}{Fix bug when printing only one series of endnotes, but wanted to keep endnotes for other series.} +% \changes{v2.0.0}{2015/07/19}{Fix a bug when printing only one series of endnotes, but wanted to keep endnotes for other series.} % \changes{v2.0.1}{2015/07/27}{Fix incompatibility between optional argument of \protect\cs{pstart} and \protect\cs{numberpstarttrue}} -% \changes{v2.0.1}{2015/07/27}{Fix bug in eledmac-compat option} +% \changes{v2.0.1}{2015/07/27}{Fix a bug in eledmac-compat option} % \changes{v2.1.0}{2015/08/08}{New tools to number stanzas} -% \changes{v2.1.0}{2015/08/02}{Fix bug with \protect\cs{chapter} in optional argument of \protect\cs{pstart} in parallel typesetting with \protect\ltxclass{scrbook}.} -% \changes{v2.1.0}{2015/08/02}{Fix bug with \protect\cs{eledchapter} in parallel typesetting with \protect\ltxclass{scrbook}.} -% \changes{v2.1.0}{2015/08/02}{Fix bug with \protect\cs{setline} at the beginning of a \protect\cs{pstart}.} -% \changes{v2.1.0}{2015/08/02}{Fix bug with \protect\cs{advanceline} at the beginning of a \protect\cs{pstart}.} +% \changes{v2.1.0}{2015/08/02}{Fix a bug with \protect\cs{chapter} in optional argument of \protect\cs{pstart} in parallel typesetting with \protect\ltxclass{scrbook}.} +% \changes{v2.1.0}{2015/08/02}{Fix a bug with \protect\cs{eledchapter} in parallel typesetting with \protect\ltxclass{scrbook}.} +% \changes{v2.1.0}{2015/08/02}{Fix a bug with \protect\cs{setline} at the beginning of a \protect\cs{pstart}.} +% \changes{v2.1.0}{2015/08/02}{Fix a bug with \protect\cs{advanceline} at the beginning of a \protect\cs{pstart}.} % \changes{v2.1.0}{2015/08/08}{Fix spacing bug with \protect\cs{Xbhooknote} and \protect\cs{bhooknoteX} when using them to insert text and not to execute code.} % \changes{v2.1.0}{2015/08/08}{Fix spacing bug with \protect\cs{Xbhooknote} and \protect\cs{bhooknoteX} when using them to insert text and not to execute code.} -% \changes{v2.1.1}{2015/08/13}{Fix bug with \protect\cs{ledpbsetting}\protect\arg{before}.} -% \changes{v2.1.2}{2015/08/26}{Fix bug with lineation by pstart and tabular environments (added in 2.1.0).} -% \changes{v2.1.3}{2015/09/05}{Fix bug with \protect\cs{edindex} when using not-Latin characters without UTF-8 engines} +% \changes{v2.1.1}{2015/08/13}{Fix a bug with \protect\cs{ledpbsetting}\protect\arg{before}.} +% \changes{v2.1.2}{2015/08/26}{Fix a bug with lineation by pstart and tabular environments (added in 2.1.0).} +% \changes{v2.1.3}{2015/09/05}{Fix a bug with \protect\cs{edindex} when using not-Latin characters without UTF-8 engines} % \changes{v2.1.3}{2015/09/05}{\protect\cs{Xhangindent} and \protect\cs{hangindentX} work now with all the paragraphs in the note.} % \changes{v2.1.3}{2015/09/05}{\protect\cs{Xnoindent} and \protect\cs{noindentX} work now again (broken in 2.0.0).} % \changes{v2.1.3}{2015/09/05}{Change some internal code in order to provide compatibility with \LaTeX\ release of october~2015} -% \changes{v2.1.3}{2015/09/05}{Fix bug which inserted double space before paragraphed familiar notes.} -% \changes{v2.2.0}{2015/09/29}{Fix bug with combination of \protect\cs{onehalfspacing} and two columns and three columns notes typeset.} -% \changes{v2.2.0}{2015/09/29}{Fix bug with some setting command and optimization option.} +% \changes{v2.1.3}{2015/09/05}{Fix a bug which inserted double space before paragraphed familiar notes.} +% \changes{v2.2.0}{2015/09/29}{Fix a bug with combination of \protect\cs{onehalfspacing} and two columns and three columns notes typeset.} +% \changes{v2.2.0}{2015/09/29}{Fix a bug with some setting command and optimization option.} % \changes{v2.2.0}{2015/09/29}{New setting tools for endnotes: \protect\cs{Xendnumberonlyfirstinline}, \protect\cs{Xendnumberonlyfirstintwolines}, \protect\cs{Xendsymlinenum}, \protect\cs{Xendbeforenumber}, \protect\cs{Xendafterenumber}, \protect\cs{Xendbeforesymlinenum}, \protect\cs{Xendaftersymlinenum}, \protect\cs{Xendboxsymlinenum}, \protect\cs{Xendhangindent}, \protect\cs{Xendbhooklinenumber}, \protect\cs{Xendahooklinenumber}, \protect\cs{Xendbhookinplaceofnumber}, \protect\cs{Xendahookinplaceofnumber}.} % \changes{v2.2.0}{2015/09/29}{Fix spurious space with paragraphed critical notes when using \LuaLaTeX.} % \changes{v2.2.0}{2015/09/29}{Increase line list version number to ensure compatibility with new options of \reledpar package.} % \changes{v2.2.1}{2015/10/05}{Compatibility with \LaTeX format 2015/10/01.} -% \changes{v2.2.2}{2015/10/09}{Fix bug in \protect\cs{sethangingsymbol}.} -% \changes{v2.2.2}{2015/10/09}{Fix bug with old version of \protect\package{etex}.} +% \changes{v2.2.2}{2015/10/09}{Fix a bug in \protect\cs{sethangingsymbol}.} +% \changes{v2.2.2}{2015/10/09}{Fix a bug with old version of \protect\package{etex}.} % \hyphenation{man-u-script man-u-scripts} % \changes{v2.3.0}{2015/10/14}{Warning message when using some setting commands inside rightside environment (deprecated behavior)} % \changes{v2.3.0}{2015/10/14}{Disable empty lines as paragraph in stanza.} -% \changes{v2.3.0}{2015/10/14}{Fix compatibility of paragraphed footnotes with \protect\package{bidi} v17.9 and following.} +% \changes{v2.3.0}{2015/10/14}{Fix incompatibility of paragraphed footnotes with \protect\package{bidi} v17.9 and following.} % \changes{v2.3.1}{2015/10/19}{Fix spurious space when using optional argument of \protect\cs{stanza} (introduced in v2.3.0).} % \changes{v2.4.0}{2015/10/19}{\protect\cs{Xbhooknote} and \protect\cs{bhooknoteX} work with notes in columns.} -% \changes{v2.4.0}{2015/10/19}{Fix bug with \protect\cs{sameword} in right side.} +% \changes{v2.4.0}{2015/10/19}{Fix a bug with \protect\cs{sameword} in right side.} % \changes{v2.4.0}{2015/10/19}{Fix spurious space in two columns and three columns notes.} -% \changes{v2.4.0}{2015/10/19}{Fix bug of \protect\cs{parindentX} and \protect\cs{Xparindent} with two columns and three columns notes.} +% \changes{v2.4.0}{2015/10/19}{Fix a bug of \protect\cs{parindentX} and \protect\cs{Xparindent} with two columns and three columns notes.} % \changes{v2.4.0}{2015/10/19}{Fix spurious space when using optional argument of \protect{stanza} (introduced in v2.3.0).} -% \changes{v2.4.1}{2015/10/26}{Fix bug with \protect\cs{appref} and \protect\cs{apprefwithpage} (introduced in v2.4.0).} -% \changes{v2.4.1}{2015/10/26}{Fix bug with tabular environments when using \protect\package{babel} or \protect\package{polyglossia} languages that override \LaTeX\ \protect\cs{roman} command, like Greek.} -% \changes{v2.4.1}{2015/10/26}{Fix bug with tabular environments when using \protect\package{babel} or \protect\package{polyglossia} languages that override \LaTeX\ \protect\cs{roman} command, like Greek language.} +% \changes{v2.4.1}{2015/10/26}{Fix a bug with \protect\cs{appref} and \protect\cs{apprefwithpage} (introduced in v2.4.0).} +% \changes{v2.4.1}{2015/10/26}{Fix a bug with tabular environments when using \protect\package{babel} or \protect\package{polyglossia} languages that override \LaTeX\ \protect\cs{roman} command, like Greek.} +% \changes{v2.4.1}{2015/10/26}{Fix a bug with tabular environments when using \protect\package{babel} or \protect\package{polyglossia} languages that override \LaTeX\ \protect\cs{roman} command, like Greek language.} % \changes{v2.5.0}{2015/11/13}{Compatibility with new hook and tools of \protect\reledpar~2.6.0.} % \changes{v2.5.0}{2015/11/13}{\protect\cs{lemma} can be used even when the \protect\option{nocritical} is enabled.} % \changes{v2.5.0}{2015/11/13}{New hooks to customize page and line number appearance in endnotes.} @@ -363,11 +363,11 @@ % \changes{v2.5.0}{2015/11/13}{Log now states `There were undefined references` when using wrong references in \protect\cs{edlineref} or \protect{edpageref}.} % \changes{v2.5.0}{2015/11/13}{Fix spurious vertical space in \protect\env{astanza} environment (\reledpar)} % \changes{v2.6.0}{2015/11/20}{Adds compatibility with \protect\option{innnote} and \protect\option{notenumber} options of \protect\package{indextools} package.} -% \changes{v2.6.0}{2015/11/20}{Fix bug with footnote counter in \protect\env{ledgroup} (added in v2.5.0).} +% \changes{v2.6.0}{2015/11/20}{Fix a bug with footnote counter in \protect\env{ledgroup} (added in v2.5.0).} % \changes{v2.6.0}{2015/11/20}{Fix bug, introduced in v2.5.0, with footnote numbering in parallel typesetting when using \protect\package{perpage} package.} % \changes{v2.7.0}{2015/11/29}{Warning for duplicate and undefined labels are parsable by latexmk} % \changes{v2.7.0}{2015/11/29}{Warning for duplicate labels does not send any more a false line and page number} -% \changes{v2.7.0}{2015/11/29}{Fix bug with \protect\cs{SErefwithpage}.} +% \changes{v2.7.0}{2015/11/29}{Fix a bug with \protect\cs{SErefwithpage}.} % \changes{v2.7.0}{2015/11/29}{Fix (again) bugs with footnote numbering in parallel typesetting while using \protect\env{ledgroup} environments (bug added in v2.5.0).} % \changes{v2.7.0}{2015/11/29}{When using \protect\package{hyperref} package, add links for \protect\cs{SEref} and related, \protect\cs{appref} and related.} % \changes{v2.7.0}{2015/11/29}{When using \protect\package{hyperref} package, add links from critical footnotes and critical endnotes to the line of text they refers} @@ -384,106 +384,110 @@ % \changes{v2.8.0}{2016/01/15}{No indentation for paragraphed notes in ledgroup. Can be changed with \protect\cs{Xparindent} and \protect\cs{parindentX}.} % \changes{v2.8.0}{2016/01/15}{More \protect\cs{edgls…} commands.} % \changes{v2.8.1}{2016/02/22}{Warnings for undefined labels are really parsable by latexmk} -% \changes{v2.8.2}{2016/02/27}{Fix bug with \protect\cs{AtEveryPstart} added in version 2.0.0.} -% \changes{v2.8.2}{2016/02/27}{Fix bug with vertical space after the between-sectioning command as optional argument of a \protect\cs{pstart} and \protect\cs{pstart} content} -% \changes{v2.8.2}{2016/02/27}{Fix bug concerning indent in a paragraph immediately following a sectioning command (bug NOT fixed on reledpar)} +% \changes{v2.8.2}{2016/02/27}{Fix a bug with \protect\cs{AtEveryPstart} added in version 2.0.0.} +% \changes{v2.8.2}{2016/02/27}{Fix a bug with vertical space after the between-sectioning command as optional argument of a \protect\cs{pstart} and \protect\cs{pstart} content} +% \changes{v2.8.2}{2016/02/27}{Fix a bug concerning indent in a paragraph immediately following a sectioning command (bug NOT fixed on reledpar)} % \changes{v2.9.0}{2016/03/23}{Allow continuing line numbering between normal text and parallel text, using \protect\cs{pausenumbering} and \protect\cs{resumenumbering} and the \protect\option{continuousnumberingwithcolumns} option.} -% \changes{v2.9.0}{2016/03/23}{Fix bug when using \protect\cs{linenum}\protect\arg{page} and \protect\cs{pausenumbering}\protect\ldots\protect\cs{resumenumbering}.} +% \changes{v2.9.0}{2016/03/23}{Fix a bug when using \protect\cs{lineneation}\protect\arg{page} and \protect\cs{pausenumbering}\protect\ldots\protect\cs{resumenumbering}.} % \changes{v2.9.0}{2016/03/23}{Write correct metadata in numbered files when using \protect\cs{pausenumbering}\protect\ldots\protect\cs{resumenumbering}.} -% \changes{v2.9.0}{2016/03/23}{Fix bug with three- and two-column footnote setting (added in v.2.4.0).} +% \changes{v2.9.0}{2016/03/23}{Fix a bug with three- and two-column footnote setting (added in v.2.4.0).} % \changes{v2.9.0}{2016/03/23}{Fix spurious space inside three-column familiar footnote.} -% \changes{v2.9.1}{2016/04/09}{Fix bug when notes start with ``plus'' or ``minus''.} -% \changes{v2.9.2}{2016/04/30}{Fix bug with \protect\package{hyperref} package when a lemma starts with ``plus'' or ``minus'' (bug introduced in v.~2.7.0).} -% \changes{v2.9.3}{2016/05/02}{Fix bug with line number position and reset added by v.~2.9.0} +% \changes{v2.9.1}{2016/04/09}{Fix a bug when notes start with ``plus'' or ``minus''.} +% \changes{v2.9.2}{2016/04/30}{Fix a bug with \protect\package{hyperref} package when a lemma starts with ``plus'' or ``minus'' (bug introduced in v.~2.7.0).} +% \changes{v2.9.3}{2016/05/02}{Fix a bug with line number position and reset added by v.~2.9.0} % \changes{v2.10.0}{2016/05/08}{Add \protect\cs{AtEveryStanza} and \protect\cs{AtEveryStopStanza}.} % \changes{v2.10.0}{2016/05/08}{More specific error messages.} -% \changes{v2.10.0}{2016/05/08}{Fix bug in \protect\cs{ledlsnotefontsetup} and \protect\cs{ledrsnotefontsetup} which could not handle \protect\cs{color} command properly.} +% \changes{v2.10.0}{2016/05/08}{Fix a bug in \protect\cs{ledlsnotefontsetup} and \protect\cs{ledrsnotefontsetup} which could not handle \protect\cs{color} command properly.} % \changes{v2.10.1}{2016/05/18}{Add `nopenalties` option.} -% \changes{v2.10.1}{2016/05/18}{Fix bug introduced in v.~1.4: not paragraphed critical footnotes could prevent marginal line number from being displayed} +% \changes{v2.10.1}{2016/05/18}{Fix a bug introduced in v.~1.4: not paragraphed critical footnotes could prevent marginal line number from being displayed} % \changes{v2.11.0}{2016/06/02}{Prevent \protect\cs{Xtxtbeforenotes} hook from causing notes to go beyond the bottom margin} % \changes{v2.11.0}{2016/06/02}{Make \protect\cs{parafootsepX} work} -% \changes{v2.11.0}{2016/06/02}{Fix bug in \protect\cs{Xparafootsep} in parallel typesetting} +% \changes{v2.11.0}{2016/06/02}{Fix a bug in \protect\cs{Xparafootsep} in parallel typesetting} % \changes{v2.11.0}{2016/06/02}{Add new tools to produce an apparatus of manuscripts} -% \changes{v2.12.0}{2016/06/16}{Fix bug with familiar footnote number in optional argument of \protect\cs{pstart} or \protect\cs{pend} in parallel typesetting} +% \changes{v2.12.0}{2016/06/16}{Fix a bug with familiar footnote number in optional argument of \protect\cs{pstart} or \protect\cs{pend} in parallel typesetting} % \changes{v2.12.0}{2016/06/16}{Add \protect\cs{hidenumberingonleftpage} and \protect\cs{hidenumberingonrightpage}} % \changes{v2.12.0}{2016/06/16}{\protect\cs{preXnotes} becomes \protect\cs{Xprenotes} (naming convention)} % \changes{v2.12.0}{2016/06/16}{Add \protect\option{auxdir} option.} % \changes{v2.12.0}{2016/06/16}{Add \protect\cs{toendnotes} and related.} -% \changes{v2.12.0}{2016/06/16}{Fix bug when using \protect\cs{chapter} in optional argument of \protect\cs{pstart} in parallel typesetting in combination with the \protect\option{noeledsec} option.} +% \changes{v2.12.0}{2016/06/16}{Fix a bug when using \protect\cs{chapter} in optional argument of \protect\cs{pstart} in parallel typesetting in combination with the \protect\option{noeledsec} option.} % \changes{v2.12.0}{2016/06/16}{Fix spurious vertical space in \protect\cs{chapter} when used as optional argument of \protect\cs{pstart} in parallel tyepsetting.} -% \changes{v2.12.0}{2016/06/16}{Fix bug with \protect\cs{ledinnernote} and \protect\cs{ledouternote} in parallel typesetting} +% \changes{v2.12.0}{2016/06/16}{Fix a bug with \protect\cs{ledinnernote} and \protect\cs{ledouternote} in parallel typesetting} % \changes{v2.12.0}{2016/06/16}{More accurate message to control the position of \protect\cs{Xfootnote} and \protect\cs{applabel} in the \protect\LaTeX\ code} -% \changes{v2.12.0}{2016/06/16}{Fix bug in critical and familiar footnotes when using uppercase letters with accent mark} +% \changes{v2.12.0}{2016/06/16}{Fix a bug in critical and familiar footnotes when using uppercase letters with accent mark} % \changes{v2.12.0}{2016/06/16}{Make endnote compatible with \protect\cs{sameword} mechanism} % \changes{v2.13.0}{2016/06/18}{Version 2.13.0 never existed.} % \changes{v2.13.1}{2016/06/18}{In critical footnotes, the right side flag is printed only if requested explicitly with \protect\cs{Xlineflag} (bug added in v.~2.5.0).} -% \changes{v2.13.2}{2016/06/24}{Fix bug added in v.~11.2 which could make parallel typesetting not work.} +% \changes{v2.13.2}{2016/06/24}{Fix a bug added in v.~11.2 which could make parallel typesetting not work.} % \changes{v2.13.3}{2016/06/28}{Makes \protect\cs{Xendafterpagenumbe} affecting \protect\cs{SErefwithpage}} % \changes{v2.14.0}{2016/07/01}{Hyperref with the line number inside critical footnotes is correct when using \protect\cs{xxref}} % \changes{v2.14.0}{2016/07/01}{Some internal changes for new features of \protect\reledpar.} -% \changes{v2.14.1}{2016/07/04}{Fix bug when using \protect\cs{footnoteX} in the first argument of \protect\cs{edtext}.} +% \changes{v2.14.1}{2016/07/04}{Fix a bug when using \protect\cs{footnoteX} in the first argument of \protect\cs{edtext}.} % \changes{v2.14.1a}{2016/07/14}{Fix problematic typos in the handbook.} % \changes{v2.15.0}{2016/07/22}{Add `byline` arrangement.} % \changes{v2.15.0}{2016/07/22}{Fix \protect\cs{Xtxtbeforenotes} in ledgroup.} % \changes{v2.15.1}{2016/09/07}{Fix \protect\cs{edindex} in tabular environments.} -% \changes{v2.15.2}{2016/09/12}{Fix bug with \protect\package{fancyhdr} package 3.8 and later.} -% \changes{v2.15.3}{2016/09/26}{Fix bug with \protect\cs{section} in optional argument of \protect\cs{pstart} and empty line before \protect\cs{pend} (bug added in v2.8.2).} +% \changes{v2.15.2}{2016/09/12}{Fix a bug with \protect\package{fancyhdr} package 3.8 and later.} +% \changes{v2.15.3}{2016/09/26}{Fix a bug with \protect\cs{section} in optional argument of \protect\cs{pstart} and empty line before \protect\cs{pend} (bug added in v2.8.2).} % \changes{v2.15.3}{2016/09/26}{Simplification of the sectioning command code.} % \changes{v2.16.0}{2016/10/02}{Display a warning message if using a version of \protect\LaTeX that is too old.} % \changes{v2.16.0}{2016/10/02}{Deleted dead code.} % \changes{v2.16.0}{2016/10/02}{New options for \protect\cs{fnpos} and \protect\cs{mpfnpos} to set a customized order for familiar and critical footnotes.} % \changes{v2.16.0}{2016/10/02}{Compatibility with new features of \protect\reledpar} -% \changes{v2.16.0}{2016/10/02}{Fix bug with \protect\cs{Xtxtbeforenotes} for notes in three or two columns} -% \changes{v2.16.0}{2016/10/02}{Fix bug with \protect\cs{Xgroupbylines} for notes in two columns} -% \changes{v2.16.0}{2016/10/02}{Fix bug with `notenumber' option of \protect\package{indextools} package when indexing texts in familiar footnotes.} +% \changes{v2.16.0}{2016/10/02}{Fix a bug with \protect\cs{Xtxtbeforenotes} for notes in three or two columns} +% \changes{v2.16.0}{2016/10/02}{Fix a bug with \protect\cs{Xgroupbylines} for notes in two columns} +% \changes{v2.16.0}{2016/10/02}{Fix a bug with `notenumber' option of \protect\package{indextools} package when indexing texts in familiar footnotes.} % \changes{v2.16.0}{2016/10/02}{When indexing texts in familiar footnotes with \protect\cs{edtext}, refer to the line number where the footnote is called.} % \changes{v2.16.0}{2016/10/02}{When indexing texts in sidenotes with \protect\cs{edtext}, refer to the line number where the sidenote is called.} % \changes{v2.16.0}{2016/10/02}{Fix potential bug when using \protect\cs{edindex} in critical footnotes.} % \changes{v2.16.0}{2016/10/02}{Add \protect\cs{Xendpagenumberonlyfirst}, \protect\cs{Xendpagenumberonlyfirstifsingle}, \protect\cs{Xendpagenumberonlyfirstintwo}, \protect\cs{Xendinplaceofpagenumber} and \protect\cs{Xendsympagenum} hooks.} % \changes{v2.16.0}{2016/10/02}{When \protect\cs{edindex} is called outside of a \protect\cs{beginnumbering}\protect\ldots\protect\cs{endnumbering} structure, it is automatically switched to \protect\cs{index}, with a warning message.} -% \changes{v2.16.1}{2016/10/04}{Fix bug with redefinition of the style of the footnote number (bug added in v2.12.0)} +% \changes{v2.16.1}{2016/10/04}{Fix a bug with redefinition of the style of the footnote number (bug added in v2.12.0)} % \changes{v2.16.2}{2016/10/07}{Error message if \protect\package{footmisc} is loaded after \protect\package{reledmac}.} -% \changes{v2.16.2}{2016/10/07}{Fix bug introduced by v2.16.1 when using non-expandable control sequence, like \protect\cs{normalfont}, in the footnote number style.} -% \changes{v2.16.3}{2016/10/12}{Fix bug with \protect\cs{SEref} (bug added in v2.7.0).} -% \changes{v2.16.4}{2016/10/16}{Fix bug with vertical space before sectioning command in optional argument of \protect\cs{pstart} (bug added in v2.15.3).} +% \changes{v2.16.2}{2016/10/07}{Fix a bug introduced by v2.16.1 when using non-expandable control sequence, like \protect\cs{normalfont}, in the footnote number style.} +% \changes{v2.16.3}{2016/10/12}{Fix a bug with \protect\cs{SEref} (bug added in v2.7.0).} +% \changes{v2.16.4}{2016/10/16}{Fix a bug with vertical space before sectioning command in optional argument of \protect\cs{pstart} (bug added in v2.15.3).} % \changes{v2.16.5}{2016/10/20}{Fix potential spurious spaces in endnotes.} % \changes{v2.16.6}{2016/11/14}{Take into account \protect\cs{linenumberstyle} when using \protect\cs{edlineref}.} -% \changes{v2.16.6}{2016/11/14}{Fix bug with the line number style in \protect\cs{doennotes} when referring to right side line in parallel typesetting.} -% \changes{v2.16.7}{2016/12/12}{Fix bug with \protect\cs{numberpstarttrue} when using multiple \protect\cs{beginnumbering}…\protect\cs{endnumbering}.} -% \changes{v2.16.7}{2016/12/12}{Fix bug with \protect\cs{msdata} when using multiple \protect\cs{beginnumbering}…\protect\cs{endnumbering}.} -% \changes{v2.16.8}{2016/12/16}{Fix bug with \protect\cs{edindex} in footnotes in parallel typesetting.} +% \changes{v2.16.6}{2016/11/14}{Fix a bug with the line number style in \protect\cs{doennotes} when referring to right side line in parallel typesetting.} +% \changes{v2.16.7}{2016/12/12}{Fix a bug with \protect\cs{numberpstarttrue} when using multiple \protect\cs{beginnumbering}…\protect\cs{endnumbering}.} +% \changes{v2.16.7}{2016/12/12}{Fix a bug with \protect\cs{msdata} when using multiple \protect\cs{beginnumbering}…\protect\cs{endnumbering}.} +% \changes{v2.16.8}{2016/12/16}{Fix a bug with \protect\cs{edindex} in footnotes in parallel typesetting.} % \changes{v2.17.0}{2016/12/23}{Add \protect\cs{edglsadd} command.} % \changes{v2.17.0}{2016/12/23}{Add \protect\cs{setmsdataposition} setting.} % \changes{v2.17.1}{2017/01/22}{Fix spurious space in paragraphed footnotes when using \protect\LuaLaTeX without using Right-To-Left text.} % \changes{v2.17.2}{2017/01/25}{Change log message when numbered files still don't exist, in order to improve compatibility with \protect\emph{latexmk}.} -% \changes{v2.17.3}{2017/01/31}{Fix bug with \protect\cs{doendnotesbysection} and \protect\cs{doendnotes}.} -% \changes{v2.17.4}{2017/02/10}{Fix bug with \protect\cs{setSErefonlypageprefixsingle} and \protect\cs{setSErefonlypageprefixmore}.} -% \changes{v2.17.5}{2017/02/12}{Fix bug with \protect\cs{pstartref} when refering to the left side in parallel typesetting.} -% \changes{v2.18.0}{2017/02/22}{Fix bug when using both \protect\cs{Xnumberonlyfirstintwolines} or \protect\cs{Xnumberonlyfirstinline} and \protect\cs{Xparafootsep} and \protect\cs{Xsymlinenum}.} -% \changes{v2.18.0}{2017/02/22}{Fix bug when using a \protect\cs{edtext} in two lines or more in right-to-left typesetting with \protect\XeLaTeX.} -% \changes{v2.18.1}{2017/03/20}{Fix bug when using \protect\cs{msdata} with \protect\LuaLaTeX or with the \protect\package{hyperref} package.} +% \changes{v2.17.3}{2017/01/31}{Fix a bug with \protect\cs{doendnotesbysection} and \protect\cs{doendnotes}.} +% \changes{v2.17.4}{2017/02/10}{Fix a bug with \protect\cs{setSErefonlypageprefixsingle} and \protect\cs{setSErefonlypageprefixmore}.} +% \changes{v2.17.5}{2017/02/12}{Fix a bug with \protect\cs{pstartref} when refering to the left side in parallel typesetting.} +% \changes{v2.18.0}{2017/02/22}{Fix a bug when using both \protect\cs{Xnumberonlyfirstintwolines} or \protect\cs{Xnumberonlyfirstinline} and \protect\cs{Xparafootsep} and \protect\cs{Xsymlinenum}.} +% \changes{v2.18.0}{2017/02/22}{Fix a bug when using a \protect\cs{edtext} in two lines or more in right-to-left typesetting with \protect\XeLaTeX.} +% \changes{v2.18.1}{2017/03/20}{Fix a bug when using \protect\cs{msdata} with \protect\LuaLaTeX or with the \protect\package{hyperref} package.} % \changes{v2.19.0}{2017/04/14}{Add better compatibility with the \protect\package{csquotes} package when using familiar footnotes.} % \changes{v2.19.0}{2017/04/14}{Add \protect\cs{footnoteXmark} and \protect\cs{footnoteXtext} commands.} % \title{\Macpackage \\ -% \changes{v2.19.0}{2017/04/14}{Fix bug with paragraph indent after sectioning command.} -% \changes{v2.20.0}{2017/05/04}{Fix bug when using familiar footnotes in \protect\cs{eledsection} and related.} +% \changes{v2.19.0}{2017/04/14}{Fix a bug with paragraph indent after sectioning command.} +% \changes{v2.20.0}{2017/05/04}{Fix a bug when using familiar footnotes in \protect\cs{eledsection} and related.} % \changes{v2.20.0}{2017/05/04}{Reset font specification at the beginning of familiar footnotes.} % \changes{v2.20.0}{2017/05/04}{Add starred version of \protect\cs{AtEveryPstart}, \protect\cs{AtEveryPend}, \protect\cs{AtEveryStanza} and \protect\cs{AtEveryStopStanza}.} % \changes{v2.20.0}{2017/05/04}{Add \protect\cs{AtStartEveryStanza}, \protect\cs{BeforeEveryStopStanza}, \protect\cs{AtEndEveryPend}, \protect\cs{AtStartEveryPstart}.} % \changes{v2.20.0}{2017/05/04}{Add second optional argument of \protect\cs{pstart}, \protect\cs{pend} and \protect\cs{stanza}.} % \changes{v2.20.0}{2017/05/04}{Add third and fourth optional argument of \protect\cs{newverse}.} -% \changes{v2.21.0}{2017/06/04}{Fix bug when using formatting command in the argument of \protect\cs{edindex} inside \protect\cs{edtext}.} +% \changes{v2.21.0}{2017/06/04}{Fix a bug when using formatting command in the argument of \protect\cs{edindex} inside \protect\cs{edtext}.} % \changes{v2.21.0}{2017/06/04}{Now, as explained in the handbook, an \protect\cs{edindex} inside \protect\cs{edtext} only creates index reference to main text, and not to the critical footnote.} % \changes{v2.21.0}{2017/06/04}{Add the possibility of nested \protect\cs{sameword}.} -% \changes{v2.22.0}{2017/06/08}{Fix bug added in v2.16.0 when using \protect\cs{Xtxtbeforenotes} with paragraphed or normal footnotes.} -% \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}{Fix a bug added in v2.16.0 when using \protect\cs{Xtxtbeforenotes} with paragraphed or normal footnotes.} +% \changes{v2.22.0}{2017/06/08}{Fix a 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}.} +% \changes{v2.22.1}{2017/07/07}{Fix a bug with some commands inside \protect\cs{sameword}.} % \changes{v2.22.2}{2017/07/17}{Do not print footnotes at the first run.} % \changes{v2.23.0}{2017/07/31}{Add \protect\option{swcaseinsensitive} option} % \changes{v2.23.0}{2017/07/31}{Optimisation of the code added on v2.22.2 to not print footnotes at the first run.} +% \changes{v2.24.0}{2017/08/17}{When a \protect\cs{setlinenum} is used, it is stronger than the \protect\cs{lineation}\protect\arg{page} setting.} +% \changes{v2.24.0}{2017/08/17}{Fix a bug with \protect\cs{edlabel} at the beginning of a \protect\cs{pstart}.} +% \changes{v2.24.0}{2017/08/17}{Add \protect\cs{swnoexpands} macro to avoid problems with not fully expandable macro inside \protect\cs{sameword}.} +% \changes{v2.24.0}{2017/08/17}{Fix spurious space with \protect\cs{labelpstarttrue}} % Typeset scholarly editions with \LaTeX\thanks{This file (\dtxfilename) % has version number \fileversion, last revised \filedate.}} % @@ -1171,7 +1175,7 @@ % \DescribeMacro{\setlinenum} % The \protect\cs{setline} and \protect\cs{advanceline} macros should only be used % within a \protect\cs{pstart}\ldots\protect\cs{pend} group. The \protect\cs{setlinenum}\marg{num} -% command can be used outside such a group, for example between +% command can be used outside such a group, for example, between % a \protect\cs{pend} and a \protect\cs{pstart}. It sets the line number % to \meta{num}. % It has no effect if used within a \protect\cs{pstart}\ldots\protect\cs{pend} group. @@ -1530,9 +1534,9 @@ % % \subsection{Disambiguation of identical words in the apparatus} % \changes{v1.15.0}{2015/01/12}{New tools to prevent ambiguous references in lemma} -% \changes{v1.23.0}{2015/05/18}{Fix bug with \protect\cs{sameword} when the same lemma is used for multiple notes or for nested \protect\cs{edtext}s.} +% \changes{v1.23.0}{2015/05/18}{Fix a bug with \protect\cs{sameword} when the same lemma is used for multiple notes or for nested \protect\cs{edtext}s.} % \changes{v1.23.0}{2015/05/18}{Optional argument of \protect\cs{sameword} can be a comma-separated list of \protect\cs{edtext} depth.} -% \changes{v1.23.0}{2015/05/18}{Fix bug with \protect\cs{sameword} when the lemma overlaps multiple line.} +% \changes{v1.23.0}{2015/05/18}{Fix a bug with \protect\cs{sameword} when the lemma overlaps multiple line.} % Sometimes, the same word occurs twice (or more) in the same line. % \Macpackage provides tools to disambiguate 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. @@ -1574,7 +1578,7 @@ % \subsubsection{Use with \protect\cs{lemma} command} % If you use the \protect\cs{lemma} command, \macpackage\ cannot know to which occurence of \cs{sameword} in the first argument of \cs{edtext} a word marked with \cs{sameword} in \cs{lemma} should refer. % -% For example in the following example: +% For example, in the following example: % \begin{verbatim} % some thing % \edtext{\sameword{sw} @@ -1752,7 +1756,34 @@ % #1\textsuperscript{#2}% %} % \end{verbatim} +% \subsubsection{Problems with some macros} +% \DescribeMacro{\swnoexpands}Macros inside \protect\cs{sameword} that are not fully expandable, mainly macros which manipulate font features, write on full or have optional argument, may cause problems during compilation. Custom commands inside \protect\cs{sameword} may therefore result in errors saying that \enquote{Use of \\sameword doesn't match its definition.} To solve this, include a redefinition of your custom commands in the \protect\cs{swnoexpands} macro. +% In order to not include any content of a macro during comparison, identify the command with \protect\cs{@gobble} For example: +% \begin{verbatim} +%\makeatletter +%\appto{\swnoexpands}{% +% \let\somemacro\@gobble% +%} +%\makeatother +% \end{verbatim} +% This will drop the content of \protect\cs{somemacro} during comparison. % +% To include the content of the first and only one argument of a custom command in sameword comparison, use the \protect\cs{@firstofone} command. For example, this is how \cs{emph} is handled: +% \begin{verbatim} +%\makeatletter +% \appto{\swnoexpands}{% +% \let\emph\@firstofone% +%} +%\makeatother +% \end{verbatim} +% To include command which can take optional argument, use \cs{RenewExpandableDocumentCommand} of \cs{xparse}. For example, this is how \cs{edindex} is handled: +% \begin{verbatim} +%\makeatletter +% \appto{\swnoexpands}{% +% \RenewExpandableDocumentCommand{\edindex}{om}{}% +%} +%\makeatother +% \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. @@ -1763,7 +1794,7 @@ % 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. +% Please not that the maintainer of this script is not the maintainer of \macpackage. % % \subsection{Apparatus of Manuscripts} % The critical notes mostly refer to textual variants between manuscripts which contain the text to be edited. @@ -1907,7 +1938,7 @@ % As the number of series which are defined increases, \macpackage gets slower. % If you do not need all of the six standard series (A--E), % you can load the package with the \verb+series+ option. -% For example if you need only series~A and~B, use: +% For example, if you need only series~A and~B, use: % \begin{verbatim} % \usepackage[series={A,B}]{eledmac} % \end{verbatim} @@ -3335,7 +3366,7 @@ % \renewcommand{\pagelinesep}{:} % \end{verbatim} % -% However, you also have to configure your \verb+.ist+ index style file. For example if you use \verb+:+ as separator\footnote{For further detail, you can read \url{http://tex.stackexchange.com/a/32783/7712}.}. +% However, you also have to configure your \verb+.ist+ index style file. For example, if you use \verb+:+ as separator\footnote{For further detail, you can read \url{http://tex.stackexchange.com/a/32783/7712}.}. % \begin{verbatim} % page_compositor ":" % \end{verbatim} @@ -3516,7 +3547,7 @@ % The macro |\edrowfill|\marg{start}\marg{end}\marg{fill} % fills columns number \meta{start} to \meta{end} inclusive with % \meta{fill}. The \meta{fill} argument can be any horizontal `fill'. -% For example |\hrulefill| or |\upbracefill|. +% For example, |\hrulefill| or |\upbracefill|. % % Note that every row must have the same number of columns, even if % some would not appear to be necessary. @@ -4030,7 +4061,7 @@ % \begin{macrocode} %<*code> \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{reledmac}[2017/07/31 v2.23.0 typesetting critical editions]% +\ProvidesPackage{reledmac}[2017/08/17 v2.24.0 typesetting critical editions]% % \end{macrocode} % % \subsection{Package options} @@ -4163,10 +4194,12 @@ % \end{macro} % \subsection{Loading packages} % Loading package \protect\package{xargs} to declare commands with optional arguments. +% Loading package \package{xparse} to declare fully expandable commands with optional argument. Ideally, we should use only \package{xparse} and not \package{xargs}. For historical reasons, we use both. % \protect\package{Etoolbox} is also used to make code clearer - for example, in dynamic command names (which can replace \protect\cs{csname} etc.). % Use \protect\package{suffix} to declare commands with a starred version, \protect\package{xstring} to work with strings, \protect\package{ifluatex} and \protect\package{ifxetex} to test if \LuaTeX\ or \XeTeX\ is running, and \protect\package{ragged2e} to manage ragged justification for paragraphed notes. % \begin{macrocode} \RequirePackage{xargs} +\RequirePackage{xparse}% \RequirePackage{etoolbox} \@ifl@t@r\fmtversion{2015/10/01} {\ifboolexpr{not test{\@ifl@t@r\fmtversion{2016/03/31}} or (test{\ifdefstring{\fmtversion}{2016/03/31}} and test {\ifnumless{\patch@level}{3}})}% @@ -4866,7 +4899,7 @@ \global\@afterindenttrue%In order to retablish normal feature if the \begingroup was not here \initnumbering@quote \ifwidthliketwocolumns% - \csuse{setwidthliketwocolumns@\columns@position}% + \setwidthliketwocolumns% \csuse{setpositionliketwocolumns@\columns@position}% \fi% \fi @@ -4895,6 +4928,11 @@ \global\sublines@false \global\let\next@page@num=\relax \global\let\sub@change=\relax + \global\last@page@num=-10000% + \ifdefined\line@numR% + \line@numR=\z@% + \last@page@numR=\z@% + \fi% \resetprevline@ \resetprevpage@num \global\stopmsdata@inserted@true% @@ -4913,6 +4951,7 @@ % to the right place. % \changes{v0.7.0}{2005/02/24}{Changed \protect\cs{endnumbering} for eledpar} % \changes{v1.12.5}{2014/08/31}{Allow to mix parallel columns and normal text when using \protect\cs{pausenumbering}} +% We define it using \cs{def} and not \cs{newcommand} because \LaTeX\ does not allow defining command whose name starts by \enquote{end} except if we are currently creating an environment, which is not the case here. % \begin{macrocode} \def\endnumbering{% \ifnumbering @@ -4951,13 +4990,22 @@ % % \begin{macro}{\pausenumbering} % \begin{macro}{\resumenumbering} +% \begin{macro}{\ifresumenumbering@start} +% \begin{macro}{\pausenumbering@page@num} % The \protect\cs{pausenumbering} macro is just the same as % \protect\cs{endnumbering}, but with the \protect\cs{ifnumbering} flag set to \verb"true", to % show that numbering continues across the gap.\footnote{Peter Wilson's thanks % to Wayne Sullivan,\index{Sullivan, Wayne} who suggested the idea % behind these macros.} +% The \cs{pausenumbering@page@num} counter stores the \cs{next@page@num} when the \cs{pause@numbering} is called. % \begin{macrocode} +\newcount\pausenumbering@page@num% \newcommand{\pausenumbering}{% + \ifx\next@page@num\relax% + \global\pausenumbering@page@num=0% + \else% + \global\pausenumbering@page@num=\next@page@num% + \fi% \ifautopar\global\autopar@pausetrue\fi% \endnumbering\global\numberingtrue} % \end{macrocode} @@ -4966,26 +5014,30 @@ % without resetting the various counters. Note that no check is made % by \protect\cs{resumenumbering} to ensure that \protect\cs{pausenumbering} was actually % invoked. +% The boolean \cs{ifresumenumbering@start} is set to true. That allows us to avoid resetting the line number at the first line of \cs{resumenumbering} if the lineation is by page. +% This boolean is set to false after the first action. % \changes{v0.7.0}{2005/02/24}{Changed \protect\cs{resumenumbering} for eledpar} % \changes{v1.12.5}{2014/08/31}{Debug \protect\cs{resumenumbering}} % \begin{macrocode} +\newif\ifresumenumbering@start% \newcommand*{\resumenumbering}{% \ifnumbering \ifautopar@pause\autopar\fi \global\pst@rtedLtrue \global\advance\section@num \@ne + \global\resumenumbering@starttrue% \led@mess@SectionContinued{\the\section@num}% + \set@continuousnumberingforL% \line@list@stuff{\jobname.\extensionchars\the\section@num}% \l@dend@stuff \ifl@dpairing\else% \begingroup% \initnumbering@quote% \ifwidthliketwocolumns% - \csuse{setwidthliketwocolumns@\columns@position}% + \setwidthliketwocolumns% \csuse{setpositionliketwocolumns@\columns@position}% \fi% \fi% - \set@continuousnumberingforL% \else \led@err@NumberingShouldHaveStarted \endnumbering @@ -4996,14 +5048,18 @@ % \end{macrocode} % \end{macro} % \end{macro} +% \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. +% \cs{set@continuousnumberingforl} sets the left line numbers and pstart counters 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}% + \global\appto\next@line@list@stuff{% + \expandafter\setlinenum\expandafter{\the\line@numR}% + }% \fi% \ifnum\last@page@numR>\last@page@num% \global\last@page@num=\last@page@numR% @@ -5893,12 +5949,6 @@ % % \begin{macrocode} \get@linelistfile{#1}% - \ifcontinuousnumberingwithcolumns - \global\page@numR=\page@numR\relax - \global\last@page@numR=\last@page@numR\relax - \global\page@num=\page@num\relax - \global\last@page@num=\last@page@num\relax - \fi \@stopmsd%Security if last \endms{} is forgotten \unless\ifledRcol%Get the last line of the last page \csnumgdef{@lastabsline@forpage@\the\page@num}{\the\absline@num}% @@ -6071,6 +6121,7 @@ \newcommand*{\@nl@reg}{% \ifx\l@dchset@num\relax \else \advance\absline@num \@ne + \csgdef{l@dchset@num@\the\absline@num}{}%To remember this line have been marked by a \setlinenum \set@line@action \let\l@dchset@num=\relax \advance\absline@num \m@ne @@ -6147,11 +6198,13 @@ \csnumgdef{@lastabsline@forpageR@\the\page@numR}{\the\absline@numR}% \csnumgdef{@lastline@forpageR@\the\page@numR}{\the\line@numR}% \ifbypage@R - \line@numR \z@ \subline@numR \z@ + \ifx\l@dchset@num\relax%Not resetting if preceded by a \setlinenum + \line@numR \z@ \subline@numR \z@% + \fi% \fi - \page@numR=#1\relax - \last@page@numR=#1\relax - \def\next@page@numR{#1}% + \global\page@numR=#1% + \global\last@page@numR=#1% + \global\def\next@page@numR{#1}% \fi \else \ifnum #1=\last@page@num @@ -6159,11 +6212,13 @@ \csnumgdef{@lastabsline@forpage@\the\page@num}{\the\absline@num}% \csnumgdef{@lastline@forpage@\the\page@num}{\the\line@num}% \ifbypage@ - \line@num \z@ \subline@num \z@ + \ifx\l@dchset@num\relax%Not resetting if preceded by a \setlinenum + \line@num \z@ \subline@num \z@% + \fi% \fi - \page@num=#1\relax - \last@page@num=#1\relax - \def\next@page@num{#1}% + \global\page@num=#1% + \global\last@page@num=#1% + \global\def\next@page@num{#1}% \listxadd{\normal@page@break}{\the\absline@num} \fi \fi} @@ -6782,11 +6837,14 @@ % \end{macrocode} % \end{macro} % \begin{macro}{\line@list@stuff} +% \begin{macro}{\next@line@list@stuff} % The \protect\cs{line@list@stuff}\marg{file} macro, which % is called by \protect\cs{beginnumbering}, performs % all the line-list operations needed at the start of a section. % Its argument is the name of the line-list file. +% \changes{v2.24.0}{2017/08/17}{Add \protect\cs{next@line@list@stuff} internal hook.} % \begin{macrocode} +\let\next@line@list@stuff\relax% \newcommand*{\line@list@stuff}[1]{% % \end{macrocode} % First, define a toggle set to true when we are not in the first run. @@ -6809,9 +6867,9 @@ % \protect\cs{line@list@stuff}} % \changes{v0.7.0}{2005/02/25}{Deleted \protect\cs{page@start} from \protect\cs{line@list@stuff}} % \changes{v1.15.1}{2015/01/16}{Revert modification of 1.5.2 which makes bug with numbering. Leave vertical mode to solve spurious space before minipage.} +% \Macpackage and \parpackage can fill the \cs{next@line@list@stuff} hook between a \cs{endnumbering} (associated with numbered file $n$) and a \cs{beginnumbering} (associated with numbered file $n+1$). It allows adding content to the numbered file $n+1$ and not $n$. % \begin{macrocode} \iffirst@linenum@out@ - \immediate\closeout\linenum@out% \global\first@linenum@out@false% \immediate\openout\linenum@out=\l@auxdir#1\relax% \immediate\write\linenum@out{\string\line@list@version{\this@line@list@version}}% @@ -6833,11 +6891,14 @@ \ifl@dpaging% \write\linenum@out{\string\@par@sync@option{\@par@this@sync@option}}% \fi% - \fi} + \fi% + \next@line@list@stuff% + \global\let\next@line@list@stuff\relax% +}% % \end{macrocode} % \end{macro} -% +% \end{macro} % \begin{macro}{\new@line} % The \protect\cs{new@line} macro sends the \protect\cs{@nl} command to the line-list % file, to mark the start of a new text line, and its page number. @@ -7805,16 +7866,8 @@ % \begin{macrocode} \newcommand{\get@sw@txt}[1]{% \begingroup% + \swnoexpands% %. \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} % Using case sensibility option. % \begin{macrocode} \ifsw@caseinsensitive% @@ -7834,6 +7887,33 @@ }% % \end{macrocode} % \end{macro} +% Allow some macros inside \cs{sameword}. +% We use \cs{RenewExpandableDocumentCommand} to get expandable command with optional argument. +% Cf. \url{https://tex.stackexchange.com/a/384783/7712}. +% \begin{macro}{\sw@noexpand} +% \begin{macrocode} +\newcommand{\swnoexpands}{% + \let\sameword\@firstofone%Allow to have nested \sameword + \let\emph\@firstofone% + \let\textit\@firstofone% + \let\textbf\@firstofone% + \let\textsc\@firstofone% + \let\framebox\@firstofone% + \RenewExpandableDocumentCommand{\edindex}{om}{}% + \ifdefined\index% + \RenewExpandableDocumentCommand{\index}{om}{}% + \fi% + \let\selectlanguage\@gobble% + \let\foreignlanguage\@secondoftwo% + \ifdefined\xpg@loaded% + \renewcommand\do[1]{% + \expandafter\RenewExpandableDocumentCommand\expandafter{\csname text##1\endcsname}{om}{####2}% + }% + \expandafter\docsvlist\expandafter{\xpg@loaded}% + \fi% +}% +% \end{macrocode} +% \end{macro} % \begin{macro}{\sameword} % \changes{v1.23.0}{2015/05/18}{In order to allow use of \protect\cs{sameword} with inputenc, we detokenize its mandatory argument before using it in control sequence names.} % The hight level macro \protect\cs{sameword}, used by the editor. @@ -8156,8 +8236,8 @@ \fi% \fi% \numberedpar@true% - \iflabelpstart\protected@edef\@currentlabel% - {\p@pstart\thepstart} + \iflabelpstart% + \protected@edef\@currentlabel{\p@pstart\thepstart}% \fi% \l@dzeropenalties% \@at@start@every@pstart% @@ -8612,14 +8692,32 @@ % % \begin{macro}{\l@dlsn@te} % \begin{macro}{\l@drsn@te} -% Zero width boxes of the left and right side notes, together with their kerns. +% Zero width boxes of the left and right side notes, together with their kerns, and, eventually, with additional space if we are in parallel columns typesetting. % \changes{v0.7.0}{2005/02/18}{Added \protect\cs{l@dlsn@te} and \protect\cs{l@drsn@te} % for use in \protect\cs{do@line}} % \begin{macrocode} \newcommand{\l@dlsn@te}{% - \hb@xt@ \z@{\hss\box\l@dlp@rbox\kern\ledlsnotesep}} + \ifboolexpr{% + bool {l@dprintingcolumns}% + and bool {ledRcol@}% + }{% If we are on a right column + \@tempdima=\@morespace@leftnote@rightcolumn% + }{% + \@tempdima=\z@% + }% + \hb@xt@ \z@{\hss\box\l@dlp@rbox\kern\ledlsnotesep\hskip\@tempdima}% +}% \newcommand{\l@drsn@te}{% - \hb@xt@ \z@{\kern\ledrsnotesep\box\l@drp@rbox\hss}} + \ifboolexpr{% + bool {l@dprintingcolumns}% + and not bool {ledRcol@}% + }{% If we are on a left column + \@tempdima=\@morespace@rightnote@leftcolumn% + }{% + \@tempdima=\z@% + }% + \hb@xt@ \z@{\hskip\@tempdima\kern\ledrsnotesep\box\l@drp@rbox\hss}% +}% % \end{macrocode} % \end{macro} @@ -8733,11 +8831,28 @@ % \begin{macrocode} \ifnum\next@action>-1001 \global\page@num=\next@action - \global\@firstlineofpagetrue% + \ifresumenumbering@start% + \setbox0=\hbox{}%Required to get the correct page number, when the \resumenumbering is just after a \newpage + \ifnum\pausenumbering@page@num<\page@num% + \global\resumenumbering@startfalse% + \fi% + \fi% + \unless\ifresumenumbering@start% + \global\@firstlineofpagetrue% + \fi% \ifbypage@ - \global\line@num=\z@ \global\subline@num=\z@ - \resetprevline@ + \ifcsdef{l@dchset@num@\the\absline@num}% + {% + \global\csundef{l@dchset@num@\the\absline@num}% + }% + {% + \unless\ifresumenumbering@start% + \global\line@num=\z@ \global\subline@num=\z@% + \resetprevline@% + \fi% + }% \fi + \global\resumenumbering@startfalse% \add@msdata@firstlineofpage% % \end{macrocode} % @@ -8987,11 +9102,26 @@ \ifnum\@l@dtempcntb>\@ne \advance\@l@dtempcntb \page@num \fi - \ifodd\@l@dtempcntb - \gdef\l@drd@ta{\rlap{{\rightlinenum}}}% - \else - \gdef\l@dld@ta{\llap{{\leftlinenum}}}% - \fi + \ifboolexpr{% + bool {l@dprintingcolumns}% + and (% + (test {\ifdefstring{\linenum@OnlyPages@ForColumns}{left}}% + and test {\ifnumodd{\page@num}}% + )% + or% + (test {\ifdefstring{\linenum@OnlyPages@ForColumns}{right}}% + and not test {\ifnumodd{\page@num}}% + )% + )% + }% + {}% + {% + \ifodd\@l@dtempcntb% + \gdef\l@drd@ta{\rlap{{\rightlinenum}}}% + \else% + \gdef\l@dld@ta{\llap{{\leftlinenum}}}% + \fi% + }% \fi \fi \fi @@ -9334,7 +9464,7 @@ % of the paragraph. We can hope that is not % too far from the proper location, to which they will move on the next % run. -% First the first run, we don't flush the notes, +% For the first run, we do not flush the notes, % as that means all the notes will be added at the end of numbered section, % and so, very far of the expected position % \begin{macrocode} @@ -11712,7 +11842,7 @@ % \end{macro} % % \begin{macro}{\normalvfootnoteX} -% \changes{v1.5.1}{2013/08/16}{Fix bug with normal familiar footnotes when mixing RTL and LTR text.} +% \changes{v1.5.1}{2013/08/16}{Fix a bug with normal familiar footnotes when mixing RTL and LTR text.} % \protect\cs{normalvfootnoteX}\marg{series}\marg{text} does the \protect\cs{insert} for % the \meta{series} and calls the series' \protect\cs{footfmt...} to format the % \meta{text}. @@ -12582,7 +12712,7 @@ \let\old@columwidth=\columnwidth% \iftoggle{Xnoteswidthliketwocolumns@#1}% {% - \csuse{setwidthliketwocolumns@\columns@position}% + \setwidthliketwocolumns% \global\let\hsize@fornote=\hsize% }% {}% @@ -12596,7 +12726,7 @@ \let\old@columwidth=\columnwidth% \iftoggle{noteswidthliketwocolumnsX@#1}% {% - \csuse{setwidthliketwocolumns@\columns@position}% + \setwidthliketwocolumns% \global\let\hsize@fornote=\hsize% }% {}% @@ -13965,7 +14095,7 @@ % Otherwise, we understand the insinuated value is TRUE. % % For each ``hook'' command, we store the value in commands (first category) or a \protect\package{etoolbox}'s toggle (second category) which names are in the form \protect\cs{<hook>@<series>}. -% For example when calling \protect\cs{twolines}\marg{sq.}, we store \verb+sq.+ in commands \protect\cs{twolines@A}, \protect\cs{twolines@B}, \protect\cs{twolines@C}\ldots for each series defined for use with \macpackage, or, if the \oarg{series} optional argument was send, for each series of this argument. +% For example, when calling \protect\cs{twolines}\marg{sq.}, we store \verb+sq.+ in commands \protect\cs{twolines@A}, \protect\cs{twolines@B}, \protect\cs{twolines@C}\ldots for each series defined for use with \macpackage, or, if the \oarg{series} optional argument was send, for each series of this argument. % % These values are tested in some specific places, scattered in all the code, depending of their effects. % The default values are defined by the \protect\cs{newseries@} command. @@ -14759,12 +14889,10 @@ % \changes{v0.2.1}{2003/08/26}{Tweaked \protect\cs{edlabel} to get correct page numbers} % \changes{v0.14.0}{2012/04/04}{Tweaked \protect\cs{edlabel} to get correct line number if the command is first element of a paragraph.} % \changes{v1.18.0}{2015/02/23}{\protect\cs{edlabel} is now defined only one time for both \eledmac and \eledpar} -% \changes{v2.5.0}{2015/11/13}{Fix bug when calling\protect\cs{edlabel} in a footnotes of the rightside} +% \changes{v2.5.0}{2015/11/13}{Fix a bug when calling\protect\cs{edlabel} in a footnotes of the rightside} % \begin{macrocode} \newcommand*{\edlabel}[1]{% - \ifl@dpairing\ifautopar% - \strut% - \fi\fi% + \leavevmode% \@bsphack% \ifboolexpr{bool{ledRcol} or bool{ledRcol@}}{% \ifXnote@% @@ -14843,7 +14971,7 @@ %\begin{macro}{\advancelabel@refs} %\begin{macro}{\labelrefsparseline} %\begin{macro}{\labelrefsparsesubline} -% \changes{v1.4.1}{2012/11/16}{Fix bug with \protect\cs{edlabel}.} +% \changes{v1.4.1}{2012/11/16}{Fix a bug with \protect\cs{edlabel}.} %In cases where \protect\cs{edlabel} is the first element in a paragraph, we have a problem with line counts, because line counts change only at the first horizontal box of the paragraph. %Hence, we need to test \protect\cs{edlabel} if it occurs at the start of a paragraph. To do so, we use \protect\cs{ifvmode}. If the test is true, we must advance by one unit the amount of text we write into the \verb].aux] file. % We do so using \protect\cs{advancelabel@refs} command. @@ -15192,7 +15320,7 @@ % % \begin{macro}{\xxref} % \changes{v1.19.0}{2015/03/06}{\protect\cs{xxref} works also with right side numbers, when \protect\cs{@Rlineflag} is not empty.} -% \changes{v1.20.0}{2015/03/22}{Debug \protect\cs{xxref} when not loading \eledpar (fix bug added in 1.19.0).} +% \changes{v1.20.0}{2015/03/22}{Debug \protect\cs{xxref} when not loading \eledpar (Fix a bug added in 1.19.0).} % The \protect\cs{xxref} command takes two arguments, both of which are % labels, e.g., \protect\cs{xxref}\verb+{mouse}{elephant}+. It first does some % checking to make sure that the labels do exist (if one does not, diff --git a/Master/texmf-dist/source/latex/reledmac/reledpar.dtx b/Master/texmf-dist/source/latex/reledmac/reledpar.dtx index 1a5f3585957..1a810416c94 100644 --- a/Master/texmf-dist/source/latex/reledmac/reledpar.dtx +++ b/Master/texmf-dist/source/latex/reledmac/reledpar.dtx @@ -37,6 +37,7 @@ \usepackage[series={A,B},noend,noeledsec,nofamiliar]{reledmac} \usepackage{reledpar} \usepackage{suffix} +\usepackage{csquotes} \usepackage[english]{babel} \usepackage{graphicx,metalogo,longtable} \makeatletter @@ -217,58 +218,58 @@ % \changes{v1.11.0}{2015/01/23}{Compatibility of standard footnotes with some biblatex styles.} % \changes{v1.12.0}{2015/02/23}{Compatibility with \LuaLaTeX\ RTL languages.} % \changes{v1.13.0}{2015/03/06}{With parallel pages, long notes can now flow from the Left to the right side and from the Right to the left side.} -% \changes{v1.13.0}{2015/03/06}{Fix bug in shiftedpstarts when size difference between pstarts is very important.} +% \changes{v1.13.0}{2015/03/06}{Fix a bug in shiftedpstarts when size difference between pstarts is very important.} % \changes{v1.14.0}{2015/03/22}{The \protect\cs{newif}s are not followed by boolean values set to false, because it is the \TeX\ default setting.} -% \changes{v1.14.0}{2015/03/22}{Fix bug with line number position when using \protect\cs{eledsection} and similar commands for RTL texts with \LuaLaTeX.} +% \changes{v1.14.0}{2015/03/22}{Fix a bug with line number position when using \protect\cs{eledsection} and similar commands for RTL texts with \LuaLaTeX.} % \changes{v1.15.0}{2015/04/13}{Add \protect\cs{AtEveryPstartCall}.} % \changes{v1.15.0}{2015/04/13}{Fix vertical spurious space before right \protect\cs{eledchapter} (bug added in v1.13.0).} % \changes{v1.15.0}{2015/04/13}{Prevent vertical space when using \protect\cs{AtEveryPstart} or \protect\cs{AtEveryPend} with a command which prints nothing} -% \changes{v1.16.0}{2015/05/18}{Fix bug with nofamiliar / nocritical option of eledmac.} +% \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}…\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}{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 bug when adding empty lines before a \protect\cs{pend} in combination with some specific penalties setting.} +% \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.1.0}{2015/07/27}{Fix bug with \protect\cs{setparledgroupnotespacing} with the shiftedpstarts 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}.} -% \changes{v2.1.0}{2015/07/27}{Fix bug when using \protect\cs{pagenumbering} with memoir (bug added in v2.0.0).} -% \changes{v2.1.0}{2015/07/27}{Fix bug when using \protect\cs{eledsection} and related on right pages when page width is short.} +% \changes{v2.1.0}{2015/07/27}{Fix a bug when using \protect\cs{pagenumbering} with memoir (bug added in v2.0.0).} +% \changes{v2.1.0}{2015/07/27}{Fix a bug when using \protect\cs{eledsection} and related on right pages when page width is short.} % \changes{v2.2.0}{2015/08/08}{\protect\env{astanza} environment can take an optional argument, which will be the optional argument of \protect\cs{pstart} started by this environment.} % \changes{v2.2.0}{2015/08/08}{New tools to number stanza} -% \changes{v2.2.1}{2015/08/13}{Fix bug with optional argument of last left \protect\cs{pend}} -% \changes{v2.3.0}{2015/09/05}{Fix bug with title number in parallel columns} +% \changes{v2.2.1}{2015/08/13}{Fix a bug with optional argument of last left \protect\cs{pend}} +% \changes{v2.3.0}{2015/09/05}{Fix a bug with title number in parallel columns} % \changes{v2.3.0}{2015/09/05}{Change some internal codes in order to provide compatibility with \LaTeX\ release of october~2015} % \changes{v2.3.0}{2015/09/05}{New line setting command suffixed by R to set only the right side.} % \changes{v2.4.0}{2015/09/29}{New way of (not) synchronizing the parallel pages.} % \changes{v2.4.0}{2015/09/29}{Option to switch to \protect\cs{mainmatter} when calling \protect\cs{Pages}} % \changes{v2.5.0}{2015/10/14}{New commands \protect\cs{linenummarginR} and \protect\cs{linenummargin*}} -% \changes{v2.5.0}{2015/10/14}{Fix bug introduced in v1.15.0 which made hanging indentation in verse not work anymore.} +% \changes{v2.5.0}{2015/10/14}{Fix a bug introduced in v1.15.0 which made hanging indentation in verse not work anymore.} % \changes{v2.5.0}{2015/10/14}{Disable empty lines as paragraph in astanza.} % \changes{v2.5.1}{2015/10/19}{Fix spurious space when using optional argument of \protect\env{astanza} environment (introduced in v2.5.0).} -% \changes{v2.5.2}{2015/10/26}{Fix bug introduced in v2.5.0 with \protect\cs{linenummargin}, \protect\cs{firstlinenum}, \protect\cs{linenumincrement}, \protect\cs{firstsublinenum}, \protect\cs{sublinenumincrement}.} +% \changes{v2.5.2}{2015/10/26}{Fix a bug introduced in v2.5.0 with \protect\cs{linenummargin}, \protect\cs{firstlinenum}, \protect\cs{linenumincrement}, \protect\cs{firstsublinenum}, \protect\cs{sublinenumincrement}.} % \changes{v2.6.0}{2015/11/13}{\protect\cs{printlinesR} deleted} % \changes{v2.6.0}{2015/11/13}{\protect\cs{Xlineflag} and \protect\cs{Xendlineflag} added} -% \changes{v2.6.0}{2015/11/13}{Fix bug with footnote numbering when using the same series of familiar footnotes on both sides.} +% \changes{v2.6.0}{2015/11/13}{Fix a bug with footnote numbering when using the same series of familiar footnotes on both sides.} % \changes{v2.6.0}{2015/11/13}{Error message when calling \protect\cs{Pages} or \protect\cs{Columns} without previous \protect\env{pages} or \protect\env{pairs} environnment.} % \changes{v2.6.0}{2015/11/13}{Fix compatibility with \protect\package{babel} (broken in v.2.0.0).} % \changes{v2.6.0}{2015/11/13}{No error messages about ends of left / right page when using the \protect\cs{syntaxonly} command of the \protect\package{syntonly} package.} % \hyphenation{man-u-script man-u-scripts} -% \changes{v2.6.0}{2015/11/13}{Fix bug with right side title number when using title commands before \protect\env{pages} or \protect\env{columns} environments.} +% \changes{v2.6.0}{2015/11/13}{Fix a bug with right side title number when using title commands before \protect\env{pages} or \protect\env{columns} environments.} % \changes{v2.6.1}{2015/11/20}{Fix bug, introduced in v2.6.0, with footnote numbering when using \protect\package{perpage} package.} % \changes{v2.6.2}{2015/11/29}{Fix (again) bugs with footnote numbering in parallel typesetting while using \protect\env{ledgroup} environments (bug added in v2.6.0).} -% \changes{v2.6.2}{2015/11/29}{Fix bug (added in v2.6.0) with footnote numbering in parallel typesetting while using \protect\package{polyglossia} with specific numbering systems (like Greek).} +% \changes{v2.6.2}{2015/11/29}{Fix a bug (added in v2.6.0) with footnote numbering in parallel typesetting while using \protect\package{polyglossia} with specific numbering systems (like Greek).} % \changes{v2.6.3}{2015/12/13}{Fix spurious dot when using \protect\cs{linenummargin} on right side (introduced in v2.5.0).} % \changes{v2.7.0}{2016/01/15}{\protect\macpackage cross-referencing can take advantage of \protect\package{xr} package.} -% \changes{v2.7.1}{2016/03/06}{Fix bug added in \protect\reledmac~2.8.2, when typesetting parallel text just after a sectioning command} +% \changes{v2.7.1}{2016/03/06}{Fix a bug added in \protect\reledmac~2.8.2, when typesetting parallel text just after a sectioning command} % \changes{v2.8.0}{2016/03/23}{{Allow continuing line numbering between normal text and parallel text, using \protect\cs{pausenumbering} and \protect\cs{resumenumbering} and the \protect\option{continuousnumberingwithcolumns} options.}} -% \changes{v2.8.0}{2016/03/23}{Fix bug when the right line number style is not the same to the left line number style} +% \changes{v2.8.0}{2016/03/23}{Fix a bug when the right line number style is not the same to the left line number style} % \changes{v2.8.0}{2016/03/23}{Add \protect\cs{linenumberLevenifblanktrue} and \protect\cs{linenumberRevenifblank} commands} % \changes{v2.9.0}{2016/05/08}{Add \protect\cs{AtEveryStanza} and \protect\cs{AtEveryStopStanza}.} % \changes{v2.9.0}{2016/05/08}{More specific error messages.} @@ -276,8 +277,8 @@ % \changes{v2.10.0}{2016/06/02}{Add new tools to make apparatuses of manuscripts} % \changes{v2.11.0}{2016/06/16}{Compatibility with \protect\reledmac's \protect\option{auxdir} option.} % \changes{v2.12.0}{2016/07/01}{Add \protect\cs{edtextlater} and \protect\cs{edtextnow}.} -% \changes{v2.12.0}{2016/07/01}{Fix bug with \protect\cs{lineationR}.} -% \changes{v2.12.0}{2016/07/01}{Fix bug with \protect\cs{AtBeginPairs}.} +% \changes{v2.12.0}{2016/07/01}{Fix a bug with \protect\cs{lineationR}.} +% \changes{v2.12.0}{2016/07/01}{Fix a bug with \protect\cs{AtBeginPairs}.} % \changes{v2.13.0}{2016/07/22}{Compatibility with the new features of \protect\macpackage 2.15.0} % \changes{v2.13.1}{2016/09/26}{Simplification of the code concerning the sectioning command} % \changes{v2.14.0}{2016/10/02}{New commands to have specific line margins for text running in parallel columns} @@ -285,32 +286,40 @@ % \changes{v2.14.0}{2016/10/02}{When indexing texts in sidenotes with \protect\cs{edtext}, referring to the line number where the sidenote is called.} % \changes{v2.14.0}{2016/10/02}{More explicit error message when the stanza indentation is not defined.} % \changes{v2.14.0}{2016/10/02}{Error message when left / right side are not defined.} -% \changes{v2.14.1}{2016/10/16}{Fix bug with vertical space before sectioning command in optional argument of \protect\cs{pstart} (bug added in v2.13.1).} -% \changes{v2.14.1}{2016/10/16}{Fix bug when using \protect\cs{markboth} on \protect\cs{doinsidelineLhook} and \protect\cs{doinsidelineRhook}.} +% \changes{v2.14.1}{2016/10/16}{Fix a bug with vertical space before sectioning command in optional argument of \protect\cs{pstart} (bug added in v2.13.1).} +% \changes{v2.14.1}{2016/10/16}{Fix a bug when using \protect\cs{markboth} on \protect\cs{doinsidelineLhook} and \protect\cs{doinsidelineRhook}.} % \changes{v2.14.2}{2016/10/31}{Fix spurious space with \protect\cs{edtextlater}.} -% \changes{v2.14.3}{2016/11/04}{Fix bug in \protect\cs{edtextnow}.} +% \changes{v2.14.3}{2016/11/04}{Fix a bug in \protect\cs{edtextnow}.} % \changes{v2.14.4}{2016/11/14}{Take into account \protect\cs{linenumberstyle} when using \protect\cs{edlineref}.} % \changes{v2.15.0}{2016/12/12}{Add \protect\option{movecolumnspositiononrightpage} option.} % \changes{v2.15.0}{2016/12/12}{New macro \protect\cs{sidenotemarginR}, fix default value to right.} -% \changes{v.2.15.0}{2016/12/12}{Fix bug with \protect\cs{msdata} when using multiple \protect\cs{beginnumbering}…\protect\cs{endnumbering}} -% \changes{v2.15.0}{2016/12/12}{Fix bug about space before sectioning commands after a pairs environment (bug added in v.~2.14.4).} -% \changes{v2.15.0}{2016/12/12}{Fix bug with page break when using \protect\cs{columns} (bug added in v.~2.14.1).} +% \changes{v.2.15.0}{2016/12/12}{Fix a bug with \protect\cs{msdata} when using multiple \protect\cs{beginnumbering}…\protect\cs{endnumbering}} +% \changes{v2.15.0}{2016/12/12}{Fix a bug about space before sectioning commands after a pairs environment (bug added in v.~2.14.4).} +% \changes{v2.15.0}{2016/12/12}{Fix a bug with page break when using \protect\cs{columns} (bug added in v.~2.14.1).} % \changes{v2.16.0}{2016/12/23}{Compatibility with \protect\cs{setmsdataposition}} % \changes{v2.16.1}{2017/01/03}{Restore sidenotes on left side, deleted by mistake in v2.16.0} % \changes{v2.16.2}{2017/01/25}{Change log message when numbered files still don't exist, in order to improve compatibility with \protect\emph{latexmk}.} -% \changes{v2.16.3}{2017/02/10}{Fix bug when setting \protect\cs{aftercolumnseparator}.} +% \changes{v2.16.3}{2017/02/10}{Fix a bug when setting \protect\cs{aftercolumnseparator}.} % \changes{v2.17.0}{2017/02/22}{Change code for compatibility with \protect\reledmac 2.18.0} -% \changes{v2.17.1}{2017/03/26}{Fix bug with \protect\option{prevpgstyle} option when not using \protect\option{prevpgnotnumbered}.} -% \changes{v2.17.3}{2017/04/20}{Fix bug when using multiple sidenotes on the same line, on right side.} +% \changes{v2.17.1}{2017/03/26}{Fix a bug with \protect\option{prevpgstyle} option when not using \protect\option{prevpgnotnumbered}.} +% \changes{v2.17.3}{2017/04/20}{Fix a bug when using multiple sidenotes on the same line, on right side.} % \changes{v2.17.4}{2017/04/28}{Fix bugs with sublines in parallel typesetting.} % \changes{v2.18.0}{2017/05/04}{Compatibility with v2.20.0 of \protect\reledmac.} % \changes{v2.19.0}{2017/06/08}{Compatibility with v2.22.0 of \protect\reledmac.} -% \changes{v2.19.1}{2017/06/15}{Fix bug with \protect\cs{edtext} in sectioning command with shiftedpstarts mode.} -% \changes{v2.19.2}{2017/07/07}{\protect\option{continuousnumberingwithcolumns} works also for pstart number.} +% \changes{v2.19.1}{2017/06/15}{Fix a bug with \protect\cs{edtext} in sectioning command with shiftedpstarts mode.} +% \changes{v2.19.2}{2017/07/07}{\protect\option{continuousnumberingwithcolumns} also works for the pstart number.} % \changes{v2.19.3}{2017/07/17}{Fix a bug with \protect\option{nopbinverse} when using consecutive \protect\cs{Pages}.} % \changes{v2.19.3}{2017/07/17}{Do not print footnotes at the first run.} -% \changes{v2.19.4}{2017/07/31}{Optimisation of the code to not print footnotes at the first run.} -% \changes{v2.19.5}{2017/08/10}{Fix bug added in \protect\environment{astanza} in v.~2.18.0} +% \changes{v2.19.4}{2017/07/31}{Optimisation of the code in order to not print footnotes at the first run.} +% \changes{v2.19.5}{2017/08/10}{Fix a bug added in \protect\environment{astanza} in v.~2.18.0} +% \changes{v2.20.0}{2017/10/15}{Add \protect\option{sidenotesmarginpage} option to make the sidenotes refer to page margins and not column margins.} +% \changes{v2.20.0}{2017/08/17}{Fix incompatibility between \protect\cs{lineation}\protect\arg{page} and \protect\option{continuousnumberingwithcolumns} option} +% \changes{v2.20.0}{2017/08/17}{Fix a bug with \protect\cs{continuousnumberingwithcolumns} when using multiple series of continued numbering text. Now, the line number are correctly reset at each \protect\cs{beginnumbering}.} +% \changes{v2.20.0}{2017/08/17}{Fix a bug with \protect\option{continuousnumberingwithcolumns} and inner / outer notes and line numbering.} +% \changes{v2.20.0}{2017/08/17}{Add \protect\cs{linenumOnlyPagesForColumns} and \protect\cs{linenumOnlyPagesForColumnsR} to tell to print the line numbers associated with a column only on some specific pages (for example, only on right pages).} +% \changes{v2.20.0}{2017/08/17}{Fix a bug with \protect\option{continuousnumberingwithcolumns} when a \protect\cs{beginnumbering} is called after an other \protect\cs{beginnumbering}…\protect\cs{endnumbering}.} +% \changes{v2.20.0}{2017/08/17}{Fix a bug with \protect\option{widthliketwocolumns} when manually setting \protect\cs{beforecolumnseparator} and \protect\cs{aftercolumnseparator}.} +% \changes{v2.20.0}{2017/08/17}{Fix compatibility between \protect\option{continuousnumberingwithcolumns} and \protect\cs{numberpstartfalse}.} % ^^A PW added following as the definitions are at some unknown elsewhere % % \newcommand{\egstart}{% @@ -423,6 +432,8 @@ % column to be the same as the width of the text printed in two parallel % columns with \parpackage. This is useful when alternating between normal and % parallel typesetting.\footnote{This option can either be used on \macpackage or \parpackage.} +% \item [continuousnumberingwithcolumns] allow you to alternate between normal typesetting and parallel column typesetting without resetting the line number (see \reff{continuousnumberingwithcolumns}). +% \item [sidenotesmarginpage] makes the sidenotes be placed on the margin of the page and not on the margin of the columns. % \item [sameparallelpagenumber] sets page numbers on facing pages to the same value. % \item [prevpgnotnumbered] enables that the page before facing pages (the one % automatically inserted to start parallel pages on a left page) is not @@ -589,9 +600,17 @@ % In most cases, you should use \protect\cs{widthliketwocolumns} in combination with \protect\cs{Xnoteswidthliketwocolumns} and \protect\cs{notesXwidthliketwocolumns} to align the critical/familiar footnotes with the two colums. % See \macpackage's handbook for more details. % -% If you want to have continuous line numbers between multiple columns and single columns, use the \option{continuousnumberingwithcolumns} option when loading \macpackage or \parpackage. +% \label{continuousnumberingwithcolumns}If you want to have continuous line numbers between multiple columns and single columns, use the \option{continuousnumberingwithcolumns} option when loading \macpackage or \parpackage. % You will need to use \cs{pausenumbering}\ldots\cs{resumenumbering} instead of \cs{endnumbering}\ldots{endnumbering} (see \reff{reledmac-pause}). % +% The first time you start \textbf{a left column or a single column}, use \cs{beginnumbering}, then use \cs{resumenumbering}. When you stop a left or a single column, use \cs{pausenumbering}, except the last time, where you must use \cs{endnumbering}. +% +% The first time you start \textbf{a right column}, use \cs{beginnumbering}, then use \cs{resumenumbering}. When you stop a right column, use \cs{pausenumbering}, except the last time, where you must use \cs{endnumbering}. +% +% \subsubsection{Schemas of column typesetting} +% Domenico Cufalo wrote a schema of the parallel column typesetting parameters, with explanations. +% You can read the file \href{run:doc-more/page-typesetting-columns.pdf}{doc-more/page-typesetting-columns.pdf}. +% % \subsection{Note about \cs{AtEveryPstart*} and \cs{AtEveryPend*}} % The content of \cs{AtEveryPstart} / \cs{AtEveryPend} (without star) is added before every \cs{pstart} / after every \cs{pend}, respecting the left / right side. % @@ -969,7 +988,7 @@ % 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. -% \subsection{Lineation system} +% \subsection{First line number and line number increment} % \DescribeMacro{\firstlinenum} % \DescribeMacro{\linenumincrement} % \DescribeMacro{\firstsublinenum} @@ -987,7 +1006,6 @@ % However, these commands apply to right side when they are called inside a \environment{left} environment. % However, such features should not be used any more. The recommended practice is to add all setting commands to the preamble. %} -% % \DescribeMacro{\firstlinenum*} % \DescribeMacro{\linenumincrement*} % \DescribeMacro{\firstsublinenum*} @@ -999,7 +1017,7 @@ % \DescribeMacro{\firstsublinenumR} % \DescribeMacro{\sublinenumincrementR} % The suffixed version change the right side, without regard to the position they are called. -% +% \subsection{Lineation system} % \DescribeMacro{\lineationR} % \protect\cs{lineationR} macro is the equivalent of \macpackage \protect\cs{lineation} macro for the right side. % \DescribeMacro{\lineation*} @@ -1009,7 +1027,7 @@ % \Macpackage allows you to define a \cs{linenumberlist} to explicitly define (\reff{reledmac-linenumberlist}) in which line the line number will be printed. % In parallel typesetting, this command affects only left side. % For right side, you have to define \cs{linenumberlistR}. -% +% \subsection{Line number style} % \DescribeMacro{\linenumberstyleR} % \DescribeMacro{\sublinenumberstyleR} % \DescribeMacro{\linenumberstyle*} @@ -1017,7 +1035,7 @@ % \cs{linenumberstyleR} is the equivalent of \macpackage \cs{linenumberstyle} for right text. % \cs{sublinenumberstyleR} is the equivalent of \macpackage \cs{sublinenumberstyle} right text. % The starred version are for both side. - +% \subsection{Line number margin} % \DescribeMacro{\linenummarginR} % \DescribeMacro{\linenummargin*} % \cs{linenummarginR}\marg{margin} sets the line margin for right side. @@ -1033,6 +1051,31 @@ % % In this case, you can use \cs{linenummarginColumns}, which overrides the default setting for the left column, \cs{linenummarginColumnsR} which overrides the default setting for the right column, and \cs{linenummarginColumns*}, which overrides the default for both left and right columns. % +% \DescribeMacro{\linenumOnlyPagesForColumns} +% \DescribeMacro{\linenumOnlyPagesForColumnsR} +% Another usual case is when you have text in parallel columns and want to get line numbers only on the outer margin. +% In this case, you need to get line numbers on the left side of the left column on left pages and on the right side of the right column on the right pages. +% +% Reciprocally, if you want to get line numbers only on the inner margin, you need to get line number on the right side of the right column on left pages and on the left side of the left column on the right pages. +% +% In the two cases, you need, for one column, to have line numbers only on one page of a double pages. +% +% You can use \cs{linenumOnlyPagesForColumns} and \cs{linenumOnlyPagesForColumnsR} to get this result: +% \begin{verbatim} +% \linenummargin{left} +% \linenummarginR{right} +% % To get only on the outer margin +% \linenumOnlyPagesForColumns{left} +% \linenumOnlyPagesForColumnsR{right} +% % To get only on the inner margin +% \linenumOnlyPagesForColumns{right} +% \linenumOnlyPagesForColumnsR{left} +% % To get on the inner or the outer margin +% \linenumOnlyPagesForColumns{} +% \linenumOnlyPagesForColumnsR{} +% \end{verbatim} +% Note that these settings only apply when we are typesetting columns (as, if we are not typesetting columns, the \enquote{inner} and \enquote{outer} setting of \cs{linenummargin} and \cs{linenummarginR} are enough). +% \subsection{Line flag} % \DescribeMacro{\setRlineflag}\label{Rlineflag} % A ``R'' is appended to the line numbers of the % right texts. @@ -1176,6 +1219,9 @@ % The \cs{sidenotemarginR} defines the margin of the sidenote for the right side. % % You can use \protect\cs{sidenotemargin*} to define it for both sides. +% +% When typesetting parallel columns, the margin where a sidenote is placed is one of the margins of the column the sidenote is called. +% However, you can load \parpackage with the \option{sidenotesmarginpage} to use the margin of the page, and not of the column. % \section{Parallel ledgroups} % \subsection{General} % \changes{v1.6.0}{2013/12/13}{Add tool and documentation for parallel ledgroups} @@ -1288,7 +1334,7 @@ % \begin{macrocode} %<*code> \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{reledpar}[2017/08/10 v2.19.5 reledmac extension for parallel texts]% +\ProvidesPackage{reledpar}[2017/08/17 v2.20.0 reledmac extension for parallel texts]% % \end{macrocode} % \subsection{Package's requirement} @@ -1355,7 +1401,7 @@ }% % \end{macrocode} % \end{macro} -% \subsubsection{Position option} +% \subsubsection{Position options} % \begin{macro}{\ifmovecolumnspositiononrightpage} % The \cs{ifmovecolumnspositiononrightpage} boolean is set to true if, for a right page, we want the left column become a right column and the right column become a left column. % \begin{macrocode} @@ -1365,6 +1411,15 @@ }% % \end{macrocode} % \end{macro} +% \begin{macro}{if@sidenotesmarginpage} +% With the \option{sidenotesmarginpage}, a left sidenote called in a right column will be printed at the left of the page, and a right sidenote called in a left column will be printed at the right of the page. +% \begin{macrocode} +\newif\if@sidenotesmarginpage% +\DeclareOptionX{sidenotesmarginpage}{% + \@sidenotesmarginpagetrue% +}% +% \end{macrocode} +% \end{macro} % \subsubsection{Other options} % The \verb+parledgroup+ can be called either on \macpackage or \parpackage. % \begin{macrocode} @@ -1728,16 +1783,19 @@ \global\sublines@Rfalse \global\let\next@page@numR\relax \global\let\sub@change\relax + \global\last@page@numR=-10000% \global\stopmsdata@inserted@true% \global\let\@msdata@list\relax% \global\csundef{@msdata@\add@msd@cR @dataR}% \ifcontinuousnumberingwithcolumns% - \addtocounter{pstartR}{1}% + \ifnumberpstart% + \addtocounter{pstartR}{1}% + \fi% \else% \setcounter{pstartR}{1}% \fi% - \set@continuousnumberingforR% \message{Section \the\section@numR R }% + \set@continuousnumberingforR% \line@list@stuffR{\jobname.\extensionchars\the\section@numR R}% \l@dend@stuff \begingroup @@ -1845,24 +1903,34 @@ % % \begin{macro}{\pausenumberingR} % \begin{macro}{\resumenumberingR} +% \begin{macro}{\ifresumenumberingR@start} +% \begin{macro}{\pausenumbering@page@numR} % These are the right text equivalents of \protect\cs{pausenumbering} and % \protect\cs{resumenumbering}. % \changes{v1.8.3}{2014/08/31}{Debug \protect\cs{resumenumberingR}} % \begin{macrocode} +\newcount\pausenumbering@page@numR% \newcommand*{\pausenumberingR}{% + \ifx\next@page@numR\relax% + \global\pausenumbering@page@numR=0% + \else% + \global\pausenumbering@page@numR=\next@page@numR% + \fi% \endnumberingR\global\numberingRtrue} +\newif\ifresumenumberingR@start% \newcommand*{\resumenumberingR}{% \ifnumberingR \global\pst@rtedRtrue \global\advance\section@numR \@ne + \global\resumenumberingR@starttrue% \led@mess@SectionContinued{\the\section@numR R}% + \set@continuousnumberingforR% \line@list@stuffR{\jobname.\extensionchars\the\section@numR R}% \l@dend@stuff \begingroup% \initnumbering@sectcountR% - \set@continuousnumberingforR% \else - \led@err@numberingShouldHaveStarted + \led@err@NumberingShouldHaveStarted \endnumberingR \beginnumberingR \fi} @@ -1870,6 +1938,8 @@ % \end{macrocode} % \end{macro} % \end{macro} +% \end{macro} +% \end{macro} % % \begin{macro}{\memorydumpL} % \begin{macro}{\memorydumpR} @@ -1958,12 +2028,14 @@ % \end{macro} % % \begin{macro}{\set@continuousnumberingforR} -% \cs{set@continuousnumberingforR} set the right line numbers and pstart counter at a \cs{beginnumberingR} or a \cs{resumenumberingR} in order to have continuous numbering with single column text. +% \cs{set@continuousnumberingforR} set the right line number and the pstart counters at a \cs{beginnumberingR} or a \cs{resumenumberingR} in order to have continuous numbering with single column text. % \begin{macrocode} \newcommand{\set@continuousnumberingforR}{% \ifcontinuousnumberingwithcolumns% \ifnum\line@numR<\line@num% - \expandafter\setlinenum\expandafter{\the\line@num}% + \global\appto\next@line@list@stuffR{% + \expandafter\setlinenum\expandafter{\the\line@num}% + }% \fi% \ifnum\last@page@num>\last@page@numR% \global\last@page@numR=\last@page@num% @@ -2072,6 +2144,22 @@ % \end{macro} % \end{macro} % \end{macro} +% \begin{macro}{\linenumOnlyPagesForColumns} +% \begin{macro}{\linenumOnlyPagesForColumnsR} +% \cs{linenumOnlyPagesForColumns} and \cs{linenumOnlyPagesForColumnsR} make the line numbers be printed only on left/right page for the left/right column. +% \begin{macrocode} +\def\linenum@OnlyPages@ForColumns{}% +\newcommand{\linenumOnlyPagesForColumns}[1]{% + \gdef\linenum@OnlyPages@ForColumns{#1}% +}% + +\def\linenum@OnlyPages@ForColumnsR{}% +\newcommand{\linenumOnlyPagesForColumnsR}[1]{% + \gdef\linenum@OnlyPages@ForColumnsR{#1}% +}% +% \end{macrocode} +% \end{macro} +% \end{macro} % \subsection{Setting lineation start and step} % \begin{macro}{\c@firstlinenumR} % \begin{macro}{\c@linenumincrementR} @@ -2405,6 +2493,7 @@ \newcommand{\@nl@regR}{% \ifx\l@dchset@num\relax \else \advance\absline@numR \@ne + \csgdef{l@dchset@num@R\the\absline@numR}{}%To remember this line have been marked by a \setlinenum \set@line@action \let\l@dchset@num\relax \advance\absline@numR \m@ne @@ -2732,7 +2821,7 @@ % % \begin{macro}{\@pstart} % \begin{macro}{\@pstartR} -% \cs{@pstart} and cs{@pstartR} allows us to know, when using \cs{nomaxlines} option, in which page we should start a pstart, and also how many empty lines we should let before starting this pstart at the begining of the page +% \cs{@pstart} and cs{@pstartR} allows us to know, when using \cs{nomaxlines} option, in which page we should start a pstart, and also how many empty lines we should let before starting this pstart at the beginning of the page % \begin{macrocode} \newcommand{\@pstart}[3]{% \ifcsdef{minpage@pstart@#1}% @@ -2801,12 +2890,17 @@ % \end{macro} % % \begin{macro}{\line@list@stuffR} +% \begin{macro}{\next@line@list@stuffR} % This is the right text version of the \protect\cs{line@list@stuff}\marg{file} % macro. It is called by \protect\cs{beginnumberingR} and performs % all the line-list operations needed at the start of a section. % Its argument is the name of the line-list file. % \changes{v1.10.1}{2015/01/16}{Revert modification of 1.4.2, which makes bugs with numbering. Leave vertical mode to solve spurious space before minipage.} +% \Macpackage and \parpackage can fill the \cs{next@line@list@stuffR} hook between a \cs{endnumberingR} (associated with numbered file $n$) and a \cs{beginnumberingR} (associated with numbered file $n+1$). It allows adding content to the numbered file $n+1R$ and not $nR$. +% \changes{v2.20.0}{2017/08/17}{Add \protect\cs{next@line@list@stuffR} internal hook.} % \begin{macrocode} + +\let\next@line@list@stuffR\relax% \newcommand*{\line@list@stuffR}[1]{% \global\newtoggle{notfirstrun@#1}% \IfFileExists{\l@auxdir#1}% @@ -2814,7 +2908,6 @@ {\global\togglefalse{notfirstrun@#1}}% \read@linelist{#1}% \iffirst@linenum@out@R - \immediate\closeout\linenum@outR \global\first@linenum@out@Rfalse \immediate\openout\linenum@outR=\l@auxdir#1% \immediate\write\linenum@outR{\string\line@list@version{\this@line@list@version}}% @@ -2827,10 +2920,14 @@ \fi% \closeout\linenum@outR% \openout\linenum@outR=\l@auxdir#1% - \fi} + \fi% + \next@line@list@stuffR% + \global\let\next@line@list@stuffR\relax% +}% % \end{macrocode} % \end{macro} +% \end{macro} % % \begin{macro}{\new@lineL} % The \protect\cs{new@lineL} macro sends the \protect\cs{@nl} command to the left text @@ -2953,7 +3050,7 @@ % We need to declare these options. % We also need box to store temporary the footnote not printed. % We check the \verb+nofamiliar+ and \verb+nocritical+ \macpackage\ options. -% \changes{v1.16.0}{2015/05/18}{Fix bug with \protect\cs{onlysideX}.} +% \changes{v1.16.0}{2015/05/18}{Fix a bug with \protect\cs{onlysideX}.} % \begin{macrocode} \unless\ifnofamiliar@% \csgdef{onlysideX@#1}{}% @@ -3456,8 +3553,9 @@ \@at@start@every@pstart% \hsize=\Lcolwidth% \numberedpar@true% - \iflabelpstart\protected@edef\@currentlabel% - {\p@pstartL\thepstartL}\fi% + \iflabelpstart% + \protected@edef\@currentlabel{\p@pstartL\thepstartL}% + \fi% % \end{macrocode} % Dump the optional arguments % \begin{macrocode} @@ -3540,8 +3638,9 @@ \@at@start@every@pstart% \hsize=\Rcolwidth% \numberedpar@true% - \iflabelpstart\protected@edef\@currentlabel% - {\p@pstartR\thepstartR}\fi% + \iflabelpstart% + \protected@edef\@currentlabel{\p@pstartR\thepstartR}% + \fi% \providetoggle{before@pstartR@\the\l@dnumpstartsR @par}% \ifboolexpr{% test {\ifstrempty{#1}}% @@ -3607,10 +3706,10 @@ \dump@pstartL@pc% \ifnumberpstart% \addtocounter{pstartL}{1}% + \ifcontinuousnumberingwithcolumns% + \addtocounter{pstart}{1}% + \fi% \fi - \ifcontinuousnumberingwithcolumns% - \addtocounter{pstart}{1}% - \fi% \parledgroup@beforenotes@save{L}% % \end{macrocode} % Dump content of the optional argument. @@ -3766,7 +3865,7 @@ % \changes{v0.11.0}{2012/06/11}{Change \protect\cs{do@lineL} and \protect\cs{do@lineR} to allow line numbering by pstart (like in eledmac 0.15).} % \changes{v1.8.0}{2014/08/05}{Change \protect\cs{do@lineR} and \protect\cs{do@lineR} to allow new sectioning commands.} % \begin{macro}{\do@lineL} -% \changes{v1.8.1}{2014/08/07}{Fix a bug with critical notes a the begining of a page, (maybe added by v1.8.0) (?).} +% \changes{v1.8.1}{2014/08/07}{Fix a bug with critical notes a the beginning of a page, (maybe added by v1.8.0) (?).} % The \protect\cs{do@lineL} macro is called to % do all the processing for a single line of left text. % \changes{v0.3.0}{2005/02/10}{Added \protect\cs{do@lineLhook} to \protect\cs{do@lineL}} @@ -3889,7 +3988,7 @@ % \end{macrocode} % \end{macro} % \begin{macro}{\add@apparatusL} -% The \cs{add@apparatusL} macro add apparatus for left lines, that is both footnotes and sidenotes. +% The \cs{add@apparatusL} macro adds apparatus for the left lines, apparatus is both footnotes and sidenotes. % \begin{macrocode} \newcommand{\add@apparatusL}{% \if@firstlineofpage% @@ -3950,7 +4049,7 @@ % The \protect\cs{do@lineR} macro is called to % do all the processing for a single line of right text. % \changes{v0.3.0}{2005/02/10}{Changed \protect\cs{do@lineR} similarly to \protect\cs{do@lineL}} -% \changes{v1.8.1}{2014/08/07}{Fix a bug with critical notes a the begining of a page, added by v1.8.0 (?).} +% \changes{v1.8.1}{2014/08/07}{Fix a bug with critical notes a the beginning of a page, added by v1.8.0 (?).} % \begin{macrocode} \newcommand*{\do@lineR}{% \let\linenumrepL\linenumrep% @@ -4071,7 +4170,7 @@ % \end{macro} % % \begin{macro}{\add@apparatusR} -% The \cs{add@apparatusR} macro add apparatus for right lines, that is both footnotes and sidenotes. +% The \cs{add@apparatusR} macro adds apparatus for the right lines, apparatus is both footnotes and sidenotes. % \begin{macrocode} \newcommand{\add@apparatusR}{% \if@firstlineofpageR% @@ -4220,11 +4319,23 @@ \@l@dtempcntb=\absline@numR \ifnum\@l@dtempcntb<\next@actionlineR\else \ifnum\next@actionR>-1001\relax - \@firstlineofpageRtrue% + \unless\ifresumenumberingR@start% + \@firstlineofpageRtrue% + \fi% \global\page@numR=\next@actionR \ifbypage@R - \global\line@numR \z@ \global\subline@numR \z@ + \ifcsdef{l@dchset@num@R\the\absline@numR}% + {% + \global\csundef{l@dchset@num@R\the\absline@numR}% + }% + {% + \unless\ifresumenumberingR@start% + \global\line@numR \z@% + \global\subline@numR \z@% + \fi% + }% \fi + \global\resumenumberingR@startfalse% \add@msdata@firstlineofpage% \else \ifnum\next@actionR<-4999\relax % 9/05 added relax here @@ -4369,11 +4480,26 @@ \ifnum\@l@dtempcntb>\@ne \advance\@l@dtempcntb by\page@numR \fi - \ifodd\@l@dtempcntb - \gdef\l@drd@ta{\rlap{{\rightlinenumR}}}% - \else - \gdef\l@dld@ta{\llap{{\leftlinenumR}}}% - \fi + \ifboolexpr{% + bool {l@dprintingcolumns}% + and (% + (test {\ifdefstring{\linenum@OnlyPages@ForColumnsR}{left}}% + and test {\ifnumodd{\page@numR}}% + )% + or% + (test {\ifdefstring{\linenum@OnlyPages@ForColumnsR}{right}}% + and not test {\ifnumodd{\page@numR}}% + )% + )% + }% + {}% + {% + \ifodd\@l@dtempcntb% + \gdef\l@drd@ta{\rlap{{\rightlinenumR}}}% + \else% + \gdef\l@dld@ta{\llap{{\leftlinenumR}}}% + \fi% + }% \fi \fi \fi @@ -4941,7 +5067,45 @@ % \end{macro} % \end{macro} % +% \begin{macro}{\@morespace@rightnote@leftcolumn} +% \begin{macro}{\@morespace@leftnote@rightcolumn} +% \begin{macro}{\get@sidenote@morespace@columns} +% If we are typesetting parallel columns, we may want a left sidenote called on the right column be put on the left of the page and not on the left of the column, +% and a right sidenote called on the left column be put on the right of the page and not on the right of the column. We store as an option in the \cs{if@sidenotesmarginpage} boolean. +% +% To do it, we need to add spaces, respectively defined on \cs{@morespace@leftnote@rightcolumn} and \cs{@morespace@rightnote@leftcolumn}. +% The \cs{get@sidenote@morespace@columns} calculate there two lengths. +% \begin{macrocode} +\newdimen\@morespace@leftnote@rightcolumn% +\newdimen\@morespace@rightnote@leftcolumn% + + +\newcommand{\get@sidenote@morespace@columns}{% +% \end{macrocode} +% The calculations are made only if \cs{if@sidenotesmarginpage} is TRUE. +% \begin{macrocode} + \if@sidenotesmarginpage% +% \end{macrocode} +% Now, we can calculate \cs{@morespace@leftnote@rightcolumn} and \cs{@morespace@rightnote@leftcolumn}. +% \begin{macrocode} + \global\@morespace@leftnote@rightcolumn=\dimexpr\intercolumns@width + \Lcolwidth\relax% + \global\@morespace@rightnote@leftcolumn=\dimexpr\intercolumns@width + \Rcolwidth\relax% +% \end{macrocode} +% If \cs{if@sidenotesmarginpage} is False +% \begin{macrocode} + \else% + \global\@morespace@leftnote@rightcolumn=\z@% + \global\@morespace@rightnote@leftcolumn=\z@% +% \end{macrocode} +% End of \cs{get@sidenote@morespace@columns}. +% \begin{macrocode} + \fi% +}% +% \end{macrocode} +% \end{macro} +% \end{macro} +% \end{macro} % \changes{v1.3.3}{2012/12/19}{Debugging the left notes of the right column.} % \changes{v1.3.4}{2013/07/03}{Allow use of commands in sidenotes, as introduced by eledmac 1.0.} % \changes{v1.8.0}{2014/08/05}{\protect\cs{l@dlsnote},\protect\cs{l@drsnote} and \protect\cs{l@dcsnote} defined only one time, in \protect\package{eledmac}. } @@ -5530,6 +5694,8 @@ \global\l@dpscL=\z@ \global\l@dpscR=\z@ \get@familiarfootnote@number% + \get@intercolumns@width% + \get@sidenote@morespace@columns% % \end{macrocode} % Check if there are chunks to be processed, and process them % two by two (left and right pairs). @@ -5658,7 +5824,157 @@ \hspace{\aftercolumnseparator}% \fi% }% -%\end{macrocode} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\get@intercolumns@width} +% \begin{macro}{\intercolumns@width} +% The \cs{intercolumns@width} is calculated by \cs{get@intercolumns@width}. +% This length depends of many parameters: +% \begin{itemize} +% \item Columns width; +% \item columns position; +% \item columns separator; +% \item space between columns and columns separator, which can be fixed by user or automatically calculated by \parpackage. +% \end{itemize} +% This length is never used directly, but it is used to calculate some other lengths. +% \begin{macrocode} +\newdimen\intercolumns@width% +\newcommand{\get@intercolumns@width}{% +% \begin{macrocode} + \global\intercolumns@width=\z@% + \ifdefstring{\columns@position}{C}% +% \end{macrocode} +% First case, the columns are centered. +% \begin{macrocode} + {% +% \end{macrocode} +% First sub-case, the width between columns is automatically calculated. +% \begin{macrocode} + \ifboolexpr{% + test {\ifdimless{\beforecolumnseparator}{\z@}}% + and test {\ifdimless{\aftercolumnseparator}{\z@}}% + }% + {% + \global\intercolumns@width=\dimexpr% + \columnrulewidth +% + (\textwidth - \Lcolwidth - \Rcolwidth - \columnrulewidth)*1/2% The total of the width before and after column separator + \relax% + }% + {}% +% \end{macrocode} +% Second sub-case, the width between column is fully determined by user setting. +% \begin{macrocode} + \ifboolexpr{% + test {\ifdimgreater{\beforecolumnseparator}{\z@}}% + and test {\ifdimgreater{\aftercolumnseparator}{\z@}}% + }% + {% + \global\intercolumns@width=\dimexpr% + \columnrulewidth + \beforecolumnseparator + \aftercolumnseparator% + \relax% + }% + {}% +% \end{macrocode} +% Third sub-case, the width before column separator is determined by user setting, but the width after column separator is automatically calculated. +% \begin{macrocode} + \ifboolexpr{% + test {\ifdimgreater{\beforecolumnseparator}{\z@}}% + and test {\ifdimless{\aftercolumnseparator}{\z@}}% + }% + {% + \global\intercolumns@width=\dimexpr% + \columnrulewidth + \beforecolumnseparator +% + (\textwidth - \Lcolwidth - \Rcolwidth - \columnrulewidth - \beforecolumnseparator) * 1/3% + \relax% + }% + {}% +% \end{macrocode} +% Fourth and last sub-case, the width before column separator is automatically calculated, but the width after column separator is determined by user setting. +% \begin{macrocode} + \ifboolexpr{% + test {\ifdimless{\beforecolumnseparator}{\z@}}% + and test {\ifdimgreater{\aftercolumnseparator}{\z@}}% + }% + {% + \global\intercolumns@width=\dimexpr% + \columnrulewidth + \aftercolumnseparator +% + (\textwidth - \Lcolwidth - \Rcolwidth - \columnrulewidth - \aftercolumnseparator) * 1/3% + \relax% + }% + {}% +% \end{macrocode} +% Now, we have finished with the case the columns are centered aligned. +% \begin{macrocode} + }% +% \end{macrocode} +% Other case, the columns are left or right aligned. +% \begin{macrocode} + {% +% \end{macrocode} +% First sub-case, the width between columns is automatically calculated. +% \begin{macrocode} + \ifboolexpr{% + test {\ifdimless{\beforecolumnseparator}{\z@}}% + and test {\ifdimless{\aftercolumnseparator}{\z@}}% + }% + {% + \global\intercolumns@width=\dimexpr% + \columnrulewidth +% + (\textwidth - \Lcolwidth - \Rcolwidth - \columnrulewidth)*2/3% The total of the width before and after column separator + \relax% + }% + {}% +% \end{macrocode} +% Second sub-case, the width between column is fully determined by user setting. +% \begin{macrocode} + \ifboolexpr{% + test {\ifdimgreater{\beforecolumnseparator}{\z@}}% + and test {\ifdimgreater{\aftercolumnseparator}{\z@}}% + }% + {% + \global\intercolumns@width=\dimexpr% + \columnrulewidth + \beforecolumnseparator + \aftercolumnseparator% + \relax% + }% + {}% +% \end{macrocode} +% Third sub-case, the width before column separator is determined by user setting, but the width after column separator is automatically calculated. +% \begin{macrocode} + \ifboolexpr{% + test {\ifdimgreater{\beforecolumnseparator}{\z@}}% + and test {\ifdimless{\aftercolumnseparator}{\z@}}% + }% + {% + \global\intercolumns@width=\dimexpr% + \columnrulewidth + \beforecolumnseparator +% + (\textwidth - \Lcolwidth - \Rcolwidth - \columnrulewidth - \beforecolumnseparator) * 1/2% + \relax% + }% + {}% +% \end{macrocode} +% Fourth and last sub-case, the width before column separator is automatically calculated, but the width after column separator is determined by user setting. +% \begin{macrocode} + \ifboolexpr{% + test {\ifdimless{\beforecolumnseparator}{\z@}}% + and test {\ifdimgreater{\aftercolumnseparator}{\z@}}% + }% + {% + \global\intercolumns@width=\dimexpr% + \columnrulewidth + \aftercolumnseparator +% + (\textwidth - \Lcolwidth - \Rcolwidth - \columnrulewidth - \aftercolumnseparator) * 1/2% + \relax% + }% + {}% +% \end{macrocode} +% We have finished with the case the columns are left or right aligned. +% \begin{macrocode} + }% +% \end{macrocode} +% End of \cs{get@intercolumns@width}. +% \begin{macrocode} +}% +% \end{macrocode} +% \end{macro} % \end{macro} % \begin{macro}{\print@leftcolumn} % \begin{macro}{\print@rightcolumn} @@ -5784,40 +6100,21 @@ % \end{macro} % \end{macro} % -% \begin{macro}{setwidthliketwocolumns@L} +% \begin{macro}{setwidthliketwocolumns} % \begin{macro}{setpositionliketwocolumns@L} % \begin{macro}{setnotepositionliketwocolumns@L} -% \begin{macro}{setwidthliketwocolumns@C} % \begin{macro}{setpositionliketwocolumns@C} % \begin{macro}{setnotepositionliketwocolumns@C} -% \begin{macro}{setwidthliketwocolumns@R} % \begin{macro}{setpositionliketwocolumns@R} % \begin{macro}{setnotepositionliketwocolumns@R} -% The \protect\cs{setwidth…} macros are called in \protect\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 \protect\cs{setwidthliketwocolumns} macro is called in \protect\cs{beginnumbering} in a \textbf{non-parallel} +% typesetting context, to fix the width of the lines to be vertically aligned with parallel columns. It is also called at the beginning of a note's group, if some options are enabled. % The \protect\cs{setposition…} macros are called in \protect\cs{beginnumbering} in a \textbf{non- parallel} typesetting context to fix the position of the lines. % The \protect\cs{setnoteposition…} macros are called in \protect\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 -% \begin{macrocode} - \newdimen\temp% - \temp=\hsize% -% \end{macrocode} -% Hsize : Left + Right width -% \begin{macrocode} - \hsize=\Lcolwidth% - \advance\hsize\Rcolwidth% -% \end{macrocode} -% Now, calculating the remaining space -% \begin{macrocode} - \advance\temp-\hsize% -% \end{macrocode} -% And multiply the hsize by 2/3 of this space -% \begin{macrocode} - \multiply\temp by 2% - \divide\temp by 3% - \advance\hsize\temp% +\newcommand{\setwidthliketwocolumns}{% + \get@intercolumns@width%As \columns is not necessary called before \setwidthliketwocolumns + \hsize=\dimexpr \Lcolwidth + \intercolumns@width + \Rcolwidth \relax% }% \newcommand{\setpositionliketwocolumns@L}{% @@ -5827,31 +6124,6 @@ \newcommand{\setnotespositionliketwocolumns@L}{% }% - -% \end{macrocode} -% \begin{macrocode} -\newcommand{\setwidthliketwocolumns@C}{% -% Temporary dimension, initially equal to the standard hsize, i.e. text width -% \end{macrocode} -% \begin{macrocode} - \newdimen\temp% - \temp=\hsize% -% Hsize : Left + Right width -% \end{macrocode} -% \begin{macrocode} - \hsize=\Lcolwidth% - \advance\hsize\Rcolwidth% -% Now, calculating the remaining space -% \end{macrocode} -% \begin{macrocode} - \advance\temp-\hsize% -% \end{macrocode} -% And multiply the hsize by 1/2 of this space -% \begin{macrocode} - \divide\temp by 2% - \advance\hsize\temp% -}% - \newcommand{\setpositionliketwocolumns@C}{% \doinsidelinehook{\hfill}% \renewcommand{\ledrlfill}{\hfill}% @@ -5869,45 +6141,9 @@ \rightskip=-\temp% }% -\newcommand{\setwidthliketwocolumns@R}{% -% \end{macrocode} -% Temporary dimension, initially equal to the standard hsize, i.e. text width -% \begin{macrocode} - \newdimen\temp% - \temp=\hsize% -% \end{macrocode} -% Hsize : Left + Right width -% \begin{macrocode} - \hsize=\Lcolwidth% - \advance\hsize\Rcolwidth% -% \end{macrocode} -% Now, calculating the remaining space -% \begin{macrocode} - \advance\temp-\hsize% -% \end{macrocode} -% And multiply the hsize by 2/3 of this space -% \begin{macrocode} - \multiply\temp by 2% - \divide\temp by 3% - \advance\hsize\temp% -}% - \newcommand{\setpositionliketwocolumns@R}{% \doinsidelinehook{\hfill}% }% - -\newcommand{\setnotespositionliketwocolumns@R}{% - \newdimen\temp% - \newdimen\tempa% - \temp=\hsize% - \tempa=\Lcolwidth% - \advance\tempa\Rcolwidth% - \advance\temp-\tempa% - \divide\temp by 2% - \leftskip=\temp% - \rightskip=-\temp% -}% - % \end{macrocode} % \end{macro} % \end{macro} @@ -5916,8 +6152,6 @@ % \end{macro} % \end{macro} % \end{macro} -% \end{macro} -% \end{macro} % % \begin{macro}{\Columns@print@before@pstart} % \begin{macro}{\Columns@print@after@pend} @@ -6044,8 +6278,8 @@ % \end{macrocode} % As \protect\cs{Pages} must be called outside of the pages environment, we have to redefine the \protect\cs{Lcolwidth} and \protect\cs{Rcolwidth} lengths, to prevent false overfull hboxes. % \changes{v1.13.0}{2015/03/06}{Prevent false overfull hboxes when using \protect\cs{Pages} outside of pages environment.} -% \changes{v2.3.0}{2015/09/05}{Fix bug when calling \protect\cs{Columns} after a \protect\cs{Pages} (bug added in v1.13.0).} -% \changes{v2.17.2}{2017/04/06}{Fix bug when changing \protect\cs{Lcolwitdth} and \protect\cs{Rcolwitdth} in \protect\env{pages} environment.} +% \changes{v2.3.0}{2015/09/05}{Fix a bug when calling \protect\cs{Columns} after a \protect\cs{Pages} (bug added in v1.13.0).} +% \changes{v2.17.2}{2017/04/06}{Fix a bug when changing \protect\cs{Lcolwitdth} and \protect\cs{Rcolwitdth} in \protect\env{pages} environment.} % \begin{macrocode} \setlength{\Lcolwidth}{\Lcolwidth@pages}% \setlength{\Rcolwidth}{\Rcolwidth@pages}% @@ -6389,7 +6623,7 @@ % Struts inserted into leftand right text lines. % \changes{v0.3.0}{2005/02/10}{Added \protect\cs{ledtrutL} and \protect\cs{ledstrutR}} % \changes{v2.4.0}{2015/09/29}{Deleted \protect\cs{ledtrutL} and \protect\cs{ledstrutR}} -% \changes{v2.4.0}{2015/09/29}{Fix bug with dotted letter} +% \changes{v2.4.0}{2015/09/29}{Fix a bug with dotted letter} % \begin{macrocode} \newcommand*{\ledstrutL}{} \newcommand*{\ledstrutR}{} diff --git a/Master/texmf-dist/tex/latex/reledmac/reledmac.sty b/Master/texmf-dist/tex/latex/reledmac/reledmac.sty index 74e63cd12c4..5e12a48f12f 100644 --- a/Master/texmf-dist/tex/latex/reledmac/reledmac.sty +++ b/Master/texmf-dist/tex/latex/reledmac/reledmac.sty @@ -35,7 +35,7 @@ %% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{reledmac}[2017/07/31 v2.23.0 typesetting critical editions]% +\ProvidesPackage{reledmac}[2017/08/17 v2.24.0 typesetting critical editions]% \RequirePackage{xkeyval} \newif\ifparledgroup \DeclareOptionX{series}[A,B,C,D,E]{\xdef\default@series{#1}} @@ -114,6 +114,7 @@ \ProcessOptionsX*\relax \RequirePackage{xargs} +\RequirePackage{xparse}% \RequirePackage{etoolbox} \@ifl@t@r\fmtversion{2015/10/01} {\ifboolexpr{not test{\@ifl@t@r\fmtversion{2016/03/31}} or (test{\ifdefstring{\fmtversion}{2016/03/31}} and test {\ifnumless{\patch@level}{3}})}% @@ -370,7 +371,7 @@ \global\@afterindenttrue%In order to retablish normal feature if the \begingroup was not here \initnumbering@quote \ifwidthliketwocolumns% - \csuse{setwidthliketwocolumns@\columns@position}% + \setwidthliketwocolumns% \csuse{setpositionliketwocolumns@\columns@position}% \fi% \fi @@ -399,6 +400,11 @@ \global\sublines@false \global\let\next@page@num=\relax \global\let\sub@change=\relax + \global\last@page@num=-10000% + \ifdefined\line@numR% + \line@numR=\z@% + \last@page@numR=\z@% + \fi% \resetprevline@ \resetprevpage@num \global\stopmsdata@inserted@true% @@ -438,26 +444,34 @@ \endgroup \fi } +\newcount\pausenumbering@page@num% \newcommand{\pausenumbering}{% + \ifx\next@page@num\relax% + \global\pausenumbering@page@num=0% + \else% + \global\pausenumbering@page@num=\next@page@num% + \fi% \ifautopar\global\autopar@pausetrue\fi% \endnumbering\global\numberingtrue} +\newif\ifresumenumbering@start% \newcommand*{\resumenumbering}{% \ifnumbering \ifautopar@pause\autopar\fi \global\pst@rtedLtrue \global\advance\section@num \@ne + \global\resumenumbering@starttrue% \led@mess@SectionContinued{\the\section@num}% + \set@continuousnumberingforL% \line@list@stuff{\jobname.\extensionchars\the\section@num}% \l@dend@stuff \ifl@dpairing\else% \begingroup% \initnumbering@quote% \ifwidthliketwocolumns% - \csuse{setwidthliketwocolumns@\columns@position}% + \setwidthliketwocolumns% \csuse{setpositionliketwocolumns@\columns@position}% \fi% \fi% - \set@continuousnumberingforL% \else \led@err@NumberingShouldHaveStarted \endnumbering @@ -468,7 +482,9 @@ \ifcontinuousnumberingwithcolumns% \ifdefined\line@numR% \ifnum\line@numR>\line@num% - \expandafter\setlinenum\expandafter{\the\line@numR}% + \global\appto\next@line@list@stuff{% + \expandafter\setlinenum\expandafter{\the\line@numR}% + }% \fi% \ifnum\last@page@numR>\last@page@num% \global\last@page@num=\last@page@numR% @@ -733,12 +749,6 @@ \fi% \list@clear{\maxlinesinpar@list} \get@linelistfile{#1}% - \ifcontinuousnumberingwithcolumns - \global\page@numR=\page@numR\relax - \global\last@page@numR=\last@page@numR\relax - \global\page@num=\page@num\relax - \global\last@page@num=\last@page@num\relax - \fi \@stopmsd%Security if last \endms{} is forgotten \unless\ifledRcol%Get the last line of the last page \csnumgdef{@lastabsline@forpage@\the\page@num}{\the\absline@num}% @@ -808,6 +818,7 @@ \newcommand*{\@nl@reg}{% \ifx\l@dchset@num\relax \else \advance\absline@num \@ne + \csgdef{l@dchset@num@\the\absline@num}{}%To remember this line have been marked by a \setlinenum \set@line@action \let\l@dchset@num=\relax \advance\absline@num \m@ne @@ -859,11 +870,13 @@ \csnumgdef{@lastabsline@forpageR@\the\page@numR}{\the\absline@numR}% \csnumgdef{@lastline@forpageR@\the\page@numR}{\the\line@numR}% \ifbypage@R - \line@numR \z@ \subline@numR \z@ + \ifx\l@dchset@num\relax%Not resetting if preceded by a \setlinenum + \line@numR \z@ \subline@numR \z@% + \fi% \fi - \page@numR=#1\relax - \last@page@numR=#1\relax - \def\next@page@numR{#1}% + \global\page@numR=#1% + \global\last@page@numR=#1% + \global\def\next@page@numR{#1}% \fi \else \ifnum #1=\last@page@num @@ -871,11 +884,13 @@ \csnumgdef{@lastabsline@forpage@\the\page@num}{\the\absline@num}% \csnumgdef{@lastline@forpage@\the\page@num}{\the\line@num}% \ifbypage@ - \line@num \z@ \subline@num \z@ + \ifx\l@dchset@num\relax%Not resetting if preceded by a \setlinenum + \line@num \z@ \subline@num \z@% + \fi% \fi - \page@num=#1\relax - \last@page@num=#1\relax - \def\next@page@num{#1}% + \global\page@num=#1% + \global\last@page@num=#1% + \global\def\next@page@num{#1}% \listxadd{\normal@page@break}{\the\absline@num} \fi \fi} @@ -1215,6 +1230,7 @@ \newif\iffirst@linenum@out@ \first@linenum@out@true \newcommand{\this@line@list@version}{7}% +\let\next@line@list@stuff\relax% \newcommand*{\line@list@stuff}[1]{% \global\newtoggle{notfirstrun@#1}% \IfFileExists{\l@auxdir#1}% @@ -1222,7 +1238,6 @@ {\global\togglefalse{notfirstrun@#1}}% \read@linelist{#1}% \iffirst@linenum@out@ - \immediate\closeout\linenum@out% \global\first@linenum@out@false% \immediate\openout\linenum@out=\l@auxdir#1\relax% \immediate\write\linenum@out{\string\line@list@version{\this@line@list@version}}% @@ -1239,7 +1254,10 @@ \ifl@dpaging% \write\linenum@out{\string\@par@sync@option{\@par@this@sync@option}}% \fi% - \fi} + \fi% + \next@line@list@stuff% + \global\let\next@line@list@stuff\relax% +}% \newcommand*{\new@line}{% \IfStrEq{\led@pb@setting}{after}% @@ -1551,12 +1569,7 @@ \newcommand{\get@sw@txt}[1]{% \begingroup% - \let\sameword\@firstofone%Allow to have nested \sameword - \let\emph\@firstofone% - \let\textit\@firstofone% - \let\textbf\@firstofone% - \let\textsc\@firstofone% - \let\framebox\@firstofone% + \swnoexpands% \ifsw@caseinsensitive% \def\@tmpa##1{\lowercase{##1}}% \else% @@ -1569,6 +1582,26 @@ \fi% \endgroup% }% +\newcommand{\swnoexpands}{% + \let\sameword\@firstofone%Allow to have nested \sameword + \let\emph\@firstofone% + \let\textit\@firstofone% + \let\textbf\@firstofone% + \let\textsc\@firstofone% + \let\framebox\@firstofone% + \RenewExpandableDocumentCommand{\edindex}{om}{}% + \ifdefined\index% + \RenewExpandableDocumentCommand{\index}{om}{}% + \fi% + \let\selectlanguage\@gobble% + \let\foreignlanguage\@secondoftwo% + \ifdefined\xpg@loaded% + \renewcommand\do[1]{% + \expandafter\RenewExpandableDocumentCommand\expandafter{\csname text##1\endcsname}{om}{####2}% + }% + \expandafter\docsvlist\expandafter{\xpg@loaded}% + \fi% +}% \newcommandx{\sameword}[2][1,usedefault]{% \leavevmode% \get@sw@txt{#2}% @@ -1754,8 +1787,8 @@ \fi% \fi% \numberedpar@true% - \iflabelpstart\protected@edef\@currentlabel% - {\p@pstart\thepstart} + \iflabelpstart% + \protected@edef\@currentlabel{\p@pstart\thepstart}% \fi% \l@dzeropenalties% \@at@start@every@pstart% @@ -1964,9 +1997,27 @@ \gdef\l@dcsnotetext{}} \newcommand{\l@dlsn@te}{% - \hb@xt@ \z@{\hss\box\l@dlp@rbox\kern\ledlsnotesep}} + \ifboolexpr{% + bool {l@dprintingcolumns}% + and bool {ledRcol@}% + }{% If we are on a right column + \@tempdima=\@morespace@leftnote@rightcolumn% + }{% + \@tempdima=\z@% + }% + \hb@xt@ \z@{\hss\box\l@dlp@rbox\kern\ledlsnotesep\hskip\@tempdima}% +}% \newcommand{\l@drsn@te}{% - \hb@xt@ \z@{\kern\ledrsnotesep\box\l@drp@rbox\hss}} + \ifboolexpr{% + bool {l@dprintingcolumns}% + and not bool {ledRcol@}% + }{% If we are on a left column + \@tempdima=\@morespace@rightnote@leftcolumn% + }{% + \@tempdima=\z@% + }% + \hb@xt@ \z@{\hskip\@tempdima\kern\ledrsnotesep\box\l@drp@rbox\hss}% +}% \newcommand*{\ledllfill}{\hfil} \newcommand*{\ledrlfill}{} @@ -2005,11 +2056,28 @@ \ifnum\absline@num<\next@actionline\else \ifnum\next@action>-1001 \global\page@num=\next@action - \global\@firstlineofpagetrue% + \ifresumenumbering@start% + \setbox0=\hbox{}%Required to get the correct page number, when the \resumenumbering is just after a \newpage + \ifnum\pausenumbering@page@num<\page@num% + \global\resumenumbering@startfalse% + \fi% + \fi% + \unless\ifresumenumbering@start% + \global\@firstlineofpagetrue% + \fi% \ifbypage@ - \global\line@num=\z@ \global\subline@num=\z@ - \resetprevline@ + \ifcsdef{l@dchset@num@\the\absline@num}% + {% + \global\csundef{l@dchset@num@\the\absline@num}% + }% + {% + \unless\ifresumenumbering@start% + \global\line@num=\z@ \global\subline@num=\z@% + \resetprevline@% + \fi% + }% \fi + \global\resumenumbering@startfalse% \add@msdata@firstlineofpage% \else \ifnum\next@action<-4999 @@ -2127,11 +2195,26 @@ \ifnum\@l@dtempcntb>\@ne \advance\@l@dtempcntb \page@num \fi - \ifodd\@l@dtempcntb + \ifboolexpr{% + bool {l@dprintingcolumns}% + and (% + (test {\ifdefstring{\linenum@OnlyPages@ForColumns}{left}}% + and test {\ifnumodd{\page@num}}% + )% + or% + (test {\ifdefstring{\linenum@OnlyPages@ForColumns}{right}}% + and not test {\ifnumodd{\page@num}}% + )% + )% + }% + {}% + {% + \ifodd\@l@dtempcntb% \gdef\l@drd@ta{\rlap{{\rightlinenum}}}% - \else + \else% \gdef\l@dld@ta{\llap{{\leftlinenum}}}% - \fi + \fi% + }% \fi \fi \fi @@ -4110,7 +4193,7 @@ \let\old@columwidth=\columnwidth% \iftoggle{Xnoteswidthliketwocolumns@#1}% {% - \csuse{setwidthliketwocolumns@\columns@position}% + \setwidthliketwocolumns% \global\let\hsize@fornote=\hsize% }% {}% @@ -4124,7 +4207,7 @@ \let\old@columwidth=\columnwidth% \iftoggle{noteswidthliketwocolumnsX@#1}% {% - \csuse{setwidthliketwocolumns@\columns@position}% + \setwidthliketwocolumns% \global\let\hsize@fornote=\hsize% }% {}% @@ -5446,9 +5529,7 @@ \newcommand*{\zz@@@}{000|000|000}% Set three counters to zero in one go \newcommand*{\edlabel}[1]{% - \ifl@dpairing\ifautopar% - \strut% - \fi\fi% + \leavevmode% \@bsphack% \ifboolexpr{bool{ledRcol} or bool{ledRcol@}}{% \ifXnote@% diff --git a/Master/texmf-dist/tex/latex/reledmac/reledpar.sty b/Master/texmf-dist/tex/latex/reledmac/reledpar.sty index 04598785b77..af89d06a767 100644 --- a/Master/texmf-dist/tex/latex/reledmac/reledpar.sty +++ b/Master/texmf-dist/tex/latex/reledmac/reledpar.sty @@ -27,9 +27,8 @@ - \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{reledpar}[2017/08/10 v2.19.5 reledmac extension for parallel texts]% +\ProvidesPackage{reledpar}[2017/08/17 v2.20.0 reledmac extension for parallel texts]% \RequirePackage{xspace}% \RequirePackage{xkeyval} @@ -61,6 +60,10 @@ \DeclareOptionX{movecolumnspositiononrightpage}{% \movecolumnspositiononrightpagetrue% }% +\newif\if@sidenotesmarginpage% +\DeclareOptionX{sidenotesmarginpage}{% + \@sidenotesmarginpagetrue% +}% \DeclareOptionX{parledgroup}{\parledgrouptrue} \DeclareOptionX{widthliketwocolumns}{\widthliketwocolumnstrue}% \DeclareOptionX{continuousnumberingwithcolumns}{\continuousnumberingwithcolumnstrue}% @@ -200,16 +203,19 @@ \global\sublines@Rfalse \global\let\next@page@numR\relax \global\let\sub@change\relax + \global\last@page@numR=-10000% \global\stopmsdata@inserted@true% \global\let\@msdata@list\relax% \global\csundef{@msdata@\add@msd@cR @dataR}% \ifcontinuousnumberingwithcolumns% - \addtocounter{pstartR}{1}% + \ifnumberpstart% + \addtocounter{pstartR}{1}% + \fi% \else% \setcounter{pstartR}{1}% \fi% - \set@continuousnumberingforR% \message{Section \the\section@numR R }% + \set@continuousnumberingforR% \line@list@stuffR{\jobname.\extensionchars\the\section@numR R}% \l@dend@stuff \begingroup @@ -286,20 +292,28 @@ \let\c@subsection\c@subsectionR% \let\c@subsubsection\c@subsubsectionR% }% +\newcount\pausenumbering@page@numR% \newcommand*{\pausenumberingR}{% + \ifx\next@page@numR\relax% + \global\pausenumbering@page@numR=0% + \else% + \global\pausenumbering@page@numR=\next@page@numR% + \fi% \endnumberingR\global\numberingRtrue} +\newif\ifresumenumberingR@start% \newcommand*{\resumenumberingR}{% \ifnumberingR \global\pst@rtedRtrue \global\advance\section@numR \@ne + \global\resumenumberingR@starttrue% \led@mess@SectionContinued{\the\section@numR R}% + \set@continuousnumberingforR% \line@list@stuffR{\jobname.\extensionchars\the\section@numR R}% \l@dend@stuff \begingroup% \initnumbering@sectcountR% - \set@continuousnumberingforR% \else - \led@err@numberingShouldHaveStarted + \led@err@NumberingShouldHaveStarted \endnumberingR \beginnumberingR \fi} @@ -360,7 +374,9 @@ \newcommand{\set@continuousnumberingforR}{% \ifcontinuousnumberingwithcolumns% \ifnum\line@numR<\line@num% - \expandafter\setlinenum\expandafter{\the\line@num}% + \global\appto\next@line@list@stuffR{% + \expandafter\setlinenum\expandafter{\the\line@num}% + }% \fi% \ifnum\last@page@num>\last@page@numR% \global\last@page@numR=\last@page@num% @@ -418,6 +434,15 @@ \fi% }% +\def\linenum@OnlyPages@ForColumns{}% +\newcommand{\linenumOnlyPagesForColumns}[1]{% + \gdef\linenum@OnlyPages@ForColumns{#1}% +}% + +\def\linenum@OnlyPages@ForColumnsR{}% +\newcommand{\linenumOnlyPagesForColumnsR}[1]{% + \gdef\linenum@OnlyPages@ForColumnsR{#1}% +}% \newcounter{firstlinenumR} \setcounter{firstlinenumR}{5} \newcounter{linenumincrementR} @@ -529,6 +554,7 @@ \newcommand{\@nl@regR}{% \ifx\l@dchset@num\relax \else \advance\absline@numR \@ne + \csgdef{l@dchset@num@R\the\absline@numR}{}%To remember this line have been marked by a \setlinenum \set@line@action \let\l@dchset@num\relax \advance\absline@numR \m@ne @@ -700,6 +726,8 @@ \newwrite\linenum@outR \newif\iffirst@linenum@out@R \first@linenum@out@Rtrue + +\let\next@line@list@stuffR\relax% \newcommand*{\line@list@stuffR}[1]{% \global\newtoggle{notfirstrun@#1}% \IfFileExists{\l@auxdir#1}% @@ -707,7 +735,6 @@ {\global\togglefalse{notfirstrun@#1}}% \read@linelist{#1}% \iffirst@linenum@out@R - \immediate\closeout\linenum@outR \global\first@linenum@out@Rfalse \immediate\openout\linenum@outR=\l@auxdir#1% \immediate\write\linenum@outR{\string\line@list@version{\this@line@list@version}}% @@ -720,7 +747,10 @@ \fi% \closeout\linenum@outR% \openout\linenum@outR=\l@auxdir#1% - \fi} + \fi% + \next@line@list@stuffR% + \global\let\next@line@list@stuffR\relax% +}% \newcommand*{\new@lineL}{% \write\linenum@out{\string\@nl[\the\c@page][\thepage]}} @@ -954,8 +984,9 @@ \@at@start@every@pstart% \hsize=\Lcolwidth% \numberedpar@true% - \iflabelpstart\protected@edef\@currentlabel% - {\p@pstartL\thepstartL}\fi% + \iflabelpstart% + \protected@edef\@currentlabel{\p@pstartL\thepstartL}% + \fi% \providetoggle{before@pstartL@\the\l@dnumpstartsL @par}% \ifboolexpr{% test {\ifstrempty{#1}}% @@ -1026,8 +1057,9 @@ \@at@start@every@pstart% \hsize=\Rcolwidth% \numberedpar@true% - \iflabelpstart\protected@edef\@currentlabel% - {\p@pstartR\thepstartR}\fi% + \iflabelpstart% + \protected@edef\@currentlabel{\p@pstartR\thepstartR}% + \fi% \providetoggle{before@pstartR@\the\l@dnumpstartsR @par}% \ifboolexpr{% test {\ifstrempty{#1}}% @@ -1071,10 +1103,10 @@ \dump@pstartL@pc% \ifnumberpstart% \addtocounter{pstartL}{1}% + \ifcontinuousnumberingwithcolumns% + \addtocounter{pstart}{1}% + \fi% \fi - \ifcontinuousnumberingwithcolumns% - \addtocounter{pstart}{1}% - \fi% \parledgroup@beforenotes@save{L}% \providetoggle{after@pendL@\the\l@dnumpstartsL @par}% \ifboolexpr{% @@ -1500,11 +1532,23 @@ \@l@dtempcntb=\absline@numR \ifnum\@l@dtempcntb<\next@actionlineR\else \ifnum\next@actionR>-1001\relax - \@firstlineofpageRtrue% + \unless\ifresumenumberingR@start% + \@firstlineofpageRtrue% + \fi% \global\page@numR=\next@actionR \ifbypage@R - \global\line@numR \z@ \global\subline@numR \z@ + \ifcsdef{l@dchset@num@R\the\absline@numR}% + {% + \global\csundef{l@dchset@num@R\the\absline@numR}% + }% + {% + \unless\ifresumenumberingR@start% + \global\line@numR \z@% + \global\subline@numR \z@% + \fi% + }% \fi + \global\resumenumberingR@startfalse% \add@msdata@firstlineofpage% \else \ifnum\next@actionR<-4999\relax % 9/05 added relax here @@ -1630,11 +1674,26 @@ \ifnum\@l@dtempcntb>\@ne \advance\@l@dtempcntb by\page@numR \fi - \ifodd\@l@dtempcntb - \gdef\l@drd@ta{\rlap{{\rightlinenumR}}}% - \else - \gdef\l@dld@ta{\llap{{\leftlinenumR}}}% - \fi + \ifboolexpr{% + bool {l@dprintingcolumns}% + and (% + (test {\ifdefstring{\linenum@OnlyPages@ForColumnsR}{left}}% + and test {\ifnumodd{\page@numR}}% + )% + or% + (test {\ifdefstring{\linenum@OnlyPages@ForColumnsR}{right}}% + and not test {\ifnumodd{\page@numR}}% + )% + )% + }% + {}% + {% + \ifodd\@l@dtempcntb% + \gdef\l@drd@ta{\rlap{{\rightlinenumR}}}% + \else% + \gdef\l@dld@ta{\llap{{\leftlinenumR}}}% + \fi% + }% \fi \fi \fi @@ -1911,7 +1970,18 @@ \sidenotemarginR{outer}% \fi% +\newdimen\@morespace@leftnote@rightcolumn% +\newdimen\@morespace@rightnote@leftcolumn% +\newcommand{\get@sidenote@morespace@columns}{% + \if@sidenotesmarginpage% + \global\@morespace@leftnote@rightcolumn=\dimexpr\intercolumns@width + \Lcolwidth\relax% + \global\@morespace@rightnote@leftcolumn=\dimexpr\intercolumns@width + \Rcolwidth\relax% + \else% + \global\@morespace@leftnote@rightcolumn=\z@% + \global\@morespace@rightnote@leftcolumn=\z@% + \fi% +}% \newcommand*{\affixside@noteR}{% \prepare@edindex@fornote{\the\page@numR|\the\line@numR|\the\subline@numR|\the\page@numR|\the\line@numR|\the\subline@numR|}% \def\sidenotecontent@{}% @@ -2214,6 +2284,8 @@ \global\l@dpscL=\z@ \global\l@dpscR=\z@ \get@familiarfootnote@number% + \get@intercolumns@width% + \get@sidenote@morespace@columns% \check@pstarts \loop\if@pstarts \global\pstartnumtrue @@ -2298,6 +2370,101 @@ \hspace{\aftercolumnseparator}% \fi% }% +\newdimen\intercolumns@width% +\newcommand{\get@intercolumns@width}{% + \global\intercolumns@width=\z@% + \ifdefstring{\columns@position}{C}% + {% + \ifboolexpr{% + test {\ifdimless{\beforecolumnseparator}{\z@}}% + and test {\ifdimless{\aftercolumnseparator}{\z@}}% + }% + {% + \global\intercolumns@width=\dimexpr% + \columnrulewidth +% + (\textwidth - \Lcolwidth - \Rcolwidth - \columnrulewidth)*1/2% The total of the width before and after column separator + \relax% + }% + {}% + \ifboolexpr{% + test {\ifdimgreater{\beforecolumnseparator}{\z@}}% + and test {\ifdimgreater{\aftercolumnseparator}{\z@}}% + }% + {% + \global\intercolumns@width=\dimexpr% + \columnrulewidth + \beforecolumnseparator + \aftercolumnseparator% + \relax% + }% + {}% + \ifboolexpr{% + test {\ifdimgreater{\beforecolumnseparator}{\z@}}% + and test {\ifdimless{\aftercolumnseparator}{\z@}}% + }% + {% + \global\intercolumns@width=\dimexpr% + \columnrulewidth + \beforecolumnseparator +% + (\textwidth - \Lcolwidth - \Rcolwidth - \columnrulewidth - \beforecolumnseparator) * 1/3% + \relax% + }% + {}% + \ifboolexpr{% + test {\ifdimless{\beforecolumnseparator}{\z@}}% + and test {\ifdimgreater{\aftercolumnseparator}{\z@}}% + }% + {% + \global\intercolumns@width=\dimexpr% + \columnrulewidth + \aftercolumnseparator +% + (\textwidth - \Lcolwidth - \Rcolwidth - \columnrulewidth - \aftercolumnseparator) * 1/3% + \relax% + }% + {}% + }% + {% + \ifboolexpr{% + test {\ifdimless{\beforecolumnseparator}{\z@}}% + and test {\ifdimless{\aftercolumnseparator}{\z@}}% + }% + {% + \global\intercolumns@width=\dimexpr% + \columnrulewidth +% + (\textwidth - \Lcolwidth - \Rcolwidth - \columnrulewidth)*2/3% The total of the width before and after column separator + \relax% + }% + {}% + \ifboolexpr{% + test {\ifdimgreater{\beforecolumnseparator}{\z@}}% + and test {\ifdimgreater{\aftercolumnseparator}{\z@}}% + }% + {% + \global\intercolumns@width=\dimexpr% + \columnrulewidth + \beforecolumnseparator + \aftercolumnseparator% + \relax% + }% + {}% + \ifboolexpr{% + test {\ifdimgreater{\beforecolumnseparator}{\z@}}% + and test {\ifdimless{\aftercolumnseparator}{\z@}}% + }% + {% + \global\intercolumns@width=\dimexpr% + \columnrulewidth + \beforecolumnseparator +% + (\textwidth - \Lcolwidth - \Rcolwidth - \columnrulewidth - \beforecolumnseparator) * 1/2% + \relax% + }% + {}% + \ifboolexpr{% + test {\ifdimless{\beforecolumnseparator}{\z@}}% + and test {\ifdimgreater{\aftercolumnseparator}{\z@}}% + }% + {% + \global\intercolumns@width=\dimexpr% + \columnrulewidth + \aftercolumnseparator +% + (\textwidth - \Lcolwidth - \Rcolwidth - \columnrulewidth - \aftercolumnseparator) * 1/2% + \relax% + }% + {}% + }% +}% \newcommand{\print@leftcolumn}{% \if\page@num>\page@numR% \@l@dtempcntb=\page@num% @@ -2381,15 +2548,9 @@ \newlength{\aftercolumnseparator}% \setlength{\aftercolumnseparator}{-2pt}% -\newcommand{\setwidthliketwocolumns@L}{% - \newdimen\temp% - \temp=\hsize% - \hsize=\Lcolwidth% - \advance\hsize\Rcolwidth% - \advance\temp-\hsize% - \multiply\temp by 2% - \divide\temp by 3% - \advance\hsize\temp% +\newcommand{\setwidthliketwocolumns}{% + \get@intercolumns@width%As \columns is not necessary called before \setwidthliketwocolumns + \hsize=\dimexpr \Lcolwidth + \intercolumns@width + \Rcolwidth \relax% }% \newcommand{\setpositionliketwocolumns@L}{% @@ -2399,16 +2560,6 @@ \newcommand{\setnotespositionliketwocolumns@L}{% }% -\newcommand{\setwidthliketwocolumns@C}{% - \newdimen\temp% - \temp=\hsize% - \hsize=\Lcolwidth% - \advance\hsize\Rcolwidth% - \advance\temp-\hsize% - \divide\temp by 2% - \advance\hsize\temp% -}% - \newcommand{\setpositionliketwocolumns@C}{% \doinsidelinehook{\hfill}% \renewcommand{\ledrlfill}{\hfill}% @@ -2426,33 +2577,9 @@ \rightskip=-\temp% }% -\newcommand{\setwidthliketwocolumns@R}{% - \newdimen\temp% - \temp=\hsize% - \hsize=\Lcolwidth% - \advance\hsize\Rcolwidth% - \advance\temp-\hsize% - \multiply\temp by 2% - \divide\temp by 3% - \advance\hsize\temp% -}% - \newcommand{\setpositionliketwocolumns@R}{% \doinsidelinehook{\hfill}% }% - -\newcommand{\setnotespositionliketwocolumns@R}{% - \newdimen\temp% - \newdimen\tempa% - \temp=\hsize% - \tempa=\Lcolwidth% - \advance\tempa\Rcolwidth% - \advance\temp-\tempa% - \divide\temp by 2% - \leftskip=\temp% - \rightskip=-\temp% -}% - \newcommand{\Columns@print@before@pstart}{% \ifboolexpr{% test{\ifcsstring{before@pstartL@\the\l@dpscL}{\at@every@pstart}}% |