posquit0 / Awesome-CV

:page_facing_up: Awesome CV is LaTeX template for your outstanding job application
LaTeX Project Public License v1.3c
22.28k stars 4.71k forks source link

CV: How to make \letteropening bigger? #452

Closed ReaderGuy42 closed 9 months ago

ReaderGuy42 commented 1 year ago

I can \lettertitle bigger via \lettertitlestyle but I can't find an equivalent for \letteropening

I would like to make the line bigger that starts Dear Mr./Mrs or whatever.

How is this possible?

Thanks!

github-actions[bot] commented 1 year ago

:wave: Welcome! Looks like this is your first issue.

Hey, thanks for your contribution! Please give us a bit of time to review it. 😄

ReaderGuy42 commented 1 year ago

Another question: How can I increase the distance between the lettertitle and the letteropening?

dcsim commented 9 months ago
% Define a title of the cover letter
% Usage: \makelettertitle
\newcommand*{\makelettertitle}{%
. . .
. . .
  \lettertextstyle{\@letteropening}
}

Letter opening is lettertextstyle. If you want it larger you could define a new style, using something like

\newcommand*{\letteropeningstyle}{\fontsize{12pt}{1.4em}\bodyfontlight\upshape\color{graytext}}

and then change the font used to that style e.g.

% Define a title of the cover letter
% Usage: \makelettertitle
\newcommand*{\makelettertitle}{%
. . .
. . .
  \letteropeningstyle{\@letteropening}
}

A way to increase the spacing between lettertittle and letteropening is to add \vspace{} as shown below, adjusting {1.4em} to whatever spacing you want.

% Define a title of the cover letter
% Usage: \makelettertitle
\newcommand*{\makelettertitle}{%
  \vspace{8.4mm}
  \setlength\tabcolsep{0pt}
  \setlength{\extrarowheight}{0pt}
  \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} L{\textwidth - 4.5cm} R{4.5cm}}
    \recipienttitlestyle{\@recipientname} & \letterdatestyle{\@letterdate}
  \end{tabular*}
  \begin{singlespace}
    \recipientaddressstyle{\@recipientaddress} \\\\
  \end{singlespace}
  \ifthenelse{\isundefined{\@lettertitle}}
    {}
    {\lettertitlestyle{\@lettertitle}\vspace{1.4em} \\}
  \lettertextstyle{\@letteropening}
}

@OJFord: Can I nominate this to be closed?