Header on page

224 views
Skip to first unread message

Ashish Revar

unread,
Oct 22, 2010, 2:58:21 AM10/22/10
to latexus...@googlegroups.com
Hello there,

How to set Header in a4 paper for a research paper?
For a Conference paper i need to set header, paper style is IEEE format.

Help needed, urgent.



--
Ashish Revar
Nirma University
ashis...@gmail.com
9909298846

jon

unread,
Oct 22, 2010, 9:50:56 AM10/22/10
to LaTeX Users Group
On Oct 22, 2:58 am, Ashish Revar <ashishre...@gmail.com> wrote:
> How to set Header in a4 paper for a research paper?
> For a Conference paper i need to set header, paper style is IEEE format.

(not giving us much information here...)

you probably want the fancyhdr package:---

http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/

---unless you are using a special class file that you don't mention.

cheers,
jon.

Peter Flynn

unread,
Oct 22, 2010, 11:16:15 AM10/22/10
to latexus...@googlegroups.com
On Fri, Oct 22, 2010 at 7:58 AM, Ashish Revar <ashis...@gmail.com> wrote:
Hello there,

How to set Header in a4 paper for a research paper?
For a Conference paper i need to set header, paper style is IEEE format.

It depends what you mean by "Header".

If you mean running heads (top of each page) then Jon has already pointed you at the fancyhdr package.

If you mean the title block,  then you want the IEEEtran.cls, available at http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/

Download the IEEEtran.zip, unzip it into your ~/texmf/tex/latex directory (I don't know where this is on Windows), and here's a sample document.

///Peter

\documentclass[a4paper]{IEEEtran}
\usepackage{url}
\begin{document}
\title{My Article}
\author{Ashish Revar}
\maketitle
\begin{abstract}

On Fri, Oct 22, 2010 at 7:58 AM, Ashish Revar \url{<ashis...@gmail.com>} wrote:

    Hello there,

    How to set Header in a4 paper for a research paper?
    For a Conference paper i need to set header, paper style is IEEE format.
\end{abstract}
\section{Answer}
It depends what you mean by ``Header''.

If you mean running heads (top of each page) then Jon has already
pointed you at the \textsf{fancyhdr} package.

If you mean the title block,  then you want the \textsf{IEEEtran.cls}, available at \url{http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/}

Download the \url{IEEEtran.zip}, unzip it into your
\url{~/texmf/tex/latex} directory (I don't know where this is on
Windows), and here's a sample document.

///Peter
\end{document}

Ashish Revar

unread,
Oct 23, 2010, 1:31:46 AM10/23/10
to latexus...@googlegroups.com
Thanks for the help,
actually i need to show different headers on odd and even pages repeatedly.
As well as page numbers are needed on the top of the page with header.
Font of this header should be small. Below I've attached the images.

this is the odd page... in odd pages page numbers are in upper right corner, with the header title different from even one.
OddPage.jpg
this is the even page... in even pages page numbers are in upper left corner, with the header title different from odd one.

EvenPage.jpg

Please help needed urgently, as I need to submit the paper within duration of the conference.


--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To post to this group, send email to latexus...@googlegroups.com.
To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.
OddPage.jpg
EvenPage.jpg

Gildas Cotomale

unread,
Oct 23, 2010, 2:39:55 AM10/23/10
to latexus...@googlegroups.com
Again: what class are you using?

> actually i need to show different headers on odd and even pages repeatedly.
> As well as page numbers are needed on the top of the page with header.
> Font of this header should be small.

This is possible within book and report classes for example (i never
try with article and others), if you specify that you whant that page
style in the preamble ;)

\documentclass{book}
% i used to call my desired packages here
\pagestyle{headings}
% i used to define my commands here
\begin{document}
\end{document}

Here it looks like with book class :


> in odd pages page numbers are in upper right corner, with the header title different from even one.

current section title as header title


> in even pages page numbers are in upper left corner, with the header title different from odd one.

current chapter title as header title
but on first chapter page, the page number is centered in the footer
>

Don't want automatic title with chapters and sections used ? Then say :
\pagestyle{myheadings}
\markboth{EvenHeader}{OddHeader}
But your heading text are for all the document and are static.. If you
need something more elaborate, the simplier way to do it without hasle
is to use the fancyhdr package as suggested early.

Regards.
\bye

Ashish Revar

unread,
Oct 23, 2010, 2:43:26 AM10/23/10
to latexus...@googlegroups.com
Thnx for the help,
 
As I am preparing conference paper I am using,

\documentclass[conference]{IEEEtran}

i can't use book class here,

Any idea?

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To post to this group, send email to latexus...@googlegroups.com.
To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.

Peter Flynn

unread,
Oct 23, 2010, 6:19:17 AM10/23/10
to latexus...@googlegroups.com

Use the fancyhdr package. This is exactly what it is for.

On 23 Oct 2010 07:43, "Ashish Revar" <ashis...@gmail.com> wrote:

Thnx for the help,
 
As I am preparing conference paper I am using,

\documentclass[conference]{IEEEtran}

i can't use book class here,

Any idea?



On Sat, Oct 23, 2010 at 12:09 PM, Gildas Cotomale <gildas....@gmail.com> wrote:
>

> Again: wh...

--
Ashish Revar
Nirma University
ashis...@gmail.com
9909298846

--

You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group....

Ashish Revar

unread,
Oct 24, 2010, 5:02:00 AM10/24/10
to latexus...@googlegroups.com
I've tried a lot, but nt able to get the solution.

Can anyone post the code fro this?

Really thankful to him..

You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To post to this group, send email to latexus...@googlegroups.com.
To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.

Peter Flynn

unread,
Oct 24, 2010, 8:52:18 AM10/24/10
to latexus...@googlegroups.com
On Sat, Oct 23, 2010 at 6:31 AM, Ashish Revar <ashis...@gmail.com> wrote:
Thanks for the help,
actually i need to show different headers on odd and even pages repeatedly.

This is what the fancyhdr package is for.
 
As well as page numbers are needed on the top of the page with header.

The same
 
Font of this header should be small. Below I've attached the images.

The same
 

this is the odd page... in odd pages page numbers are in upper right corner, with the header title different from even one.
this is the even page... in even pages page numbers are in upper left corner, with the header title different from odd one.

This is what the fancyhdr package is for.
 
Please help needed urgently, as I need to submit the paper within duration of the conference.

Why are you not using fancyhdr as Jon suggested already?

Here is a working example:

\documentclass[a4paper,twoside]{IEEEtran}
\usepackage{url,fancyhdr}
\pagestyle{fancy}
\fancyhead[RO,LE]{\small\thepage}
\fancyhead[LO]{\small INSTITUTE OF TECHNOLOGY, NIRMA UNIVERSITY,
  AHMEDABAD -- 382 481\quad\today}
\fancyhead[RE]{\small NATIONAL CONFERENCE ON CURRENT TRENDS IN
  TECHNOLOGY}
\fancyfoot[L,R,C]{}
\renewcommand{\headrulewidth}{0pt}

\begin{document}
\title{My Article}
\author{Ashish Revar}
\maketitle
\thispagestyle{fancy}

\begin{abstract}
On Fri, Oct 22, 2010 at 7:58 AM, Ashish Revar
\url{<ashis...@gmail.com>} wrote:

    Hello there,

    How to set Header in a4 paper for a research paper?
    For a Conference paper i need to set header, paper style is IEEE format.
\end{abstract}
\section{Answer}
It depends what you mean by ``Header''.

If you mean running heads (top of each page) then Jon has already
pointed you at the \textsf{fancyhdr} package.

If you mean the title block,  then you want the \textsf{IEEEtran.cls},
available at
\url{http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/}

Download the \url{IEEEtran.zip}, unzip it into your
\url{~/texmf/tex/latex} directory (I don't know where this is on
Windows), and here's a sample document.

///Peter
\clearpage
\section{Solution}
Use the \textsf{fancyhdr} package as instructed.

\begin{verbatim}
\pagestyle{fancy}
\fancyhead[RO,LE]{\small\thepage}
\fancyhead[LO]{\small
  INSTITUTE OF TECHNOLOGY,
  NIRMA UNIVERSITY,
  AHMEDABAD -- 382 481\quad\today}
\fancyhead[RE]{\small
  NATIONAL CONFERENCE ON
  CURRENT TRENDS IN TECHNOLOGY}
\fancyfoot[L,R,C]{}
\renewcommand{\headrulewidth}{0pt}

\end{verbatim}
\end{document}

///Peter
 

Ashish Revar

unread,
Oct 25, 2010, 12:47:25 AM10/25/10
to latexus...@googlegroups.com
Thank you peter,

It is very helpful to me, but still a little help is needed, in the very first page it is not showing the header. 

Will you please check out this?
Thanks.

My Code:

\documentclass[twoside, 10pt, conference, compsocconf]{IEEEtran}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{multirow}
%\usepackage[scriptsize]{caption2}
%\usepackage[hang,small]{caption2}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{setspace}
\usepackage{wrapfig}
\usepackage{tabls}
\usepackage{paralist}
%\setlength{\captionmargin}{20pt}
\usepackage{url,fancyhdr}
\pagestyle{fancy} \fancyhead[RO,LE]{\small\thepage}
\fancyhead[LO]{\small INSTITUTE OF TECHNOLOGY, NIRMA UNIVERSITY,
  AHMEDABAD -- 382 481, 9-11 December, 2010}
\fancyhead[RE]{\small INTERNATIONAL CONFERENCE ON CURRENT TRENDS IN
  TECHNOLOGY, 'NUiCONE-2010'}
\fancyfoot[L,R,C]{}
\renewcommand{\headrulewidth}{0pt}


\newcommand{\tablefont}[1]{\fontsize{2.5mm}{2.5mm}\selectfont}
\let\savecite\cite
\def\cite#1{\begingroup\fontsize{2.7mm}{2.7mm}\selectfont\savecite{#1}\endgroup}

\begin{document}
\title{Analyzing Cloud Possibilities and Limitations}
\author{
\IEEEauthorblockN{Ashish Revar}
\IEEEauthorblockA{Post Graduate Student, Dept. of Computer Science,\\
Institute of Technology, Nirma University,\\
Ahmedabad, India.\\

\and

\IEEEauthorblockN{Prof.Madhuri Bhavsar}
\IEEEauthorblockA{Associate Professor, Dept. of Computer Science,\\
Institute of Technology, Nirma University,\\
Ahmedabad, India.\\

\maketitle

\begin{abstract}

\end{abstract}

\noindent{\bf Index Terms}: Cloud computing, Cloud security, Cloud
obstacles, Cloud computing concerns, Cloud opportunities.

\section{Understanding Cloud Computing}


\section{Conclusion}


%\end{description}
%\end{enumerate}


\begin{thebibliography}{10}

%\doublespacing

\bibitem[1]{Understanding}
Rich Maggiani, Markoff, John, {\em "Cloud Computing Is Changing How
We Communicate"}, Communication Consultant Solari Communication.

\end{thebibliography}

\end{document}



--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To post to this group, send email to latexus...@googlegroups.com.
To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.

Peter Flynn

unread,
Oct 25, 2010, 9:21:31 AM10/25/10
to latexus...@googlegroups.com
On Mon, Oct 25, 2010 at 5:47 AM, Ashish Revar <ashis...@gmail.com> wrote:
Thank you peter,

It is very helpful to me, but still a little help is needed, in the very first page it is not showing the header. 

Will you please check out this?

You are missing the line
\thispagestyle{fancy}
after \maketitle.

///Peter
 

Ashish Revar

unread,
Oct 25, 2010, 10:40:08 AM10/25/10
to latexus...@googlegroups.com
thank you very much...
Reply all
Reply to author
Forward
0 new messages