Adding a \postscript command (#274)

* Add `\postscript` command

* add postscript

* add postscript

* add postscript

* add postscript

* Update moderncvbodyvi.sty

* add postscript to template

* add postscript

* Update CHANGELOG
This commit is contained in:
Stefan 2026-02-22 18:47:10 +01:00 committed by GitHub
commit 14c6da7da2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 15 additions and 1 deletions

View file

@ -2,6 +2,7 @@ version next
- Upgrade to Fontawesome 6 (#183)
- Document how to set custom strings for social command (#239)
- Correct documentation to reflect new order \moderncvcolor before \moderncvstyle (#256)
- Adding optional \postscript{PS text} command to cover letter in all current styles (#271)
version 2.5.1 (31 Jan 2026)
- Fix french babel breaking contemporary style (#219)

View file

@ -98,7 +98,7 @@
cvitem, cventry, cvdoubleentry, cvdoubleitem, cvtripleitem, cvlistitem, cvlistdoubleitem, cvcolumns, moderncvstyle, moderncvcolor,
cvskill, cvskilllegend, cvskillplainlegend, cvskillhead, cvskillentry, nopagenumbers,
name, born, address, email, link, social, phone, homepage, extrainfo, photo, quote, section, subsection, setlength, NewDocumentCommand, definecolor, colorlet, cvitemwithcomment,
recipient, subject, opening, closing, signature, enclosure
recipient, subject, opening, closing, signature, postscript, enclosure
},
emphstyle={\color{cvblue}},
emph={[2]
@ -603,6 +603,12 @@ An optional command to include your signature after the closing. This feature is
\signature{<scale>}{<signature filename>}
\end{lstlisting}
\paragraph{\code{\\postscript}}
An optional command to include a postscript in the letter, between the name and enclosure.
\begin{lstlisting}
\postscript{<postscript text>}
\end{lstlisting}
\paragraph{\code{\\enclosure}}
A command to list the attached documents. The first optional parameter allows a redefinition of the default ``Enclosure'' label.
\begin{lstlisting}

View file

@ -813,6 +813,7 @@
\newcommand*{\opening}[1]{\def\@opening{#1}}
\newcommand*{\closing}[1]{\def\@closing{#1}}
\newcommand*{\signature}[2]{\def\@signature{\includegraphics[scale=#1]{#2}}}
\newcommand*{\postscript}[1]{\def\@postscript{#1}}
\newcommand*{\enclosure}[2][]{%
% if an optional argument is provided, use it to redefine \enclname
\ifthenelse{\equal{#1}{}}{}{\renewcommand*{\enclname}{#1}}%

View file

@ -184,6 +184,7 @@
\@closing\ifthenelse{\isundefined{\@signature}}{\\[3em]}{\\[1em]}% shrink space when signature is set
\ifthenelse{\isundefined{\@signature}}{}{{\@signature\\}}
{\bfseries\@firstname~\@lastname}%
\ifthenelse{\isundefined{\@postscript}}{}{\\[2em]{PS: \@postscript}}%
\ifthenelse{\isundefined{\@enclosure}}{}{%
\\%
\vfil%

View file

@ -248,6 +248,7 @@
\@closing\ifthenelse{\isundefined{\@signature}}{\\[3em]}{\\[1em]}% shrink space when signature is set
\ifthenelse{\isundefined{\@signature}}{}{{\@signature\\}}
{\bfseries\@firstname~\@lastname}%
\ifthenelse{\isundefined{\@postscript}}{}{\\[2em]{PS: \@postscript}}%
\ifthenelse{\isundefined{\@enclosure}}{}{%
\\%
\vfil%

View file

@ -188,6 +188,7 @@
\@closing\ifthenelse{\isundefined{\@signature}}{\\[3em]}{\\[1em]}% shrink space when signature is set
\ifthenelse{\isundefined{\@signature}}{}{{\@signature\\}}
{\bfseries\@firstname~\@lastname}%
\ifthenelse{\isundefined{\@postscript}}{}{\\[2em]{PS: \@postscript}}%
\ifthenelse{\isundefined{\@enclosure}}{}{%
\\%
\vfil%

View file

@ -225,6 +225,7 @@
\@closing\ifthenelse{\isundefined{\@signature}}{\\[3em]}{\\[1em]}% shrink space when signature is set
\ifthenelse{\isundefined{\@signature}}{}{{\@signature\\}}
{\bfseries \@firstname~\@lastname}%
\ifthenelse{\isundefined{\@postscript}}{}{\\[2em]{PS: \@postscript}}%
\ifthenelse{\isundefined{\@enclosure}}{}{%
\\%
\vfill%

View file

@ -190,6 +190,7 @@
\@closing\ifthenelse{\isundefined{\@signature}}{\\[3em]}{\\[1em]}% shrink space when signature is set
\ifthenelse{\isundefined{\@signature}}{}{{\@signature\\}}
{\bfseries\@firstname~\@lastname}%
\ifthenelse{\isundefined{\@postscript}}{}{\\[2em]{PS: \@postscript}}%
\ifthenelse{\isundefined{\@enclosure}}{}{%
\\%
\vfil%

View file

@ -278,6 +278,7 @@ Detailed achievements:
\opening{Dear Sir or Madam,}
\closing{Yours faithfully,}
\signature{0.9}{signature.png} % optional, remove / comment the line if not wanted: first argument goes to \includegraphics > scale
\postscript{An optional postscript} % optional, add a postscript
\enclosure[Attached]{curriculum vit\ae{}} % use an optional argument to use a string other than "Enclosure", or redefine \enclname
\makelettertitle