From 01d6be75dbb4b3d42fd1076315469a432172627b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 15 Dec 2014 22:38:38 +0000 Subject: eledmac (15dec14) git-svn-id: svn://tug.org/texlive/trunk@35833 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/eledmac/eledmac.sty | 100 ++++++++++++++++-------- 1 file changed, 68 insertions(+), 32 deletions(-) (limited to 'Master/texmf-dist/tex/latex') 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% -- cgit v1.2.3