
내 문서의 페이지 번호에 문제가 있습니다. 나는 강사가 우리 모두에게 제공한 템플릿을 사용하고 있으며 페이지 번호를 건드리지 않았지만 문서를 살펴볼 때 페이지 번호가 다른 위치에 나타납니다. 첫 번째 페이지의 페이지 중앙 하단에 있으며 그 이후부터 숫자는 오른쪽 상단 모서리에 표시됩니다. 나는 이 문제를 직접 해결하려고 노력했지만 그럴 수 없는 것 같습니다. 그러나 LaTeX를 사용하는 것은 이번이 처음입니다. 어떤 제안이라도 감사하겠습니다. 현재 문서 상단에 있는 내용은 다음과 같습니다.
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,graphicx,hyperref,parskip,gensymb,fancyhdr}
\usepackage[cm]{fullpage}
\setlength{\headsep}{0.6 cm}
\pagestyle{myheadings}
\begin{document}
나는 또한 \pagenumbering{gobble}
그것들을 제거하려고 노력했고(효과가 있었습니다) \pagestyle{arabic}
그것들이 모두 같은 장소에 있기를 바라면서 다시 가져오려고 했지만 이것은 효과가 없었습니다. 바람직하게는 모든 숫자가 페이지 하단 중앙에 위치하는 것이 좋습니다. 감사해요!
편집하다:
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,graphicx,hyperref,parskip,gensymb,fancyhdr}
\usepackage[cm]{fullpage}
\setlength{\headsep}{0.6 cm}
\pagestyle{myheadings}
\begin{document}
\title{Modelling the Back End of a Bus}
\maketitle
\begin{abstract}
.....
\end{abstract}
\section{introduction}
....
\end{document}
답변1
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,graphicx,hyperref,parskip,gensymb,fancyhdr}
\usepackage[cm]{fullpage}
\setlength{\headsep}{0.6 cm}
\setlength{\headheight}{15pt}% comment this line and the next for no header
\addtolength{\textheight}{-15pt}
\usepackage{fancyhdr}
\pagestyle{fancy}
% \renewcommand{\headrulewidth}{0pt}% if you don't want a rule
% \fancyhf[lh,ch,rh]{}% for no header
% \fancyhf[lh]{Something left}
% \fancyhf[rh]{Something right}
% \fancyhf[ch]{Something centre}
\title{Title}
\author{Author}
\begin{document}
\title{Modelling the Back End of a Bus}
\maketitle
\begin{abstract}
.....
\end{abstract}
\section{introduction}
....
\newpage
some text
\end{document}
답변2
사용 fancyhdr
:
\documentclass{article}
\usepackage{fancyhdr}
\pagestyle{fancy}
\rheader{\thepage}
\begin{document}
Every page will be numbered with the numbers in the upper right hand corner.
\end{document}