Hot answers tagged

21

Presumably the following patch (via etoolbox) suffices: \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 The error resulted from hard-coding package-...


16

Here's one possible solution, using the kernel command \@startsection (you chan find a description of this command in Where can I find help files or documentation for commands like \@startsection for LaTeX?) to redefine the \section command (the newlfm class offers a very basic \section command) and define the \subsection command to behave as those from ...


14

You have already accepted an answer, but I give you another option: You can use scrlttr2 from the KOMAscript-bundle, and by by loading the letter class option file, section.lco, you will have sectioning commands. The appearance of the sections can be modified by standard komascript-commands. The .LCO also handles sections with star (\section*{Test}. section....


7

Perhaps not the best option, but you can use the dateno class option \documentclass[12pt,stdletter,sigleft,dateno]{newlfm} to avoid automatically typesetting the date and then add \today in \addfrom, to inherit its alignment \addrfrom{% \today\\ Predrag Puno\v{s}evac\\ Science Laboratory\\ Some University\\ Urbana, ...


7

There is no need to use a letter-related class to set letters. The changes you seek go against the rigid enforcement that is associated with a class. So, break from it and set it in article. There is no shame in this, and it allows you extreme freedom to place content where you want them to go: \documentclass{article} \usepackage[margin=1in]{geometry} \...


6

Just add these two commands to the body of your document: \noHeadline \noFootline


5

The letter ending rolls over to a subsequent page. If you wish it to remain on a single page, then you need to reduce the content you currently have. The distance between the header and the start of the address block is consumed by lengths like \headermarginskip, \datebeforeskip and \dateafterskip. Setting any one of these to an appropriate negative value ...


5

newlfm sets the page style to empty when parsing the environment. You can override this by executing \thispagestle{plain} (or some other style) inside the newlfm environment, perhaps also with \pagestyle{plain} - there are different page styles and layouts set for the first and subsequent pages. I propose an alternative, more flexible approach though: ...


5

The newlfm document class provides the \Cfooter marco which you can use to set the central footer. However, the footers are reset when you start a newlfm environment. You can get around this by placing \Cfooter inside the newlfm environment. \documentclass[11pt,pressrelease]{newlfm} \usepackage{charter} \newcommand{\subtitle}{This is a subtitle.} \...


5

You need to modify the paragraph indentation command \parindent with \setlength\parindent{length}. For example: \documentclass{newlfm} \usepackage{lipsum} \setlength\parindent{1cm} \begin{document} \lipsum[2] \lipsum[3] \end{document} See result:


5

THis works too (see screenshots): \newlfmP{Headlinewd=0pt,Footlinewd=0pt} and see section 10.1 of the newlfm manual. Full listing: \documentclass[dateright,dateyes,13pt,stdletter]{newlfm}% \usepackage[utf8]{inputenc} \usepackage{lipsum} \greetto{To whom it may concern,} \closeline{Best regards,} % one more solution \newlfmP{Headlinewd=0pt,Footlinewd=0pt} ...


5

Adding this to your preamble should work: \makeatletter \g@addto@macro{\ps@ltrhead}{% \renewcommand{\headrulewidth}{0pt}% \renewcommand{\footrulewidth}{0pt}% } \g@addto@macro{\ps@othhead}{% \renewcommand{\headrulewidth}{0pt}% \renewcommand{\footrulewidth}{0pt}% } \makeatother It is because the class internally uses the package fancyhdr and this is ...


5

It's always a missing %.... \documentclass[10pt,stdletter]{newlfm} \makeatletter \renewcommand{\@zfancyvbox}[2]{%%%%%%%%%%%%%%%%%%%%%%%% \gdef\@zpqutil{1pt}% \setbox0\vbox{#2}\ifdim\ht0>#1\relax%%%%%%%%%%%% \setlength{\@utill}{\the\ht0}% \addtolength{\@utill}{-#1}% \addtolength{\@utill}{5.0pt}% \txa{utill:\the\@utill}% \xdef\@zpqutil{\the\@utill}% \txa{@...


5

The class appears to be broken by a change in one of its dependencies (fancyhdr), even taking the first example from textdoc newlfm gives the same error. \documentclass[stdletter]{newlfm} \nameto{George Bush} \addrto{\parbox{2in}{The White House \\ Washington, DC}} \namefrom{Paul Thompson} \addrfrom{\parbox{2in}{The Pink House \\ Belleville, IL}} \...


4

As written in sections 4. Spacing commands and 4.1 Horizontal spacing of the manual you have to use \newlfmP{textwidthsize=2cm}


4

The width for those rules is given by \@Hrw (for the header rule) and \@Frw (for the footer rule), so it's enough to set those lengths to zero: \documentclass[orderfromdateto,sigcenter]{newlfm} \usepackage[T1]{fontenc} \usepackage{baskervald} \usepackage{lipsum} \newsavebox{\Wlogo} \savebox{\Wlogo}{\parbox{6in}{\Large WILLIAMS COLLEGE \hspace{5mm} \...


3

Simply adding \Cfooter (even with an empty argument, if no footer is desired in the first page) prevents the undesired behaviour: \documentclass[10pt,stdletter,dateno, sigleft]{newlfm} \usepackage[ansinew]{inputenc} \usepackage{url} \widowpenalty=1000 \clubpenalty=1000 \newlfmP{headermarginskip=20pt} \newlfmP{sigsize=50pt} \newlfmP{dateskipafter=20pt} \...


3

The class uses the page style othhead for pages from the second page on; so you can simply \let this page style to be the empty page style; this can be done using \makeatletter \let\ps@othhead\ps@empty \makeatother A complete example using a simplified version of your code: \documentclass[stdletter,11pt]{newlfm} \makeatletter \let\ps@othhead\ps@empty \...


3

There is a typo in the documentation of the newlfm class: the command that creates the ### is not \PhrPREnd, as stated, but \PhrPRend. This can be seen in the newlfm.cls file: def\@am@phr{ %[...] \PhrPRend{\# \# \#}% line 430 }


3

A global removal of this is possible via etoolbox: \usepackage{etoolbox}% http://ctan.org/pkg/etoolbox \makeatletter % \patchcmd{<cmd>}{<search>}{<replace>}{<success>}{<failure>} \patchcmd{\@set@em@up}{\PhrMore}{\@gobble}{}{}% Remove page numbering within newlfm \PhrMore{}% Reset (centered) footer to be empty. \makeatother \...


3

I have never really seen the need for using a letter-specific document class, since it's very easy to write a letter within the standard article document class (see Writing an official letter and TeX Cover Letter Doesn't Display “Sincerely, My Name”, for example). That's not the point here though... The skip \@greet@to@sk@a is meant to place a skip after ...


3

(Too long for a comment) From the user guide of the newlfm document class: geometry is no longer used for dimension setting. Rather, all dimensions are set internally. This is done using a combination of default values, header and footer sizes and values input from the user. These include primarily the page size commands leftmarginsize, textwidthsize and ...


3

EDITED for better solution. Based on what I learned from my earlier post, I realized that if both the \closeline and \namefrom were being stuffed into the same box, then I could force the box width to be \textwidth without modifying the underlying class. I do this by putting the \namefrom into a box of width \textwidth, and just make sure it is right ...


3

You can state the global option dateno at the beginning: \documentclass[11pt,stdletter,sigleft,dateno]{newlfm}


3

In order to remove the date, set it to nothing/empty using \dateset{} or to something specific, like \dateset{12 December 2013}.


3

\dateset stores its contents in a macro called \@xdate, which you can use in the following way: \documentclass[stdletter]{newlfm} %%To-address data%% \nameto{Jane Doe} \addrto{123 Belch Street\\Belcherville\\USA} \namefrom{John Doe} \addrfrom{321 Belch Street\\Belcherville\\USA} %%Letter setup%% \dateset{5 January 2011} \Lheader{To:~\printnameto}% \...


3

I'd forego newlfm and choose something less restrictive. Here's a replica of your document under good ol' article: \documentclass[10pt]{article} \usepackage{charter,fancyhdr,geometry,graphicx} \usepackage{lipsum}% For this example \geometry{paper=letterpaper, hmargin=1in, vmargin=.5in, includefoot } \pagestyle{fancy} \fancyhf{}% Clear header/footer \...


3

babel shortcuts only work after \begin{document} \documentclass[12pt,a4paper,busletter,spanish]{newlfm} \usepackage[utf8]{inputenc} % Should not be used with LuaTeX \usepackage[T1]{fontenc} \usepackage{babel} \begin{document} \namefrom{% Dr. N. N. \\ N"o pasaporte: 1234556789 \\ %%% do not work... } \addrfrom{...


3

If you consult the documentation of the class newlfm you will find the list of options needed to do what you want. Add the following options to your \documentclass statement. \documentclass[...,orderdatefromto,dateleft,addrfromleft,addrtoright]{newlfm} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Long Lined Cover Letter % LaTeX Template % Version 1.0 (1/6/...


Only top voted, non community-wiki answers of a minimum length are eligible