summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/eledmac
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-08-30 21:39:04 +0000
committerKarl Berry <karl@freefriends.org>2014-08-30 21:39:04 +0000
commit30819b8aa56e702e34aaaa8d288e4a246b1b5c0c (patch)
tree9fa3188d98674f9d54e38056cf4144f811c81228 /Master/texmf-dist/source/latex/eledmac
parent631b827fbf17858ff45c9196d046898773fd57e9 (diff)
eledmac (30aug14)
git-svn-id: svn://tug.org/texlive/trunk@35070 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/eledmac')
-rw-r--r--Master/texmf-dist/source/latex/eledmac/eledmac.dtx39
-rw-r--r--Master/texmf-dist/source/latex/eledmac/eledpar.dtx40
2 files changed, 53 insertions, 26 deletions
diff --git a/Master/texmf-dist/source/latex/eledmac/eledmac.dtx b/Master/texmf-dist/source/latex/eledmac/eledmac.dtx
index 2fda016631e..f6fca9d52fc 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{10093}
+% \CheckSum{10105}
%
% \makeatletter
% \newcommand*{\DescribeIt}{\leavevmode\@bsphack\begingroup\MakePrivateLetters
@@ -2438,7 +2438,11 @@
% At the second run, you will see the formating.
% And consequently, at the third run, you will see the table of contents.
%
-% For technical reason, the page break before \cs{elechapter} can't be add automatically. You have to insert it manually via \cs{beforeeledchapter}, which must be called outside of a numbering section.
+% For technical reason, the page break before \cs{elechapter} can't be added automatically. You have to insert it manually via \cs{beforeeledchapter}, which must be called outside of a numbering section.
+% \DescribeMacro{\noeledsec}
+% If you aren't going to have any \cs{eledxxx} commands, you can say \cs{noeledsec}
+% in your file, before the first \cs{beginnumbering}, to suppress the
+% generation of unneeded \file{.eledsec} file.
% \section{Quotation environments}
% The \verb+quotation+ and \verb+quote+ environment can be used so that same definition/note appears both inside and outside a numbered section.
% The typographical consequences will resemble the outside numbered sections, based on the styles of the \emph{book} class.
@@ -2839,7 +2843,7 @@
% \begin{macrocode}
%<*code>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{eledmac}[2014/08/28 v1.12.5 LaTeX port of EDMAC]%
+\ProvidesPackage{eledmac}[2014/08/31 v1.12.6 LaTeX port of EDMAC]%
% \end{macrocode}
%
% Generally, these are the modifications to the original.
@@ -3401,9 +3405,11 @@
\begingroup
\initnumbering@sectcmd
\fi
- \gdef\eled@sections@@{}
- \makeatletter\InputIfFileExists{\jobname.eledsec\the\section@num}{}{}\makeatother
- \immediate\openout\eled@sectioning@out=\jobname.eledsec\the\section@num\relax
+ \gdef\eled@sections@@{}%
+ \if@noeled@sec\else%
+ \makeatletter\InputIfFileExists{\jobname.eledsec\the\section@num}{}{}\makeatother%
+ \immediate\openout\eled@sectioning@out=\jobname.eledsec\the\section@num\relax%
+ \fi%
}
\newcommand*{\initnumbering@reg}{%
\global\pst@rtedLfalse
@@ -3455,7 +3461,9 @@
\led@err@NumberingNotStarted
\fi
\autoparfalse
- \immediate\closeout\eled@sectioning@out
+ \if@noeled@sec\else%
+ \immediate\closeout\eled@sectioning@out%
+ \fi%
\ifl@dpairing\else
\endgroup
\fi
@@ -12122,7 +12130,7 @@
% |\l@dgobbledarg| replaces its delineated argument by |\relax|
% (was |\verschwinden|).
% |\l@dgobbleoptarg|\oarg{arg}\marg{arg} replaces these two arguments (first is optional) by |\relax|.
-% \changes{v1.18.5}{2014/08/28}{\cs{l@dgobblearg} becomes \cs{l@dgobbeloptarg}}
+% \changes{v1.12.5}{2014/08/28}{\cs{l@dgobblearg} becomes \cs{l@dgobbeloptarg}}
% \begin{macrocode}
\def\l@dgobbledarg #1/{\relax}
\newcommand*{\l@dgobbleoptarg}[2][]{\relax}%
@@ -12270,7 +12278,7 @@
% \begin{macro}{\l@dmodforedtext}
% \begin{macro}{\l@drestoreforedtext}
% Modify and restore various macros for when |\edtext| is used.
-% \changes{v1.18.5}{2014/08/28}{Debug optional arguments of \cs{Xfootnote} in tabular context}
+% \changes{v1.12.5}{2014/08/28}{Debug optional arguments of \cs{Xfootnote} in tabular context}
% \begin{macrocode}
\newcommand{\l@dmodforedtext}{%
\let\edtext\relax
@@ -13495,7 +13503,7 @@
% \begin{macro}{\@makeschapterhead}
% \begin{macro}{\@sect}
% \begin{macro}{\@ssect}
-% \changes{v1.18.5}{2014/08/28}{Debug \cs{eledchapter} in parallel with \Lpack{memoir}}
+% \changes{v1.12.5}{2014/08/28}{Debug \cs{eledchapter} in parallel with \Lpack{memoir}}
% We have to patch \LaTeX, \Lclass{book} and \Lclass{memoir} sectioning commands in order to:
% \begin{itemize}
% \item Disable \cs{edtext} inside.
@@ -13679,6 +13687,17 @@
\newwrite\eled@sectioning@out
% \end{macrocode}
% \end{macro}
+% \begin{macro}{\noeledsec}
+% \changes{v1.12.6}{2014/08/31}{Add \cs{noeledsec} macro.}
+% \begin{macro}{\if@noeled@sec}
+% The boolean \cs{if@noeled@sec} is set to true when \cs{noeledsec} is called.
+% It is used to disable external file creation.
+% \begin{macrocode}
+\newif\if@noeled@sec%
+\newcommand{\noeledsec}{\global\@noeled@sectrue}%
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
% \begin{macro}{\eledchapter}
% \begin{macro}{\eledsection}
% \begin{macro}{\eledsubsection}
diff --git a/Master/texmf-dist/source/latex/eledmac/eledpar.dtx b/Master/texmf-dist/source/latex/eledmac/eledpar.dtx
index 645b6c9cbb3..8aec3e74504 100644
--- a/Master/texmf-dist/source/latex/eledmac/eledpar.dtx
+++ b/Master/texmf-dist/source/latex/eledmac/eledpar.dtx
@@ -51,7 +51,7 @@
%
% \fi
%
-% \CheckSum{4593}
+% \CheckSum{4601}
%
% \makeatletter
% \newcommand*{\DescribeIt}{\leavevmode\@bsphack\begingroup\MakePrivateLetters
@@ -179,6 +179,7 @@
% \changes{v1.8.0}{2014/08/05}{Add, as in eledmac, new system of sectioning commands.}
% \changes{v1.8.2}{2014/08/15}{Debug left and side note (bugs added by 1.8.0)}
% \changes{v1.8.2}{2014/08/15}{Debug \cs{eledxxx} with some paper size}
+% \changes{v1.8.3}{2014/08/31}{Add \cs{noeledxxx}, as in eledmac}
% \hyphenation{man-u-script man-u-scripts}
%
%
@@ -854,7 +855,7 @@
% \begin{macrocode}
%<*code>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{eledpar}[2014/08/15 v1.8.2 eledmac extension for parallel texts]%
+\ProvidesPackage{eledpar}[2014/08/31 v1.8.3 eledmac extension for parallel texts]%
% \end{macrocode}
% With the option `shiftedpstarts' a long pstart one the left side (or in the right side) don't make a blank on the corresponding pstart, but the blank is put on the bottom of the page. Consequently, the pstarts on the parallel pages are shifted, but the shifted stop at every end of pages.
@@ -981,7 +982,7 @@
% \end{macro}
% \end{macro}
%
-% \changes{v1.12.0}{2014/07/24}{\cs{beginnumbering} is defined only on \Lpack{eledmac}, not on \Lpack{eledpar}.}
+% \changes{v1.8.0}{2014/07/24}{\cs{beginnumbering} is defined only on \Lpack{eledmac}, not on \Lpack{eledpar}.}
%
% \begin{macro}{\beginnumberingR}
% This is the right text equivalent of \cs{beginnumbering}, and begins
@@ -1012,9 +1013,11 @@
\setcounter{pstartR}{1}
\begingroup
\initnumbering@sectcountR
- \gdef\eled@sectionsR@@{}
- \makeatletter\InputIfFileExists{\jobname.eledsec\the\section@numR R}{}{}\makeatother
- \immediate\openout\eled@sectioningR@out=\jobname.eledsec\the\section@numR R\relax
+ \gdef\eled@sectionsR@@{}%
+ \if@noeled@sec\else%
+ \makeatletter\InputIfFileExists{\jobname.eledsec\the\section@numR R}{}{}\makeatother%
+ \immediate\openout\eled@sectioningR@out=\jobname.eledsec\the\section@numR R\relax%
+ \fi%
}
% \end{macrocode}
% \end{macro}
@@ -1050,7 +1053,9 @@
\led@err@NumberingNotStarted
\fi
\endgroup
- \immediate\closeout\eled@sectioningR@out
+ \if@noeled@sec\else%
+ \immediate\closeout\eled@sectioningR@out%
+ \fi%
}
% \end{macrocode}
@@ -4002,7 +4007,7 @@
% \end{macro}
%
% \begin{macro}{\l@dchecklang}
-% \changes{v1.12.0}{2014/08/05}{Suppress \cs{l@dchecklang} which didn't work and was not logical, because both columns could have the same language but not the main language of the document.}
+% \changes{v1.8.0}{2014/08/05}{Suppress \cs{l@dchecklang} which didn't work and was not logical, because both columns could have the same language but not the main language of the document.}
% \end{macro}
% \begin{macro}{\l@dbbl@set@language}
% In \verb?babel? the macro \cs{bbl@set@language}\marg{lang} does the work when
@@ -4119,7 +4124,7 @@
% \end{macro}
% \end{macro}
% \begin{macro}{\Columns}
-% \changes{v1.12.0}{2014/07/28}{Modify \cs{Columns} to enable to add section's title.}
+% \changes{v1.8.0}{2014/07/28}{Modify \cs{Columns} to enable to add section's title.}
% The \cs{Columns} command results in the previous Left and
% Right texts being typeset in matching columns. There should
% be equal numbers of chunks in the left and right texts.
@@ -4163,7 +4168,7 @@
% are the same
% \changes{v0.2}{2004/12/20}{Added \cs{l@dchecklang} and \cs{l@duselanguage}
% to \cs{Columns}}
-% \changes{v1.12.0}{2014/08/05}{Suppress \cs{l@dchecklang} from \cs{Columns}.}
+% \changes{v1.8.0}{2014/08/05}{Suppress \cs{l@dchecklang} from \cs{Columns}.}
% \begin{macrocode}
\checkraw@text
{ \loop\ifaraw@text
@@ -4428,7 +4433,8 @@
%
%
% \begin{macro}{\Pages}
-% \changes{v1.12.0}{2014/07/28}{Modify \cs{Pages} to enable to add section's title.}
+% \changes{v1.8.0}{2014/07/28}{Modify \cs{Pages} to enable to add section's title.}
+% \changes{v1.8.3}{2014/08/31}{Debug blank pages when using optional argument in the last \cs{pend}.}
% The \cs{Pages} command results in the previous Left and
% Right texts being typeset on matching facing pages. There should
% be equal numbers of chunks in the left and right texts.
@@ -4552,8 +4558,8 @@
% Perhaps we have to move to the next (left) box. Check if we have got all
% we can onto the page. If not, repeat for the next line.
% \begin{macrocode}
- \get@nextboxL
- \checkpageL
+ \checkpageL%
+ \get@nextboxL%
\checkverseL
\checkpbL
\repeat
@@ -4598,8 +4604,8 @@
\parledgroup@correction@notespacing{R}
\hb@xt@ \hsize{\ledstrutR\unhbox\l@drightbox}%
\fi
- \get@nextboxR
- \checkpageR
+ \checkpageR%
+ \get@nextboxR%
\checkverseR
\checkpbR
\repeat
@@ -5035,6 +5041,7 @@
% Add the content of the optional argument of the last \cs{pend}.
% \begin{macrocode}
\l@dpagefulltrue
+ \l@dsamepagefalse%
\csuse{after@pendL@\the\l@dpscL}%
\global\csundef{after@pendL@\the\l@dpscL}%
% \end{macrocode}
@@ -5079,9 +5086,10 @@
\parledgroup@notes@endR
\parledgroup@correction@notespacing@final{R}
\else
+ \l@dpagefulltrue%
+ \l@dsamepagefalse%
\csuse{after@pendR@\the\l@dpscR}%
\global\csundef{after@pendR@\the\l@dpscR}%
- \l@dpagefulltrue
\fi
\fi
\fi}