newlfm 패키지 누락 문서에 \greetoskipbefore 명령이 있음

newlfm 패키지 누락 문서에 \greetoskipbefore 명령이 있음

를 사용하여 편지를 쓰면서 8페이지에 있는 명령을 newlfm사용해 보았습니다.\greettoskipbefore수동"정의되지 않은 제어 시퀀스" 오류가 발생했습니다. 을 보면서원천, 이 특정 명령은 정의되지 않은 것처럼 보이지만 다음과 같은 다른 모든 건너뛰기 명령은 \greettoskipafter정의되었습니다.

\def\greettoskipafter#1{\setlength{\@greet@to@sk@a}{#1}}% 
\define@key{ov}{greettoskipafter}{\setlength{\@greet@to@sk@a}{#1}}% 

원시 TeX를 전혀 이해하지 못하는 LaTeX 초보자로서 저는 여기서 헤매고 있습니다. 수동으로 추가 \greettoskipbefore하고 다시 컴파일하는 것은 newlfm하나의 옵션처럼 보이지만 이는 이 패키지 작성자가 이 문제를 해결할 때까지 내 문서가 내 시스템에서만 컴파일된다는 것을 의미합니다. 패키지가 5년 동안 업데이트되지 않았다는 점을 고려하면, 이는 곧 일어나지 않을 수도 있습니다. 그러면 내 질문이 생깁니다. \greettoskipbeforeLaTeX 문서에서 임시 해킹으로 정의하는 것이 가능합니까?

편집 : 여기 MWE가 있습니다

\documentclass[11pt,busletternofrom]{newlfm}

\newlfmP{noLines}
\PhrRegard{RE}
\dateset{\today} 
\namefrom{John Smith}
\newcommand{\companyname}{Netgear}
\newcommand{\shortcompanyname}{Netgear}
\nameto{Darryl Simpson}
\addrto{
\companyname \\
13911 Wireless Way, Suite 200 \\
Richmond, BC V6V 3B9 \\
}
\regarding{Hardware Design Engineer}
\greetto{Dear Mr. Simpson,}
\closeline{Sincerely,}

\begin{document}

\begin{newlfm}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\end{newlfm}

\end{document}

MWE

답변1

표준 내에서 편지를 작성하는 것이 매우 쉽기 때문에 문자별 문서 클래스를 사용할 필요성을 실제로 본 적이 없습니다.article문서 클래스(참조공식 편지 쓰기그리고TeX 표지 편지에 "진심으로, 내 이름"이 표시되지 않습니다., 예를 들어). 여기서의 요점은 그게 아니지만...

건너뛰기는 " " 절 뒤에 IP를 \@greet@to@sk@a배치하기 위한 것이며 예, 아마도 " " 절 앞에 a를 제공하기 위한 동반되는 가 있습니다 . 그러나 이 길이를 설정하기 위한 공식적인 수단은 제공되지 않습니다. 이 "누락된" 건너뛰기의 위치는 사용 가능한 설정 매크로가 있는 " ess" 절(length로 제공됨 ) 뒤의 IP 와 동일한 위치(세로)에 있습니다.skagreet to\@greet@to@sk@bskip bgreet toskato addr\@addr@to@sk@a

\def\addrtoskipafter#1{\setlength{\@addr@to@sk@a}{#1}}%

따라서 누락된 건너뛰기보다는 이 건너뛰기를 설정하는 것으로 충분할 수 있습니다. 다음은 최소한의 예입니다(출처:TeX 표지 편지에 "진심으로, 내 이름"이 표시되지 않습니다.) 이 효과를 강조합니다:

여기에 이미지 설명을 입력하세요

\documentclass[10pt,stdletter]{newlfm}
\usepackage{charter}

\widowpenalty=1000
\clubpenalty=1000

\newsavebox{\Luiuc}
\sbox{\Luiuc}{%
    \parbox[b]{1.75in}{%
        \vspace{0.5in}%
        \includegraphics[height=2\baselineskip]{example-image}%
    }%
}%
\makeletterhead{Uiuc}{\Lheader{\usebox{\Luiuc}}}

\newlfmP{headermarginskip=20pt}
\newlfmP{sigsize=50pt}
\newlfmP{dateskipafter=20pt}
\newlfmP{addrfromphone}
\newlfmP{addrfromemail}
\PhrPhone{Phone}
\PhrEmail{Email}

\lthUiuc

\namefrom{Matthew J.\ Miller}
\addrfrom{%
    439 Coordinated Science Laboratory\\
    1308 West Main Street\\
    Urbana, IL 61801
}
\phonefrom{217-244-6024}
\emailfrom{[email protected]}

\addrto{%
Faculty Search Committee\\
Department of Computer Science\\
Clemson University\\
Clemson, SC 29634-0974}

\addrfromskipbefore{-4\baselineskip}% Skip before "From Address" clause
\addrtoskipafter{4\baselineskip}% Skip after "To Address" clause

\greetto{To Whom It May Concern,}
\closeline{Sincerely,}
\begin{document}
\begin{newlfm}

I am writing to apply for the position of assistant
professor in Clemson University's Computer Science Department.  I plan to receive my
Ph.D.\ degree from the University of Illinois at
Urbana-Champaign in Summer of 2006.  My adviser is
Prof.\ Nitin H.\ Vaidya, and my general areas of interest
include wireless and sensor network performance and security.
 Having many friends and family in the area, I would be
most enthused to return to the South permanently by accepting
a position at your institution.

In my graduate work, I focus on the design of
energy-efficient protocols and secure key distribution.
More specifically, I have explored various techniques at
multiple layers of the network stack to effectively reduce
the energy consumption of wireless communication.  In security,
my work was the first to propose leveraging channel diversity
for sensor network key distribution.  My research appears in 
the \textit{IEEE Transactions on Mobile Computing} journal as
well as \textit{Infocom 2006} and \textit{ICDCS 2005},
prestigious conferences in the areas of networking and distributed
systems, respectively.

Enclosed is my curriculum vitae (including a list of
publications), contact information for my references, a research
statement, and a teaching statement.  All of my publications and
presentations are available at:

http://www.crhc.uiuc.edu/$\sim$mjmille2/publications/

Please let me know if there are any other materials
or information that will assist you in processing my application.

Thank you for your consideration.  I look forward to
hearing from you.

\end{newlfm}
\end{document}

다소 대담한 대안으로 필요한 모든 수정 사항이 포함된 폴더 newlfm-fix.sty에 자신만의 것을 만들 수 있습니다. local/texmf업데이트는 필요할 때마다 로드해야 \usepackage{newlfm-fix}하지만( ) 다른 배포판에도 함께 가져와야 합니다. 한 번 업데이트하면newlfm이 발행되면(...그런데 패키지 작성자에게 문의하세요) newlfm-fix.sty.


\\[<len>]내부의 특정 구성 요소 newlfm가 로 설정되어 있으므로 를 사용하여 공간을 추가할 수도 있습니다 tabular. 예를 들어,

\regarding{Hardware Design Engineer\\[4\baselineskip]}

4\normalbaselineskip"안부" 뒤에 삽입 :

여기에 이미지 설명을 입력하세요

관련 정보