mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
Add the possibility to add a subject line in the letter
This is the suggestion given by Matthias Baur on launchpad https://answers.launchpad.net/moderncv/+question/222784 in comment 12 Closes #113 I included small layout tweaks in the different moderncvhead variants.
This commit is contained in:
parent
133c0dff92
commit
d8bc48733c
8 changed files with 20 additions and 6 deletions
|
|
@ -765,6 +765,7 @@
|
||||||
% elements
|
% elements
|
||||||
\newcommand*{\recipient}[2]{\def\@recipientname{#1}\def\@recipientaddress{#2}}
|
\newcommand*{\recipient}[2]{\def\@recipientname{#1}\def\@recipientaddress{#2}}
|
||||||
\renewcommand*{\date}[1]{\def\@date{#1}}\date{\today}
|
\renewcommand*{\date}[1]{\def\@date{#1}}\date{\today}
|
||||||
|
\newcommand*{\subject}[1]{\def\@subject{#1}}
|
||||||
\newcommand*{\opening}[1]{\def\@opening{#1}}
|
\newcommand*{\opening}[1]{\def\@opening{#1}}
|
||||||
\newcommand*{\closing}[1]{\def\@closing{#1}}
|
\newcommand*{\closing}[1]{\def\@closing{#1}}
|
||||||
\newcommand*{\enclosure}[2][]{%
|
\newcommand*{\enclosure}[2][]{%
|
||||||
|
|
|
||||||
|
|
@ -161,7 +161,7 @@
|
||||||
\ifthenelse{\isundefined{\@email}}{}{\makenewline\emailsymbol\emaillink{\@email}}%
|
\ifthenelse{\isundefined{\@email}}{}{\makenewline\emailsymbol\emaillink{\@email}}%
|
||||||
\ifthenelse{\isundefined{\@homepage}}{}{\makenewline\homepagesymbol\httpslink{\@homepage}}%
|
\ifthenelse{\isundefined{\@homepage}}{}{\makenewline\homepagesymbol\httpslink{\@homepage}}%
|
||||||
\ifthenelse{\isundefined{\@extrainfo}}{}{\makenewline\@extrainfo}}\fi%
|
\ifthenelse{\isundefined{\@extrainfo}}{}{\makenewline\@extrainfo}}\fi%
|
||||||
\end{minipage}\\[1em]
|
\end{minipage}\\[2em]
|
||||||
% recipient block
|
% recipient block
|
||||||
\begin{minipage}[t]{.5\textwidth}
|
\begin{minipage}[t]{.5\textwidth}
|
||||||
\raggedright%
|
\raggedright%
|
||||||
|
|
@ -173,6 +173,8 @@
|
||||||
\hfill% US style
|
\hfill% US style
|
||||||
% \\[1em]% UK style
|
% \\[1em]% UK style
|
||||||
\@date\\[2em]% US informal style: "January 1, 1900"; UK formal style: "01/01/1900"
|
\@date\\[2em]% US informal style: "January 1, 1900"; UK formal style: "01/01/1900"
|
||||||
|
% optional subject
|
||||||
|
\ifthenelse{\isundefined{\@subject}}{}{{\bfseries\@subject\\[2em]}}
|
||||||
% opening
|
% opening
|
||||||
\raggedright%
|
\raggedright%
|
||||||
\@opening\\[1.5em]%
|
\@opening\\[1.5em]%
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,9 @@
|
||||||
% date
|
% date
|
||||||
\hfill% US style
|
\hfill% US style
|
||||||
% \\[1em]% UK style
|
% \\[1em]% UK style
|
||||||
\@date\\[2em]% US informal style: "January 1, 1900"; UK formal style: "01/01/1900"
|
\@date\\[3em]% US informal style: "January 1, 1900"; UK formal style: "01/01/1900"
|
||||||
|
% optional subject
|
||||||
|
\ifthenelse{\isundefined{\@subject}}{}{{\bfseries\@subject\\[3em]}}
|
||||||
% opening
|
% opening
|
||||||
\raggedright%
|
\raggedright%
|
||||||
\@opening\\[1.5em]%
|
\@opening\\[1.5em]%
|
||||||
|
|
|
||||||
|
|
@ -145,7 +145,9 @@
|
||||||
% date
|
% date
|
||||||
\hfill% US style
|
\hfill% US style
|
||||||
% \\[1em]% UK style
|
% \\[1em]% UK style
|
||||||
\@date\\[2em]% US informal style: "January 1, 1900"; UK formal style: "01/01/1900"
|
\@date\\[3em]% US informal style: "January 1, 1900"; UK formal style: "01/01/1900"
|
||||||
|
% optional subject
|
||||||
|
\ifthenelse{\isundefined{\@subject}}{}{{\bfseries\@subject\\[3em]}}
|
||||||
% opening
|
% opening
|
||||||
\raggedright%
|
\raggedright%
|
||||||
\@opening\\[1.5em]%
|
\@opening\\[1.5em]%
|
||||||
|
|
|
||||||
|
|
@ -143,6 +143,8 @@
|
||||||
\@recipientaddress}\\[1em]%
|
\@recipientaddress}\\[1em]%
|
||||||
% date
|
% date
|
||||||
\@date\\[2em]%
|
\@date\\[2em]%
|
||||||
|
% optional subject
|
||||||
|
\ifthenelse{\isundefined{\@subject}}{}{{\bfseries\@subject\\[2em]}}
|
||||||
% opening
|
% opening
|
||||||
\@opening\\[1.5em]%
|
\@opening\\[1.5em]%
|
||||||
% sender contact info
|
% sender contact info
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,7 @@
|
||||||
\ifthenelse{\isundefined{\@email}}{}{\makenewline\emailsymbol\emaillink{\@email}}%
|
\ifthenelse{\isundefined{\@email}}{}{\makenewline\emailsymbol\emaillink{\@email}}%
|
||||||
\ifthenelse{\isundefined{\@homepage}}{}{\makenewline\homepagesymbol\httpslink{\@homepage}}%
|
\ifthenelse{\isundefined{\@homepage}}{}{\makenewline\homepagesymbol\httpslink{\@homepage}}%
|
||||||
\ifthenelse{\isundefined{\@extrainfo}}{}{\makenewline\@extrainfo}}\fi%
|
\ifthenelse{\isundefined{\@extrainfo}}{}{\makenewline\@extrainfo}}\fi%
|
||||||
\end{minipage}\\[1em]
|
\end{minipage}\\[2em]
|
||||||
% recipient block
|
% recipient block
|
||||||
\begin{minipage}[t]{.5\textwidth}
|
\begin{minipage}[t]{.5\textwidth}
|
||||||
\raggedright%
|
\raggedright%
|
||||||
|
|
@ -159,7 +159,9 @@
|
||||||
% date
|
% date
|
||||||
\hfill% US style
|
\hfill% US style
|
||||||
% \\[1em]% UK style
|
% \\[1em]% UK style
|
||||||
\@date\\[2em]% US informal style: "January 1, 1900"; UK formal style: "01/01/1900"
|
\@date\\[3em]% US informal style: "January 1, 1900"; UK formal style: "01/01/1900"
|
||||||
|
% optional subject
|
||||||
|
\ifthenelse{\isundefined{\@subject}}{}{{\bfseries\@subject\\[2em]}}
|
||||||
% opening
|
% opening
|
||||||
\raggedright%
|
\raggedright%
|
||||||
\@opening\\[1.5em]%
|
\@opening\\[1.5em]%
|
||||||
|
|
|
||||||
|
|
@ -154,7 +154,9 @@
|
||||||
% date
|
% date
|
||||||
\hfill% US style
|
\hfill% US style
|
||||||
% \\[1em]% UK style
|
% \\[1em]% UK style
|
||||||
\@date\\[2em]% US informal style: "January 1, 1900"; UK formal style: "01/01/1900"
|
\@date\\[3em]% US informal style: "January 1, 1900"; UK formal style: "01/01/1900"
|
||||||
|
% optional subject
|
||||||
|
\ifthenelse{\isundefined{\@subject}}{}{{\bfseries\@subject\\[3em]}}
|
||||||
% opening
|
% opening
|
||||||
\raggedright%
|
\raggedright%
|
||||||
\@opening\\[1.5em]%
|
\@opening\\[1.5em]%
|
||||||
|
|
|
||||||
|
|
@ -255,6 +255,7 @@ Detailed achievements:
|
||||||
% recipient data
|
% recipient data
|
||||||
\recipient{Company Recruitment team}{Company, Inc.\\123 somestreet\\some city}
|
\recipient{Company Recruitment team}{Company, Inc.\\123 somestreet\\some city}
|
||||||
\date{January 01, 1984}
|
\date{January 01, 1984}
|
||||||
|
\subject{Job application}
|
||||||
\opening{Dear Sir or Madam,}
|
\opening{Dear Sir or Madam,}
|
||||||
\closing{Yours faithfully,}
|
\closing{Yours faithfully,}
|
||||||
\enclosure[Attached]{curriculum vit\ae{}} % use an optional argument to use a string other than "Enclosure", or redefine \enclname
|
\enclosure[Attached]{curriculum vit\ae{}} % use an optional argument to use a string other than "Enclosure", or redefine \enclname
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue