# how do i get header like

Name                                                                           Chapter name
roll No.
___________________________________________________________________________________________

content

___________________________________________________________________________________________
University name                                                                    page No.

-
Check out the manual for the fancyhdr package. This post answers the part of your question that has to do with page numbering. –  void-pointer Mar 12 '13 at 9:54
–  hpesoj626 Mar 12 '13 at 9:55

Here's a solution that uses the fancyhdr package.

Edit: You can get the section name to appear on the right side of the table header using the nameref package. I have modified the solution to do this.

\documentclass[11pt,a4paper]{article}
\usepackage{fancyhdr}
\pagestyle{fancy}
Name\\
Roll Number%
}
\lfoot{University Name}
\cfoot{}
\rfoot{\thepage}
\begin{document}
\section{Carrot Cake}\label{chapter}
\noindent
Yellow matter custard, green slop pie,\\
All mixed together with a dead dog's eye,\\
Slap it on a butty, ten foot thick,\\
Then wash it all down with a cup of cold sick.
\end{document}


-
You might want to consider to place your fancyhdr set up in the preamble. :) –  hpesoj626 Mar 12 '13 at 10:34
@hpesoj626 Good point, I fixed it now. –  void-pointer Mar 12 '13 at 11:12
I know this thing.but i can't get the actual chapter name using \chaptertitle in \rhead –  Darshna Mar 12 '13 at 11:30
@Darshna Ok, I've modified the answer to do that. Is this what you were looking for? –  void-pointer Mar 13 '13 at 8:10