moderncv, coverletter senza fax

  • Creatore
    Topic
  • #102606
    Up
    0
    Down
    ::


    Buongiorno a tutte e a tutti,
    ho seguito il seguente codice per dare uno stile francese alla coverletter:
    `\documentclass[11pt,a4paper,sans]{moderncv}
    \moderncvstyle{classic}
    \moderncvcolor{blue}

    \usepackage[scale=0.75]{geometry}

    \makeatletter
    %——————————————————————————-
    % letter style definition
    %——————————————————————————-
    % commands
    \renewcommand*{\recomputeletterlengths}{%
    \recomputecvlengths%
    \setlength{\parskip}{6\p@}}

    \newcommand*{\subject}[1]{\def\@subject{#1}} %% new command added

    \renewcommand*{\makelettertitle}{%
    % recompute lengths (in case we are switching from letter to resume, or vice versa)
    \recomputeletterlengths%
    % sender contact info
    %\hfill% %%% <========== This commented \begin{minipage}{.5\textwidth}% \raggedright% %%% \reggedleft changed to raggedright \addressfont\textcolor{color2}{% %%% change color here if you want it black or... {\bfseries\upshape\@firstname~\@familyname}\@firstdetailselementfalse% \ifthenelse{\isundefined{\@addressstreet}}{}{\makenewline\addresssymbol\@addressstreet% \ifthenelse{\equal{\@addresscity}{}}{}{\makenewline\@addresscity}}% \ifthenelse{\isundefined{\@mobile}}{}{\makenewline\mobilesymbol\@mobile}% \ifthenelse{\isundefined{\@phone}}{}{\makenewline\phonesymbol\@phone}% \ifthenelse{\isundefined{\@fax}}{}{\makenewline\faxsymbol\@fax}% \ifthenelse{\isundefined{\@email}}{}{\makenewline\emailsymbol\emaillink{\@email}}% \ifthenelse{\isundefined{\@homepage}}{}{\makenewline\homepagesymbol\httplink{\@homepage}}% \ifthenelse{\isundefined{\@extrainfo}}{}{\makenewline\@extrainfo}}% \end{minipage}\\[2em] % recipient block Attention: \quad \begin{minipage}[t]{.5\textwidth} %%% Changed here \raggedright% \addressfont% {\bfseries\upshape\@recipientname}\\% \@recipientaddress\\[2em]% \@date\\[1.5em]% %%% Changed here \end{minipage} % date \hfill% US style % \\[1em]% UK style \null\\[2em]% %%% Changed here \raggedright% \ifthenelse{\isundefined{\@subject}}{}{% %% new command added \begin{tabular}{ p{0.08\textwidth} p{0.92\textwidth} } Objet: & \raggedright \@subject \end{tabular} \\[1.5em]}% % opening \raggedright% \@opening\\[1.5em]% \hspace{0pt}\par\vspace{-\baselineskip}\vspace{-\parskip}} \renewcommand*{\makeletterclosing}{ \@closing\\[3em]% {\bfseries \@firstname~\@familyname}% \ifthenelse{\isundefined{\@enclosure}}{}{% \\% \vfill% {\color{color2}\itshape\enclname: \@enclosure}}} \makeatother % personal data \firstname{John} \familyname{Doe} \title{Resumé title} % optional, remove / comment the line if not wanted \address{street and number}{postcode city} % optional, remove / comment the line if not wanted \mobile{+1~(234)~567~890} % optional, remove / comment the line if not wanted \phone{+2~(345)~678~901} % optional, remove / comment the line if not wanted \fax{+3~(456)~789~012} % optional, remove / comment the line if not wanted \email{john@doe.org} % optional, remove / comment the line if not wanted \homepage{www.johndoe.com} % optional, remove / comment the line if not wanted \extrainfo{additional information} % optional, remove / comment the line if not wanted \photo[64pt][0.4pt]{picture} % optional, remove / comment the line if not wanted; \quote{`` A witty and playful quote''} % optional, remove / comment the line if not wanted %---------------------------------------------------------------------------------- \begin{document} %----- letter --------------------------------------------------------- % recipient data \recipient{Company Recruitment team}{Company, Inc.\\123 somestreet\\some city} \date{January 01, 1984} \subject{This is to fill some text that goes in to two lines and many more here we come to the second line and it is neat} %% use subject here \opening{Dear Sir or Madam,} \closing{Yours faithfully,} \enclosure[Attached]{curriculum vit\ae{}} \makelettertitle \makeletterclosing \end{document} ` preso qui http://tex.stackexchange.com/questions/148406/renew-command-makelettertitle-in-moderncv

    Avrei bisogno di togliere la voce fax, e chiaramente relativo simbolo, sapreste dirmicome posso fare?
    Grazie

Visualizzazione 2 filoni di risposte
  • Autore
    Risposte
    • #102607
      OldClaudio
      Partecipante
        Up
        0
        Down
        ::


        Se leggi il codice vedi che il numero di fax e il relativo simbolo sono inseriti solo se [tt\@fax[/tt] è definito. Ora se tu inserisce nel CV [tt]\fax{}[/tt] definisci un numero di fax vuoto, ma [tt]\fax[/tt] risulta definito, sia pure con un contenuto vuoto.
        Perciò non usare [tt]\fax[/tt] per niente, nemmeno con un argomento vuoto.

        Nessuna delel informazioni che si possono scrivere nella cover letter è effettivamante stampata se non è definito il comando che ne contiene il testo; Il comando senza [tt]@[/tt] serve per definire il comando con l'[tt]@[/tt] con il testo che occorre, cioè quello che viene usato per l’intestazione della cover letter.

        Può sembrare strano questo doppio passaggio, ma è quello che ogni pacchetto fa per ricevere del testo che verrà usato in un secondo tempo al momento giusto.

      • #102608
        Up
        0
        Down
        ::


        Grazie per la risposta.
        Nel cv fax l’ho commentato. Perciò non so perché lo metta nella coverletter.
        Idee?
        Grazie

      • #102609
        Up
        0
        Down
        ::


        Ciao,
        commenta anche
        % \ifthenelse{\isundefined{\@fax}}{}{\makenewline\faxsymbol\@fax}%

        Ciao
        Andrea

    Visualizzazione 2 filoni di risposte
    • Devi essere connesso per rispondere a questo topic.

    Go to top