In fact, I want to write a cover letter with latex and I have downloaded an example , but when I compile it it shows an error, here is the code :

\usepackage{blindtext, xfrac}


\namefrom{Sherlock Holmes}
 221B Baker Street\\
 London, UK
  Basil of Baker Street\\
  221$\sfrac{1}{2}$ Baker Street\\
London, UK

\dateset{January 6, 1914}

\greetto{To Whom It May Concern,}



an error was displayed as :

[Loading MPS to PDF converter (version 2006.09.02).] ) ("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\pdftexcmds.sty" ("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifluatex.sty")) ("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\epstopdf-base.sty" ("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\grfext.sty" ("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\kvdefinekeys.sty")) ("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty" ("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\kvsetkeys.sty" ("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\etexcmds.sty")))) ! Undefined control sequence. \@zfancyhead ...1\hbox to\headwidth {\fancy@reset \@zfancyvbox \headheight {... l.35 \begin{newlfm} ?

marked as duplicate by Bobyandbob, dexteritas, TeXnician, Stefan Pinnow, gernot Jul 28 '18 at 11:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    I get no error. This comment might be relevant. Probably you need just an update. – campa Feb 21 '18 at 16:35
  • It's weird is there a modification that may help because the error concerns newlfm – twimo Feb 21 '18 at 16:39
  • 1
    Try with @Werner s patch Undefined control sequence error on \fancy@reset, \f@ncyolh and \f@ncyorh when using newlfm class. That solves the problem for me. – Bobyandbob Feb 21 '18 at 16:47
  • @bobyandbob how can I proceed ? – twimo Feb 21 '18 at 16:49
  • Does it help? Just add the patch like this into your code... \closeline{Sincerely,} \usepackage{etoolbox} \makeatletter \patchcmd{\@zfancyhead}{\fancy@reset}{\f@nch@reset}{}{} \patchcmd{\@set@em@up}{\f@ncyolh}{\f@nch@olh}{}{} \patchcmd{\@set@em@up}{\f@ncyolh}{\f@nch@olh}{}{} \patchcmd{\@set@em@up}{\f@ncyorh}{\f@nch@orh}{}{} \makeatother \begin{document} ... – Bobyandbob Feb 21 '18 at 16:51

Browse other questions tagged or ask your own question.