Graphics, Figures & TablesDifferent Footer

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
john_latex
Posts: 20
Joined: Wed Dec 22, 2010 10:21 pm

Different Footer

Post by john_latex »

Can anybody help me to have different footer in Latex? Document first page has one footer and remaining document pages have common footer. Attached is the code that generates common footer for all pages.
In first page footer should be at leftcorner and right corner. Remaining pages should be only commonleftcorner footer.

Example, leftcorner = first page left; rightcorner = first page right; commonleftcorner = title of the document.

Code: Select all

\fancypagestyle{empty}{
\fancyhf{}
\fancyfoot[C]{\textsc{Faculty Name}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}
Last edited by john_latex on Wed Jan 05, 2011 6:58 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Different Footer

Post by meho_r »

It may be only me, but after reading your post to the end, I have no idea what exactly do you want to do. Please, follow Board Rules and create a Minimal Working Example (MWE) in which we may clearly see what the problem is and what do you want to change.
john_latex
Posts: 20
Joined: Wed Dec 22, 2010 10:21 pm

Different Footer

Post by john_latex »

Thanks, I was trying to have different left footer and right footer only for first page. Until now I couldn't find, how to do it? Please suggest.

I was trying to have arabic numbers (1,2,3...) for sections instead of roman numbers.

Attached IEEEtran.cls

Code: Select all

\documentclass[10pt,twocolumn]{IEEEtran} %!PN
\usepackage{fancyhdr}
\fancypagestyle{empty}{
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\lfoot{Author Name, ArticleTitle...}}         %   left header: document author

\newtheorem{theorem}{Theorem}
\setcounter{page}{1}

\begin{document}

\title{Article Title} %!PN

\author{\large Author Name \\ 
\ Company Address, City Name, Country Name\\
E-mail: email@--------.---}

\maketitle
\thispagestyle{empty}\pagestyle{empty}

\begin{abstract}
Place your abstract here: usually a single paragraph summarizing the problem, approach, and results that are in the paper.  Print out these instructions before pasting your paper's text into this document, so you can refer back to them.\\  
\   The abstract is to be in fully-justified text, at the top of the left-hand column as it is here, below the author information.  Use the word "Abstract" as the Section Header, in 11-point Times (or Times New Roman) boldface type, left-justified, with initial capitalization.  The abstract is to be in 10-point, single-spaced type, and may be up to 3 in. (8 cm) long.  Then begin the "Introduction" section and the main text.\\ 
\   All manuscripts must be in English.  If English is not your primary language, and you feel that readers may have difficulty understanding the paper, please have someone at your institution/company copy-edit it to assure correct grammar, tense, and sentence structure before submitting the paper.
\end{abstract}

\begin{keywords}
Place, keywords, here, separated, by, commas 
\end{keywords}

\section{\bf{Introduction}}
This guideline includes descriptions of the fonts, spacing, and related information for producing your proceedings manuscript.  Please follow them, and if.  

This first Section may also contain a summary of the past developments and background of what is already known, and published elsewhere.  This is best summarized in your own paper, with references to other publications containing more-extensive discussions of this background information. [1]  The references are placed at the end of the paper. [2]\\
Remember that you should not re-state material that is already readily available in the archival literature.  Simply summarize it, then add a reference or two.  We suggest that you use references to peer-reviewed archival literature from the IEEE Xplore on-line system, at ieeexplore.ieee.org, which can be easily searched using keywords pertinent to your subject (see your university/company librarian for the password for downloading IEEE papers of interest off the internet).

\section{\bf{Heading}}

You may copy and aste the section headings and text of your paper directly into this Template.  Once the text is in place, you may select one of the Section Headers, then select the Style "Heading 1" to "paste" this Style.  Once one Section Header has been Styled, use the "brush" (Format Painter) to change all the rest - double-click the Format Painter, then click once on (or select) each of your Section Headers in turn.  This will create a small spacing above each Section Header; please delete any extra blank lines above/below the Section Header.\\
Similarly, select the "text" Style, and use the Format Painter to change all areas of text to the requested 10-point Times font.  Delete any extra blank lines.  Look up the word "style" in the Help system for guidance.\\

Your figures, tables, and diagrams, if computer-generated, should be placed within this document, with text placed/flowed around them.  These figures may have been created in a spreadsheet or graphics program; you should simplify them so that they are easily readable, and reduce them to fit into one column (or make them wider, if needed, with text from the second column flowing around them, as shown below).  Now, for the CD-ROM version of your paper, we prefer to have color figures and graphics, where appropriate; these will be viewable in color through the CD-ROM's browser (Acrobat Reader), but you should assure that they will be understandable when printed on a B\&W printer.  Especially see how any yellow or light blue are reproduced on a black-and-white laser printer.\\

Your text should flow completely to the foot of the printable area.  On 8.5x11 sheets, the top of your title (and the top line on each succeeding page) should be 0.7" from the top (you may need to adjust slightly, to match the Format Specification sheet), and the columns should continue to within 0.7" of the bottom.\\

If you are using A4 paper, then you may need to adjust the borders in this template file.  In "Page Setup", select "paper size" of A4; then select "Margins" and set left and right to 13.8 mm, and top and bottom to 25.2 mm.  The gutter between columns should already be about 5 mm; it can be set under Format/Columns.\\

\   A format sheet with the margins and placement guides is available as a PDF file as <format.pdf>.  It contains lines and boxes showing the margins and print areas.  If you hold it and your printed page up to the light, you can easily check your margins to see if your print area fits within the space allowed.\\

\section{\bf{Heading2}}

The main title (on the first page) should be at the top of the printable area, centered, and in Times 14-point, boldface type.  Capitalize the first letters of nouns, pronouns, verbs, adjectives, and adverbs; do not capitalize articles, coordinate conjunctions, or prepositions (unless the title begins with such a word).  Leave one blank line after the title.\\
For example, “1. Introduction”, should be Times 11-point boldface, initially capitalized, flush left.  Use a period (“.”) after the heading number, not a colon.\\

\subsection{\bf Subsection1}
As in this heading, they should be Times 11-point boldface, initial-word capitalized, flush left\\

\subsection{\bf Subsection2}

\subsection{\bf Subsection3}

\section{\bf{Headingconclusion}}

Author names and affiliations are to be centered beneath the title and printed in Times 12-point, non-boldface type. Multiple authors may be shown in a single line, with superscript numbers (as needed) to connect an author with an institution/company - or in a two- or three-column format, with their affiliations below their respective names. Affiliations (if not in separate lines beneath the listing of authors) are then centered below each author name, not bold.  Include e-mail address of at least the primary author if possible, as regular black text.  Follow the author information by a blank line before the main text.\\
\nocite{*}
\end{document}
Attachments
IEEEtran.cls
class file
(24.71 KiB) Downloaded 268 times
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Different Footer

Post by frabjous »

I think it's best to avoid modifying the empty page style. I'd use pagestyle fancy for most pages, and then modify plain style for the first page. The \thispagestyle command on the first page should be sufficient to set it to plain if the document class doesn't already.

Code: Select all

\documentclass[10pt,twocolumn]{IEEEtran} %!PN
\usepackage{fancyhdr}
\pagestyle{fancy}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% COMMANDS FOR COMMON HEADERS/FOOTERS GO HERE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\lfoot{Author Name, ArticleTitle...}         %   left header: document author


\fancypagestyle{plain}{%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% COMMANDS FOR FIRST PAGE HEADER/FOOTER GO HERE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\fancyhf{}
\lfoot{Something else maybe?}
\rfoot{Right footer here}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}

\newtheorem{theorem}{Theorem}
\setcounter{page}{1}

\begin{document}

\title{Article Title} %!PN

\author{\large Author Name \\
\ Company Address, City Name, Country Name\\
E-mail: email@--------.---}

\maketitle\thispagestyle{plain}

\begin{abstract}
Place your abstract here: usually a single paragraph summarizing the problem, approach, and results that are in the paper.  Print out these instructions before pasting your paper's text into this document, so you can refer back to them.\\ 
\   The abstract is to be in fully-justified text, at the top of the left-hand column as it is here, below the author information.  Use the word "Abstract" as the Section Header, in 11-point Times (or Times New Roman) boldface type, left-justified, with initial capitalization.  The abstract is to be in 10-point, single-spaced type, and may be up to 3 in. (8 cm) long.  Then begin the "Introduction" section and the main text.\\
\   All manuscripts must be in English.  If English is not your primary language, and you feel that readers may have difficulty understanding the paper, please have someone at your institution/company copy-edit it to assure correct grammar, tense, and sentence structure before submitting the paper.
\end{abstract}

\begin{keywords}
Place, keywords, here, separated, by, commas
\end{keywords}

\section{\bf{Introduction}}
This guideline includes descriptions of the fonts, spacing, and related information for producing your proceedings manuscript.  Please follow them, and if. 

This first Section may also contain a summary of the past developments and background of what is already known, and published elsewhere.  This is best summarized in your own paper, with references to other publications containing more-extensive discussions of this background information. [1]  The references are placed at the end of the paper. [2]\\
Remember that you should not re-state material that is already readily available in the archival literature.  Simply summarize it, then add a reference or two.  We suggest that you use references to peer-reviewed archival literature from the IEEE Xplore on-line system, at ieeexplore.ieee.org, which can be easily searched using keywords pertinent to your subject (see your university/company librarian for the password for downloading IEEE papers of interest off the internet).

\section{\bf{Heading}}

You may copy and aste the section headings and text of your paper directly into this Template.  Once the text is in place, you may select one of the Section Headers, then select the Style "Heading 1" to "paste" this Style.  Once one Section Header has been Styled, use the "brush" (Format Painter) to change all the rest - double-click the Format Painter, then click once on (or select) each of your Section Headers in turn.  This will create a small spacing above each Section Header; please delete any extra blank lines above/below the Section Header.\\
Similarly, select the "text" Style, and use the Format Painter to change all areas of text to the requested 10-point Times font.  Delete any extra blank lines.  Look up the word "style" in the Help system for guidance.\\

Your figures, tables, and diagrams, if computer-generated, should be placed within this document, with text placed/flowed around them.  These figures may have been created in a spreadsheet or graphics program; you should simplify them so that they are easily readable, and reduce them to fit into one column (or make them wider, if needed, with text from the second column flowing around them, as shown below).  Now, for the CD-ROM version of your paper, we prefer to have color figures and graphics, where appropriate; these will be viewable in color through the CD-ROM's browser (Acrobat Reader), but you should assure that they will be understandable when printed on a B\&W printer.  Especially see how any yellow or light blue are reproduced on a black-and-white laser printer.\\

Your text should flow completely to the foot of the printable area.  On 8.5x11 sheets, the top of your title (and the top line on each succeeding page) should be 0.7" from the top (you may need to adjust slightly, to match the Format Specification sheet), and the columns should continue to within 0.7" of the bottom.\\

If you are using A4 paper, then you may need to adjust the borders in this template file.  In "Page Setup", select "paper size" of A4; then select "Margins" and set left and right to 13.8 mm, and top and bottom to 25.2 mm.  The gutter between columns should already be about 5 mm; it can be set under Format/Columns.\\

\   A format sheet with the margins and placement guides is available as a PDF file as <format.pdf>.  It contains lines and boxes showing the margins and print areas.  If you hold it and your printed page up to the light, you can easily check your margins to see if your print area fits within the space allowed.\\

\section{\bf{Heading2}}

The main title (on the first page) should be at the top of the printable area, centered, and in Times 14-point, boldface type.  Capitalize the first letters of nouns, pronouns, verbs, adjectives, and adverbs; do not capitalize articles, coordinate conjunctions, or prepositions (unless the title begins with such a word).  Leave one blank line after the title.\\
For example, “1. Introduction”, should be Times 11-point boldface, initially capitalized, flush left.  Use a period (“.”) after the heading number, not a colon.\\

\subsection{\bf Subsection1}
As in this heading, they should be Times 11-point boldface, initial-word capitalized, flush left\\

\subsection{\bf Subsection2}

\subsection{\bf Subsection3}

\section{\bf{Headingconclusion}}

Author names and affiliations are to be centered beneath the title and printed in Times 12-point, non-boldface type. Multiple authors may be shown in a single line, with superscript numbers (as needed) to connect an author with an institution/company - or in a two- or three-column format, with their affiliations below their respective names. Affiliations (if not in separate lines beneath the listing of authors) are then centered below each author name, not bold.  Include e-mail address of at least the primary author if possible, as regular black text.  Follow the author information by a blank line before the main text.\\
\nocite{*}
\end{document}
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Different Footer

Post by meho_r »

If you use a special document class, you should probably stick with its definitions. You can change headers/footers with fancyhdr, I believe you wouldn't mess anything up. But, the situation with sectioning units isn't that simple. I changed only formatting of section and subsection to bold using the code from IEEEtran.cls, but for counters-related and other changes – well, I leave that for TeXperts to do.

Code: Select all

\documentclass[10pt,twocolumn]{IEEEtran} %!PN

\usepackage{fancyhdr}

% A new page style for normal pages
\fancypagestyle{main}{%
\fancyhf{}
\fancyfoot[L]{Left}
\fancyfoot[R]{Right}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}

% A new page style for title page
\fancypagestyle{first}{%
\fancyhf{}
\fancyfoot[L]{First page, left}
\fancyfoot[R]{First page, right}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}

% Set title page style to just created “first” page style
\makeatletter
\let\ps@titlepagestyle\ps@first
\makeatother

% SECTIONS === from IEEEtran.cls
%
\makeatletter

\def\section{\@startsection {section}{1}{\z@}{2.0ex plus .5ex
     minus .2ex}{1.0ex plus .2ex}{\bf}}% === was \sc
\def\subsection{\@startsection{subsection}{2}{\z@}{2.0ex plus .5ex
     minus .2ex}{1.0ex plus .2ex}{\bf}}% === was \it
\if@technote
  \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{2.0ex plus .5ex
     minus .1ex}{0pt}{\it}}
\else
  \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{2.0ex plus .5ex
     minus .2ex}{1.0ex plus .2ex}{\rm}}
  \def\paragraph{\@startsection{paragraph}{4}{\z@}{1.0ex plus .5ex
     minus .2ex}{0ex}{\rm}}
\fi

\makeatother


\newtheorem{theorem}{Theorem}
\setcounter{page}{1}

\begin{document}

\title{Article Title} %!PN

\author{\large Author Name \\ 
\ Company Address, City Name, Country Name\\
E-mail: email@--------.---}

\maketitle

% Activate the “main” page style
\pagestyle{main}

\begin{abstract}
Place your abstract here: usually a single paragraph summarizing the problem, approach, and results that are in the paper.  Print out these instructions before pasting your paper's text into this document, so you can refer back to them.

The abstract is to be in fully-justified text, at the top of the left-hand column as it is here, below the author information.  Use the word "Abstract" as the Section Header, in 11-point Times (or Times New Roman) boldface type, left-justified, with initial capitalization.  The abstract is to be in 10-point, single-spaced type, and may be up to 3 in. (8 cm) long.  Then begin the "Introduction" section and the main text.

All manuscripts must be in English.  If English is not your primary language, and you feel that readers may have difficulty understanding the paper, please have someone at your institution/company copy-edit it to assure correct grammar, tense, and sentence structure before submitting the paper.
\end{abstract}

\begin{keywords}
Place, keywords, here, separated, by, commas 
\end{keywords}

\section{Introduction}
This guideline includes descriptions of the fonts, spacing, and related information for producing your proceedings manuscript.  Please follow them, and if.  

This first Section may also contain a summary of the past developments and background of what is already known, and published elsewhere.  This is best summarized in your own paper, with references to other publications containing more-extensive discussions of this background information. [1]  The references are placed at the end of the paper. [2]

Remember that you should not re-state material that is already readily available in the archival literature.  Simply summarize it, then add a reference or two.  We suggest that you use references to peer-reviewed archival literature from the IEEE Xplore on-line system, at ieeexplore.ieee.org, which can be easily searched using keywords pertinent to your subject (see your university/company librarian for the password for downloading IEEE papers of interest off the internet).

\section{Heading}

You may copy and aste the section headings and text of your paper directly into this Template.  Once the text is in place, you may select one of the Section Headers, then select the Style "Heading 1" to "paste" this Style.  Once one Section Header has been Styled, use the "brush" (Format Painter) to change all the rest - double-click the Format Painter, then click once on (or select) each of your Section Headers in turn.  This will create a small spacing above each Section Header; please delete any extra blank lines above/below the Section Header.

Similarly, select the "text" Style, and use the Format Painter to change all areas of text to the requested 10-point Times font.  Delete any extra blank lines.  Look up the word "style" in the Help system for guidance.

Your figures, tables, and diagrams, if computer-generated, should be placed within this document, with text placed/flowed around them.  These figures may have been created in a spreadsheet or graphics program; you should simplify them so that they are easily readable, and reduce them to fit into one column (or make them wider, if needed, with text from the second column flowing around them, as shown below).  Now, for the CD-ROM version of your paper, we prefer to have color figures and graphics, where appropriate; these will be viewable in color through the CD-ROM's browser (Acrobat Reader), but you should assure that they will be understandable when printed on a B\&W printer.  Especially see how any yellow or light blue are reproduced on a black-and-white laser printer.

Your text should flow completely to the foot of the printable area.  On 8.5x11 sheets, the top of your title (and the top line on each succeeding page) should be 0.7" from the top (you may need to adjust slightly, to match the Format Specification sheet), and the columns should continue to within 0.7" of the bottom.

If you are using A4 paper, then you may need to adjust the borders in this template file.  In "Page Setup", select "paper size" of A4; then select "Margins" and set left and right to 13.8 mm, and top and bottom to 25.2 mm.  The gutter between columns should already be about 5 mm; it can be set under Format/Columns.

A format sheet with the margins and placement guides is available as a PDF file as <format.pdf>.  It contains lines and boxes showing the margins and print areas.  If you hold it and your printed page up to the light, you can easily check your margins to see if your print area fits within the space allowed.

\section{Heading2}

The main title (on the first page) should be at the top of the printable area, centered, and in Times 14-point, boldface type.  Capitalize the first letters of nouns, pronouns, verbs, adjectives, and adverbs; do not capitalize articles, coordinate conjunctions, or prepositions (unless the title begins with such a word).  Leave one blank line after the title.

For example, “1. Introduction”, should be Times 11-point boldface, initially capitalized, flush left.  Use a period (“.”) after the heading number, not a colon.

\subsection{Subsection1}
As in this heading, they should be Times 11-point boldface, initial-word capitalized, flush left

\subsection{Subsection2}

\subsection{Subsection3}

\section{Headingconclusion}

Author names and affiliations are to be centered beneath the title and printed in Times 12-point, non-boldface type. Multiple authors may be shown in a single line, with superscript numbers (as needed) to connect an author with an institution/company - or in a two- or three-column format, with their affiliations below their respective names. Affiliations (if not in separate lines beneath the listing of authors) are then centered below each author name, not bold.  Include e-mail address of at least the primary author if possible, as regular black text.  Follow the author information by a blank line before the main text.
\nocite{*}
\end{document}
john_latex
Posts: 20
Joined: Wed Dec 22, 2010 10:21 pm

Re: Different Footer

Post by john_latex »

Thanks for your reply. Your replies are precious.

@meho_r - I tried your code for bold section headings. The subsection alphabetical numbering was changed to normal fonts instead of italic fonts. Please suggest.

Is it possible to have Arabic numbering in sections, instead of roman numbering?

Thanks is advance.
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Re: Different Footer

Post by meho_r »

Here's the result of the code I posted earlier. I can't reproduce the problem you mentioned.

If you need so many customization, why do you use a special document class? Why don't you use one of standard classes (or highly customizable classes like memoir or KOMA-script), so you can safely use packages for specific purposes (like titlesec for changing sectioning units)? I don't dare messing with sectioning units for IEEEtran, sorry, and changing counters for it requires some hacking.
Attachments
example.pdf
(63 KiB) Downloaded 226 times
Post Reply