diff --git a/examples/template.pdf b/examples/template.pdf index 5c376ae..5248960 100644 Binary files a/examples/template.pdf and b/examples/template.pdf differ diff --git a/examples/template_casual_orange.pdf b/examples/template_casual_orange.pdf index 9244d43..80a0c1d 100644 Binary files a/examples/template_casual_orange.pdf and b/examples/template_casual_orange.pdf differ diff --git a/examples/template_classic_green.pdf b/examples/template_classic_green.pdf index 64d4811..1d5d212 100644 Binary files a/examples/template_classic_green.pdf and b/examples/template_classic_green.pdf differ diff --git a/examples/template_multibib.pdf b/examples/template_multibib.pdf index e1cda00..2d21361 100644 Binary files a/examples/template_multibib.pdf and b/examples/template_multibib.pdf differ diff --git a/moderncv.cls b/moderncv.cls index a2cb5cc..4b2cf95 100644 --- a/moderncv.cls +++ b/moderncv.cls @@ -165,7 +165,7 @@ \RequirePackage[dvips]{graphicx}\fi % headers and footers -\usepackage{fancyhdr} +\RequirePackage{fancyhdr} \fancypagestyle{plain}{ \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} @@ -329,6 +329,14 @@ \hspace{\separatorcolumnwidth}% \parbox[m]{\maincolumnwidth}{\sectionstyle{#1}}\\[1ex]} % \cvline[1ex]{\color{sectionrectanglecolor}\rule[0]{\hintscolumnwidth}{1ex}}{\sectionstyle{#1}}}% gives bad alignment of rectangle; too bad m{width} columns seem not to work as a valid column definition for tabular environments +% starred variant, which is identical but defined to allow its use (e.g. for natbib compatibility, who uses \section*{} for the bibliography header) +\AtEndPreamble{% + \@ifpackageloaded{natbib} + { + \RequirePackage{suffix} + \WithSuffix\newcommand\section*{\section} + }{} +} % usage: \subsection{title} \newcommand*{\subsection}[1]{%