summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/ledmac/ledpar.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/ledmac/ledpar.dtx')
-rw-r--r--Master/texmf-dist/source/latex/ledmac/ledpar.dtx56
1 files changed, 37 insertions, 19 deletions
diff --git a/Master/texmf-dist/source/latex/ledmac/ledpar.dtx b/Master/texmf-dist/source/latex/ledmac/ledpar.dtx
index 70c408c9e0d..0b12bf384d8 100644
--- a/Master/texmf-dist/source/latex/ledmac/ledpar.dtx
+++ b/Master/texmf-dist/source/latex/ledmac/ledpar.dtx
@@ -1,7 +1,8 @@
% \iffalse meta-comment
%
% ledpar.dtx
-% Author: Peter Wilson (Herries Press) herries dot press at earthlink dot net
+% Author: Peter Wilson (Herries Press) herries dot press at earthlink dot net
+% Maintainer:Maïeul Rouquette maieul at maieul dot net
% Copyright 2004, 2005 Peter R. Wilson
%
% This work may be distributed and/or modified under the
@@ -13,7 +14,7 @@
% and version 1.3 or later is part of all distributions of
% LaTeX version 2003/06/01 or later.
%
-% This work has the LPPL maintenance status "unmaintained".
+% This work has the LPPL maintenance status "maintained".
%
% This work consists of the files listed in the README file.
%
@@ -35,6 +36,7 @@
\makeatother
\EnableCrossrefs
\CodelineIndex
+\RecordChanges
%%\OnlyDescription
\renewcommand{\MakeUppercase}[1]{#1}
\pagestyle{headings}
@@ -48,7 +50,7 @@
%
% \fi
%
-% \CheckSum{4226}
+% \CheckSum{4247}
%
% \makeatletter
% \newcommand*{\DescribeIt}{\leavevmode\@bsphack\begingroup\MakePrivateLetters
@@ -119,13 +121,15 @@
% \def\fileversion{v0.3} \def\filedate{2005/03/24}
% \def\fileversion{v0.3a} \def\filedate{2005/03/30}
% \def\fileversion{v0.3b} \def\filedate{2005/04/08}
+% \def\fileversion{v0.3c} \def\filedate{2011/06/16}
%
% \changes{v0.1}{2004/12/10}{First public release}
% \changes{v0.2}{2005/01/01}{Fix babel problems}
% \changes{v0.3}{2005/03/24}{Reorganize for ledarab}
% \changes{v0.3a}{2005/03/30}{Minor \cs{linenummargin} fix}
% \changes{v0.3b}{2005/04/08}{Improved parallel page balancing}
-%
+% \changes{v0.3c}{2011/06/16}{Compatibilty with Polyglossia}
+
% \hyphenation{man-u-script man-u-scripts}
%
% \newcommand{\Lpack}[1]{\textsf{#1}}
@@ -164,7 +168,8 @@
% has version number \fileversion, last revised \filedate.}}
% \author{%
% Peter Wilson \\
-% Herries Press\thanks{\texttt{herries dot press at earthlink dot net}}}
+% Herries Press\thanks{\texttt{herries dot press at earthlink dot net}}\\
+% Ma\"ieul Rouquette\thanks{\texttt{maieul at maieul dot net}}}
%
% \date{}
%
@@ -634,12 +639,7 @@
%
%
%
-% \StopEventually{%
-% ^^A \addcontentsline{toc}{section}{\protect\numberline{B}Index}
-% \addcontentsline{toc}{section}{Index}
-% \PrintIndex
-% ^^A \addtocontents{toc}{\protect\end{multicols}}
-% }
+% \StopEventually{}
%
% \clearpage
% \section{Implementation overview}\label{overview}
@@ -679,7 +679,7 @@
% \begin{macrocode}
%<*code>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ledpar}[2005/04/08 v0.3b ledmac extension for parallel texts]
+\ProvidesPackage{ledpar}[2011/06/16 v0.3c ledmac extension for parallel texts]
% \end{macrocode}
%
@@ -3624,10 +3624,11 @@
% \end{macrocode}
%
-% Now do the \verb?babel? fix, if necessary.
+% Now do the \verb?babel? fix or \verb?polyglossia?, if necessary.
% \begin{macrocode}
\AtBeginDocument{%
- \@ifundefined{bbl@main@language}{%
+ \@ifundefined{xpg@main@language}{%
+ \@ifundefined{bbl@main@language}{%
% \end{macrocode}
% Either \verb?babel? has not been used or it has been used with no
% specified language.
@@ -3660,7 +3661,19 @@
% \begin{macrocode}
\gdef\theledlanguageL{\bbl@main@language}%
\gdef\theledlanguageR{\bbl@main@language}%
-% \end{macrocode}
+ }%
+ }
+% \end{macrocode}
+% If on Polyglossia
+% \begin{macrocode}
+ { \apptocmd{\xpg@set@language}{%
+ \ifledRcol \gdef\theledlanguageR{#1}%
+ \else \gdef\theledlanguageL{#1}%
+ \fi}%
+ \let\l@duselanguage\xpg@set@language
+ \gdef\theledlanguageL{\xpg@main@language}%
+ \gdef\theledlanguageR{\xpg@main@language}%
+% \end{macrocode}
% That's it.
% \begin{macrocode}
}}
@@ -5111,7 +5124,7 @@ own business.} \&
%
% \bibliographystyle{alpha}
% \begin{thebibliography}{WWW99}
-%
+% \addcontentsline{toc}{section}{References}
% \bibitem[LW90]{EDMACTUG}
% John Lavagnino and Dominik Wujastyk.
% \newblock `An overview of \edmac: a \textsc{Plain} TeX format for
@@ -5140,13 +5153,18 @@ own business.} \&
% \end{thebibliography}
%
% \Finale
-%
+% \section*{}
+% \addcontentsline{toc}{section}{Index}
% \PrintIndex
+%
+% \section*{}
+% \addcontentsline{toc}{section}{Change History}
+% \PrintChanges
% \endinput
\endinput
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%% \CharacterTabl
+%% Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%% Digits \0\1\2\3\4\5\6\7\8\9
%% Exclamation \! Double quote \" Hash (number) \#