如何在特定页面后显示页码

如何在特定页面后显示页码

我想在目录后显示页码,但 Latex 开始在图表列表上显示页码

\documentclass[12pt,twoside]{report}
\usepackage[utf8]{inputenc}
\usepackage[a4paper,width=150mm,top=25mm,bottom=25mm,bindingoffset=6mm]{geometry}
\usepackage[english,portuguese]{babel}
\usepackage[T1, T2A]{fontenc}
\usepackage{csquotes}
\usepackage{textcomp,gensymb}
\usepackage{indentfirst}
\usepackage{authblk}

\usepackage{fancyhdr}
\pagestyle{fancyplain}
\fancyhf{}
\setlength{\headheight}{15pt}
\fancyhead[R]{\thepage}

\setstretch{1}
\listoffigures*
\listoftables*

\chapter*{Lista de Abreviaturas e Siglas}
\setstretch{1}
\input{Chapters/Abbreviations.tex}

\tableofcontents

\chapter{Introdução}
\setstretch{1.5}
\input{Chapters/Chapter1.tex}

答案1

您正在使用该fancyhdr程序包,其设置旨在显示每页右上角的页码。

\begin{document}您需要发出指令后立即

\pagenumbering{gobble}

在打印之前“吞噬”页码。然后,在第一个“真实”页面上,发布说明

\pagenumbering{arabic}
\addtocounter{page}{<n>}

其中<n>是文档前言的页数。(在您的基本示例中,该数字是4。)

一个完整的例子——请注意,我必须注释掉这些\input指令,因为我无权访问底层 tex 文件:

\documentclass[12pt,twoside]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc} % do you really need 'T2A' as well?
\usepackage[a4paper,width=150mm,top=25mm,bottom=25mm,
            bindingoffset=6mm]{geometry}
\usepackage[english,portuguese]{babel}
\usepackage{csquotes}
\usepackage{textcomp,gensymb}
\usepackage{indentfirst}
\usepackage{authblk}
\usepackage{setspace}  % this was missing

\usepackage{fancyhdr}
\pagestyle{fancyplain}
\fancyhf{}
\setlength{\headheight}{15pt}
\fancyhead[R]{\thepage}

\begin{document} % this was missing

\pagenumbering{gobble}  % new

%%\setstretch{1} % not needed, as "1" is the default
\listoffigures
\listoftables
\chapter*{Lista de Abreviaturas e Siglas}
%%\input{Chapters/Abbreviations.tex} % commented out deliberately
\tableofcontents

\clearpage             %new
\pagenumbering{arabic} % new
\addtocounter{page}{4} % new
\setstretch{1.5}

\chapter{Introdução}

%%\input{Chapters/Chapter1.tex} % commented out deliberately
\end{document} % this was missing

相关内容