diff options
author | Karl Berry <karl@freefriends.org> | 2012-08-16 22:39:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-08-16 22:39:07 +0000 |
commit | 22c251adda514ed7b453066de05b2f89707d0fe6 (patch) | |
tree | c2676b88be564a83e2223682be307b93a7512700 /Master/texmf-dist/source/latex/ledmac/ledmac.dtx | |
parent | ba17420abc332aeb0656fc73507e29fa48e1ee96 (diff) |
ledmac (16aug12)
git-svn-id: svn://tug.org/texlive/trunk@27426 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/ledmac/ledmac.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/ledmac/ledmac.dtx | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/Master/texmf-dist/source/latex/ledmac/ledmac.dtx b/Master/texmf-dist/source/latex/ledmac/ledmac.dtx index 14e385e1538..ea7cf67f91b 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{9324} +% \CheckSum{9323} % % \makeatletter % \newcommand*{\DescribeIt}{\leavevmode\@bsphack\begingroup\MakePrivateLetters @@ -140,6 +140,7 @@ % \def\fileversion{v0.14} \def\filedate{2012/04/04} % \def\fileversion{v0.15} \def\filedate{2012/06/11} % \def\fileversion{v0.16} \def\filedate{2012/06/21} +% \def\fileversion{v0.17} \def\filedate{2012/08/03} % \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} @@ -2475,7 +2476,7 @@ % \skippedtrue % \fi % \leftskip0pt\rightskip0pt -% \csname #1\footnoterule\endcsname} +% \csname #1footnoterule\endcsname} % \footnormal{A}% make sure the new \normalfootstart is used % \footnormal{B} % ... @@ -2678,7 +2679,7 @@ % \begin{verbatim} % ... \edtext{\colorbox{mycolor}{lemma}}{\Afootnote{...\colorbox...}} % \end{verbatim} -% If you actally try +% If you actually try % this\footnote{Reported by Dirk-Jan Dekker\index{Dekker, Dirk-Jan} % in the CTT thread `Incompatibility % of ``color'' package' on 2003/08/28.} @@ -2979,7 +2980,7 @@ % \begin{macrocode} %<*code> \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{ledmac}[2012/06/21 v0.16 LaTeX port of EDMAC] +\ProvidesPackage{ledmac}[2012/08/03 v0.17 LaTeX port of EDMAC] % \end{macrocode} % @@ -5216,7 +5217,7 @@ % % \begin{PW} % \begin{macro}{\dummy@edtext} -% LaTeX users are not used to delimeted arguments, so I provide +% LaTeX users are not used to delimited arguments, so I provide % a \cs{edtext} macro as well. % \begin{macrocode} \newcommand{\dummy@edtext}[2]{#1} @@ -5796,19 +5797,18 @@ \global\setbox\one@line=\vsplit\raw@text to\baselineskip}% \unvbox\one@line \global\setbox\one@line=\lastbox \getline@num + \ifnum\@lock>\@ne + \inserthangingsymboltrue + \else + \inserthangingsymbolfalse + \fi \affixline@num \affixpstart@num \hb@xt@ \linewidth{\inserthangingsymbol\l@dld@ta\add@inserts\affixside@note \l@dlsn@te {\ledllfill\hb@xt@ \wd\one@line{\new@line\l@dunhbox@line{\one@line}}\ledrlfill\l@drd@ta% \l@drsn@te - }}% -%\end{macrocode} -% The \cs{prevline@num} counter is used to check the insertion of hanging symbol. -%\begin{macrocode} - \prevline@num=\line@num% - \add@penalties} - + }}}% % \end{macrocode} % \end{macro} % \end{macro} @@ -10846,12 +10846,19 @@ % \end{macro} % \end{macro} %\changes{v0.15}{2012/06/11}{New management of hangingsymbol insertion, preventing undesirable insertions.} +%\changes{v0.17}{2012/08/03}{New new management of hangingsymbol insertion, preventing undesirable insertions.} % \begin{macro}{\inserthangingymbol} -% \begin{macro}{\prevline@num} -% After each insertion of true line, the value of \cs{line@num} counter is put into the \cs{prevline@num} counter. When we change verse, the \cs{line@num} is not equal to the \cs{prevline@num}. But if a verse is in two ore more lines, the second line (and next) has the same number as the first line of the verse. Consequently, the \cs{line@num} is equal to the \cs{prevline@num}. This property is used by the \cs{inserthangingsymbol} command to insert the hanging symbol at each verse's hanging. -% \begin{macrocode} -\newcount\prevline@num -\newcommand{\inserthangingsymbol}{\ifinstanza\ifnum\line@num=\prevline@num\hfill\hangingsymbol\fi\fi} +% \begin{macro}{\ifinserthangingsymbol} +% The boolean \cs{ifinserthangingsymbol} is set to TRUE when \cs{@lock} is greater than 1, i.e. when we are not in the first line of a verse. The switch of \cs{ifinserthangingsymbol} is made in \cs{do@line} before the printing of line but after the line number calculation. +% \begin{macrocode} +\newif\ifinserthangingsymbol +\newcommand{\inserthangingsymbol}{% +\ifinserthangingsymbol% + \ifinstanza% + \hfill\hangingsymbol% + \fi% +\fi% +} % \end{macrocode} % \end{macro} % \end{macro} |