diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/ledmac/ledmac.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/ledmac/ledmac.dtx | 89 |
1 files changed, 69 insertions, 20 deletions
diff --git a/Master/texmf-dist/source/latex/ledmac/ledmac.dtx b/Master/texmf-dist/source/latex/ledmac/ledmac.dtx index dfed346c774..d953b907969 100644 --- a/Master/texmf-dist/source/latex/ledmac/ledmac.dtx +++ b/Master/texmf-dist/source/latex/ledmac/ledmac.dtx @@ -50,7 +50,7 @@ % % \fi % -% \CheckSum{9085} +% \CheckSum{9130} % % \makeatletter % \newcommand*{\DescribeIt}{\leavevmode\@bsphack\begingroup\MakePrivateLetters @@ -133,6 +133,8 @@ % \def\fileversion{v0.9.1} \def\filedate{2011/08/08} % \def\fileversion{v0.10} \def\filedate{2011/08/22} % \def\fileversion{v0.11} \def\filedate{2011/09/16} +% \def\fileversion{v0.12} \def\filedate{2011/10/01} +% \def\fileversion{v0.12.1} \def\filedate{2011/10/02} % \changes{v0.1}{2003/03/25}{First public release} % \changes{v0.2}{2003/08/16}{Added tabmac code, and extended indexing} % \changes{v0.2.1}{2003/09/13}{Bug fixes and match with mempatch v1.8} @@ -153,12 +155,16 @@ % \changes{v0.7}{2005/03/02}{ledmac having been available for 2 years, % deleted the commented out original edmac texts} % \changes{v0.7}{2011/06/17}{Ma\"ieul Rouquette new maintainer} -% \changes{v0.8}{2011/07/11}{Bug on endnotes fixed : in a // text, every endnotes can be at the end (!)} -% \changes{v0.8.1}{2011/07/14}{Bug on \cs{edtext} ; \cs{critex} ; \cs{lemma} fixed : we can now us non switching commands, like \cs{textit}} +% \changes{0.8}{2011/17/06}{Bug on endnotes fixed : in a // text, all endnotes will print and be placed at the ends of columns (!)} +% \changes{v0.8.1}{2011/07/14}{Bug on \cs{edtext} ; \cs{critex} ; \cs{lemma} fixed : we can now us non switching commands} % \changes{v0.9}{2011/08/03}{No more ledpatch. All patches are now in the main file.} -% \changes{v0.9.1}{2011/08/08}{Fix some bug's linked with the integration of ledpatch on the main file.} -% \changes{v0.10}{2011/08/22}{Corrections about \cs{section} and other titles in numbered sections} -% \changes{v0.11}{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.1}{2011/08/08}{Fix some bugs linked to integrating ledpatch on the main file.} +% \changes{v0.10}{2011/08/22}{Corrections to \cs{section} and other titles in numbered sections} +% \changes{v0.11}{2011/09/16}{Makes it possible to add a symbol on each verse's hanging, as in French typography. Redefines the command \cs{hangingsymbol} to define the character.} +% \changes{v0.12}{2011/10/01}{Possibility to number the pstart with the commands \cs{numberpstarttrue}.} +% \changes{v0.12}{2011/10/01}{For compatibilty with ledpar, possibility to use \cs{autopar} on the right side.} +% \changes{v0.12.1}{2011/10/02}{The numbering of \cs{pstarts} restarts on each \cs{beginnumbering}.} +% \changes{v0.12.1}{2011/10/02}{Don't number \cs{pstarts} of stanza.} % \hyphenation{man-u-script man-u-scripts} % % \newcommand{\Lpack}[1]{\textsf{#1}} @@ -268,7 +274,7 @@ % \Lpack{poemscol} for poetical works. % \end{PW} % -% 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 @@ -583,7 +589,7 @@ % edited text. % % -% \section{Numbering text lines} +% \section{Numbering text lines and paragraphs} % % \DescribeMacro{\beginnumbering} % \DescribeMacro{\endnumbering} @@ -782,6 +788,8 @@ % and say \cs{memorybreak} between the relevant \cs{pend} and % \cs{pstart}. % +%\changes{v.0.12}{2011/10/01}{Possibilty 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 numbering with \DescribeMacro{\numberpstartfalse}\cs{numberpstartfalse}. You can redefine the command \DescribeMacro{\thepstart}\cs{thepstart} to change style. On each \cs{beginnumbering} the numbering restarts. % \subsection{Lineation commands} % % \DescribeMacro{\lineation} @@ -1549,7 +1557,7 @@ % \end{verbatim} % \end{PW} %\begin{PW} -% It's possible to insert a symbol on each hanging of verse. For example, in the french typography, the symbol is `]'.To say to ledmac to insert it, just redefine the macro \DescribeMacro{\hangingsymbol}\cmd{\hangingsymbol} with this code : +%It's possible to insert a symbol on each line of verse's hanging, as in French typography for `]'. To insert in ledmac, redefine macro \DescribeMacro{\hangingsymbol}\cmd{\hangingsymbol} with this code : %\begin{verbatim} %\renewcommand{\hangingsymbol}{[\,} %\end{verbatim} @@ -2947,7 +2955,7 @@ % \begin{macrocode} %<*code> \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{ledmac}[2011/09/16 v0.11 LaTeX port of EDMAC] +\ProvidesPackage{ledmac}[2011/10/02 v0.12.1 LaTeX port of EDMAC] % \end{macrocode} % @@ -3315,6 +3323,7 @@ % \end{macro} % \end{macro} % +% \begin{macro}{\ifnumberingR} % \begin{macro}{\ifl@dpairing} % \begin{macro}{\l@dpairingtrue} % \begin{macro}{\l@dpairingfalse} @@ -3322,19 +3331,26 @@ % \begin{macro}{\pst@rtedLtrue} % \begin{macro}{\pst@rtedLfalse} % \begin{macro}{\l@dnumpstartsL} +% \begin{macro}{\ifledRcol} % In preparation for the \Lpack{ledpar} package, these are related to % the `left' text of parallel texts (when \cs{ifl@dpairing} is TRUE). % They are explained in the \Lpack{ledpar} % manual. % \changes{v0.7}{2005/02/24}{Added \cs{l@dnumpstartsL}, \cs{ifl@dpairing} % and \cs{ifpst@rted} for/from ledpar} +% \changes{v0.12}{2005/10/01}{Added \cs{ifledRcol} and \cs{ifnumberingR} for/from ledpar} % \begin{macrocode} \newif\ifl@dpairing \l@dpairingfalse \newif\ifpst@rtedL \pst@rtedLfalse \newcount\l@dnumpstartsL - +\newif\ifledRcol +% \end{macrocode} +% 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} % \end{macro} @@ -3343,7 +3359,8 @@ % \end{macro} % \end{macro} % \end{macro} -% +% \end{macro} +% \end{macro} % \begin{macro}{\beginnumbering} % \begin{macro}{\initnumbering@reg} % \cs{beginnumbering} begins a section of numbered text. @@ -3375,7 +3392,9 @@ \initnumbering@reg \message{Section \the\section@num }% \line@list@stuff{\jobname.\extensionchars\the\section@num}% - \l@dend@stuff} + \l@dend@stuff + \setcounter{pstart}{1} +} \newcommand*{\initnumbering@reg}{% \global\pst@rtedLfalse \global\l@dnumpstartsL \z@ @@ -3419,8 +3438,8 @@ \fi \else \led@err@NumberingNotStarted - \fi} - + \fi + \autoparfalse} % \end{macrocode} % \end{macro} % @@ -5527,6 +5546,9 @@ % \end{macro} % % \begin{macro}{\pstart} +% \begin{macro}{numberpstarttrue} +% \begin{macro}{numberpstartfalse} +% \begin{macro}{thepstart} % \cs{pstart} starts the paragraph by % clearing the \cs{inserts@list} list and other % relevant variables, and then arranges for the @@ -5538,7 +5560,18 @@ % Beware: everything that occurs between \cs{pstart} and \cs{pend} % is happening within a group; definitions must be global if you want % them to survive past the end of the paragraph. +% +%You can use the command \cs{numberpstarttrue} to insert a number on every \cs{pstart}. To stop the numbering, you must use \cs{numberpstartfalse}. To reset the numebering of \cs{pstarts}, insert +% \begin{verbatim} +%\setcounter{pstart}{0} +% \end{verbatim} +% % \begin{macrocode} + +\newcounter{pstart} +\renewcommand{\thepstart}{{\bf\@arabic\c@pstart}. } +\newif\ifnumberpstart +\numberpstartfalse \newcommand*{\pstart}{ \managehangingsymbol \if@nobreak @@ -5547,7 +5580,7 @@ \let\@oldnobreak\@nobreakfalse \fi \@nobreaktrue - \ifnumbering \else +\ifnumbering \else \led@err@PstartNotNumbered \beginnumbering \fi @@ -5558,11 +5591,13 @@ \list@clear{\inserts@list}% \global\let\next@insert=\empty \begingroup\normal@pars - \global\setbox\raw@text=\vbox\bgroup + \global\setbox\raw@text=\vbox\bgroup\ifautopar\else\ifnumberpstart\ifinstanza\else\thepstart\fi\fi\fi \numberedpar@true} % \end{macrocode} % \end{macro} -% +% \end{macro} +% \end{macro} +% \end{macro} % \begin{macro}{\pend} % \cs{pend} must be used to end a numbered paragraph. % @@ -5573,6 +5608,9 @@ \ifnumberedpar@ \else \led@err@PendNoPstart \fi +\ifnumberpstart +\addtocounter{pstart}{1} +\fi % \end{macrocode} % We set all the usual interline penalties to zero and then immediately % call \cs{endgraf} to end the paragraph; this ensures that there'll @@ -5649,13 +5687,24 @@ % \cs{pstart}, restoring the indentation that we saved, and % locally change \verb"\par" so that it'll do our \cs{pend} for us. % \begin{macrocode} -\newcommand*{\autopar}{\ifnumbering \else +\newif\ifautopar +\autoparfalse +\newcommand*{\autopar}{ + \ifledRcol + \ifnumberingR \else + \led@err@AutoparNotNumbered + \beginnumberingR + \fi + \else + \ifnumbering \else \led@err@AutoparNotNumbered \beginnumbering + \fi \fi + \autopartrue \everypar={\setbox0=\lastbox \endgraf \vskip-\parskip - \pstart \noindent \kern\wd0 + \pstart \noindent \kern\wd0 \ifnumberpstart\ifinstanza\else\thepstart\fi\fi \let\par=\pend}% \ignorespaces} % \end{macrocode} |