summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/eledmac
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-11-02 23:34:02 +0000
committerKarl Berry <karl@freefriends.org>2012-11-02 23:34:02 +0000
commit99db2cb19f00c6825c3369de307c10164fdf3c95 (patch)
tree7b3eb156c884447624ecc6fce06ab9d2150437be /Master/texmf-dist/source/latex/eledmac
parent89df75aae9d25e94c83fbf99d633236815f26b0f (diff)
eledmac (2nov12)
git-svn-id: svn://tug.org/texlive/trunk@28154 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/eledmac')
-rw-r--r--Master/texmf-dist/source/latex/eledmac/eledmac.dtx65
-rw-r--r--Master/texmf-dist/source/latex/eledmac/eledpar.dtx11
2 files changed, 68 insertions, 8 deletions
diff --git a/Master/texmf-dist/source/latex/eledmac/eledmac.dtx b/Master/texmf-dist/source/latex/eledmac/eledmac.dtx
index 964c506ddb2..b3498697675 100644
--- a/Master/texmf-dist/source/latex/eledmac/eledmac.dtx
+++ b/Master/texmf-dist/source/latex/eledmac/eledmac.dtx
@@ -51,7 +51,7 @@
%
% \fi
%
-% \CheckSum{7918}
+% \CheckSum{7988}
%
% \makeatletter
% \newcommand*{\DescribeIt}{\leavevmode\@bsphack\begingroup\MakePrivateLetters
@@ -2271,6 +2271,11 @@
% ...
% \end{Rightside}
% \end{verbatim}
+% \subsection{Quotation environments}
+% Inside a numbered section, the \verb+quotation+ and \verb+quote+ environment can be used with the same meaning as outside.
+% The typographical consequences are similar as outside, based on the styles of the \emph{book} class.
+% However, if you used some package which redefine these environnments, theses redefinition won't be available inside the numbering section.
+% You must open the quotation environments inside a \cs{pstart}-\cs{pend} block, and not outside.
% \section{Miscellaneous}
%
%
@@ -2641,7 +2646,7 @@
% \begin{macrocode}
%<*code>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{eledmac}[2012/10/08 v1.2 LaTeX port of EDMAC]
+\ProvidesPackage{eledmac}[2012/11/01 v1.3 LaTeX port of EDMAC]
% \end{macrocode}
%
% In general there is the following modifications to the original
@@ -3101,8 +3106,14 @@
% \begin{macro}{\ledsubsubsection*}
% \begin{macro}{\ledchapter}
% \begin{macro}{\ledchapter*}
+% \begin{macro}{\quotation}
+% \begin{macro}{\endquotation}
+% \begin{macro}{\quote}
+% \begin{macro}{\endquote}
% \changes{v1.2}{2012/10/08}{Compatibility of \cs{ledchapter} with the \emph{memoir} class.}
-% \cs{initnumbering@sectcmd} define sectioning commands inside numbered section.
+% \changes{v1.3}{2012/11/01}{\emph{Quotation} and {quote} environment inside the numbering sections.}
+% \cs{initnumbering@sectcmd} defines sectioning commands inside numbered section.
+% It also defines quotation environment.
% Note that it's suppose user didn't change \cs{chapter}.
% If he did, he should redefine \cs{initnumbering@sectcmd}.
% \begin{macrocode}
@@ -3164,6 +3175,50 @@
\newcommand\beforeledchapter{\pend\cleardoublepage\pstart}
\patchcmd{\chapter}{\cleardoublepage}{\relax}{}{}
\patchcmd{\chapter}{\clearpage}{\relax}{}{}
+ \renewcommand{\quotation}{\par\leavevmode%
+ \parindent=1.5em%
+ \skipnumbering%
+ \ifautopar%
+ \vskip-\parskip%
+ \else%
+ \vskip\topsep%
+ \fi%
+ \global\leftskip=\leftmargin%
+ \global\rightskip=\leftmargin%
+ }
+ \renewcommand{\endquotation}{\par%
+ \global\leftskip=0pt%
+ \global\rightskip=0pt%
+ \leavevmode%
+ \skipnumbering%
+ \ifautopar%
+ \vskip-\parskip%
+ \else%
+ \vskip\topsep%
+ \fi%
+ }
+ \renewcommand{\quote}{\par\leavevmode%
+ \parindent=0pt%
+ \skipnumbering%
+ \ifautopar%
+ \vskip-\parskip%
+ \else%
+ \vskip\topsep%
+ \fi%
+ \global\leftskip=\leftmargin%
+ \global\rightskip=\leftmargin%
+ }
+ \renewcommand{\endquote}{\par%
+ \global\leftskip=0pt%
+ \global\rightskip=0pt%
+ \leavevmode%
+ \skipnumbering%
+ \ifautopar%
+ \vskip-\parskip%
+ \else%
+ \vskip\topsep%
+ \fi%
+ }
}
% \end{macrocode}
% \end{macro}
@@ -3175,6 +3230,10 @@
% \end{macro}
% \end{macro}
% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
% \begin{macro}{\ledsectnotoc}
% The \cs{ledsectnotoc} only disables the \cs{addcontentsline} macro.
% \begin{macrocode}
diff --git a/Master/texmf-dist/source/latex/eledmac/eledpar.dtx b/Master/texmf-dist/source/latex/eledmac/eledpar.dtx
index 2ec3c879ce8..bcee41d4e4c 100644
--- a/Master/texmf-dist/source/latex/eledmac/eledpar.dtx
+++ b/Master/texmf-dist/source/latex/eledmac/eledpar.dtx
@@ -718,7 +718,7 @@
% \begin{macrocode}
%<*code>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{eledpar}[2012/10/08 v1.2 eledmac extension for parallel texts]
+\ProvidesPackage{eledpar}[2012/11/01 v1.2.1 eledmac extension for parallel texts]
% \end{macrocode}
% With the option `shiftedpstarts' a long pstart one the left side (or in the right side) don't make a blank on the corresponding pstart, but the blank is put on the bottom of the page. Consequently, the pstarts on the parallel pages are shifted, but the shifted stop at every end of pages.
@@ -925,15 +925,16 @@
% \end{macrocode}
% \end{macro}
% \begin{macro}{\initnumbering@sectcountR}
+% \changes{v1.2.1}{2012/11/01}{The counter of the right section are define only one time.}
% For we want the numbering of the section commands in the right side to be not continous
% with the numbering of the rightside
% we switch the \LaTeX\ counter in \cs{numberingR}.
% \begin{macrocode}
+\newcounter{chapterR}
+\newcounter{sectionR}
+\newcounter{subsectionR}
+\newcounter{subsubsectionR}
\newcommand{\initnumbering@sectcountR}{
- \newcounter{chapterR}
- \newcounter{sectionR}
- \newcounter{subsectionR}
- \newcounter{subsubsectionR}
\let\c@chapter\c@chapterR
\let\c@section\c@sectionR
\let\c@subsection\c@subsectionR