summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/eledmac
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/tex/latex/eledmac
parentf8c09c21ae1b44cc18cf916eef238a765c766ea0 (diff)
eledmac (15dec14)
git-svn-id: svn://tug.org/texlive/trunk@35833 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/eledmac')
-rw-r--r--Master/texmf-dist/tex/latex/eledmac/eledmac.sty100
1 files changed, 68 insertions, 32 deletions
diff --git a/Master/texmf-dist/tex/latex/eledmac/eledmac.sty b/Master/texmf-dist/tex/latex/eledmac/eledmac.sty
index 395b386bda8..ba15db55358 100644
--- a/Master/texmf-dist/tex/latex/eledmac/eledmac.sty
+++ b/Master/texmf-dist/tex/latex/eledmac/eledmac.sty
@@ -25,7 +25,7 @@
\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]%
\newif\ifledfinal
\newif\ifparapparatus@
\newif\ifnoquotation@
@@ -4847,22 +4847,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%
@@ -4875,22 +4859,74 @@
{}
{}
-\patchcmd{\@ssect}
- {#5}
- {#5%
- \print@rightmargin@eledsection%
- }
- {}
- {}
+\@ifpackageloaded{nameref}{
-\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
\newwrite\eled@sectioning@out
\newif\if@noeled@sec%