From d13a12593f8cd1574c103bdc1c7874122c2f0372 Mon Sep 17 00:00:00 2001 From: LLdaniel Date: Mon, 25 May 2026 22:25:42 +0200 Subject: [PATCH 1/2] introduce a new contemporary option: (no)separator to hide/show the separator line after the colored header --- moderncvheadvii.sty | 15 ++++++++++----- moderncvstylecontemporary.sty | 2 ++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/moderncvheadvii.sty b/moderncvheadvii.sty index f2149ac..4308685 100644 --- a/moderncvheadvii.sty +++ b/moderncvheadvii.sty @@ -29,8 +29,13 @@ \@initializeif{\if@right}\@rightfalse \DeclareOption{right} {\@leftfalse\@righttrue} +% separator line option: "separator" (default) or "noseparator" +\@initializeif{\if@separator}\@separatortrue +\DeclareOption{separator} {\@separatortrue} +\DeclareOption{noseparator} {\@separatorfalse} + \DeclareOption*{}% avoid choking on unknown options -\ExecuteOptions{details,qr,left} +\ExecuteOptions{details,qr,left,separator} \ProcessOptions*\relax% \ProcessOptions* processes the options in the order provided (i.e., with the later ones possibly overriding the former ones), while \ProcessOptions processes them in the order of the package @@ -148,10 +153,10 @@ % case with no photo: assure defined \@photoframewidth with 2pt \ifthenelse{\isundefined{\@photo}}{\@initializelength{\@photoframewidth}\setlength{\@photoframewidth}{2pt}}{}% - \path[draw,line width=\@photoframewidth] - (head-bg.south west) edge[color=headhr!85!black] ([xshift=8em]head-bg.south west) - ([xshift=8em]head-bg.south west) edge[color=headhr] ([xshift=-8em]head-bg.south east) - ([xshift=-8em]head-bg.south east) edge[color=headhr!85!black] (head-bg.south east); + \if@separator% + \path[draw,line width=\@photoframewidth, color=headhr!85!black] + (head-bg.south west) -- (head-bg.south east); + \fi% \end{tikzpicture}% \if@left% \usebox{\makecvheadpicturebox}% diff --git a/moderncvstylecontemporary.sty b/moderncvstylecontemporary.sty index 33d9b04..6115576 100644 --- a/moderncvstylecontemporary.sty +++ b/moderncvstylecontemporary.sty @@ -19,6 +19,8 @@ \DeclareOption{right}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,right}} \DeclareOption{qr} {\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,qr}} \DeclareOption{noqr}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,noqr}} +\DeclareOption{separator}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,separator}} +\DeclareOption{noseparator}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,noseparator}} \DeclareOption*{}% avoid choking on unknown options \ExecuteOptions{left,qr} From c6d5ea236878177d0bc6fcd21729e80428874a97 Mon Sep 17 00:00:00 2001 From: LLdaniel Date: Mon, 25 May 2026 22:34:58 +0200 Subject: [PATCH 2/2] document new contemporary header option - separator in CHANGELOG and user guide --- CHANGELOG | 1 + manual/moderncv_userguide.tex | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index eec2a43..4e58677 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -8,6 +8,7 @@ version next - Fix missing Senders Name in Header (#278) - Document an additional example in the userguide on how to adjust the skill matrix (#213) - Adds contributing guidelines for moderncv (#275) +- New Contemporary style option - separator under the CV header can be shown or hidden (#280) version 2.5.1 (31 Jan 2026) diff --git a/manual/moderncv_userguide.tex b/manual/moderncv_userguide.tex index 68e4428..c9f8583 100644 --- a/manual/moderncv_userguide.tex +++ b/manual/moderncv_userguide.tex @@ -716,7 +716,9 @@ This style allows the following options which \emph{only} affect header and foot \textbf{\code{data in head}} & values: \code{details} (default), \code{nodetails}. Toggles between the header and footer as the location of personal data on the page. \\ \textbf{\code{qr}} & values: \code{qr} (default), \code{noqr}. - Enables or disables the inclusion of a QR code of your personal website. + Enables or disables the inclusion of a QR code of your personal website. \\ + \textbf{\code{separator in head}} & values: \code{separator} (default), \code{noseparator}. + Shows or hides the separator line after the colored header. \end{tabular} \note For the \code{contemporary} style it is recommended to use the \code{\\moderncvcolor\{cerulean\}} color scheme. The \code{contemporary} style is even more appealing with reduced margins. Use this in your preamble: \begin{lstlisting}