summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-12-15 22:38:38 +0000
committerKarl Berry <karl@freefriends.org>2014-12-15 22:38:38 +0000
commit01d6be75dbb4b3d42fd1076315469a432172627b (patch)
tree9e9a1a6d85cdb26f54e3c00e0cbb6dddb55484de /Master/texmf-dist/source/latex
parentf8c09c21ae1b44cc18cf916eef238a765c766ea0 (diff)
eledmac (15dec14)
git-svn-id: svn://tug.org/texlive/trunk@35833 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r--Master/texmf-dist/source/latex/eledmac/eledmac.dtx108
1 files changed, 74 insertions, 34 deletions
diff --git a/Master/texmf-dist/source/latex/eledmac/eledmac.dtx b/Master/texmf-dist/source/latex/eledmac/eledmac.dtx
index 65e3e13b41e..8e13d3a0f20 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{10302}
+% \CheckSum{10321}
%
% \makeatletter
% \newcommand*{\DescribeIt}{\leavevmode\@bsphack\begingroup\MakePrivateLetters
@@ -2858,7 +2858,7 @@
% \begin{macrocode}
%<*code>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{eledmac}[2014/10/27 v1.14.0 LaTeX port of EDMAC]%
+\ProvidesPackage{eledmac}[2014/12/15 v1.14.1 LaTeX port of EDMAC]%
% \end{macrocode}
%
% Generally, these are the modifications to the original.
@@ -13909,22 +13909,6 @@
{}
{}
-\patchcmd{\@sect}
- {#8}
- {#8%
- \print@rightmargin@eledsection%
- }
- {}
- {}
-
-\patchcmd{\@sect}
- {\hskip #3\relax}
- {\hskip #3\relax%
- \print@leftmargin@eledsection%
- }
- {}
- {}
-
\pretocmd{\@ssect}
{\let\old@edtext=\edtext%
\let\edtext=\dummy@edtext@showlemma%
@@ -13936,23 +13920,79 @@
{\let\edtext=\old@edtext}
{}
{}
+
+% \end{macrocode}
+% \changes{v1.14.1}{2014/12/15}{Debug sectioning commands when using both \Lpack{handout} and \Lpack{hyperref} package.}
+% \Lpack{hyperref} redefines also \cs{@sect}. That's why, when manipulating arguments, we patch \cs{@sect} and similar only if \Lpack{hyperref} is not used. If used, we patch the \cs{NR} commands.
+% \begin{macrocode}
+\@ifpackageloaded{nameref}{
-\patchcmd{\@ssect}
- {#5}
- {#5%
- \print@rightmargin@eledsection%
- }
- {}
- {}
-
-\patchcmd{\@ssect}
- {\hskip #1}
- {\hskip #1%
- \print@leftmargin@eledsection%
- }
- {}
- {}
-}%
+ \patchcmd{\NR@sect}
+ {#8}
+ {#8%
+ \print@rightmargin@eledsection%
+ }
+ {}
+ {}
+
+ \patchcmd{\NR@sect}
+ {\hskip #3\relax}
+ {\hskip #3\relax%
+ \print@leftmargin@eledsection%
+ }
+ {}
+ {}
+
+ \patchcmd{\NR@ssect}
+ {#5}
+ {#5%
+ \print@rightmargin@eledsection%
+ }
+ {}
+ {}
+
+ \patchcmd{\NR@ssect}
+ {\hskip #1}
+ {\hskip #1%
+ \print@leftmargin@eledsection%
+ }
+ {}
+ {}
+ }%
+ {
+ \patchcmd{\@sect}
+ {#8}
+ {#8%
+ \print@rightmargin@eledsection%
+ }
+ {}
+ {}
+
+ \patchcmd{\@sect}
+ {\hskip #3\relax}
+ {\hskip #3\relax%
+ \print@leftmargin@eledsection%
+ }
+ {}
+ {}
+
+ \patchcmd{\@ssect}
+ {#5}
+ {#5%
+ \print@rightmargin@eledsection%
+ }
+ {}
+ {}
+
+ \patchcmd{\@ssect}
+ {\hskip #1}
+ {\hskip #1%
+ \print@leftmargin@eledsection%
+ }
+ {}
+ {}
+ }%
+}
\catcode`\#=6 %Space NEEDS by \catcode
% \end{macrocode}
% \end{macro}