右上角的页码与页面文本相交

右上角的页码与页面文本相交

使用时,我的文本和右上角的页码似乎相交fancyhdr

\documentclass[a4paper,oneside,12pt]{report}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{bm}
\usepackage{graphicx}
\linespread{1.5}
\usepackage{subfigure}
\usepackage{float}
\usepackage{url}
\setcounter{secnumdepth}{5}
\usepackage{hyperref}
\usepackage [numbers,square,sort]{natbib}
\usepackage{ulem}
\usepackage[cm]{fullpage}
\addtolength{\voffset}{1.0cm}
\usepackage{pslatex}  % for times new roman font
\usepackage[nonumberlist]{glossaries}
\usepackage[top=2cm, bottom=2.5cm, left=3.5cm, right=2.5cm]{geometry}
\usepackage{fancyhdr}

%\addtolength{\textheight}{3.5cm}


\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=black,
urlcolor=black
}


\makeglossaries
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\newcommand{\abs}[1]{ \lvert #1 \rvert}


\pagenumbering{roman}

\input{./glossary.glo}

\begin{document}
\pagestyle{myheadings}


\input{./chapters/titlepage.tex}
\input{./chapters/declaration.tex}
\input{./chapters/dedication.tex}
\input{./chapters/abstract.tex}
\tableofcontents
\listoftables
\listoffigures
\include{./chapters/acknowledgement.tex}
\pagenumbering{arabic}
\include{./chapters/introduction}
\include{./chapters/theory}
\include{./chapters/literature}
\include{./chapters/methodology}
\include{./chapters/results}
\include{./chapters/discussion}
\include{./chapters/conclusion}

\printglossaries
\begin{small}
\bibliographystyle{ieeetr}

\bibliography{projbib}
\end{small}
\end{document}

http://imgur.com/x8Fyt

答案1

您的问题的一个最小工作示例是

\documentclass[a4paper,oneside,12pt]{report}
\usepackage[cm]{fullpage}
\usepackage{fancyhdr}
\usepackage{lipsum}

\begin{document}
\pagestyle{myheadings}

\pagenumbering{arabic}
\lipsum[1]

\end{document}

可以通过\usepackage[cm]{fullpage}用你的geometry包行替换来解决

\usepackage[top=2cm, bottom=2.5cm, left=3.5cm, right=2.5cm]{geometry}

因此,在原始文件中,您只需删除包含包的行即可fullpage

总体来说,正是由于这种类型的问题,geometry我们更倾向于使用这个软件包,而不是旧软件包。fullpage

相关内容