diff options
author | Karl Berry <karl@freefriends.org> | 2022-05-18 19:50:36 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-05-18 19:50:36 +0000 |
commit | 645073d265314f8062db14cf20e169eba67da504 (patch) | |
tree | 1fc39ae078fc6da3c1cd51345aa7ea9fb50933dc /Master/texmf-dist/source/latex/fancyhdr | |
parent | 7ce7341b5bebbf6b62b2ea39b4db2d8b7ab10f4d (diff) |
fancyhdr (18may22)
git-svn-id: svn://tug.org/texlive/trunk@63329 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/fancyhdr')
-rw-r--r-- | Master/texmf-dist/source/latex/fancyhdr/fancyhdr.dtx | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/Master/texmf-dist/source/latex/fancyhdr/fancyhdr.dtx b/Master/texmf-dist/source/latex/fancyhdr/fancyhdr.dtx index 41e7ebb5988..9c7a90992ed 100644 --- a/Master/texmf-dist/source/latex/fancyhdr/fancyhdr.dtx +++ b/Master/texmf-dist/source/latex/fancyhdr/fancyhdr.dtx @@ -26,7 +26,7 @@ %<fancyhdr>\ProvidesPackage{fancyhdr}% %<fancyheadings>\ProvidesPackage{fancyheadings} %<extramarks>\ProvidesPackage{extramarks} -%<fancyhdr|fancyheadings|extramarks> [2022/05/10 v4.0.2 +%<fancyhdr|fancyheadings|extramarks> [2022/05/18 v4.0.3 %<fancyhdr> Extensive control of page headers and footers]% %<fancyheadings> Legacy package to call fancyhdr] %<extramarks> Extra marks for LaTeX] @@ -2993,6 +2993,11 @@ % \item Miscellaneous small documentation changes. % \item Make \cs{fancyhead} etc. \cs{long}. % \end{itemize} +% \item Version 4.0.3, May 18, 2022 +% \begin{itemize} +% \item Initialize \cs{@mkboth} in \texttt{extramarks.sty} so that +% it will pick up changes to \cs{markboth}. +% \end{itemize} % \end{itemize} % % @@ -3490,6 +3495,10 @@ % The redefinition of the \texttt{headings} style also differs for % book-like and article-like classes. It also differs for % one-side and two-side modes. +% \changes{fancyhdr v4.0.3}{2022/05/18}{Changed definition of +% \cs{@mkboth} from \cs{let}\cs{@mkboth}\cs{markboth} to +% \cs{def}\Cmd{@mkboth\{\cs{protect}\cs{markboth}\}} so that it will pick up changes +% to \cs{markboth}} % \begin{macrocode} \DeclareOption{headings}{% \f@nch@ifundefined{chapter}{% @@ -3497,7 +3506,7 @@ % \end{macrocode} % An article in two-side mode: % \begin{macrocode} - \def\ps@headings{\ps@f@nch@fancyproto \let\@mkboth\markboth + \def\ps@headings{\ps@f@nch@fancyproto \def\@mkboth{\protect\markboth} \fancyhf{} \fancyhead[LE,RO]{\thepage}% \fancyhead[RE]{\slshape\leftmark}% @@ -3513,7 +3522,7 @@ % \end{macrocode} % An article in one-side mode: % \begin{macrocode} - \def\ps@headings{\ps@f@nch@fancyproto \let\@mkboth\markboth + \def\ps@headings{\ps@f@nch@fancyproto \def\@mkboth{\protect\markboth} \fancyhf{} \fancyhead[LE,RO]{\thepage}% \fancyhead[RE]{\slshape\leftmark}% @@ -3528,7 +3537,7 @@ % \end{macrocode} % A book in two-side mode: % \begin{macrocode} - \def\ps@headings{\ps@f@nch@fancyproto \let\@mkboth\markboth + \def\ps@headings{\ps@f@nch@fancyproto \def\@mkboth{\protect\markboth} \fancyhf{} \fancyhead[LE,RO]{\thepage}% \fancyhead[RE]{\slshape\leftmark}% @@ -3545,7 +3554,7 @@ % \end{macrocode} % A book in one-side mode: % \begin{macrocode} - \def\ps@headings{\ps@f@nch@fancyproto \let\@mkboth\markboth + \def\ps@headings{\ps@f@nch@fancyproto \def\@mkboth{\protect\markboth} \fancyhf{} \fancyhead[LE,RO]{\thepage}% \fancyhead[RE]{\slshape\leftmark}% @@ -4606,6 +4615,17 @@ \if@nobreak\ifvmode\nobreak\fi\fi} % \end{macrocode} % \end{macro} +% \begin{macro}{\@mkboth} +% Initialization of \cs{@mkboth}, so that it will pick up changes to +% \cs{markboth} +% \changes{extramarks v4.0.3}{2022/05/18}{Initialize definition of +% \cs{@mkboth} to \cs{def}\Cmd{@mkboth\{\cs{protect}\cs{markboth}\}} +% if it wasn't equal to \cs{@gobbletwo} so that it will pick up +% changes to \cs{markboth}} +% \begin{macrocode} +\ifx\@mkboth\@gobbletwo\else\def\@mkboth{\protect\markboth}\fi +% \end{macrocode} +% \end{macro} % \begin{macro}{\markright} % We use the standard definition of \cs{markright}. No use to duplicate here. % \end{macro} |