summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/reledmac
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-03-01 23:38:24 +0000
committerKarl Berry <karl@freefriends.org>2016-03-01 23:38:24 +0000
commit5065e43c7ef28af0f81652f6cc9b959e70478fb7 (patch)
tree5215f1c4d5ed645aa494c2714dbf828112d33c69 /Master/texmf-dist/source/latex/reledmac
parent6f6c6461f6184d66c2e54fbcdeacec4897cd16d7 (diff)
reledmac (28feb16)
git-svn-id: svn://tug.org/texlive/trunk@39914 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/reledmac')
-rw-r--r--Master/texmf-dist/source/latex/reledmac/reledmac.dtx30
1 files changed, 13 insertions, 17 deletions
diff --git a/Master/texmf-dist/source/latex/reledmac/reledmac.dtx b/Master/texmf-dist/source/latex/reledmac/reledmac.dtx
index 39e59f1f9c4..dce84dd0060 100644
--- a/Master/texmf-dist/source/latex/reledmac/reledmac.dtx
+++ b/Master/texmf-dist/source/latex/reledmac/reledmac.dtx
@@ -383,6 +383,9 @@
% \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}{Warning 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 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 immediatly following a sectioning command (bug NOT fixed on reledpar)}
% \title{\Macpackage \\
% Typeset scholarly editions with \LaTeX\thanks{This file (\dtxfilename)
% has version number \fileversion, last revised \filedate.}}
@@ -3474,7 +3477,7 @@
% \begin{macrocode}
%<*code>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{reledmac}[2016/02/22 v2.8.1 typeset critical edition]%
+\ProvidesPackage{reledmac}[2016/02/27 v2.8.2 typeset critical edition]%
% \end{macrocode}
%
% \subsection{Package options}
@@ -7210,17 +7213,9 @@
\newcommandx*{\pstart}[1][1]{%
\normal@pars%
\ifstrempty{#1}{\at@every@pstart}{\noindent#1}%
- \ifautopar%
- \autopar%
- \fi%
\ifluatex%
\edef\l@luatextextdir@L{\the\textdir}%
\fi%
- \if@nobreak%
- \let\@oldnobreak\@nobreaktrue%
- \else%
- \let\@oldnobreak\@nobreakfalse%
- \fi%
\@nobreaktrue%
\ifnumbering \else%
\led@err@PstartNotNumbered%
@@ -7232,7 +7227,7 @@
\fi%
\list@clear{\inserts@list}%
\global\let\next@insert=\empty%
- \begingroup\normal@pars%
+ \begingroup%
\global\advance \l@dnumpstartsL\@ne
\global\setbox\raw@text=\vbox\bgroup%
\ifautopar\else%
@@ -7317,17 +7312,18 @@
\fi%
\addtocounter{pstart}{1}%
% \end{macrocode}
-% Restore paragraph, nobreak setting and autopar setting.
+% Print the optional argument of \protect\cs{pend} or the content printed after every \protect\cs{pend}
% \begin{macrocode}
\normal@pars%
- \@oldnobreak%
+ \ifstrempty{#1}{\at@every@pend}{\noindent#1}%
+% \end{macrocode}
+% Restore standard nobreak setting and autopar setting.
+% Normally, \cs{if@nobreak} is equal to true only immediatly after a sectioning command (read latex.ltx file). As a \cs{pstart}…\cs{pend} structure can't contain any sectioning command, we set \cs{if@nobreak} to false.
+% \begin{macrocode}
+ \@nobreakfalse%
\ifautopar%
\autopar%
\fi%
-% \end{macrocode}
-% Print the optional argument of \protect\cs{pend} or the content printed after every \protect\cs{pend}
-% \begin{macrocode}
- \ifstrempty{#1}{\at@every@pend}{\noindent#1}%
}
% \end{macrocode}
@@ -7425,7 +7421,7 @@
% are in force. We will want to do this within a footnotes, for
% example.
% \begin{macrocode}
-\newcommand*{\normal@pars}{\everypar{}\let\par\endgraf}
+\newcommand*{\normal@pars}{\ifautopar\everypar{}\fi\let\par\endgraf}
% \end{macrocode}
% \end{macro}