如何在目录、图表和参考书目第一页的底部添加页码?
\tableofcontents
\listoftables
\listoffigures
\bibliography{filename}
前言:
\documentclass[12pt,a4paper,oneside]{mwbk}
\usepackage[tableposition=top]{caption}
\usepackage{graphicx}
\usepackage{threeparttable}
\usepackage{polski}
\usepackage{enumitem}
\usepackage{color}
\usepackage[cp1250]{inputenc}
\usepackage{verbatim}
\usepackage{nameref}
\usepackage{natbib}
\usepackage{hyperref}
\usepackage{setspace}
\bibliographystyle{asr}
\bibpunct{[}{]}{;}{a}{}{,}
\fussy
\widowpenalty=10000
\clubpenalty=10000
\addtolength{\textwidth}{1,5cm}
\addtolength{\hoffset}{0cm}
\addtolength{\textheight}{0cm}
\addtolength{\voffset}{0cm}
编辑:之前添加的附加信息不相关
答案1
将以下内容添加到您的序言中:
\makeatletter
\let\ps@opening\hf@plain
\makeatother
请注意,这将在每一个章节起始页(包括目录和参考书目)。完整示例(编辑:包括natbib
和filecontents
环境):
\documentclass{mwbk}
\usepackage{natbib}
\makeatletter
\let\ps@opening\hf@plain
\makeatother
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
\end{filecontents}
\usepackage{lipsum}
\begin{document}
\tableofcontents
\chapter{foo}
Some text \citep{A01}.
\lipsum[1-10]
\bibliographystyle{plainnat}
\bibliography{\jobname}
\end{document}
(filecontents 环境仅用于将一些外部文件直接包含到示例中,以便进行编译。对于解决方案来说,它不是必需的。)