전화번호가 문자 클래스와 함께 표시되지 않음

전화번호가 문자 클래스와 함께 표시되지 않음

저는 Letter 클래스를 사용하여 공식적인 편지를 쓰고 있습니다. 발견된 예제에 \telephone{}아래 명령을 추가합니다 .\address{}여기, 전화번호가 추가되지 않습니다.

\documentclass{letter}
\usepackage{hyperref}
\signature{Joe Bloggs}
\address{21 Bridge Street \\ Smallville \\ Dunwich DU3 4WE}
\telephone{123456789}
\begin{document}
    
    \begin{letter}{Director \\ Doe \& Co \\ 35 Anthony Road
            \\ Newport \\ Ipswich IP3 5RT}
        \opening{Dear Sir or Madam:}
        
        I am writing to you on behalf of the Wikipedia project (http://www.wikipedia.org/),
        an endeavour to build a fully-fledged multilingual encyclopaedia in an entirely
        open manner, to ask for permission to use your copyrighted material.
        
        % The \ldots command produces dots in a way that will not upset
        % the typesetting of the document.
        \ldots 
        
        That said, allow me to reiterate that your material will be used to the noble end of
        providing a free collection of knowledge for everyone; naturally enough, only if you
        agree. If that is the case, could you kindly fill in the attached form and post it
        back to me? We shall greatly appreciate it.
        
        Thank you for your time and consideration.
        
        I look forward to your reply.
        
        \closing{Yours Faithfully,}
        
        \ps
        
        P.S. You can find the full text of GFDL license at
        \url{http://www.gnu.org/copyleft/fdl.html}.
        
        \encl{Copyright permission form}
        
    \end{letter}
\end{document}

스크린샷

전화번호가 왜 표시되지 않나요? 그리고 추가 질문으로 제 이메일 주소도 추가할 수 있나요?

답변1

편지 문서에는 전화 매크로에 대해 다음과 같이 나와 있습니다.

어떤 스타일이 편지에 붙는 경우를 대비해.

이를 추가하려면 예를 들어 다음을 재정의할 수 있습니다 \opening.

\documentclass{letter}
\usepackage{hyperref}
\signature{Joe Bloggs}
\address{21 Bridge Street \\ Smallville \\ Dunwich DU3 4WE}
\telephone{123456789}

\makeatletter
\renewcommand*\opening[1]{\ifx\@empty\fromaddress
  \thispagestyle{firstpage}%
    {\raggedleft\@date\par}%
  \else  % home address
    \thispagestyle{empty}%
    {\raggedleft\begin{tabular}{l@{}}\ignorespaces
      \fromaddress\\
      Phone~\telephonenum\\*[2\parskip]%
      \@date \end{tabular}\par}%
  \fi
  \vspace{2\parskip}%
  {\raggedright \toname \expandafter\\\toaddress \par}%
  \vspace{2\parskip}%
  #1\par\nobreak}
\makeatother


\begin{document}


    
    \begin{letter}{Director \\ Doe \& Co \\ 35 Anthony Road
            \\ Newport \\ Ipswich IP3 5RT}
        \opening{Dear Sir or Madam:}    
        I am writing to you on behalf of the Wikipedia project (http://www.wikipedia.org/),
        an endeavour to build a fully-fledged multilingual encyclopaedia in an entirely
        open manner, to ask for permission to use your copyrighted material.
        
        % The \ldots command produces dots in a way that will not upset
        % the typesetting of the document.
        \ldots 
        
        That said, allow me to reiterate that your material will be used to the noble end of
        providing a free collection of knowledge for everyone; naturally enough, only if you
        agree. If that is the case, could you kindly fill in the attached form and post it
        back to me? We shall greatly appreciate it.
        
        Thank you for your time and consideration.
        
        I look forward to your reply.
        
        \closing{Yours Faithfully,}
        
        \ps
        
        P.S. You can find the full text of GFDL license at
        \url{http://www.gnu.org/copyleft/fdl.html}.
        
        \encl{Copyright permission form}
        
    \end{letter}
\end{document}

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

관련 정보