summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/ledmac/ledpar.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-10-04 23:07:56 +0000
committerKarl Berry <karl@freefriends.org>2011-10-04 23:07:56 +0000
commit517d814fc2151f1a207e0fff3705de6384552f86 (patch)
tree5f4fca431c7002bd3a0a588a37ae95a6d0dcfc76 /Master/texmf-dist/source/latex/ledmac/ledpar.dtx
parentfee12533281613d6c84ae9bbd720dc24e5a54928 (diff)
ledmac (4oct11)
git-svn-id: svn://tug.org/texlive/trunk@24192 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/ledmac/ledpar.dtx')
-rw-r--r--Master/texmf-dist/source/latex/ledmac/ledpar.dtx59
1 files changed, 39 insertions, 20 deletions
diff --git a/Master/texmf-dist/source/latex/ledmac/ledpar.dtx b/Master/texmf-dist/source/latex/ledmac/ledpar.dtx
index 92471dbdc8b..898fe8b4e26 100644
--- a/Master/texmf-dist/source/latex/ledmac/ledpar.dtx
+++ b/Master/texmf-dist/source/latex/ledmac/ledpar.dtx
@@ -50,7 +50,7 @@
%
% \fi
%
-% \CheckSum{4448}
+% \CheckSum{4485}
%
% \makeatletter
% \newcommand*{\DescribeIt}{\leavevmode\@bsphack\begingroup\MakePrivateLetters
@@ -127,6 +127,8 @@
% \def\fileversion{v0.6} \def\filedate{2011/08/22}
% \def\fileversion{v0.7} \def\filedate{2011/08/31}
% \def\fileversion{v0.8} \def\filedate{2011/09/16}
+% \def\fileversion{v0.9}\def\filedate{2011/10/01}
+% \def\fileversion{v0.9.1}\def\filedate{2011/10/02}
% \changes{v0.1}{2004/12/10}{First public release}
% \changes{v0.2}{2005/01/01}{Fix babel problems}
% \changes{v0.3}{2005/03/24}{Reorganize for ledarab}
@@ -138,6 +140,8 @@
% \changes{v0.6}{2011/08/22}{Be able to us \cs{chapter} in parallel pages.}
% \changes{v0.7}{2011/08/31}{Option `shiftedverses' which make there is no blank between two parallel verses with inequal length.}
% \changes{v0.8}{2011/09/16}{Possibility to have a symbol on each hanging of verses, like in the french typography. Redefine the commande \cs{hangingsymbol} to define the character.}
+% \changes{v0.9}{2011/10/01}{Possibilty to number the pstart with the commands \cs{numberpstarttrue}.}
+% \changes{v0.9.1}{2011/10/02}{The numbering of the pstarts restarts on each \cs{beginnumbering}.}
% \hyphenation{man-u-script man-u-scripts}
%
% \newcommand{\Lpack}[1]{\textsf{#1}}
@@ -192,7 +196,7 @@
% which enables texts and their critical apparatus to be typeset in
% parallel, either in two columns or on pairs of facing pages.
%
-% Please, for all bug's report, open a ticket on \url{https://github.com/maieul/ledmac/issues/}
+% To report bugs, please go to ledmac's GitHub page and click "New Issue": \url{lhttps://github.com/maieul/ledmac/issues/}. You must open an account with github.com to access my page (maieul/ledmac). GitHub accounts are free for open-source users.
% \end{abstract}
%
% \tableofcontents
@@ -289,7 +293,7 @@
% meaning that there can be up to 10 chunks in the left text and up to
% 10 chunks in
% the right text, requiring a total of 20 boxes. If you need more chunks
-% then you can increase \cs{maxchunks}.
+% then you can increase \cs{maxchunks}. The \cs{maxchunks} must be called in the preamble.
%
% TeX has a limited number of boxes; if you get an error
% message along the lines of `no room for a new box', then decrease
@@ -485,7 +489,7 @@
% then blank lines are output on the shorter side until the end of the longer
% chunk is reached.
%
-% \section{Numbering text lines}
+% \section{Numbering text lines and paragraphs}
%
% \DescribeMacro{\beginnumbering}
% \DescribeMacro{\endnumbering}
@@ -560,6 +564,10 @@
% \oldBfootfmt{#1}{#2}{#3}}
% \end{verbatim}
%
+%
+%
+%\changes{v.0.9}{2011/10/01}{Possibility to number \cs{pstart}.}
+% It's possible to insert a number at every \cs{pstart} command. You must use the \DescribeMacro{\numberpstarttrue}\cs{numberpstarttrue} command to have it. You can stop the numerotation with \DescribeMacro{\numberpstartfalse}\cs{numberpstartfalse}. You can redefine the commands \DescribeMacro{\thepstartL}\cs{thepstartL} and \DescribeMacro{\thepstartR}\cs{thepstartR} to change style. The numbering restarts on each \cs{beginnumbering}
% \section{Verse}
%
% If you are typesetting verse with \Ledmac{} you can use the \cs{stanza}
@@ -693,7 +701,7 @@
% \begin{macrocode}
%<*code>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ledpar}[2011/09/16 v0.8 ledmac extension for parallel texts]
+\ProvidesPackage{ledpar}[2011/10/02 v0.9.1 ledmac extension for parallel texts]
% \end{macrocode}
% With the option `shiftedverses' a long verse one the left side (or in the right side) don't make a blank on the corresponding verse, but the blank is put on the bottom of the page. Consequently, the verses on the parallel pages are shifted, but the shifted stop at every end of pages.
@@ -720,11 +728,11 @@
% \cs{ifledRcol} is set TRUE if we are doing the right hand text.
% \cs{ifl@dpairing} is defined in \Lpack{ledmac}.
% \changes{v0.3}{2005/02/24}{Moved \cs{ifl@dpairing} to ledmac}
+% \changes{v0.9}{2005/10/01}{Moved \cs{iflledRcol} and \cs{ifnumberingR} to ledmac}
% \begin{macrocode}
\l@dpairingfalse
\newif\ifl@dpaging
\l@dpagingfalse
-\newif\ifledRcol
\ledRcolfalse
% \end{macrocode}
% \end{macro}
@@ -793,13 +801,6 @@
% \end{macrocode}
% \end{macro}
%
-% \begin{macro}{\ifnumberingR}
-% The \cs{ifnumberingR} flag is
-% set to \verb"true" if we're within a right text numbered section.
-% \begin{macrocode}
-\newif\ifnumberingR
-% \end{macrocode}
-% \end{macro}
%
% \begin{macro}{\ifpst@rtedL}
% \begin{macro}{\ifpst@rtedR}
@@ -859,7 +860,9 @@
\global\let\sub@change\relax
\message{Section \the\section@numR R }%
\line@list@stuffR{\jobname.\extensionchars\the\section@numR R}%
- \l@dend@stuff}
+ \l@dend@stuff
+ \setcounter{pstartR}{1}
+}
% \end{macrocode}
% \end{macro}
@@ -2095,7 +2098,7 @@
}
% \end{macrocode}
% The \verb?pages? environment additionally sets the `column' widths to the
-% \cs{textwidth} (as known at the time the package is called). As in this environnement there is two text in parallels in 2 pages, chapter have not to start in a left page. So the \cs{chapter} command is redefined to make no test about clearing page.
+% \cs{textwidth} (as known at the time the package is called). In this environment, there are two text in parallel on 2 pages. To prevent chapters starting on a lefthand page, the \cs{chapter} command is redefined to not clear pages.
% \begin{macrocode}
\newenvironment{pages}{%
\let\oldchapter\chapter
@@ -2129,7 +2132,9 @@
% \begin{macrocode}
\newenvironment{Leftside}{%
\ledRcolfalse
+ \let\beginnumbering\beginnumbering\setcounter{pstartL}{1}
\let\pstart\pstartL
+ \let\thepstart\thepstartL
\let\pend\pendL
\let\memorydump\memorydumpL
\Leftsidehook
@@ -2169,7 +2174,8 @@
\let\endnumbering\endnumberingR
\let\pausenumbering\pausenumberingR
\let\resumenumbering\resumenumberingR
- \let\memorydump\memorydumpR
+ \let\memorydump\memorydumpR
+ \let\thepstart\thepstartR
\let\pstart\pstartR
\let\pend\pendR
\let\lineation\lineationR
@@ -2243,6 +2249,12 @@
% among other things because of potential changes in the linewidth.
%
% \begin{macrocode}
+
+\newcounter{pstartL}
+\renewcommand{\thepstartL}{{\bf\@arabic\c@pstartL}. }
+\newcounter{pstartR}
+\renewcommand{\thepstartR}{{\bf\@arabic\c@pstartR}. }
+
\newcommand*{\pstartL}{
\if@nobreak
\let\@oldnobreak\@nobreaktrue
@@ -2278,7 +2290,7 @@
\led@err@TooManyPstarts
\global\l@dnumpstartsL=\l@dc@maxchunks
\fi
- \global\setnamebox{l@dLcolrawbox\the\l@dnumpstartsL}=\vbox\bgroup%
+ \global\setnamebox{l@dLcolrawbox\the\l@dnumpstartsL}=\vbox\bgroup\ifautopar\else\ifnumberpstart\thepstartL\fi\fi%
\hsize=\Lcolwidth
\numberedpar@true}
% \end{macrocode}
@@ -2310,7 +2322,7 @@
\led@err@TooManyPstarts
\global\l@dnumpstartsR=\l@dc@maxchunks
\fi
- \global\setnamebox{l@dRcolrawbox\the\l@dnumpstartsR}=\vbox\bgroup%
+ \global\setnamebox{l@dRcolrawbox\the\l@dnumpstartsR}=\vbox\bgroup\ifautopar\else\ifnumberpstart\thepstartR\fi\fi%
\hsize=\Rcolwidth
\numberedpar@true}
% \end{macrocode}
@@ -2345,7 +2357,10 @@
% \begin{macrocode}
\endgroup
\ignorespaces
- \@oldnobreak}
+ \@oldnobreak
+ \ifnumberpstart
+ \addtocounter{pstartL}{1}
+ \fi}
% \end{macrocode}
% \end{macro}
@@ -2365,7 +2380,11 @@
\global\par@lineR=0
\endgroup
\ignorespaces
- \@oldnobreak}
+ \@oldnobreak
+ \ifnumberpstart
+ \addtocounter{pstartR}{1}
+ \fi
+}
% \end{macrocode}
% \end{macro}