Tx · LaTeX & TikZ

How to Reformat a Title in europecv

Published By the 9to5Science editorial team

At a glance

  1. 1. Identify the heading

    Decide whether you mean a section heading, the name in the CV header, or a separate document title.

  2. 2. Format the heading

    For a section heading, put supported formatting commands inside the argument to ecvsection.

  3. 3. Compile and adjust

    Compile the document and adjust the font, color, or alignment to suit the layout.

In europecv, “the title” can mean the CV title, a section heading such as “Education,” or the name displayed in the personal-information area. These are handled differently: use \ecvtitle for the CV title, \ecvsection for section headings, and \ecvname for the name.

For a section heading, the simplest approach is to format the text passed to \ecvsection. For a CV title, set \ecvtitle{...} (typically in the preamble). The name is set with \ecvname and is not the same as either title.

Reformat a section heading

The argument to \ecvsection is text, so you can include standard formatting commands there. For example:

\ecvsection{\textcolor{blue}{\MakeUppercase{Education}}}

This makes the heading blue and uppercase. The xcolor package provides \textcolor; \MakeUppercase is a LaTeX command. You can change the formatting to suit your document, for example by using \textbf{...} for bold text.

If you want the same treatment for several headings, define a small wrapper command in the preamble:

\newcommand{\myecvsection}[1]{%
  \ecvsection{\textcolor{blue}{\MakeUppercase{#1}}}%
}

Then write \myecvsection{Education} or \myecvsection{Work experience} in the document. This keeps the formatting consistent and makes it easier to change later.

Complete example

This example formats an Education section heading. It requires the europecv class and the xcolor package.

\documentclass[english,a4paper]{europecv}
\usepackage[T1]{fontenc}
\usepackage{xcolor}

\newcommand{\myecvsection}[1]{%
  \ecvsection{\textcolor{blue}{\MakeUppercase{#1}}}%
}

\ecvtitle{Curriculum Vitae}
\ecvname{Ada}{Lovelace}

\begin{document}
\begin{europecv}
  \ecvpersonalinfo

  \myecvsection{Education}
  \ecvitem{1840--1841}{Private mathematics studies.}
\end{europecv}
\end{document}

Here, \ecvtitle sets the CV title, \ecvname supplies the name for the personal-information area, and \myecvsection formats a section heading. The entry is added with \ecvitem{label}{description}. If you only want one specially formatted section heading, you can use \ecvsection{...} directly instead of defining the wrapper.

Set or add a CV title

Set the CV title with \ecvtitle{...}, for example in the preamble:

\ecvtitle{\textcolor{blue}{\MakeUppercase{Curriculum Vitae}}

If you mean an additional heading beyond the CV title, you can also add ordinary LaTeX text inside the europecv environment. For example, place this before \ecvpersonalinfo:

\begin{center}
  {\LARGE\bfseries Curriculum Vitae}
\end{center}

This adds an extra heading; it does not replace the name configured by \ecvname or change how \ecvsection formats later headings.

Common mistakes

  • Using \title and \maketitle automatically: The europecv layout is built around its own commands. Use \ecvtitle to set the CV title; a standard LaTeX title is not necessarily displayed unless you explicitly add and print one.
  • Changing the wrong heading: \ecvname sets the person’s name; \ecvtitle sets the CV title; \ecvsection formats section headings. Choose the command that matches what you want to change.
  • Forgetting xcolor: If you use \textcolor, load xcolor in the preamble. Formatting commands such as \MakeUppercase do not need that package.
  • Editing internal class definitions unnecessarily: Formatting the section text or adding a custom heading is usually simpler than redefining commands inside the class. Internal changes can depend on the class version and affect every heading.

References

  1. The europecv package documentation

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.