summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/eledmac/eledmac.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/eledmac/eledmac.sty')
-rw-r--r--Master/texmf-dist/tex/latex/eledmac/eledmac.sty48
1 files changed, 26 insertions, 22 deletions
diff --git a/Master/texmf-dist/tex/latex/eledmac/eledmac.sty b/Master/texmf-dist/tex/latex/eledmac/eledmac.sty
index bbea3d69724..08d33c61c5b 100644
--- a/Master/texmf-dist/tex/latex/eledmac/eledmac.sty
+++ b/Master/texmf-dist/tex/latex/eledmac/eledmac.sty
@@ -24,10 +24,12 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{eledmac}[2012/11/16 v1.4 LaTeX port of EDMAC]
+\ProvidesPackage{eledmac}[2012/11/16 v1.4.1 LaTeX port of EDMAC]
\newif\ifledfinal
\newif\ifparapparatus@
+\newif\ifnoquotation@
\parapparatus@false
+\DeclareOption{noquotation}{\noquotation@true}
\DeclareOption{final}{\ledfinaltrue}
\DeclareOption{draft}{\ledfinalfalse}
\DeclareOption{parapparatus}{\parapparatus@true}
@@ -228,6 +230,7 @@
\newcommand\beforeledchapter{\pend\cleardoublepage\pstart}
\patchcmd{\chapter}{\cleardoublepage}{\relax}{}{}
\patchcmd{\chapter}{\clearpage}{\relax}{}{}
+ \ifnoquotation@\else
\renewcommand{\quotation}{\par\leavevmode%
\parindent=1.5em%
\skipnumbering%
@@ -272,6 +275,7 @@
\vskip\topsep%
\fi%
}
+ \fi
}
\newcommand{\ledsectnotoc}{\let\addcontentsline\@gobblethree}
\def\endnumbering{%
@@ -1803,14 +1807,14 @@
\fi}
\newcommand{\l@dbfnote}[1]{%
\ifnumberedpar@
- \xright@appenditem{\noexpand\vl@dbfnote{{#1}}{\@thefnmark}}%
+ \gdef\@tag{#1}
+ \xright@appenditem{\noexpand\vl@dbfnote{{\csexpandonce{@tag}}}{\@thefnmark}}%
\to\inserts@list
\global\advance\insert@count \@ne
\fi\ignorespaces}
\newcommand{\vl@dbfnote}[2]{%
\def\@thefnmark{#2}%
\l@doldold@footnotetext{#1}}
-
\newcommand*{\prebodyfootmark}{%
\leavevmode
\ifhmode
@@ -2634,18 +2638,18 @@
{\string\l@dmake@labels\space\thepage|\label@refs|{#1}}%
\@esphack}
+\newcounter{line}%
+\newcounter{subline}%
\newcommand{\advancelabel@refs}{%
- \newcounter{line}%
\setcounter{line}{\expandafter\labelrefsparseline\label@refs}%
\stepcounter{line}%
\ifsublines@%
- \newcounter{subline}%
\setcounter{subline}{\expandafter\labelrefsparsesubline\label@refs}%
\stepcounter{subline}{1}%
- \def\label@refs{\theline|\thesubline}%
+ \def\label@refs{\theline|\thesubline}%
\else%
\def\label@refs{\theline|0}%
-\fi%
+ \fi%
}
\def\labelrefsparseline#1|#2{#1}
\def\labelrefsparsesubline#1|#2{#2}
@@ -2882,26 +2886,26 @@
\numdef{\itemcount@}{\itemcount@+1}%
}%
\dolistloop{\l@dcsnotetext}%
- \ifnumgreater{\itemcount@}{1}{\eledmac@warning{\itemcount@\space sidenotes on line \the\line@num\space p. \the\page@num,}}{}
+ \ifnumgreater{\itemcount@}{1}{\eledmac@warning{\itemcount@\space sidenotes on line \the\line@num\space p. \the\page@num,}}{}%
\gdef\@templ@d{}%
- \ifx\@templ@d\l@dcsnotetext \else
- \if@twocolumn
- \if@firstcolumn
+ \ifx\@templ@d\l@dcsnotetext \else%
+ \if@twocolumn%
+ \if@firstcolumn%
\setl@dlp@rbox{##1}{\sidenotecontent@}%
- \else
+ \else%
\setl@drp@rbox{\sidenotecontent@}%
- \fi
- \else
- \@l@dtempcntb=\sidenote@margin
- \ifnum\@l@dtempcntb>\@ne
- \advance\@l@dtempcntb by\page@num
- \fi
- \ifodd\@l@dtempcntb
+ \fi%
+ \else%
+ \@l@dtempcntb=\sidenote@margin%
+ \ifnum\@l@dtempcntb>\@ne%
+ \advance\@l@dtempcntb by\page@num%
+ \fi%
+ \ifodd\@l@dtempcntb%
\setl@drp@rbox{\sidenotecontent@}%
- \else
+ \else%
\setl@dlp@rbox{\sidenotecontent@}%
- \fi
- \fi
+ \fi%
+ \fi%
\fi}
\newcommand*{\l@dfeetbeginmini}{\l@dedbeginmini\l@dfambeginmini}
\newcommand*{\l@dfeetendmini}{\l@dedendmini\l@dfamendmini}