diff options
author | Karl Berry <karl@freefriends.org> | 2010-07-03 23:29:05 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-07-03 23:29:05 +0000 |
commit | b01586837ca3abfe2028b61c24b2b7c0a048f358 (patch) | |
tree | 7e4125b14cfeebc91f9df5bbdb92b0808e8f32a6 /Master/texmf-dist/source/latex/memoir/mempatch.dtx | |
parent | b4c1a1eed2c9c758ec934a2085344fa9e5bcc9d3 (diff) |
memoir update (1jul10)
git-svn-id: svn://tug.org/texlive/trunk@19217 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/memoir/mempatch.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/memoir/mempatch.dtx | 43 |
1 files changed, 31 insertions, 12 deletions
diff --git a/Master/texmf-dist/source/latex/memoir/mempatch.dtx b/Master/texmf-dist/source/latex/memoir/mempatch.dtx index 10c1e2558d4..8a279007fe4 100644 --- a/Master/texmf-dist/source/latex/memoir/mempatch.dtx +++ b/Master/texmf-dist/source/latex/memoir/mempatch.dtx @@ -19,7 +19,7 @@ % % % \fi -% \CheckSum{496} +% \CheckSum{510} % % \def\dtxfile{\texttt{mempatch.dtx}} % \def\fileversion{v1.0} \def\filedate{2003/10/04} @@ -308,6 +308,7 @@ %% With thanks to Heiko Oberdiek, if you use hyperref dated 2006/11/15 %% or later, memhfixc will be automatically loaded after hyperref. %% +%% Version 1.14 2010/06/10 %% Version 1.13 2010/04/19 %% Version 1.12 2009/02/06 %% Version 1.11 2009/01/18 @@ -327,7 +328,7 @@ % % % \begin{macrocode} -\ProvidesPackage{memhfixc}[2010/04/19 v1.13 nameref/hyperref package fixes for memoir class] +\ProvidesPackage{memhfixc}[2010/06/10 v1.14 nameref/hyperref package fixes for memoir class] % \end{macrocode} % % \begin{macro}{\M@hfixcfinish} @@ -594,21 +595,39 @@ % % \begin{macro}{\M@sect} % \Lpack{hyperref} fix for memoir's redefinition of \cs{@sect} +% \changes{v3.6d}{2010/06/10}{At some point hyperref changed the way +% it changed \cs{@sect} such that the link target goes above the +% section title. Here we bring memoir back up to speed} +% The change being made is quite simple. We use \cs{M@sect} and it +% takes 9 args not the standard 8. % \begin{macrocode} \@ifundefined{H@old@sectm@m}{% haven't fiddled with \M@sect \let\H@old@sectm@m\M@sect \def\M@sect#1#2#3#4#5#6[#7][#8]#9{% - \ifnum #2>\c@secnumdepth - \Hy@GlobalStepCount\Hy@linkcounter - \xdef\@currentHref{section*.\the\Hy@linkcounter}% - \fi - \H@old@sectm@m{#1}{#2}{#3}{#4}{#5}{#6}[{#7}][{#8}]{#9}% - \ifnum #2>\c@secnumdepth - \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}% - \fi}% + \ifnum #2>\c@secnumdepth% + \expandafter\@firstoftwo% + \else% + \expandafter\@secondoftwo% + \fi% + {% + \Hy@MakeCurrentHrefAuto{section*}% + \setlength{\Hy@SectionHShift}{#3}% + \begingroup + \toks@{\H@old@sectm@m{#1}{#2}{#3}{#4}{#5}{#6}[{#7}][{8}]}% + \toks\tw@\expandafter{% + \expandafter\Hy@SectionAnchorHref\expandafter{\@currentHref}% + #9% + }% + \edef\x{\endgroup% + \the\toks@{\the\toks\tw@}% + }\x% + }{% + \H@old@sectm@m{#1}{#2}{#3}{#4}{#5}{#6}[{#7}][{#8}]{#9}% + }% }% - {% already fiddled \M@sect - } +}% +{% already fiddled \M@sect +} % \end{macrocode} % \end{macro} |