make the signature optional and available in all styles

This commit is contained in:
LLdaniel 2023-03-31 14:43:55 +02:00
commit 8cfb1c3925
6 changed files with 13 additions and 13 deletions

View file

@ -163,8 +163,8 @@
\setlength{\parskip}{6\p@}} \setlength{\parskip}{6\p@}}
\renewcommand*{\makeletterclosing}{% \renewcommand*{\makeletterclosing}{%
\@closing\\[1em]% \@closing\ifthenelse{\isundefined{\@signature}}{\\[3em]}{\\[1em]}% shrink space when signature is set
\@signature\\% \ifthenelse{\isundefined{\@signature}}{}{{\@signature\\}}
{\bfseries\@firstname~\@lastname}% {\bfseries\@firstname~\@lastname}%
\ifthenelse{\isundefined{\@enclosure}}{}{% \ifthenelse{\isundefined{\@enclosure}}{}{%
\\% \\%

View file

@ -231,9 +231,9 @@
\recomputecvbodylengths% \recomputecvbodylengths%
\setlength{\parskip}{6\p@}} \setlength{\parskip}{6\p@}}
\renewcommand*{\makeletterclosing}{ \renewcommand*{\makeletterclosing}{%
\@closing\\[3em]% \@closing\ifthenelse{\isundefined{\@signature}}{\\[3em]}{\\[1em]}% shrink space when signature is set
\@signature\\% \ifthenelse{\isundefined{\@signature}}{}{{\@signature\\}}
{\bfseries\@firstname~\@lastname}% {\bfseries\@firstname~\@lastname}%
\ifthenelse{\isundefined{\@enclosure}}{}{% \ifthenelse{\isundefined{\@enclosure}}{}{%
\\% \\%

View file

@ -170,9 +170,9 @@
\recomputecvbodylengths% \recomputecvbodylengths%
\setlength{\parskip}{6\p@}} \setlength{\parskip}{6\p@}}
\renewcommand*{\makeletterclosing}{ \renewcommand*{\makeletterclosing}{%
\@closing\\[3em]% \@closing\ifthenelse{\isundefined{\@signature}}{\\[3em]}{\\[1em]}% shrink space when signature is set
\@signature\\% \ifthenelse{\isundefined{\@signature}}{}{{\@signature\\}}
{\bfseries\@firstname~\@lastname}% {\bfseries\@firstname~\@lastname}%
\ifthenelse{\isundefined{\@enclosure}}{}{% \ifthenelse{\isundefined{\@enclosure}}{}{%
\\% \\%

View file

@ -206,9 +206,9 @@
\recomputecvbodylengths% \recomputecvbodylengths%
\setlength{\parskip}{6\p@}} \setlength{\parskip}{6\p@}}
\renewcommand*{\makeletterclosing}{ \renewcommand*{\makeletterclosing}{%
\@closing\\[3em]% \@closing\ifthenelse{\isundefined{\@signature}}{\\[3em]}{\\[1em]}% shrink space when signature is set
\@signature\\% \ifthenelse{\isundefined{\@signature}}{}{{\@signature\\}}
{\bfseries \@firstname~\@lastname}% {\bfseries \@firstname~\@lastname}%
\ifthenelse{\isundefined{\@enclosure}}{}{% \ifthenelse{\isundefined{\@enclosure}}{}{%
\\% \\%

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Before After
Before After

View file

@ -9,7 +9,7 @@
\documentclass[11pt,a4paper,sans]{moderncv} % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman') \documentclass[11pt,a4paper,sans]{moderncv} % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')
% moderncv themes % moderncv themes
\moderncvstyle{casual} % style options are 'casual' (default), 'classic', 'banking', 'oldstyle' and 'fancy' \moderncvstyle{classic} % style options are 'casual' (default), 'classic', 'banking', 'oldstyle' and 'fancy'
\moderncvcolor{blue} % color options 'black', 'blue' (default), 'burgundy', 'green', 'grey', 'orange', 'purple' and 'red' \moderncvcolor{blue} % color options 'black', 'blue' (default), 'burgundy', 'green', 'grey', 'orange', 'purple' and 'red'
%\renewcommand{\familydefault}{\sfdefault} % to set the default font; use '\sfdefault' for the default sans serif font, '\rmdefault' for the default roman one, or any tex font name %\renewcommand{\familydefault}{\sfdefault} % to set the default font; use '\sfdefault' for the default sans serif font, '\rmdefault' for the default roman one, or any tex font name
%\nopagenumbers{} % uncomment to suppress automatic page numbering for CVs longer than one page %\nopagenumbers{} % uncomment to suppress automatic page numbering for CVs longer than one page
@ -258,7 +258,7 @@ Detailed achievements:
\subject{Job application} \subject{Job application}
\opening{Dear Sir or Madam,} \opening{Dear Sir or Madam,}
\closing{Yours faithfully,} \closing{Yours faithfully,}
\signature{0.7}{signature.png} % optional, remove / comment the line if not wanted %\signature{0.9}{signature.png} % optional, remove / comment the line if not wanted: first argument goes to \includegraphics > scale
\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
\makelettertitle \makelettertitle