summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/eledmac/eledmac.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-08-21 22:08:05 +0000
committerKarl Berry <karl@freefriends.org>2013-08-21 22:08:05 +0000
commitc3c661426b38899deda17ccef1b1494d440b297c (patch)
tree510f133c6df248dcf8d11e9799e1c79079dab937 /Master/texmf-dist/source/latex/eledmac/eledmac.dtx
parent60db445b187defd29b9b812162d897c90425b092 (diff)
eledmac (21aug13)
git-svn-id: svn://tug.org/texlive/trunk@31488 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/eledmac/eledmac.dtx')
-rw-r--r--Master/texmf-dist/source/latex/eledmac/eledmac.dtx36
1 files changed, 27 insertions, 9 deletions
diff --git a/Master/texmf-dist/source/latex/eledmac/eledmac.dtx b/Master/texmf-dist/source/latex/eledmac/eledmac.dtx
index 976417e4355..3dbda7d61d2 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{8413}
+% \CheckSum{8437}
%
% \makeatletter
% \newcommand*{\DescribeIt}{\leavevmode\@bsphack\begingroup\MakePrivateLetters
@@ -2686,7 +2686,7 @@
% \begin{macrocode}
%<*code>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{eledmac}[2013/08/16 v1.5.1 LaTeX port of EDMAC]
+\ProvidesPackage{eledmac}[2013/08/21 v1.5.2 LaTeX port of EDMAC]
% \end{macrocode}
%
% Generally, these are the modifications to the original.
@@ -4740,19 +4740,30 @@
% \changes{v0.2.2}{2003/11/09}{Added initial write of page number in
% \cs{line@list@stuff}}
% \changes{v0.7}{2005/02/25}{Deleted \cs{page@start} from \cs{line@list@stuff}}
+% \changes{v1.5.2}{2013/08/25}{Open / close immediatly the line-list file when in minipage, except if the minipage is a ledgroup.}
% \begin{macrocode}
\iffirst@linenum@out@
- \immediate\closeout\linenum@out
- \global\first@linenum@out@false
- \immediate\openout\linenum@out=#1\relax
+ \immediate\closeout\linenum@out%
+ \global\first@linenum@out@false%
+ \immediate\openout\linenum@out=#1\relax%
\else
% \end{macrocode}
% If we get here, then this is
% not the first line-list we've seen, so we
-% don't open or close the files immediately.
+% don't open or close the files immediately, except if we are in a minipage and this minipage is not a ledgroup.
% \begin{macrocode}
- \closeout\linenum@out
- \openout\linenum@out=#1\relax
+ \if@minipage%
+ \if@ledgroup%
+ \closeout\linenum@out%
+ \openout\linenum@out=#1\relax%
+ \else%
+ \immediate\closeout\linenum@out%
+ \immediate\openout\linenum@out=#1\relax%
+ \fi
+ \else%
+ \closeout\linenum@out%
+ \openout\linenum@out=#1\relax%
+ \fi%
\fi}
% \end{macrocode}
@@ -10296,14 +10307,17 @@
% \end{macrocode}
% \end{macro}
%
+%
% \begin{environment}{ledgroup}
+% \begin{macro}{\if@ledgroup}
% This environment puts footnotes at the end, even if that happens to
% be in the middle of a page, or crossing a page boundary. It is a sort
% of unboxed, fixed width minipage.
% \changes{v0.4}{2004/02/29}{Added ledgroup environment}
% \begin{macrocode}
+\newif\if@ledgroup
\newenvironment{ledgroup}{%
- \def\@mpfn{mpfootnote}\def\thempfn{\thempfootnote}\c@mpfootnote\z@
+ \@ledgrouptrue\def\@mpfn{mpfootnote}\def\thempfn{\thempfootnote}\c@mpfootnote\z@
\let\@footnotetext\@mpfootnotetext
\l@dfeetbeginmini%
}{%
@@ -10313,9 +10327,11 @@
\l@dunboxmpfoot
\fi
\l@dfeetendmini%
+ \@ledgroupfalse%
}
% \end{macrocode}
+% \end{macro}
% \end{environment}
%
% \begin{environment}{ledgroupsized}
@@ -10358,6 +10374,7 @@
% \end{macrocode}
% Set up the footnoting.
% \begin{macrocode}
+ \@ledgrouptrue%
\def\@mpfn{mpfootnote}\def\thempfn{\thempfootnote}\c@mpfootnote\z@
\let\@footnotetext\@mpfootnotetext
\l@dfeetbeginmini%
@@ -10368,6 +10385,7 @@
\l@dunboxmpfoot
\fi
\l@dfeetendmini%
+ \@ledgroupfalse%
}
% \end{macrocode}