子节标题文本与页面标题文本重叠

子节标题文本与页面标题文本重叠

我正在使用下面的代码编写文档,但是遇到了错误,即页眉(下面的代码)

\rhead{\large\centering{\textit{title at top of all pages}}}

与小节标题重叠(代码如下)

\subsection{subsection}
    \label{text}

如何让页眉仅出现在第一页(希望可以解决问题),或阻止子部分标题与后续页面上的页眉重叠

下面的主要文档代码

     \documentclass[11pt]{article}
\usepackage[tmargin=1.25in,bmargin=1.25in,lmargin=1.5in,rmargin=1.5in]{geometry}
\usepackage{times}               % Times Roman
\usepackage[scaled=0.86]{helvet} % Helvetica
\usepackage{sectsty}             
\sectionfont{\large\sffamily}    
\usepackage{fancyhdr}
\usepackage{mathptmx}            %used to make Title larger

%% Packages used for Algorithms
\usepackage[fleqn]{amsmath}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{graphicx}
\usepackage{subfig}
%% Packages used for referencing
\usepackage[nosectionbib,numberedbib]{apacite}
\AtBeginDocument{\renewcommand\refname{REFERENCES}}


\begin{document}
\raggedright

\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\rhead{\large\centering{\textit{top page header}}}
\rfoot{Copyright $\textcopyright$ 2018}
\cfoot{}
\sffamily
\noindent\rule{14cm}{1pt}


\begin{center}


\Huge\bfseries\sffamily {\fontsize{35}{60}\selectfont Title}
%\par
\vspace{5mm}
\end{center}
\vspace{-\baselineskip}
\noindent\rule{14cm}{1pt}
\fontfamily{ptm}\selectfont

\begin{flushleft}
\vspace{7mm}
\par
\large{\textbf{authors}}
\vspace{5mm}
\par
\large{\textit{text}}
\par
%\vspace{5mm}
\section*{ABSTRACT}

text
\vspace{5mm}
\par 
\textit{Keyword:  text.} 
\par  
\vspace{5mm}
\noindent\rule{14cm}{1pt}
\vspace{5mm}
\par


\section{INTRODUCTION}
\label{introduction}
\vspace{-3mm}

text
\par
\vspace{2mm}

text
\par
\vspace{2mm}
text

\begin{enumerate}
\item text;
\item text;
\item text. 
\end{enumerate}


\vspace{2mm}
\par

\section{RELATED WORK}
\label{relatedwork}
\vspace{-3mm}

text
\vspace{5mm}
\par

\subsection{text}
\label{text}

text

\subsection{text}
\label{text}

text

\subsection{text}
\label{text}

text

\vspace{2mm}
\par


\section{text}
\label{text}
%\vspace{-3mm}

text

%\vspace{7mm}
%\par

\subsection{text}
\label{text}

%\vspace{5mm}
%\par
\begin{figure}[h!]
    \centering
    \includegraphics[width=0.75\textwidth]{IMG/pic.pdf}
    \caption{txt}
    \label{text}
\end{figure}




text

\begin{center}
\begin{minipage}{0.7\textwidth}
\begin{algorithm}[H]
    \centering
    \caption{Example Algorithm}\label{algorithm}
    \begin{algorithmic}[1]
        \State \text{dataProcessing (dataset)} 
        \State $\textit{unitToDrop} \gets \text{25\%}$
        \State \text{text}
        \State \text{text}
        \Repeat
        \State \text{/*text*/}
        \For{$i\gets 1, rows$}
        \State $\text{text}$ 
        \State $\text{text}$ 
        \State $\text{text}$ 
        \State \text{text}
        \State $\text{text}$
        \EndFor
        \Until {text}
        \State \text{text}
        \Repeat
        \State \text{text}
        \For{$i\gets 1, rows$}
        \State $\text{text}$ 
        \State $\text{v}$ 
        \EndFor
        \Until {text}
        \State \textbf{Return}  \text{text, text}
    \end{algorithmic}
\end{algorithm}
\end{minipage}
\end{center}



\subsection{text}
\label{text}
\vspace{-3mm}
text
\vspace{5mm}
\par


\subsubsection{text}
\vspace{-3mm}
text
\vspace{5mm}
\par

\subsubsection{text}
\vspace{-3mm}
text
\vspace{5mm}
\par

\subsection{text}
\label{text}
\vspace{1mm}


text

\begin{center}
\begin{minipage}{0.7\textwidth}
\begin{algorithm}[H]
    \centering
    \caption{Example Algorithm}\label{algorithm}
    \begin{algorithmic}[1]
        \State \text{dataProcessing (dataset)} 
        \State $\textit{unitToDrop} \gets \text{25\%}$
        \State \text{text}
        \State \text{text}
        \Repeat
        \State \text{/*text*/}
        \For{$i\gets 1, rows$}
        \State $\text{text}$ 
        \State $\text{text}$ 
        \State $\text{text}$ 
        \State \text{text}
        \State $\text{text}$
        \EndFor
        \Until {text}
        \State \text{text}
        \Repeat
        \State \text{text}
        \For{$i\gets 1, rows$}
        \State $\text{text}$ 
        \State $\text{v}$ 
        \EndFor
        \Until {text}
        \State \textbf{Return}  \text{text, text}
    \end{algorithmic}
\end{algorithm}
\end{minipage}
\end{center}

text



\vspace{5mm}
\par


\subsubsection{text}
\vspace{-3mm}
text
\vspace{5mm}
\par

\begin{center}
\begin{minipage}{0.7\textwidth}
\begin{algorithm}[H]
    \centering
    \caption{Example Algorithm}\label{algorithm}
    \begin{algorithmic}[1]
        \State \text{dataProcessing (dataset)} 
        \State $\textit{unitToDrop} \gets \text{25\%}$
        \State \text{text}
        \State \text{text}
        \Repeat
        \State \text{/*text*/}
        \For{$i\gets 1, rows$}
        \State $\text{text}$ 
        \State $\text{text}$ 
        \State $\text{text}$ 
        \State \text{text}
        \State $\text{text}$
        \EndFor
        \Until {text}
        \State \text{text}
        \Repeat
        \State \text{text}
        \For{$i\gets 1, rows$}
        \State $\text{text}$ 
        \State $\text{v}$ 
        \EndFor
        \Until {text}
        \State \textbf{Return}  \text{text, text}
    \end{algorithmic}
\end{algorithm}
\end{minipage}
\end{center}

\subsubsection{text}
\vspace{-3mm}
text
\vspace{5mm}
\par

\begin{table*}[h!]
    \fontsize{9}{11}\selectfont
    \centering
    \caption{text}
    \label{text}
    \begin{tabular}{|p{4.2cm}|p{1.0cm}|p{1.1cm}|p{2.2cm}|p{1.5cm}|}
        \hline

    \textbf{\begin{tabular}[c]{@{}l@{}}\end{tabular}} & \textbf{\begin{tabular}[c]{@{}l@{}}text\end{tabular}} & \textbf{\begin{tabular}[c]{@{}l@{}}text\end{tabular}} & \textbf{\begin{tabular}[c]{@{}l@{}}text\end{tabular}} & 
\textbf{\begin{tabular}[c]{@{}l@{}}text\end{tabular}}
  \\  \hline
        text & text   & 208418  & 99.998992 & 0.000809  \\ \hline
        text & 391002    & 210540    & 98.582144 & 0.125630   \\ \hline
        text & 411384 & 221515 & 93.765198 & 0.858700   \\ \hline
        text & 391622 & 210874 & 98.488289 & 0.116453  \\ \hline
        text & 419887   & 226094 & 91.951002 & 0.841303  \\ \hline
        text & 395564    & 212996 &  97.521033 & 0.115293  \\ \hline
        text & 468534 & 252289 & 92.243513 & 0.161890  \\ \hline

    \end{tabular}
\end{table*}



\begin{figure}[h!]%
    \centering
    \subfloat[text]{{\includegraphics[width=6.5cm]{IMG/text.pdf} }}%
    \qquad
    \subfloat[text]{{\includegraphics[width=6.5cm]{IMG/text.pdf} }}%
    \caption{text}%
    \label{usa_canada}%
\end{figure}


blh blah blah




\section{text}
\label{text}
\vspace{-3mm}
text
\vspace{7mm}
\par




\section{text}
\label{text}
\vspace{-3mm}
text
\vspace{7mm}
\par

\section{text}
\label{text}
\vspace{-3mm}
text
\vspace{7mm}
\par








\bibliographystyle{apacite}
\bibliography{sa.bib}

%\vspace{7mm}
%\par
\section*{text}
\label{key}
\vspace{-7mm}
\par
\noindent\rule{14cm}{1pt}
\vspace{-3mm}
\par
text
\vspace{7mm}
\par

%\vspace{7mm}
%\par
\section*{text}
\label{bio}
\vspace{-7mm}
\par
\noindent\rule{14cm}{1pt}
\vspace{-3mm}
\par
\textbf{text} 

text

\vspace{7mm}
\par

\textbf{text} 

text


\vspace{7mm}
\par


%\vspace{7mm}
%\par
\section*{text}
\label{text}
\vspace{-7mm}
\par
\noindent\rule{14cm}{1pt}
\vspace{-3mm}
\par
\textbf{text}: text

\vspace{7mm}
\par

\end{flushleft}
\end{document}

相关内容