1

I am writing a curriculum vitae using Plasmati Graduate CV Latex template. I have made some modifications in order to add both a footer and a header, using the packages scrpage2 and lastpage. I am satisfied with the resulting footer, but I have problems with the page numbering in the header.

In the header, the page numbering appears two times (see picture):

  1. In the format "page/total number of pages" (which is what I want);
  2. Only the page number in the upper right part.

I would like like to remove the simple page numbering (i.e. element 2. of the list above) and leave only the "page/total number of pages" format.

Is this possible?

The code I am using is:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Plasmati Graduate CV
% LaTeX Template
% Version 1.0 (24/3/13)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Alessandro Plasmati ([email protected])
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
% Important note:
% This template needs to be compiled with XeLaTeX.
% The main document font is called Fontin and can be downloaded for free
% from here: http://www.exljbris.com/fontin.html
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%------------------------------------------------------------------------
%   PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%-----------------------------------------------------------------------

\documentclass[a4paper,12pt]{article} % Default font size and paper size

\usepackage{fontspec} % For loading fonts
\defaultfontfeatures{Mapping=tex-text}
\setmainfont[SmallCapsFont = Fontin SmallCaps]{Fontin} % Main document font

\usepackage{xunicode,xltxtra,url,parskip} % Formatting packages

\usepackage[usenames,dvipsnames]{xcolor} % Required for specifying custom   colors

\usepackage[big]{layaureo} % Margin formatting of the A4 page, an alternative to layaureo can be \usepackage{fullpage}
% To reduce the height of the top margin uncomment: \addtolength{\voffset}{-1.3cm}

\usepackage{hyperref} % Required for adding links   and customizing them
\definecolor{linkcolour}{rgb}{0,0.2,0.6} % Link color
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour,linkcolor=linkcolour}     % Set link colors throughout the document

\usepackage{titlesec} % Used to customize the \section command
\titleformat{\section}{\Large\scshape\raggedright}{}{0em}{}[\titlerule] % Text formatting of sections
\titlespacing{\section}{0pt}{3pt}{3pt} % Spacing around sections
\titleformat{\subsection}{\large\itshape\raggedright}{}{0em}{} % Text formatting of subsections


\newcommand\tab[1][2.58cm]{\hspace*{#1}} % Horizontal space

\usepackage{scrpage2} % Provides headers and footers configuration
\usepackage{marvosym} % Allows the use of symbols
\usepackage{xecolor} %Package for colors
\usepackage{blindtext}

%----------------------------------------------------------------------------------------
% HEADER SECTION
%----------------------------------------------------------------------------------------


\usepackage{lastpage} % To show the page number as "N/TOT"
\chead[\pagemark]{\hfil \thepage/\pageref*{LastPage} \hfil}

%----------------------------------------------------------------------------------------
% FOOTER SECTION
%----------------------------------------------------------------------------------------

\cfoot{
\addfontfeature{LetterSpace=20.0}\fontsize{9.0}{18}\selectfont % Letter spacing and font size

\textcolor{gray}{NNN \textsc{SSS}} \\ % Name and date
\textcolor{gray}{{\Large\Letter} [email protected] \ {\Large\Telefon} (+00)    123456789} \\% Your email address and phone number
}

\begin{document}

\pagestyle{scrheadings} % Removes page numbering

\font\fb=''[cmr10]'' % Change the font of the \LaTeX command under the skills section


%----------------------------------------------------------------------------------------
%   CV
%----------------------------------------------------------------------------------------

\par{\centering{\Huge NNN \textsc{SSS}}\bigskip\par} % Your name

\section{Personal details}

\blinditemize

\section{Business details}

\blinditemize

\section{Education}

\blinditemize

\section{Areas of interest}

\blinditemize

\section{Teaching activity}

\blinditemize

\section{Other activities} 

\blinditemize

\end{document}

This is the resulting pdf:

enter image description here

Thanks!

2
  • 2
    Use \clearscrheadfoot to remove the predefined contents of the header and footer fields before you set your own contents. Alternatively you can add \ohead[]{} to your code.
    – esdd
    Dec 14, 2016 at 17:40
  • 1
    Thanks a lot ! \clearscrheadfootsolved my problem!
    – GLB
    Dec 14, 2016 at 20:23

1 Answer 1

1

Use \clearscrheadfoot to remove the predefined contents of the header and footer fields before you set your own contents.

\usepackage{scrpage2}
\clearscrheadfoot
\chead{\thepage/\pageref*{LastPage}}
\cfoot{<your footer>}
\pagestyle{scrheadings}

Alternatively you can add \ohead[]{} to your code.

2
  • I have the issue that it shows the page number only on the first page. \pagestyle{scrheadings} does not function only \thispagestyle{scrheadings}. How can I get the footer on all pages in my cv/resume?
    – Til Hund
    Mar 31, 2017 at 20:35
  • @TilHund Please ask a new question and provide a MWE that shows your issue.
    – esdd
    Mar 31, 2017 at 22:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .