参考文献没有得到正确的页码

参考文献没有得到正确的页码

我是 LaTeX 新手。我遇到的问题是,我无法在正文中获取正确的参考页码,但获取的是上一章的最后一页码。此外,在页眉中,参考文献的章节号是上一章的。

这是主文件代码

\documentclass[12pt,a4paper]{report}

\usepackage[top=0.70in, bottom=0.70in, left=0.8in,right=0.80in]{geometry} % setting the page alignment with this package
\usepackage[pdftex]{graphicx} 
\usepackage[dvips, bookmarks, colorlinks=false]{hyperref} %for creating links in the pdf version and other additional pdf attributes, no effect on the printed document
\usepackage[final]{pdfpages} %for embedding another pdf, remove if not required
\usepackage{float} %used for figure placement with H as a parameter
\usepackage{pslatex} % for times new roman, old package, but works
\usepackage{array} % for making text bold in table
\usepackage{subfigure} % for displaying figure side by side

%For the header and footer
\usepackage{fancyhdr}
\fancypagestyle{plain}{%
%\fancyhf{} % clear all header and footer fields
\fancyfoot[L]{\emph{TouchX Mouse Simulation Using Gesture on a Virtual Screen}} % except the center
\fancyfoot[R]{\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
}

\pagestyle{fancy}
\lhead{Chapter \thechapter}
\renewcommand{\chaptermark}[1]{% 
\markboth{#1}{}} 

\fancyfoot[LO,LE]{\emph{TouchX Mouse Simulation Using Gesture on a Virtual Screen}}
\cfoot{}
\fancyfoot[RO, RE]{\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
%For the header and footer Over

% Altering the Index Page Title
%\renewcommand{\contentsname}{\begin{center}\textsc{University Of Pune \\2011 - 2012}\\[1cm]Index\end{center}} 


%GLOBAL SETTINGS OVER, DOCUMENT BEGINS
\begin{document}

%Renames "Bibliography" to "References" on ref page
\renewcommand\bibname{References} 



%TABLE OF CONTENTS AND LIST OF FIGURES ARE AUTOMATICALLY ADDED BY FOLLOWING COMMANDS
%ADD FIGURE OF TABLES IF YOU NEED TO, CHECK DOCUMENTATION
\pagenumbering{roman} %numbering before main content starts


%To reset the Header & Footer for TOC and LOF
\pagestyle{empty}
\addtocontents{toc}{\protect\thispagestyle{empty}}
\tableofcontents % adds Index Page

%\pagestyle{empty}

\addtocontents{lof}{\protect\thispagestyle{empty}}
\listoffigures % adds List of Figures
\addtocontents{lot}{\protect\thispagestyle{empty}}
\listoftables
\cleardoublepage

%And reset back the settings we choose for Header and Footer
\pagestyle{fancy}

\newpage
\pagenumbering{arabic} %reset numbering to normal for the main content

\input{project/introduction.tex} % adds the introduction page
\input{project/ref.tex} % adds the References page

\end{document}

并且该ref.tex文件是

\addcontentsline{toc}{chapter}{References}
\begin{thebibliography}{99}

\bibitem{short_paper_name}Mario Ganzeboom ,\emph{How hand gestures are recognized using a dataglove};  University of Twente,The Netherlands,2010.
\bibitem{short_paper_name}Ye Zhou,Gerald Morrison,\emph{A Real-time Algorithm for Finger Detection in a Camera Based Finger-Friendly Interactive Board System}; 5th International Conference on Computer Vision Systems, Applied Computer Science Group, Bielefeld University, Germany,2007.

\end{thebibliography}

答案1

这很简单:

\begin{thebibliography}{99}
\addcontentsline{toc}{chapter}{\bibname}
\lhead{}\markboth{\bibname}{}

\bibitem{short_paper_name1}
Mario Ganzeboom, \emph{How hand gestures are recognized using a dataglove};  University of Twente, The Netherlands,2010.

\bibitem{short_paper_name2}
Ye Zhou,Gerald Morrison, \emph{A Real-time Algorithm for Finger Detection in a Camera Based Finger-Friendly Interactive Board System}; 5th International Conference on Computer Vision Systems, Applied Computer Science Group, Bielefeld University, Germany, 2007.

\end{thebibliography}

这样就设置了 header参考书目已经开始,因此目录中的页码是正确的。


一些注释

您正在使用有冲突的选项dvipspdftex请删除它们,它们是不必要的,因为排版引擎能够识别自己。

该包pslatex已过时:

\usepackage{mathptmx}

subfigure已过时:

\usepackage{subfig}

(您可能需要更改一些命令,因为新版本使用\subfloat而不是\subfigure\subtable)。

添加

\setlength{\headheight}{14.5pt}

到序言部分,或者headheight=14.5pt到传递给 的选项geometry

相关内容