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 gi开发者_运维技巧ves me the page number.
Try this
\thispagestyle{fancy}
\rfoot{text}
\cfoot{}
\lfoot{}
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}
精彩评论