The resume
class doesn't expect header or footers to be used. Querying for the default values values of \textheight
, \paperheight
and \footskip
in the resume class:
\documentclass[margin,line]{resume}
\begin{document}
\begin{resume}
The value for \verb+\textheight+ is \the\textheight.
The value for \verb+\paperheight+ is \the\paperheight.
The value for \verb+\footskip+ is \the\footskip.
\end{resume}
\end{document}
one gets:
And one has that \textheight+\footskip>\paperheight
, so the footer will be typeset outside the physical page. To prevent this, reassign values to \textheight
(and maybe \footskip
); for example:
\documentclass[margin,line]{resume}
\usepackage{fancyhdr}
\textheight=10in
\footskip=25pt
\fancyhf{} % clear all header and footer fields
\renewcommand{\headrulewidth}{0pt} % no line in header area
\fancyfoot[C]{\today} % other info in "inner" position of footer line
\pagestyle{fancy}
\begin{document}
\begin{resume}
text
\end{resume}
\end{document}
Some remarks not related to the problem: the resume
class seems somehow "old"; perhaps you could consider using a more modern approach; in particular, the class (and also your document) uses the obsolete two-letter font switches (\bf
, \sc
,...); you should use the proper switches instead (\bfseries
, \scshape
,...).
Here's one possibility using the titlesec
and xhfill
packages:
\documentclass{article}
\usepackage[explicit]{titlesec}
\usepackage{xhfill}
\usepackage{lipsum}% just to generate text for the example
\titleformat{\section}
{\normalfont\Large\bfseries}{}{0em}{#1~\xrfill[0.3ex]{1.5pt}}
\begin{document}
\section{Education}
\lipsum[4]
\end{document}
And the other style:
\documentclass{article}
\usepackage[explicit]{titlesec}
\usepackage{xhfill}
\usepackage{lipsum}% just to generate text for the example
\titleformat{\section}
{\normalfont\Large\bfseries\filcenter}{}{0em}{\xrfill[0.3ex]{1.5pt}~#1~\xrfill[0.3ex]{1.5pt}}
\begin{document}
\section{Education}
\lipsum[4]
\end{document}
If titles are long, then one can use a minipage or variable width (through the varwidth) package, to produce something like:
\documentclass{article}
\usepackage[explicit]{titlesec}
\usepackage{xhfill}
\usepackage{varwidth}
\usepackage{lipsum}% just to generate text for the example
\newlength\mylen
\titleformat{\section}
{\normalfont\Large\bfseries}{}{0em}
{\begin{varwidth}{.7\linewidth}\raggedright#1\end{varwidth}~\xrfill[0.3ex]{1.5pt}}
\begin{document}
\section{Education}
\lipsum[4]
\section{Education and other extra activities}
\lipsum[4]
\end{document}
Something analogous can be done for the other style:
\documentclass{article}
\usepackage[explicit]{titlesec}
\usepackage{xhfill}
\usepackage{varwidth}
\usepackage{lipsum}% just to generate text for the example
\newlength\mylen
\titleformat{\section}
{\normalfont\Large\bfseries\filcenter}{}{0em}
{\xrfill[0.3ex]{1.5pt}~\begin{varwidth}{.75\linewidth}\centering#1\end{varwidth}~\xrfill[0.3ex]{1.5pt}}
\begin{document}
\section{Education}
\lipsum[4]
\section{Education and some other extra~activities}
\lipsum[4]
\end{document}
If both styles are to be applied in the same document, define commands for each style ans use them, as many times as required, to switch where needed:
\documentclass{article}
\usepackage[explicit]{titlesec}
\usepackage{xhfill}
\usepackage{varwidth}
\usepackage{lipsum}% just to generate text for the example
\newcommand\Ruled{%
\titleformat{\section}
{\normalfont\Large\bfseries}{}{0em}
{\begin{varwidth}{.7\linewidth}\raggedright##1\end{varwidth}~\xrfill[0.3ex]{1.5pt}}
}
\newcommand\Centered{%
\titleformat{\section}
{\normalfont\Large\bfseries\filcenter}{}{0em}
{\xrfill[0.3ex]{1.5pt}~\begin{varwidth}{.75\linewidth}\centering##1\end{varwidth}~\xrfill[0.3ex]{1.5pt}}
}
\begin{document}
\Ruled
\section{Education}
\lipsum[4]
\Centered
\section{Education and some other extra~activities}
\lipsum[4]
\end{document}
Adjust the settings according to your needs. I didn't use small capitals since some fonts don't support bold-faced small caps.
Best Answer
The
memoir
class provides a good method of creating a custom header with three parts. As set up here, the header will appear on every page as a custom letterhead. The technique is explained in the comments below.