tags:

views:

160

answers:

2

Hi, I have a 2 tex file which I am converting to pdf and then merging the 2 pdf. My problem is I want to define footer for each pdf without the page numbers.

\thispagestyle{fancy}
\rfoot{text}

but it gives me the page number.

A: 

You can set the following at the beginning of the document:

\pagenumbering{gobble}

Update: @laspal, not sure why it's not working for you. Here's a basic test I just tried with long table. The directive above suppressed page numbering while leaving the footers intact on both pages.

\documentclass[10pt]{article}
\usepackage{fancyhdr}
\usepackage{longtable}

\pagestyle{fancy}
\pagenumbering{gobble}

\begin{document}
\rfoot{footer text}

some text

\begin{longtable}{rr}
\hline
& X  \\ 
\hline
1 &   1 \\ 
2 &   2 \\ 
3 &   3 \\ 

% SNIP: generated lines to span two pages

73 &  73 \\ 
74 &  74 \\ 
75 &  75 \\ 
\hline

\end{longtable}

some more text on second page

\end{document}
ars
Thanks its works.
laspal
But the problem is I am using longtable so my footer comes only one the first page. Basically my tables is in two pages. Help??
laspal
@laspal: see my update above.
ars
+2  A: 

Try this

\thispagestyle{fancy}
\rfoot{text}    
\cfoot{}
\lfoot{}
midtiby