summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ledmac/ledmac.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-08-16 22:39:07 +0000
committerKarl Berry <karl@freefriends.org>2012-08-16 22:39:07 +0000
commit22c251adda514ed7b453066de05b2f89707d0fe6 (patch)
treec2676b88be564a83e2223682be307b93a7512700 /Master/texmf-dist/tex/latex/ledmac/ledmac.sty
parentba17420abc332aeb0656fc73507e29fa48e1ee96 (diff)
ledmac (16aug12)
git-svn-id: svn://tug.org/texlive/trunk@27426 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ledmac/ledmac.sty')
-rw-r--r--Master/texmf-dist/tex/latex/ledmac/ledmac.sty22
1 files changed, 15 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/ledmac/ledmac.sty b/Master/texmf-dist/tex/latex/ledmac/ledmac.sty
index a303b951ab0..1afbb55234b 100644
--- a/Master/texmf-dist/tex/latex/ledmac/ledmac.sty
+++ b/Master/texmf-dist/tex/latex/ledmac/ledmac.sty
@@ -23,7 +23,7 @@
%% This work consists of the files listed in the README file.
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ledmac}[2012/06/21 v0.16 LaTeX port of EDMAC]
+\ProvidesPackage{ledmac}[2012/08/03 v0.17 LaTeX port of EDMAC]
\newif\ifledfinal
\DeclareOption{final}{\ledfinaltrue}
@@ -833,16 +833,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
- }}%
- \prevline@num=\line@num%
- \add@penalties}
-
+ }}}%
\newcommand*{\do@linehook}{}
\newcommand*{\l@demptyd@ta}{%
\gdef\l@dld@ta{}%
@@ -2685,8 +2687,14 @@
\newcommand*{\hangingsymbol}{}
\newif\ifinstanza
\instanzafalse
-\newcount\prevline@num
-\newcommand{\inserthangingsymbol}{\ifinstanza\ifnum\line@num=\prevline@num\hfill\hangingsymbol\fi\fi}
+\newif\ifinserthangingsymbol
+\newcommand{\inserthangingsymbol}{%
+\ifinserthangingsymbol%
+\ifinstanza%
+\hfill\hangingsymbol%
+\fi%
+\fi%
+}
\newcommand*{\ampersand}{\char`\&}
\chardef\body=\catcode`\@