Created
June 30, 2017 02:37
-
-
Save weitsang/70db4c135b0cbe3f02237e416ef4f18d to your computer and use it in GitHub Desktop.
Patch for newlfm.cls to support fancyhdr.sty v3.9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- newlfm.cls.orig 2017-06-30 10:30:48.000000000 +0800 | |
+++ newlfm.cls 2017-06-30 10:31:52.000000000 +0800 | |
@@ -1687,13 +1687,13 @@ | |
\txa{@zpqutil:\@zpqutil} | |
\fi | |
} | |
-\newcommand{\@zfancyhead}[5]{#1\hbox to\headwidth{\fancy@reset | |
+\newcommand{\@zfancyhead}[5]{#1\hbox to\headwidth{\f@nch@reset | |
\@zfancyvbox\headheight{\hbox | |
{\rlap{\parbox[b]{\headwidth}{\raggedright#2}}\hfill | |
\parbox[b]{\headwidth}{\centering#3}\hfill | |
\llap{\parbox[b]{\headwidth}{\raggedleft#4}}}\zheadrule}}#5} | |
-\newcommand{\@zfancyfoot}[5]{#1\hbox to\headwidth{\fancy@reset | |
+\newcommand{\@zfancyfoot}[5]{#1\hbox to\headwidth{\f@nch@reset | |
\@zfancyvbox\footskip{\zfootrule | |
\hbox{\rlap{\parbox[t]{\headwidth}{\raggedright#2}}\hfill | |
\parbox[t]{\headwidth}{\centering#3}\hfill | |
@@ -2144,7 +2144,7 @@ | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
\vspace*{\the\@marg@tp@a} | |
\txa{headrulewidth:\headrulewidth} | |
-\@zfancyhead{\relax}{\f@ncyolh}{\f@ncyolh}{\f@ncyorh}{\relax} | |
+\@zfancyhead{\relax}{\f@nch@olh}{\f@nch@olh}{\f@nch@orh}{\relax} | |
\txa{HgtHead:\the\@Hgt@Head,utill:\the\@utill,zpqutil:\@zpqutil} | |
\addtolength{\@Hgt@Head}{\@utill} | |
\addtolength{\@Hgt@Head}{\@zpqutil} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment