Skip to content

Instantly share code, notes, and snippets.

@weitsang
Created June 30, 2017 02:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weitsang/70db4c135b0cbe3f02237e416ef4f18d to your computer and use it in GitHub Desktop.
Save weitsang/70db4c135b0cbe3f02237e416ef4f18d to your computer and use it in GitHub Desktop.
Patch for newlfm.cls to support fancyhdr.sty v3.9
--- 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