由于我不知道如何创建所需的标题页,我决定在 \begin{document} 之后省略 \maketitle 命令,因为老师不期望标题。现在我遇到的问题是,计数从第 2 页开始,不包括我的第一页进行编号。我怎样才能仍然包含第 1 页的页码?
\documentclass[11pt,a4paper]{article}
\usepackage[hyperref]{acl2020}
\usepackage{times}
\usepackage{latexsym}
\usepackage{lipsum}
\usepackage{multicol}
\usepackage{subcaption}
\usepackage{caption}
\usepackage{appendix}
\usepackage{titling}
%\usepackage[export]{adjustbox}
\usepackage{graphicx}
%\usepackage{placeins}
\renewcommand{\UrlFont}{\ttfamily\small}
\usepackage{microtype}
% Determine if the image is too wide for the page.
% Resize figures that are too wide for the page.
\aclfinalcopy % Uncomment this line for the final submission
%\def\aclpaperid{***} % Enter the acl Paper ID here
\newcommand\BibTeX{B\textsc{ib}\TeX}
\title{Coursework 1}
\begin{document}
%\maketitle
\begin{titlingpage}
\maketitle
\end{titlingpage}
\pagestyle{plain}
\section{Task A(a.):
\section{Task A(a.)
%References - needs no heading
\bibliography{bib}
\bibliographystyle{apa}
\end{document}
谢谢您的帮助。
答案1
这应该可以满足您的要求 - 标题页将没有任何页码 - 页码将从下一页(标题页之后)的第 1 页开始,依此类推
\documentclass[12pt]{article}
\usepackage{fullpage}
\usepackage{fancyhdr}
\title{Some Random Title}
\author{Author Name}
\date{}
\begin{document}
\maketitle
\thispagestyle{empty}
\newpage
\pagestyle{fancy}
\fancyhf{}
\rfoot{Page \thepage}
\setcounter{page}{1}
Some random words.
\newpage
Some random words on second page.
\end{document}
答案2
1) 标题页未编号,文本在另一页作为第 1 页:
\documentclass{article}
\usepackage{lipsum}
\begin{document}
\begin{titlepage}
Your title author and whatever here. The format and content is up to you.
\end{titlepage}
\lipsum[1-10] % dummy text
\end{document}
2)标题与文本位于同一页,从第 1 页开始:
\documentclass{article}
\usepackage{lipsum}
\begin{document}
\title{Your title}
\author{Your Name}
\date{\today}
\maketitle
\lipsum[1-10] % dummy text
\end{document}