同一文档内的页码位置发生变化吗?

同一文档内的页码位置发生变化吗?

同一章节中的页码位置发生变化。具体来说,第一页显示正确(在页面底部),但该章节的其余部分显示在右下角。

我想要在整个文本的右下角显示页码!

血管内皮生长因子

\documentclass[12pt,a4paper]{report}
\usepackage[pdftex]{graphicx}
\usepackage{url} 
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amssymb}
\setlength{\parindent}{0.5cm}
\usepackage{float}
\usepackage{footnote}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage[bookmarks, colorlinks=true, pdfborder={0 0 0}, pdftitle={Internship report}, pdfauthor={Kristjan Qarri}, pdfsubject={Internship report}, pdfkeywords={<keywords here>}]{hyperref} 
\usepackage[pagestyles]{titlesec}
\titleformat{\chapter}[display]{\normalfont\bfseries}{}{0pt}{\Huge}
\newpagestyle{mystyle}
{\sethead[\thepage][][\chaptertitle]{}{}{\thepage}}
\pagestyle{mystyle}
%%%%%%%%%%%%%
% add references in the TOC
\usepackage[nottoc,numbib]{tocbibind}
%%%%%%%%%%%
% acronyms
\usepackage[acronym,nomain,nonumberlist]{glossaries}
\makeglossaries

\newacronym{iso}{ISO}{international organization for standardization}
\newacronym{la}{LA}{Los Angeles}
\newacronym{un}{UN}{United Nations}
% end of file

\include{sections/Introduction}


\begin{document}
\tableofcontents

\chapter{Chapter 1}
\blindtext
\blindtext
\blindtext
\section{Section 1}
\blindtext
\blindtext
\blindtext

\chapter{Chapter 2}
\blindtext
\section{Section 1}
\blindtext
\blindtext
\blindtext
\end{document}

链接至项目文件

页面编号位置如下。

答案1

解决方案如代码所示

\documentclass[12pt,a4paper]{report}
\usepackage[pdftex]{graphicx}
\usepackage{url} 
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amssymb}
\setlength{\parindent}{0.5cm}
\usepackage{float}
\usepackage{footnote}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage[bookmarks, colorlinks=true, pdfborder={0 0 0}, pdftitle={Internship report}, pdfauthor={Kristjan Qarri}, pdfsubject={Internship report}, pdfkeywords={<keywords here>}]{hyperref} 
\usepackage[pagestyles]{titlesec}
\titleformat{\chapter}[display]{\normalfont\bfseries}{}{0pt}{\Huge}
%% Change from here
%\newpagestyle{mystyle}{\sethead[\thepage][][\chaptertitle]{}{}{\thepage}}
%\pagestyle{mystyle}
%%%%%%%%%%%%%
% add references in the TOC
\usepackage[nottoc,numbib]{tocbibind}
%%%%%%%%%%%
% acronyms
\usepackage[acronym,nomain,nonumberlist]{glossaries}
\makeglossaries

\newacronym{iso}{ISO}{international organization for standardization}
\newacronym{la}{LA}{Los Angeles}
\newacronym{un}{UN}{United Nations}
% end of file
% Kristjan Qarri
\usepackage{array}
\usepackage{makecell}
\usepackage{multirow}

\begin{document}
\tableofcontents

\chapter{Chapter 1}
\blindtext
\blindtext
\blindtext
\section{Section 1}
\blindtext
\blindtext
\blindtext

\chapter{Chapter 2}
\blindtext
\section{Section 1}
\blindtext
\blindtext
\blindtext
\end{document}

相关内容