我记得以前我使用 LaTex 打字时,它会给我一个文档首页,上面写着标题和日期。现在它直接从文档正文开始。没有作者,没有日期,没有首页,没有标题。
\documentclass{book}
\title{The Triangulation of Titling Data in
Non-Linear Gaussian Fashion via $\rho$ Series}
\date{October 31, 475}
\author{John Doe\\ Magic Department, Richard Miles University
\and Richard Row, \LaTeX\ Academy}
\date{April 4,2013}
\begin{document}
\begin{titlepage}
Hello
\end{titlepage}
\end{document}
答案1
通过演示,\maketitle
根据文档使用的类,行为会有所不同。所以...
book
与...类\maketitle
\documentclass{book}
\title{The Triangulation of Titling Data in
Non-Linear Gaussian Fashion via $\rho$ Series}
\date{October 31, 475}
\author{John Doe\\ Magic Department, Richard Miles University
\and Richard Row, \LaTeX\ Academy}
\date{April 4,2013}
\usepackage{kantlipsum}
\begin{document}
\maketitle
\kant[1]
\end{document}
report
产生\maketitle
类似的结果。
article
与...类\maketitle
\documentclass{article}
\title{The Triangulation of Titling Data in
Non-Linear Gaussian Fashion via $\rho$ Series}
\date{October 31, 475}
\author{John Doe\\ Magic Department, Richard Miles University
\and Richard Row, \LaTeX\ Academy}
\date{April 4,2013}
\usepackage{kantlipsum}
\begin{document}
\maketitle
\kant[1]
\end{document}
article
与...类titlepage
\documentclass{report}
\title{The Triangulation of Titling Data in
Non-Linear Gaussian Fashion via $\rho$ Series}
\date{October 31, 475}
\author{John Doe\\ Magic Department, Richard Miles University
\and Richard Row, \LaTeX\ Academy}
\date{April 4,2013}
\usepackage{kantlipsum}
\begin{document}
\begin{titlepage}
\maketitle
\end{titlepage}
\kant[1]
\end{document}
\maketitle
注意环境中的用法titlepage
。这是因为titlepage
只为您提供了一个空白页面,您可以随意设计。如果您不在其中放置任何内容,它只是一个空白页面。
book
类titlepage
产生类似的输出。
鉴于您并不真正想自定义标题的布局,实现相同结果的更简单的方法是仅使用\maketitle
类book
(如上所述)或在中article
使用titlepage
类的选项:
\documentclass[titlepage]{article}
\title{The Triangulation of Titling Data in
Non-Linear Gaussian Fashion via $\rho$ Series}
\date{October 31, 475}
\author{John Doe\\ Magic Department, Richard Miles University
\and Richard Row, \LaTeX\ Academy}
\date{April 4,2013}
\usepackage{kantlipsum}
\begin{document}
\maketitle
\kant[1]
\end{document}