删除横向长表的页码

删除横向长表的页码

我正在尝试从横向的非常宽且长的表格中删除页码。当我尝试使用时\thispagestyle{empty},这只会删除表格第一页部分的页码,而其他页码则与表格内容重叠。

floatpag我也尝试过使用这里描述的包:抑制仅包含一个大表的单个页面的页码? 但这对横向页码的位置没有影响。

请帮我。

这是我的脚本:

\documentclass[10pt]{article}
\usepackage[font=scriptsize]{caption}
\usepackage{graphicx}
\usepackage{pdflscape}
\newcounter{z}
\def\z{\stepcounter{z}[[[[[\thez]]]]]}
\makeatletter

\def\fudge#1#2{%
\addtolength\textheight{#1}%
\@colroom\textheight
\vsize\textheight
\@colht\textheight
\def\LS@rot{%
 \setbox\@outputbox\vbox{\hbox{\kern-#2\rotatebox{90}{\box\@outputbox}}}}%
\clearpage}

\makeatother


\usepackage{longtable}
\usepackage{fancyhdr}
\pagestyle{myheadings}


\begin{document}

\begin{landscape}
\fudge{3cm}{1.5cm}% 3cm longer and raise by 1.5cm
\advance\LTcapwidth by 360pt 
{\footnotesize  % Switch from 12pt to 11pt; otherwise, table won't fit
\setlength\LTleft{-100pt}            % default: \fill
\setlength\LTright{-30pt}           % default: \fill
\begin{longtable}{@{\extracolsep{\fill}}lllllllllllllll@{}}
\caption*{
\bf{All results}}
\tabularnewline \hline
col_1 & col_2 & col_3 & col_4 & col_5 & col_6 & col_7  & col_8 & col_9 & col_10 & col_11  & col_12 & col_13 & col_14 & col_15\\
This & is & a & long & and & wide & table & bla & bla & bla & bla & bla & bla & bla & bla \\
This & is & a & long & and & wide & table & bla & bla & bla & bla & bla & bla & bla & bla \\
This & is & a & long & and & wide & table & bla & bla & bla & bla & bla & bla & bla & bla \\
This & is & a & long & and & wide & table & bla & bla & bla & bla & bla & bla & bla & bla \\
This & is & a & long & and & wide & table & bla & bla & bla & bla & bla & bla & bla & bla \\
This & is & a & long & and & wide & table & bla & bla & bla & bla & bla & bla & bla & bla \\
This & is & a & long & and & wide & table & bla & bla & bla & bla & bla & bla & bla & bla \\
This & is & a & long & and & wide & table & bla & bla & bla & bla & bla & bla & bla & bla \\
\hline  
\end{longtable}}
\begin{flushleft} Results using a long and wide table \end{flushleft}
\end{landscape}

\end{document}

答案1

 \thispagestyle{empty}

仅影响一个页面,使用

\pagestyle{empty}

然后如果有必要改回

\pagestyle{myheadings}

在表格之后,尽管如评论中所述,如果您在景观区域内切换到空白页面样式,则不需要这样做,因为它应该在环境结束时自动切换回来。

相关内容