From 99db2cb19f00c6825c3369de307c10164fdf3c95 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 2 Nov 2012 23:34:02 +0000 Subject: eledmac (2nov12) git-svn-id: svn://tug.org/texlive/trunk@28154 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/latex/eledmac/eledmac.dtx | 65 +++++++++++++++++++++- Master/texmf-dist/source/latex/eledmac/eledpar.dtx | 11 ++-- 2 files changed, 68 insertions(+), 8 deletions(-) (limited to 'Master/texmf-dist/source') 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 -- cgit v1.2.3