diff options
author | Karl Berry <karl@freefriends.org> | 2017-11-06 21:58:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-11-06 21:58:48 +0000 |
commit | 8250d9a7dd7d0b665030bd401781a79022ddc865 (patch) | |
tree | f2df69706bd33b51880b83e9d722b8d2a4007131 /Master/texmf-dist/tex | |
parent | 5949a9aee0bb29a10f1ec50a6cb8dd50a1c7de81 (diff) |
reledmac (6nov17)
git-svn-id: svn://tug.org/texlive/trunk@45709 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/reledmac/reledmac.sty | 37 |
1 files changed, 25 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/reledmac/reledmac.sty b/Master/texmf-dist/tex/latex/reledmac/reledmac.sty index 52280b167d5..87a5dd36cfc 100644 --- a/Master/texmf-dist/tex/latex/reledmac/reledmac.sty +++ b/Master/texmf-dist/tex/latex/reledmac/reledmac.sty @@ -25,6 +25,7 @@ +%% \changes{v2.25.0}{2017/11/05}{Add \protect\cs{Xendtxtbeforenotes} hook} @@ -35,7 +36,7 @@ %% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{reledmac}[2017/10/21 v2.24.2 typesetting critical editions]% +\ProvidesPackage{reledmac}[2017/11/05 v2.25.0 typesetting critical editions]% \RequirePackage{xkeyval} \newif\ifparledgroup \DeclareOptionX{series}[A,B,C,D,E]{\xdef\default@series{#1}} @@ -2471,7 +2472,8 @@ \ifcsdef{\csuse{series@display#1}@begin@insert}{% \csuse{\csuse{series@display#1}@begin@insert}{#1}% }{}% - \strut\csuse{Xnotefontsize@#1}\csuse{Xtxtbeforenotes@#1}% + \strut\csuse{Xnotefontsize@#1}% + \csuse{Xtxtbeforenotes@#1}% \egroup% }% }% @@ -4352,6 +4354,10 @@ }% \global\notbool{parapparatus@}{}{\long}\def\endprint#1#2#3#4#5#6#7{{% + \iftoggle{Xendfirstnote@#4}{% + \global\togglefalse{Xendfirstnote@#4}% + \csuse{Xendtxtbeforenotes@#4}% + }{}% \csuse{Xendbhooknote@#4}% \csuse{Xendnotefontsize@#4}% \hangindent=\csuse{Xendhangindent@#4}% @@ -4490,6 +4496,7 @@ \begingroup \csxdef{prevpagenum@#1}{}% \csxdef{prevpagerange@#1}{}% + \global\toggletrue{Xendfirstnote@#1}% \makeatletter \expandafter\let\csname #1end\endcsname=\endprint \input\l@auxdir\jobname.#1end% @@ -4503,6 +4510,7 @@ \begingroup% \makeatletter% \def\l@d@section##1{% + \global\toggletrue{Xendfirstnote@#1}% \ifnumequal{##1}{\csname #1end@bysection\endcsname}% {\cslet{#1end}{\endprint}}% {\cslet{#1end}{\@gobbleseven}}% @@ -5065,11 +5073,14 @@ \csgdef{Xendlemmafont@#1}{}% - \newtoggle{Xendpagenumberonlyfirst@#1}% - \newtoggle{Xendpagenumberonlyfirstifsingle@#1}% - \newtoggle{Xendpagenumberonlyfirstintwo@#1}% - \csgdef{Xendsympagenum@#1}{}% - \csgdef{Xendinplaceofpagenumber@#1}{0pt}% + \newtoggle{Xendpagenumberonlyfirst@#1}% + \newtoggle{Xendpagenumberonlyfirstifsingle@#1}% + \newtoggle{Xendpagenumberonlyfirstintwo@#1}% + \csgdef{Xendsympagenum@#1}{}% + \csgdef{Xendinplaceofpagenumber@#1}{0pt}% + + \csgdef{Xendtxtbeforenotes@#1}{}% + \newtoggle{Xendfirstnote@#1}%Not a hook, but used to apply Xendtxtbeforenotes \fi% \listxadd{\@series}{#1} @@ -5328,11 +5339,13 @@ \newhookcommand@series{Xendhangindent}% - \newhooktoggle@series{Xendpagenumberonlyfirst}% - \newhooktoggle@series{Xendpagenumberonlyfirstifsingle}% - \newhooktoggle@series{Xendpagenumberonlyfirstintwo}% - \newhookcommand@series{Xendsympagenum}% - \newhookcommand@series{Xendinplaceofpagenumber}% + \newhooktoggle@series{Xendpagenumberonlyfirst}% + \newhooktoggle@series{Xendpagenumberonlyfirstifsingle}% + \newhooktoggle@series{Xendpagenumberonlyfirstintwo}% + \newhookcommand@series{Xendsympagenum}% + \newhookcommand@series{Xendinplaceofpagenumber}% + + \newhookcommand@series{Xendtxtbeforenotes}% \fi \newhooktoggle@series{Xendlineflag}[apprefwithpage,SErefwithpage] |