I am just starting with TeX so please be tolerant for my lack of knowledge.
I am using fancyhdr for footers and headers and I would like to put the title from \title into \fancyhead{}
How can I do it ?
My code :
%usepackages and all sorts of stuff
%...
% ------
% Header/footer
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\fancyhead[C]{\title}
\fancyfoot[C]{\thepage}
% ------
% Clickable URLs (optional)
\usepackage{hyperref}
% ------
% Maketitle metadata
\title{\vspace{-15mm}%
\fontsize{24pt}{10pt}\selectfont
\textbf{Android}
}
\author{%
\large
\textsc{Patryk} \\[2mm]
\normalsize University\\
\vspace{-9mm}
}
\date{\today}
%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\maketitle
\thispagestyle{fancy}
% ...
% ...
\def\mytitle{Android}, and substitute\mytitleforAndroid; and put\mytitlein your fancyhdr definition. – jmc Nov 25 '13 at 20:51